gapic-generator/lib/gapic/presenters/service_presenter.rb
# The namespace of the client. Normally this is the version module. This
# may be different from the proto namespace for a common service.
The namespace of the client. Normally this is the version module. This
may be different from the proto namespace for a common service.
The namespace of the client . Normally this is the version module . This may be different from the proto namespace for a common service .
def namespace
        return common_service_delegate.namespace if common_service_delegate
        return ensure_absolute_namespace @service.ruby_package if @service.ruby_package.present?
        namespace = ruby_namespace_for_address @service.address[0...-1]
        fix_namespace @api, namespace
      end
def namespace return common_service_delegate . namespace if common_service_delegate return ensure_absolute_namespace @service . ruby_package if @service . ruby_package . present? namespace = ruby_namespace_for_address @service . address [ 0 ... - 1 ] fix_namespace @api , namespace end
The namespace of the client.
The namespace of the client .
# If this service is a common service, its client should go into its # delegate's namespace rather than its own. For example, KMS includes # the common IAMPolicy service, but that service's client should go # into the KMS namespace.