Sha256: 64ef75ba09e077dcff35fecaf19889c948bb552e87cec4cf983d3e4d8d37f34f

Contents?: true

Size: 292 Bytes

Versions: 30

Compression:

Stored size: 292 Bytes

Contents

<%- assert_locals method -%>
unless request.is_a? ::Enumerable
  raise ::ArgumentError, "request must be an Enumerable" unless request.respond_to? :to_enum
  request = request.to_enum
end

request = request.lazy.map do |req|
  ::Gapic::Protobuf.coerce req, to: <%= method.request_type %>
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gapic-generator-0.6.6 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.6.5 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.6.4 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.6.3 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.6.2 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.6.1 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.6.0 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.5.1 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.5.0 templates/default/service/client/method/def/_request_streaming.erb
gapic-generator-0.4.2 templates/default/service/client/method/def/_request_streaming.erb