class_docstr: Hook for the Google Cloud Build Service.
  
  :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","the","Google","Cloud","Build","Service",".",":","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: Retrieve Cloud Build ID from Operation Object.
  
  :param operation: The proto to append resource_label airflow
      version to
  
  :return: Cloud Build ID
docstr_tok: ["Retrieve","Cloud","Build","ID","from","Operation","Object",".",":","param","operation",":","The","proto","to","append","resource_label","airflow","version","to",":","return",":","Cloud","Build","ID"]
code: def _get_build_id_from_operation(self, operation: Operation) -> str:
      """
      Retrieve Cloud Build ID from Operation Object.
  
      :param operation: The proto to append resource_label airflow
          version to
  
      :return: Cloud Build ID
      """
      try:
          return operation.metadata.build.id
      except Exception:
          raise AirflowException(
              "Could not retrieve Build ID from Operation."
          )
  
imports: from __future__ import annotations
  import warnings
  from typing import TYPE_CHECKING, Sequence
  from google.api_core.client_options import ClientOptions
  from google.api_core.exceptions import AlreadyExists
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.devtools.cloudbuild_v1 import CloudBuildAsyncClient, CloudBuildClient, GetBuildRequest
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.google.common.consts import CLIENT_INFO
  from airflow.providers.google.common.hooks.base_google import PROVIDE_PROJECT_ID, GoogleBaseHook
label_desc: Use image node_id 2 for calling the CloudBuildHook obj's underlying member method code with example usage: obj._get_build_id_from_operation(operation) and returns: operation