class_docstr: HttpRequest builder that sets a customized useragent header for TF Cloud.
  
  This is used to track the usage of the TF Cloud.
class_docstr_tok: ["HttpRequest","builder","that","sets","a","customized","useragent","header","for","TF","Cloud",".","This","is","used","to","track","the","usage","of","the","TF","Cloud","."]
docstr: Construct a HttpRequest.
  
  Args:
      *args: Positional arguments to pass to the base class constructor.
      **kwargs: Keyword arguments to pass to the base class constructor.
docstr_tok: ["Construct","a","HttpRequest",".","Args",":","*","args",":","Positional","arguments","to","pass","to","the","base","class","constructor",".","*","*","kwargs",":","Keyword","arguments","to","pass","to","the","base","class","constructor","."]
code: def __init__(self, *args, **kwargs):
      """Construct a HttpRequest.
  
      Args:
          *args: Positional arguments to pass to the base class constructor.
          **kwargs: Keyword arguments to pass to the base class constructor.
      """
      headers = kwargs.setdefault("headers", {})
  
      comments = {}
      if get_or_set_consent_status():
          comments = self._telemetry_dict
  
          # Add the local environment to the user agent header comment field.
          comments["client_environment"] = get_client_environment_name()
  
      # construct comment string using comments dict
      user_agent_text = f"{_TF_CLOUD_USER_AGENT_HEADER} ("
      for key, value in comments.items():
          user_agent_text = f"{user_agent_text}{key}:{value};"
      user_agent_text = f"{user_agent_text})"
  
      headers["user-agent"] = user_agent_text
      super(TFCloudHttpRequest, self).__init__(*args, **kwargs)
  
imports: import enum
  import json
  import os
  import sys
  import time
  from typing import Dict, Text, Union
  from ..None import version
  from absl import logging
  from googleapiclient import discovery
  from googleapiclient import errors
  from googleapiclient import http
label_desc: Use image node_id 1 to create a new TFCloudHttpRequest object from inherited base classes: googleapiclient_http with example: obj = TFCloudHttpRequest()