// FullID composes a unique ID for the payload (relative to the unit/charm).
423673
func (p Payload) FullID() string {
	return BuildID(p.PayloadClass.Name, p.ID)
}
593345
func (item *MoreLikeThisQueryItem) Id(id string) *MoreLikeThisQueryItem {
	item.id = id
	return item
}
546534
func formatID(base string, formatted string) string {
	if formatted == "" {
		return formatted
	}
	switch {
	case base == "id":
		// id -> ID
		return "ID"
	case strings.HasPrefix(base, "id_"):
		// id_some -> IDSome
		return "ID" + formatted[2:]
	case strings.HasSuffix(base, "_id"):
		// some_id -> SomeID
		return formatted[:len(formatted)-2] + "ID"
	case strings.HasSuffix(base, "_ids"):
		// some_ids -> SomeIDs
		return formatted[:len(formatted)-3] + "IDs"
	}
	return formatted
}
486580
func (s *GetTemplateService) Id(id string) *GetTemplateService {
	s.id = id
	return s
}
501077
func (s *ProvisioningArtifactDetail) SetId(v string) *ProvisioningArtifactDetail {
	s.Id = &v
	return s
}
281815
func (s *ProvisionedProductDetail) SetId(v string) *ProvisionedProductDetail {
	s.Id = &v
	return s
}
755995
func (c *Client) DropletID() (int, error) {
	dropletID := new(int)
	err := c.doGet("id", func(r io.Reader) error {
		_, err := fmt.Fscanf(r, "%d", dropletID)
		return err
	})
	return *dropletID, err
}
742635
func (s *DeleteFieldLevelEncryptionConfigInput) SetId(v string) *DeleteFieldLevelEncryptionConfigInput {
	s.Id = &v
	return s
}
1232300
func (m *mapperDef) mapperID() mapper.ID {
	return mapper.ID(fmt.Sprintf("cipd:v1:%s", m.Kind))
}
65390
func ID(id string) Option {
	return func(c Cache) error {
		switch oc := c.(type) {
		case *cache:
			oc.id = id
			return nil
		default:
			return errors.New(ErrIllegalCache, errorMessages)
		}
	}
}
352432
func (a Nodes) ContainsID(id string) bool {
	for _, n := range a {
		if n.ID == id {
			return true
		}
	}
	return false
}
1169367
func (s *PercolateService) Id(id string) *PercolateService {
	s.id = id
	return s
}
570659
func ID() (id [64]byte, err error) {
	var buf []byte

	// Time part
	now, err := time.Now().MarshalBinary()
	if err != nil {
		return
	}
	buf = append(buf, now[:15]...)

	// Local ID part
	buf = append(buf, localID[:]...)

	// Random value
	r, err := GetBytes(40)
	if err != nil {
		return
	}
	buf = append(buf, r...)

	_, err = io.ReadFull(bytes.NewBuffer(buf), id[:])
	return
}
1240448
func (a *BzzAddr) ID() enode.ID {
	n, err := enode.ParseV4(string(a.UAddr))
	if err != nil {
		return enode.ID{}
	}
	return n.ID()
}
779076
func (s *EndpointResponse) SetId(v string) *EndpointResponse {
	s.Id = &v
	return s
}
59360
func (s *DeleteScriptService) Id(id string) *DeleteScriptService {
	s.id = id
	return s
}
888496
func (s *TermvectorsService) Id(id string) *TermvectorsService {
	s.id = id
	return s
}