original_docstring: Performs credential-specific before request logic.
  
          Refreshes the credentials if necessary, then calls :meth:`apply` to
          apply the token to the x-goog-api-key header.
  
          Args:
              request (google.auth.transport.Request): The object used to make
                  HTTP requests.
              method (str): The request's HTTP method or the RPC method being
                  invoked.
              url (str): The request's URI or the RPC service's URI.
              headers (Mapping): The request's headers.
          
docstring: Performs credential-specific before request logic.
  Refreshes the credentials if necessary, then calls :meth:`apply` to
  apply the token to the x-goog-api-key header.
docstring_tokens: Performs credential - specific before request logic . Refreshes the credentials if necessary then calls : meth : ` apply ` to apply the token to the x - goog - api - key header .
code: def before_request(self, request, method, url, headers):
          """Performs credential-specific before request logic.
  
          Refreshes the credentials if necessary, then calls :meth:`apply` to
          apply the token to the x-goog-api-key header.
  
          Args:
              request (google.auth.transport.Request): The object used to make
                  HTTP requests.
              method (str): The request's HTTP method or the RPC method being
                  invoked.
              url (str): The request's URI or the RPC service's URI.
              headers (Mapping): The request's headers.
          """
          self.apply(headers)
code_tokens: def before_request ( self , request , method , url , headers ) : self . apply ( headers )
short_docstring: Performs credential-specific before request logic.
short_docstring_tokens: Performs credential - specific before request logic .
comment: """Performs credential-specific before request logic.
  
          Refreshes the credentials if necessary, then calls :meth:`apply` to
          apply the token to the x-goog-api-key header.
  
          Args:
              request (google.auth.transport.Request): The object used to make
                  HTTP requests.
              method (str): The request's HTTP method or the RPC method being
                  invoked.
              url (str): The request's URI or the RPC service's URI.
              headers (Mapping): The request's headers.
          """