class_docstr: `DPQuery` for `SumAggregationDPQuery` with a `reset_state` function.
class_docstr_tok: ["`","DPQuery","`","for","`","SumAggregationDPQuery","`","with","a","`","reset_state","`","function","."]
docstr: Initializes `RestartQuery`.
  
  Args:
    inner_query: A `SumAggregationDPQuery` has `reset_state` attribute.
    restart_indicator: A `RestartIndicator` to generate the boolean indicator
      for resetting the state.
docstr_tok: ["Initializes","`","RestartQuery","`",".","Args",":","inner_query",":","A","`","SumAggregationDPQuery","`","has","`","reset_state","`","attribute",".","restart_indicator",":","A","`","RestartIndicator","`","to","generate","the","boolean","indicator","for","resetting","the","state","."]
code: def __init__(
      self,
      inner_query: dp_query.SumAggregationDPQuery,
      restart_indicator: RestartIndicator,
  ):
      """Initializes `RestartQuery`.
  
      Args:
        inner_query: A `SumAggregationDPQuery` has `reset_state` attribute.
        restart_indicator: A `RestartIndicator` to generate the boolean indicator
          for resetting the state.
      """
      if not hasattr(inner_query, "reset_state"):
          raise ValueError(
              f"{type(inner_query)} must define `reset_state` to be "
              "composed with `RestartQuery`."
          )
      self._inner_query = inner_query
      self._restart_indicator = restart_indicator
  
imports: import abc
  import collections
  from typing import Optional
  import tensorflow
  from tensorflow_privacy.privacy.dp_query import dp_query
label_desc: Use image node_id 1 to create a new RestartQuery object from inherited base classes: dp_query with example: obj = RestartQuery(inner_query, restart_indicator)