mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What changed?
<!-- Describe what has changed in this PR -->
Remove license header from every file. Because it is really hard to
follow in this PR here is the summary:
1. License header is removed from all `.go` and `.proto` files
:fireworks::fireworks:🎆.
2. `LICENSE` file in the root directory has only Temporal and Uber
copyrights.
3. 5 other `LICENSE` files added to the packages which have copyrights
different from Temporal and Uber: Datadog, Xargin, "Mat Ryer, Tyler
Bunnell and contributors".
4. `license_file` flag is removed from all code generation tools.
5. `copyright_file` flag is removed from `go:generate mockgen`
directive.
6. All copyright related targets are removed from `Makefile`.
7. Updated Temporal copyright year to 2025 everywhere.
## Why?
<!-- Tell your future self why have you made these changes -->
I double checked with legal department that it is not needed to have
license header in every file. One file per repo is enough. I put all
copyrights to the root `LICENSE` file and removed header from all other
files. Also updated tools and `Makefile`.
183 lines
6.8 KiB
Go
183 lines
6.8 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/enums/v1/nexus.proto
|
|
|
|
package enums
|
|
|
|
import (
|
|
reflect "reflect"
|
|
"strconv"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type NexusOperationState int32
|
|
|
|
const (
|
|
// Default value, unspecified state.
|
|
NEXUS_OPERATION_STATE_UNSPECIFIED NexusOperationState = 0
|
|
// Operation is in the queue waiting to be executed or is currently executing.
|
|
NEXUS_OPERATION_STATE_SCHEDULED NexusOperationState = 1
|
|
// Operation has failed with a retryable error and is backing off before the next attempt.
|
|
NEXUS_OPERATION_STATE_BACKING_OFF NexusOperationState = 2
|
|
// Operation was started and will complete asynchronously.
|
|
NEXUS_OPERATION_STATE_STARTED NexusOperationState = 3
|
|
// Operation succeeded.
|
|
// This may happen either as a response to a start request or as reported via callback.
|
|
NEXUS_OPERATION_STATE_SUCCEEDED NexusOperationState = 4
|
|
// Operation failed either when a start request encounters a non-retryable error or as reported via callback.
|
|
NEXUS_OPERATION_STATE_FAILED NexusOperationState = 5
|
|
// Operation completed as canceled (may have not ever been delivered).
|
|
// This may happen either as a response to a start request or as reported via callback.
|
|
NEXUS_OPERATION_STATE_CANCELED NexusOperationState = 6
|
|
// Operation timed out - exceeded the user supplied schedule-to-close timeout.
|
|
// Any attempts to complete the operation in this state will be ignored.
|
|
NEXUS_OPERATION_STATE_TIMED_OUT NexusOperationState = 7
|
|
)
|
|
|
|
// Enum value maps for NexusOperationState.
|
|
var (
|
|
NexusOperationState_name = map[int32]string{
|
|
0: "NEXUS_OPERATION_STATE_UNSPECIFIED",
|
|
1: "NEXUS_OPERATION_STATE_SCHEDULED",
|
|
2: "NEXUS_OPERATION_STATE_BACKING_OFF",
|
|
3: "NEXUS_OPERATION_STATE_STARTED",
|
|
4: "NEXUS_OPERATION_STATE_SUCCEEDED",
|
|
5: "NEXUS_OPERATION_STATE_FAILED",
|
|
6: "NEXUS_OPERATION_STATE_CANCELED",
|
|
7: "NEXUS_OPERATION_STATE_TIMED_OUT",
|
|
}
|
|
NexusOperationState_value = map[string]int32{
|
|
"NEXUS_OPERATION_STATE_UNSPECIFIED": 0,
|
|
"NEXUS_OPERATION_STATE_SCHEDULED": 1,
|
|
"NEXUS_OPERATION_STATE_BACKING_OFF": 2,
|
|
"NEXUS_OPERATION_STATE_STARTED": 3,
|
|
"NEXUS_OPERATION_STATE_SUCCEEDED": 4,
|
|
"NEXUS_OPERATION_STATE_FAILED": 5,
|
|
"NEXUS_OPERATION_STATE_CANCELED": 6,
|
|
"NEXUS_OPERATION_STATE_TIMED_OUT": 7,
|
|
}
|
|
)
|
|
|
|
func (x NexusOperationState) Enum() *NexusOperationState {
|
|
p := new(NexusOperationState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x NexusOperationState) String() string {
|
|
switch x {
|
|
case NEXUS_OPERATION_STATE_UNSPECIFIED:
|
|
return "Unspecified"
|
|
case NEXUS_OPERATION_STATE_SCHEDULED:
|
|
return "Scheduled"
|
|
case NEXUS_OPERATION_STATE_BACKING_OFF:
|
|
return "BackingOff"
|
|
case NEXUS_OPERATION_STATE_STARTED:
|
|
return "Started"
|
|
case NEXUS_OPERATION_STATE_SUCCEEDED:
|
|
return "Succeeded"
|
|
case NEXUS_OPERATION_STATE_FAILED:
|
|
return "Failed"
|
|
case NEXUS_OPERATION_STATE_CANCELED:
|
|
return "Canceled"
|
|
case NEXUS_OPERATION_STATE_TIMED_OUT:
|
|
return "TimedOut"
|
|
default:
|
|
return strconv.Itoa(int(x))
|
|
}
|
|
|
|
}
|
|
|
|
func (NexusOperationState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_temporal_server_api_enums_v1_nexus_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (NexusOperationState) Type() protoreflect.EnumType {
|
|
return &file_temporal_server_api_enums_v1_nexus_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x NexusOperationState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use NexusOperationState.Descriptor instead.
|
|
func (NexusOperationState) EnumDescriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_enums_v1_nexus_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
var File_temporal_server_api_enums_v1_nexus_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_enums_v1_nexus_proto_rawDesc = "" +
|
|
"\n" +
|
|
"(temporal/server/api/enums/v1/nexus.proto\x12\x1ctemporal.server.api.enums.v1*\xbb\x02\n" +
|
|
"\x13NexusOperationState\x12%\n" +
|
|
"!NEXUS_OPERATION_STATE_UNSPECIFIED\x10\x00\x12#\n" +
|
|
"\x1fNEXUS_OPERATION_STATE_SCHEDULED\x10\x01\x12%\n" +
|
|
"!NEXUS_OPERATION_STATE_BACKING_OFF\x10\x02\x12!\n" +
|
|
"\x1dNEXUS_OPERATION_STATE_STARTED\x10\x03\x12#\n" +
|
|
"\x1fNEXUS_OPERATION_STATE_SUCCEEDED\x10\x04\x12 \n" +
|
|
"\x1cNEXUS_OPERATION_STATE_FAILED\x10\x05\x12\"\n" +
|
|
"\x1eNEXUS_OPERATION_STATE_CANCELED\x10\x06\x12#\n" +
|
|
"\x1fNEXUS_OPERATION_STATE_TIMED_OUT\x10\aB*Z(go.temporal.io/server/api/enums/v1;enumsb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_enums_v1_nexus_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_enums_v1_nexus_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_enums_v1_nexus_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_enums_v1_nexus_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_enums_v1_nexus_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_enums_v1_nexus_proto_rawDesc), len(file_temporal_server_api_enums_v1_nexus_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_enums_v1_nexus_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_enums_v1_nexus_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_temporal_server_api_enums_v1_nexus_proto_goTypes = []any{
|
|
(NexusOperationState)(0), // 0: temporal.server.api.enums.v1.NexusOperationState
|
|
}
|
|
var file_temporal_server_api_enums_v1_nexus_proto_depIdxs = []int32{
|
|
0, // [0:0] is the sub-list for method output_type
|
|
0, // [0:0] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_api_enums_v1_nexus_proto_init() }
|
|
func file_temporal_server_api_enums_v1_nexus_proto_init() {
|
|
if File_temporal_server_api_enums_v1_nexus_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_api_enums_v1_nexus_proto_rawDesc), len(file_temporal_server_api_enums_v1_nexus_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 0,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_enums_v1_nexus_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_enums_v1_nexus_proto_depIdxs,
|
|
EnumInfos: file_temporal_server_api_enums_v1_nexus_proto_enumTypes,
|
|
}.Build()
|
|
File_temporal_server_api_enums_v1_nexus_proto = out.File
|
|
file_temporal_server_api_enums_v1_nexus_proto_goTypes = nil
|
|
file_temporal_server_api_enums_v1_nexus_proto_depIdxs = nil
|
|
}
|