gapic-generator/lib/gapic/presenters/service_presenter.rb
##
# The method to use for quick start samples. Normally this is simply the
# first non-client-streaming method defined, but it can be overridden via
# a gem config.
#
# @return [Gapic::Presenters::MethodPresenter]
#
The method to use for quick start samples. Normally this is simply the
first non-client-streaming method defined, but it can be overridden via
a gem config.
The method to use for quick start samples . Normally this is simply the first non - client - streaming method defined but it can be overridden via a gem config .
def quick_start_method
        gem_config = @api.configuration[:gem]
        preferred_method = gem_config[:quick_start_method] if gem_config
        result = methods.find { |meth| meth.name == preferred_method } if preferred_method
        result || methods.find { |meth| !meth.client_streaming? }
      end
def quick_start_method gem_config = @api . configuration [ :gem ] preferred_method = gem_config [ :quick_start_method ] if gem_config result = methods . find { | meth | meth . name == preferred_method } if preferred_method result || methods . find { | meth | ! meth . client_streaming? } end
The method to use for quick start samples.
The method to use for quick start samples .
None
Gapic::Presenters::MethodPresenter