code: def client_list_entries(client, to_delete):  # pylint: disable=unused-argument
      
  
      # [START client_list_entries_default]
      for entry in client.list_entries():  # API call(s)
          do_something_with(entry)
      # [END client_list_entries_default]
  
      # [START client_list_entries_filter]
      FILTER = "logName:log_name AND textPayload:simple"
      for entry in client.list_entries(filter_=FILTER):  # API call(s)
          do_something_with(entry)
      # [END client_list_entries_filter]
  
      # [START client_list_entries_order_by]
      from google.cloud.logging import DESCENDING
  
      for entry in client.list_entries(order_by=DESCENDING):  # API call(s)
          do_something_with(entry)
      # [END client_list_entries_order_by]
  
      # [START client_list_entries_paged]
      iterator = client.list_entries()
      pages = iterator.pages
  
      page1 = next(pages)  # API call
      for entry in page1:
          do_something_with(entry)
  
      page2 = next(pages)  # API call
      for entry in page2:
          do_something_with(entry)
docs: List entries via client.