original_docstring: Process a single, partitioned query or read.
  
          :type batch: mapping
          :param batch:
              one of the mappings returned from an earlier call to
              :meth:`generate_query_batches`.
  
          :rtype: :class:`~google.cloud.spanner_v1.streamed.StreamedResultSet`
          :returns: a result set instance which can be used to consume rows.
          :raises ValueError: if batch does not contain either 'read' or 'query'
          
docstring: Process a single, partitioned query or read.
docstring_tokens: Process a single partitioned query or read .
code: def process(self, batch):
          """Process a single, partitioned query or read.
  
          :type batch: mapping
          :param batch:
              one of the mappings returned from an earlier call to
              :meth:`generate_query_batches`.
  
          :rtype: :class:`~google.cloud.spanner_v1.streamed.StreamedResultSet`
          :returns: a result set instance which can be used to consume rows.
          :raises ValueError: if batch does not contain either 'read' or 'query'
          """
          if "query" in batch:
              return self.process_query_batch(batch)
          if "read" in batch:
              return self.process_read_batch(batch)
          raise ValueError("Invalid batch")
code_tokens: def process ( self , batch ) : if "query" in batch : return self . process_query_batch ( batch ) if "read" in batch : return self . process_read_batch ( batch ) raise ValueError ( "Invalid batch" )
short_docstring: Process a single, partitioned query or read.
short_docstring_tokens: Process a single partitioned query or read .
comment: """Process a single, partitioned query or read.
  
          :type batch: mapping
          :param batch:
              one of the mappings returned from an earlier call to
              :meth:`generate_query_batches`.
  
          :rtype: :class:`~google.cloud.spanner_v1.streamed.StreamedResultSet`
          :returns: a result set instance which can be used to consume rows.
          :raises ValueError: if batch does not contain either 'read' or 'query'
          """