original_docstring: Get the single composite index pb used by the query, if any, as a list.
  
      Args:
        query: the datastore_pb.Query to compute the index list for
  
      Returns:
        A singleton list of the composite index pb used by the query,
      
docstring: Get the single composite index pb used by the query, if any, as a list.
docstring_tokens: Get the single composite index pb used by the query if any as a list .
code: def __IndexListForQuery(self, query):
      """Get the single composite index pb used by the query, if any, as a list.
  
      Args:
        query: the datastore_pb.Query to compute the index list for
  
      Returns:
        A singleton list of the composite index pb used by the query,
      """
  
      required, kind, ancestor, props = (
          datastore_index.CompositeIndexForQuery(query))
      if not required:
        return []
      composite_index_pb = entity_pb.CompositeIndex()
      composite_index_pb.set_app_id(query.app())
      composite_index_pb.set_id(0)
      composite_index_pb.set_state(entity_pb.CompositeIndex.READ_WRITE)
      index_pb = composite_index_pb.mutable_definition()
      index_pb.set_entity_type(kind)
      index_pb.set_ancestor(bool(ancestor))
      for name, direction in datastore_index.GetRecommendedIndexProperties(props):
        prop_pb = entity_pb.Index_Property()
        prop_pb.set_name(name)
        prop_pb.set_direction(direction)
        index_pb.property_list().append(prop_pb)
      return [composite_index_pb]
code_tokens: def __IndexListForQuery ( self , query ) : required , kind , ancestor , props = ( datastore_index . CompositeIndexForQuery ( query ) ) if not required : return [ ] composite_index_pb = entity_pb . CompositeIndex ( ) composite_index_pb . set_app_id ( query . app ( ) ) composite_index_pb . set_id ( 0 ) composite_index_pb . set_state ( entity_pb . CompositeIndex . READ_WRITE ) index_pb = composite_index_pb . mutable_definition ( ) index_pb . set_entity_type ( kind ) index_pb . set_ancestor ( bool ( ancestor ) ) for name , direction in datastore_index . GetRecommendedIndexProperties ( props ) : prop_pb = entity_pb . Index_Property ( ) prop_pb . set_name ( name ) prop_pb . set_direction ( direction ) index_pb . property_list ( ) . append ( prop_pb ) return [ composite_index_pb ]
short_docstring: Get the single composite index pb used by the query, if any, as a list.
short_docstring_tokens: Get the single composite index pb used by the query if any as a list .
comment: """Get the single composite index pb used by the query, if any, as a list.
  
      Args:
        query: the datastore_pb.Query to compute the index list for
  
      Returns:
        A singleton list of the composite index pb used by the query,
      """