code: func (s *Stream) State(ctx context.Context) (*LogStream, error) {
  	req := logdog.GetRequest{
  		Project:  string(s.project),
  		Path:     string(s.path),
  		State:    true,
  		LogCount: -1, // Don't fetch any logs.
  	}
  
  	resp, err := s.c.C.Get(ctx, &req)
  	if err != nil {
  		return nil, normalizeError(err)
  	}
  
  	path := types.StreamPath(req.Path)
  	if desc := resp.Desc; desc != nil {
  		path = desc.Path()
  	}
  
  	return loadLogStream(resp.Project, path, resp.State, resp.Desc), nil
  }
docs: // State fetches the LogStreamDescriptor for a given log stream.