github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/model/v1beta1/joblocaleventtype_string.go (about)

     1  // Code generated by "stringer -type=JobLocalEventType --trimprefix=JobLocalEvent"; DO NOT EDIT.
     2  
     3  package v1beta1
     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[jobLocalEventUnknown-0]
    12  	_ = x[JobLocalEventSelected-1]
    13  	_ = x[JobLocalEventBid-2]
    14  	_ = x[JobLocalEventBidAccepted-3]
    15  	_ = x[JobLocalEventBidRejected-4]
    16  	_ = x[JobLocalEventVerified-5]
    17  	_ = x[jobLocalEventDone-6]
    18  }
    19  
    20  const _JobLocalEventType_name = "jobLocalEventUnknownSelectedBidBidAcceptedBidRejectedVerifiedjobLocalEventDone"
    21  
    22  var _JobLocalEventType_index = [...]uint8{0, 20, 28, 31, 42, 53, 61, 78}
    23  
    24  func (i JobLocalEventType) String() string {
    25  	if i < 0 || i >= JobLocalEventType(len(_JobLocalEventType_index)-1) {
    26  		return "JobLocalEventType(" + strconv.FormatInt(int64(i), 10) + ")"
    27  	}
    28  	return _JobLocalEventType_name[_JobLocalEventType_index[i]:_JobLocalEventType_index[i+1]]
    29  }