class_docstr: Hook for Google Cloud Memorystore for Memcached service APIs.
  
  All the methods in the hook where project_id is used must be called with
  keyword arguments rather than positional.
  
  :param gcp_conn_id: The connection ID to use when fetching connection info.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account.
class_docstr_tok: ["Hook","for","Google","Cloud","Memorystore","for","Memcached","service","APIs",".","All","the","methods","in","the","hook","where","project_id","is","used","must","be","called","with","keyword","arguments","rather","than","positional",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","when","fetching","connection","info",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","."]
docstr: Retrieves client library object that allow access to Cloud Memorystore Memcached service.
docstr_tok: ["Retrieves","client","library","object","that","allow","access","to","Cloud","Memorystore","Memcached","service","."]
code: def get_conn(self):
      """Retrieves client library object that allow access to Cloud Memorystore Memcached service."""
      if not self._client:
          self._client = CloudMemcacheClient(
              credentials=self.get_credentials()
          )
      return self._client
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from google.api_core import path_template
  from google.api_core.exceptions import NotFound
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.memcache_v1beta2 import CloudMemcacheClient
  from google.cloud.memcache_v1beta2.types import cloud_memcache
  from google.cloud.redis_v1 import CloudRedisClient, FailoverInstanceRequest, InputConfig, Instance, OutputConfig
  from airflow import version
  from airflow.exceptions import AirflowException
  from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
label_desc: Use image node_id 2 for calling the CloudMemorystoreMemcachedHook obj's underlying member method code with example usage: obj.get_conn() and returns: self