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: Returns information about a previously requested build.
  
  :param id_: The ID of the build.
  :param project_id: Optional, Google Cloud Project project_id where the function belongs.
      If set to None or missing, the default project_id from the GCP connection is used.
  :param retry: Optional, a retry object used  to retry requests. If `None` is specified, requests
      will not be retried.
  :param timeout: Optional, the amount of time, in seconds, to wait for the request to complete.
      Note that if `retry` is specified, the timeout applies to each individual attempt.
  :param metadata: Optional, additional metadata that is provided to the method.
  :param location: The location of the project.
docstr_tok: ["Returns","information","about","a","previously","requested","build",".",":","param","id_",":","The","ID","of","the","build",".",":","param","project_id",":","Optional",",","Google","Cloud","Project","project_id","where","the","function","belongs",".","If","set","to","None","or","missing",",","the","default","project_id","from","the","GCP","connection","is","used",".",":","param","retry",":","Optional",",","a","retry","object","used","to","retry","requests",".","If","`","None","`","is","specified",",","requests","will","not","be","retried",".",":","param","timeout",":","Optional",",","the","amount","of","time",",","in","seconds",",","to","wait","for","the","request","to","complete",".","Note","that","if","`","retry","`","is","specified",",","the","timeout","applies","to","each","individual","attempt",".",":","param","metadata",":","Optional",",","additional","metadata","that","is","provided","to","the","method",".",":","param","location",":","The","location","of","the","project","."]
code: def get_build(
      self,
      id_: str,
      project_id: str = PROVIDE_PROJECT_ID,
      retry: Retry | _MethodDefault = DEFAULT,
      timeout: float | None = None,
      metadata: Sequence[tuple[str, str]] = (),
      location: str = "global",
  ) -> Build:
      """
      Returns information about a previously requested build.
  
      :param id_: The ID of the build.
      :param project_id: Optional, Google Cloud Project project_id where the function belongs.
          If set to None or missing, the default project_id from the GCP connection is used.
      :param retry: Optional, a retry object used  to retry requests. If `None` is specified, requests
          will not be retried.
      :param timeout: Optional, the amount of time, in seconds, to wait for the request to complete.
          Note that if `retry` is specified, the timeout applies to each individual attempt.
      :param metadata: Optional, additional metadata that is provided to the method.
      :param location: The location of the project.
      """
      client = self.get_conn(location=location)
  
      self.log.info("Start retrieving build: %s.", id_)
  
      build = client.get_build(
          request={"project_id": project_id, "id": id_},
          retry=retry,
          timeout=timeout,
          metadata=metadata,
      )
  
      self.log.info("Build has been retrieved: %s.", id_)
  
      return build
  
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 10 for calling the CloudBuildHook obj's underlying member method code with example usage: obj.get_build(id_, project_id, retry, timeout, metadata, location) and returns: build