parameters: (self, start, request_size)
docstring: Get a segment of the file from Google Storage.
  
      Args:
        start: start offset of the segment. Inclusive. Have to be within the
          range of the file.
        request_size: number of bytes to request. Have to be small enough
          for a single urlfetch request. May go over the logical range of the
          file.
  
      Yields:
        a segment [start, start + request_size) of the file.
  
      Raises:
        ValueError: if the file has changed while reading.
docstring_summary: Get a segment of the file from Google Storage.
docstring_tokens: Get a segment of the file from Google Storage .
function: def _get_segment(self, start, request_size):
      """Get a segment of the file from Google Storage.
  
      Args:
        start: start offset of the segment. Inclusive. Have to be within the
          range of the file.
        request_size: number of bytes to request. Have to be small enough
          for a single urlfetch request. May go over the logical range of the
          file.
  
      Yields:
        a segment [start, start + request_size) of the file.
  
      Raises:
        ValueError: if the file has changed while reading.
      """
      end = start + request_size - 1
      content_range = '%d-%d' % (start, end)
      headers = {'Range': 'bytes=' + content_range}
      status, resp_headers, content = yield self._api.get_object_async(
          self._path, headers=headers)
      errors.check_status(status, [200, 206], self._path, headers, resp_headers)
      self._check_etag(resp_headers.get('etag'))
      raise ndb.Return(content)
function_tokens: def _get_segment ( self , start , request_size ) : end = start + request_size - 1 content_range = '%d-%d' % ( start , end ) headers = { 'Range' : 'bytes=' + content_range } status , resp_headers , content = yield self . _api . get_object_async ( self . _path , headers = headers ) errors . check_status ( status , [ 200 , 206 ] , self . _path , headers , resp_headers ) self . _check_etag ( resp_headers . get ( 'etag' ) ) raise ndb . Return ( content )