//GroupDN returns the DN of the group with the given cn or an error if one occurred.
420418
func (c *Conn) GroupDN(group string) (string, error) {
	if strings.HasSuffix(group, c.Config.BaseDN) {
		return group, nil
	}

	return c.GetDN("cn", group)
}
240408
func (c *Client) Group(msg *Group) error {
	if msg.GroupId == "" {
		return errors.New("You must pass a 'groupId'.")
	}

	if msg.UserId == "" && msg.AnonymousId == "" {
		return errors.New("You must pass either an 'anonymousId' or 'userId'.")
	}

	msg.Type = "group"
	c.queue(msg)

	return nil
}
857033
func (s *BulkDeploymentResult) SetGroupArn(v string) *BulkDeploymentResult {
	s.GroupArn = &v
	return s
}
811940
func (c *ClientupdateCountCall) GroupId(groupId string) *ClientupdateCountCall {
	c.urlParams_.Set("groupId", groupId)
	return c
}
348980
func (s *GetServiceGraphInput) SetGroupName(v string) *GetServiceGraphInput {
	s.GroupName = &v
	return s
}
1052082
func (g *Google) Group(provider *http.Client) (string, error) {
	srv, err := goauth2.New(provider)
	if err != nil {
		g.Logger.Error("Unable to communicate with Google ", err.Error())
		return "", err
	}
	info, err := srv.Userinfo.Get().Do()
	if err != nil {
		g.Logger.Error("Unable to retrieve Google email ", err.Error())
		return "", err
	}

	return info.Hd, nil
}
126474
func (e *environ) groupByName(ctx context.ProviderCallContext, groupName string) (ec2.SecurityGroup, error) {
	groupInfo, err := e.groupInfoByName(ctx, groupName)
	return groupInfo.SecurityGroup, err
}
1230871
func (s *Server) Group(prefix string, filters ...Filter) (g *Group) {
	g = &Group{prefix: prefix, server: s}
	g.Use(filters...)
	return
}
629716
func (n *BuilderNode) Group() *BuilderGroup {
	return n.builder.groups[n.builder.ring.NodeToGroup[n.index]]
}
1054238
func (s *UpdateEnvironmentInput) SetGroupName(v string) *UpdateEnvironmentInput {
	s.GroupName = &v
	return s
}
387258
func (bot *TgBot) GroupChatCreatedFn(f func(TgBot, Message, int)) *TgBot {
	bot.addToConditionalFuncs(GroupChatCreatedConditionalCall{f})
	return bot
}
939411
func (r *router) Group(path string) RouterGroup {
	return r.group.Group(path)
}
1125239
func (s *GetTimeSeriesServiceStatisticsInput) SetGroupARN(v string) *GetTimeSeriesServiceStatisticsInput {
	s.GroupARN = &v
	return s
}
812330
func GroupIDFunction(groupfunc StringFromMessageFunc) broker.Option {
	return func(o *broker.Options) {
		if o.Context == nil {
			o.Context = context.Background()
		}
		o.Context = context.WithValue(o.Context, groupIdFunctionKey{}, groupfunc)
	}
}
1279557
func (ns *Namespace) Group(key interface{}, items interface{}) (interface{}, error) {
	if key == nil {
		return nil, errors.New("nil is not a valid key to group by")
	}

	if g, ok := items.(collections.Grouper); ok {
		return g.Group(key, items)
	}

	in := newSliceElement(items)

	if g, ok := in.(collections.Grouper); ok {
		return g.Group(key, items)
	}

	return nil, fmt.Errorf("grouping not supported for type %T %T", items, in)
}
1187420
func (s *SummarizedCounter) SetN(v int64) *SummarizedCounter {
	s.N = &v
	return s
}
121159
func (g *Group) Go(fn func() error) {
	g.wg.Add(1)
	go func() {
		err := fn()
		if err != nil {
			g.mu.Lock()
			g.errs = append(g.errs, err)
			g.mu.Unlock()
		}
		g.wg.Done()
	}()
}