class_docstr: A handle to a query that is executing continuously in the background as new data arrives.
  All these methods are thread-safe.
  
  .. versionadded:: 2.0.0
  
  .. versionchanged:: 3.5.0
      Supports Spark Connect.
  
  Notes
  -----
  This API is evolving.
docstr: Returns the user-specified name of the query, or null if not specified.
  This name can be specified in the `org.apache.spark.sql.streaming.DataStreamWriter`
  as `dataframe.writeStream.queryName("query").start()`.
  This name, if set, must be unique across all active queries.
  
  .. versionadded:: 2.0.0
  
  .. versionchanged:: 3.5.0
      Supports Spark Connect.
  
  Returns
  -------
  str
      The user-specified name of the query, or null if not specified.
  
  Examples
  --------
  >>> sdf = spark.readStream.format("rate").load()
  >>> sq = sdf.writeStream.format('memory').queryName('this_query').start()
  
  Get the user-specified name of the query, or null if not specified.
  
  >>> sq.name
  'this_query'
  
  >>> sq.stop()
docstr_tok: ["Returns","the","user-specified","name","of","the","query",",","or","null","if","not","specified",".","This","name","can","be","specified","in","the","`","org.apache.spark.sql.streaming.DataStreamWriter","`","as","`","dataframe.writeStream.queryName","(","``","query","''",")",".start","(",")","`",".","This","name",",","if","set",",","must","be","unique","across","all","active","queries",".","..","versionadded",":",":","2.0.0","..","versionchanged",":",":","3.5.0","Supports","Spark","Connect",".","Returns","--","--","--","-","str","The","user-specified","name","of","the","query",",","or","null","if","not","specified",".","Examples","--","--","--","--",">",">",">","sdf","=","spark.readStream.format","(","``","rate","''",")",".load","(",")",">",">",">","sq","=","sdf.writeStream.format","(","'memory","'",")",".queryName","(","'this_query","'",")",".start","(",")","Get","the","user-specified","name","of","the","query",",","or","null","if","not","specified",".",">",">",">","sq.name","'this_query'",">",">",">","sq.stop","(",")"]
code: def name(self) -> str:
      """
      Returns the user-specified name of the query, or null if not specified.
      This name can be specified in the `org.apache.spark.sql.streaming.DataStreamWriter`
      as `dataframe.writeStream.queryName("query").start()`.
      This name, if set, must be unique across all active queries.
  
      .. versionadded:: 2.0.0
  
      .. versionchanged:: 3.5.0
          Supports Spark Connect.
  
      Returns
      -------
      str
          The user-specified name of the query, or null if not specified.
  
      Examples
      --------
      >>> sdf = spark.readStream.format("rate").load()
      >>> sq = sdf.writeStream.format('memory').queryName('this_query').start()
  
      Get the user-specified name of the query, or null if not specified.
  
      >>> sq.name
      'this_query'
  
      >>> sq.stop()
      """
      return self._jsq.name()
  
imports: import json
  from typing import Any, Dict, List, Optional
  from py4j.java_gateway import JavaObject, java_import
  from pyspark.errors import StreamingQueryException, PySparkValueError
  from pyspark.errors.exceptions.captured import StreamingQueryException
  from pyspark.sql.streaming.listener import StreamingQueryListener
label_desc: Use image node_id 4 for calling the StreamingQuery obj's underlying member method code with example usage: obj.name() and returns: self