// Code generated by "stringer -type=MessageType -output=stringer_generated.go"; DO NOT EDIT.

package api

import "strconv"

func _() {
	// An "invalid array index" compiler error signifies that the constant values have changed.
	// Re-run the stringer command to generate them again.
	var x [1]struct{}
	_ = x[MessageTypeUnknown-0]
	_ = x[MessageTypeRequest-1]
	_ = x[MessageTypeCallResponse-2]
	_ = x[MessageTypeCallError-3]
	_ = x[MessageTypeResponse-4]
	_ = x[MessageTypeError-5]
	_ = x[MessageTypeCall-6]
}

const _MessageType_name = "MessageTypeUnknownMessageTypeRequestMessageTypeCallResponseMessageTypeCallErrorMessageTypeResponseMessageTypeErrorMessageTypeCall"

var _MessageType_index = [...]uint8{0, 18, 36, 59, 79, 98, 114, 129}

func (i MessageType) String() string {
	idx := int(i) - 0
	if i < 0 || idx >= len(_MessageType_index)-1 {
		return "MessageType(" + strconv.FormatInt(int64(i), 10) + ")"
	}
	return _MessageType_name[_MessageType_index[idx]:_MessageType_index[idx+1]]
}
