github.com/livekit/protocol@v1.39.3/sip/dispatchruleconflictreason_string.go (about)

     1  // Code generated by "stringer -type DispatchRuleConflictReason -trimprefix DispatchRuleConflict"; DO NOT EDIT.
     2  
     3  package sip
     4  
     5  import "strconv"
     6  
     7  func _() {
     8  	// An "invalid array index" compiler error signifies that the constant values have changed.
     9  	// Re-run the stringer command to generate them again.
    10  	var x [1]struct{}
    11  	_ = x[DispatchRuleConflictGeneric-0]
    12  }
    13  
    14  const _DispatchRuleConflictReason_name = "Generic"
    15  
    16  var _DispatchRuleConflictReason_index = [...]uint8{0, 7}
    17  
    18  func (i DispatchRuleConflictReason) String() string {
    19  	if i < 0 || i >= DispatchRuleConflictReason(len(_DispatchRuleConflictReason_index)-1) {
    20  		return "DispatchRuleConflictReason(" + strconv.FormatInt(int64(i), 10) + ")"
    21  	}
    22  	return _DispatchRuleConflictReason_name[_DispatchRuleConflictReason_index[i]:_DispatchRuleConflictReason_index[i+1]]
    23  }