gapic-generator/lib/gapic/presenters/service_presenter.rb
##
# Returns this service presenter if there is a grpc client. Otherwise,
# returns the corresponding rest service presenter if there isn't a grpc
# client but there is a rest client. Otherwise, returns nil if there is
# neither client.
#
# @return [ServicePresenter,ServiceRestPresenter,nil]
#
Returns this service presenter if there is a grpc client. Otherwise,
returns the corresponding rest service presenter if there isn't a grpc
client but there is a rest client. Otherwise, returns nil if there is
neither client.
Returns this service presenter if there is a grpc client . Otherwise returns the corresponding rest service presenter if there isn ' t a grpc client but there is a rest client . Otherwise returns nil if there is neither client .
def usable_service_presenter
        if @api.generate_grpc_clients?
          self
        elsif @api.generate_rest_clients? && methods_rest_bindings?
          rest
        end
      end
def usable_service_presenter if @api . generate_grpc_clients? self elsif @api . generate_rest_clients? && methods_rest_bindings? rest end end
Returns this service presenter if there is a grpc client.
Returns this service presenter if there is a grpc client .
None
ServicePresenter,ServiceRestPresenter,nil