github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/model/v1beta1/jobeventtype_string.go (about) 1 // Code generated by "stringer -type=JobEventType --trimprefix=JobEvent"; 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[jobEventUnknown-0] 12 _ = x[JobEventInitialSubmission-1] 13 _ = x[JobEventCreated-2] 14 _ = x[JobEventDealUpdated-3] 15 _ = x[JobEventBid-4] 16 _ = x[JobEventBidAccepted-5] 17 _ = x[JobEventBidRejected-6] 18 _ = x[JobEventBidCancelled-7] 19 _ = x[JobEventRunning-8] 20 _ = x[JobEventComputeError-9] 21 _ = x[JobEventResultsProposed-10] 22 _ = x[JobEventResultsAccepted-11] 23 _ = x[JobEventResultsRejected-12] 24 _ = x[JobEventResultsPublished-13] 25 _ = x[JobEventError-14] 26 _ = x[JobEventInvalidRequest-15] 27 _ = x[jobEventDone-16] 28 } 29 30 const _JobEventType_name = "jobEventUnknownInitialSubmissionCreatedDealUpdatedBidBidAcceptedBidRejectedBidCancelledRunningComputeErrorResultsProposedResultsAcceptedResultsRejectedResultsPublishedErrorInvalidRequestjobEventDone" 31 32 var _JobEventType_index = [...]uint8{0, 15, 32, 39, 50, 53, 64, 75, 87, 94, 106, 121, 136, 151, 167, 172, 186, 198} 33 34 func (i JobEventType) String() string { 35 if i < 0 || i >= JobEventType(len(_JobEventType_index)-1) { 36 return "JobEventType(" + strconv.FormatInt(int64(i), 10) + ")" 37 } 38 return _JobEventType_name[_JobEventType_index[i]:_JobEventType_index[i+1]] 39 }