// Name returns the name of a role
342000
func (r Role) Name() string {
	if r < READER || r > ADMIN {
		return ""
	}
	return roleNames[r]
}
1065877
func Name(n string) Option {
	return func(p *Plugin) error {
		p.Name = n
		return nil
	}
}
886155
func (c *ClientProfile) Name() string {
	if c.ProxyHost != "" {
		return c.ProxyHost
	}

	addr, _, err := net.SplitHostPort(c.WebProxyAddr)
	if err != nil {
		return c.WebProxyAddr
	}

	return addr
}
1172039
func (i *index) Name() string {
	parts := strings.Split(i.id, "/")
	return parts[1]
}
532159
func (p Person) Name(v reflect.Value) (interface{}, error) {
	return p.name(), nil
}
149503
func (o *Opts) Name(name string) *Opts {
	o.name = name
	return o
}
315995
func (_PublicResolver *PublicResolverCaller) Name(opts *bind.CallOpts, node [32]byte) (string, error) {
	var (
		ret0 = new(string)
	)
	out := ret0
	err := _PublicResolver.contract.Call(opts, out, "name", node)
	return *ret0, err
}
712981
func Name(val string) *trees.Attribute {
	return &trees.Attribute{Name: "name", Value: val}
}
451564
func (r *Route) Name(name string) *Route {
	r.name = name
	r.group.router.routes[name] = r
	return r
}
608157
func (i *InitToken) Name() string {
	return fmt.Sprintf("%s-%s", i.kubernetes.clusterID, i.Role)
}
186927
func (at AnyType) Name(d Domain) string {
	if at.IDName != "" {
		return nameInDomain(d, at.IDName, "")
	}

	return lint.Name(at.NameName)
}
990414
func (cs *ChaincodeSpec) Name() string {
	if cs.ChaincodeId == nil {
		return ""
	}

	return cs.ChaincodeId.Name
}
1063200
func (r *Request) Name(s string) *Request {
	r.resourceName = &s
	return r
}
406867
func (c *Command) Name() string {
	name := c.Use
	i := strings.Index(name, " ")
	if i >= 0 {
		name = name[:i]
	}
	return name
}
205902
func (n *lowercaseSingularNamer) Name(t *types.Type) string {
	return strings.ToLower(t.Name.Name)
}
831120
func (u *Unit) Name() string {
	u.mu.Lock()
	defer u.mu.Unlock()
	return u.details.Name
}
1207295
func Name(n string) Option {
	return func(o *Options) {
		o.Server.Init(server.Name(n))
	}
}