// Returns its entire descriptions + message as a string.
190700
func (example *Example) FullDescription() string {
	return strings.Join(append(example.Descriptions(), example.Message), " ")
}
1108495
func (t *TeamLDAPMapping) GetDescription() string {
	if t == nil || t.Description == nil {
		return ""
	}
	return *t.Description
}
96370
func (self *LogRecord) GetMessage() string {
	if len(self.Message) == 0 {
		if self.UseFormat {
			self.Message = fmt.Sprintf(self.Format, self.Args...)
		} else {
			self.Message = fmt.Sprint(self.Args...)
		}
	}
	return self.Message
}
422528
func (s shareMesssage) String() string {
	msg := console.Colorize("URL", fmt.Sprintf("URL: %s\n", s.ObjectURL))
	msg += console.Colorize("Expire", fmt.Sprintf("Expire: %s\n", timeDurationToHumanizedDuration(s.TimeLeft)))
	if s.ContentType != "" {
		msg += console.Colorize("Content-type", fmt.Sprintf("Content-Type: %s\n", s.ContentType))
	}

	// Highlight <FILE> specifically. "share upload" sub-commands use this identifier.
	shareURL := strings.Replace(s.ShareURL, "<FILE>", console.Colorize("File", "<FILE>"), 1)
	// Highlight <KEY> specifically for recursive operation.
	shareURL = strings.Replace(shareURL, "<NAME>", console.Colorize("File", "<NAME>"), 1)

	msg += console.Colorize("Share", fmt.Sprintf("Share: %s\n", shareURL))

	return msg
}
845059
func (f *FileDescriptor) GetMessage(name string) *Descriptor {
	for _, m := range f.GetMessages() {
		if m.GetName() == name || m.GetLongName() == name {
			return m
		}
	}

	return nil
}
1328636
func (t Comm) String() string {
	if t.Language != "" {
		return fmt.Sprintf("Text{Lang: '%v', Description: '%v', %v lines}",
			t.Language, t.Description, strings.Count(t.Text, "\n"))
	}
	return fmt.Sprintf("Text{Description: '%v', %v}", t.Description, t.Text)
}
476479
func (p *printer) Message(msg *descriptor.DescriptorProto) {
	p.MaybeLeadingComments(msg)
	defer p.open("message %s", msg.GetName())()

	for i := range msg.GetOneofDecl() {
		p.OneOf(msg, i)
	}

	for i, f := range msg.Field {
		if f.OneofIndex == nil {
			p.Field(msg.Field[i])
		}
	}
}
573684
func (g *Gist) GetDescription() string {
	if g == nil || g.Description == nil {
		return ""
	}
	return *g.Description
}
141064
func (domain *Domain) Description() string {
	typeNames := domain.sortedTypeNames()
	result := ""
	for _, typeName := range typeNames {
		result += domain.TypeModels[typeName].description()
	}
	return result
}
781001
func (m *Message) Str() (string, error) {
	b, err := m.Bytes()
	if err != nil {
		return "", err
	}
	return string(b), nil
}
988983
func (m *Message) String() string {
	msg, err := m.ToProto()
	if err != nil {
		return fmt.Sprintf("<!Bad %s: %s!>", m.Type(), err)
	}
	return msg.String()
}
647452
func (v *Value) Description() string {
	parts := make([]string, 0, len(v.Items))
	for _, it := range v.Items {
		parts = append(parts, it.descriptionToken())
	}

	return strings.Join(parts, ", ")
}
908186
func (m *Message) String() string {
	return fmt.Sprintf("%v body=%s", m.Headers, m.Body)
}
775961
func (client *Client) GetMessageContent(messageID string) *GetMessageContentCall {
	return &GetMessageContentCall{
		c:         client,
		messageID: messageID,
	}
}
197760
func (l *Label) GetDescription() string {
	if l == nil || l.Description == nil {
		return ""
	}
	return *l.Description
}
1260497
func (r Response) String() string {
	ret := fmt.Sprintf("Request id: %s\n", r.ID)
	if r.Receipt != "" {
		ret += fmt.Sprintf("Receipt: %s\n", r.Receipt)
	}
	if r.Limit != nil {
		ret += fmt.Sprintf("Usage %d/%d messages\nNext reset : %s",
			r.Limit.Remaining, r.Limit.Total, r.Limit.NextReset)
	}
	return ret
}
217983
func (trans *Transcription) Contents(client *messagebird.Client) (string, error) {
	req, err := http.NewRequest(http.MethodGet, apiRoot+trans.links["file"], nil)
	if err != nil {
		return "", err
	}
	req.Header.Set("Accept", "text/plain")
	req.Header.Set("Authorization", "AccessKey "+client.AccessKey)
	req.Header.Set("User-Agent", "MessageBird/ApiClient/"+messagebird.ClientVersion+" Go/"+runtime.Version())

	resp, err := client.HTTPClient.Do(req)
	if err != nil {
		return "", err
	}
	if resp.StatusCode != http.StatusOK {
		return "", fmt.Errorf("bad HTTP status: %d", resp.StatusCode)
	}

	defer resp.Body.Close()
	b, err := ioutil.ReadAll(resp.Body)
	return string(b), err
}