// Parent sets the active entry to the parent of the active Entry (i.e. moves up
// a level).
//
// The function panics if called on the root Entry.
485859
func (b *Builder) Parent() *Builder {
	if b.current == b.root {
		panic("root has no parent")
	}
	b.current = b.current.Parent
	return b
}
160977
func (s *Resource) SetParentId(v string) *Resource {
	s.ParentId = &v
	return s
}
455238
func (r *BulkDeleteRequest) Parent(parent string) *BulkDeleteRequest {
	r.parent = parent
	r.source = nil
	return r
}
1187574
func (l *linkIndex) parents(child *container.Container) map[string]*container.Container {
	l.mu.Lock()

	parents := make(map[string]*container.Container)
	for parent, aliases := range l.childIdx[child] {
		for alias := range aliases {
			parents[alias] = parent
		}
	}

	l.mu.Unlock()
	return parents
}
1297897
func (s *Comment) SetParentId(v string) *Comment {
	s.ParentId = &v
	return s
}
155998
func (s *Stack) SetParentId(v string) *Stack {
	s.ParentId = &v
	return s
}
1162169
func (s *TasksListService) ParentTaskId(parentTaskId string) *TasksListService {
	s.parentTaskId = parentTaskId
	return s
}
274325
func (c *Client) UseParent(parent *Client) *Client {
	c.Parent = parent
	c.Context.UseParent(parent.Context)
	c.Middleware.UseParent(parent.Middleware)
	return c
}
1106187
func (p Path) ParentPath() *Path {
	return &Path{p.FolderBranch, p.Path[:len(p.Path)-1]}
}
380875
func (p Path) ParentPath() Path {
	if len(p) > 1 {
		return p[:len(p)-1]
	}
	return Path{}
}
815182
func (s *DeleteService) Parent(parent string) *DeleteService {
	s.parent = parent
	return s
}
429427
func (s *Label) SetParents(v []*Parent) *Label {
	s.Parents = v
	return s
}
387810
func (s *Commit) SetParents(v []*string) *Commit {
	s.Parents = v
	return s
}
388416
func (c *Commit) ParentID(n int) (sha1, error) {
	if n >= len(c.parents) {
		return sha1{}, ErrNotExist{"", ""}
	}
	return c.parents[n], nil
}
681423
func (p *basePlan) AddParent(parent Plan) {
	p.parents = append(p.parents, parent)
}
929463
func (m *Mux) UseParent(parent middleware.Middleware) *Mux {
	m.Middleware.UseParent(parent)
	return m
}
1257260
func (r *ResourceDefinition) Parent() *ResourceDefinition {
	if r.ParentName != "" {
		if parent, ok := Design.Resources[r.ParentName]; ok {
			return parent
		}
	}
	return nil
}