Files
tasks/chasm/lib/nexusoperation/gen/nexusoperationpb/v1/operation.go-helpers.pb.go
pdoernerandGitHub e1895113aa Add initial stubs and boilerplate for Nexus operation CHASM implementation (#8958)
## What changed?
WISOTT
Also added the dynamic config feature flag that will control whether the
CHASM-based implementation will be used so that future PRs will not have
conflicts with this key.

## Why?
Need to port Nexus operations to CHASM

## How did you test it?
- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)
2026-01-14 17:23:54 +00:00

130 lines
3.5 KiB
Go

// Code generated by protoc-gen-go-helpers. DO NOT EDIT.
package nexusoperationpb
import (
"fmt"
"google.golang.org/protobuf/proto"
)
// Marshal an object of type OperationState to the protobuf v3 wire format
func (val *OperationState) Marshal() ([]byte, error) {
return proto.Marshal(val)
}
// Unmarshal an object of type OperationState from the protobuf v3 wire format
func (val *OperationState) Unmarshal(buf []byte) error {
return proto.Unmarshal(buf, val)
}
// Size returns the size of the object, in bytes, once serialized
func (val *OperationState) Size() int {
return proto.Size(val)
}
// Equal returns whether two OperationState values are equivalent by recursively
// comparing the message's fields.
// For more information see the documentation for
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
func (this *OperationState) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
var that1 *OperationState
switch t := that.(type) {
case *OperationState:
that1 = t
case OperationState:
that1 = &t
default:
return false
}
return proto.Equal(this, that1)
}
// Marshal an object of type CancellationState to the protobuf v3 wire format
func (val *CancellationState) Marshal() ([]byte, error) {
return proto.Marshal(val)
}
// Unmarshal an object of type CancellationState from the protobuf v3 wire format
func (val *CancellationState) Unmarshal(buf []byte) error {
return proto.Unmarshal(buf, val)
}
// Size returns the size of the object, in bytes, once serialized
func (val *CancellationState) Size() int {
return proto.Size(val)
}
// Equal returns whether two CancellationState values are equivalent by recursively
// comparing the message's fields.
// For more information see the documentation for
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
func (this *CancellationState) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
var that1 *CancellationState
switch t := that.(type) {
case *CancellationState:
that1 = t
case CancellationState:
that1 = &t
default:
return false
}
return proto.Equal(this, that1)
}
var (
OperationStatus_shorthandValue = map[string]int32{
"Unspecified": 0,
"Scheduled": 1,
"BackingOff": 2,
"Started": 3,
"Succeeded": 4,
"Failed": 5,
"Canceled": 6,
"TimedOut": 7,
}
)
// OperationStatusFromString parses a OperationStatus value from either the protojson
// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to OperationStatus
func OperationStatusFromString(s string) (OperationStatus, error) {
if v, ok := OperationStatus_value[s]; ok {
return OperationStatus(v), nil
} else if v, ok := OperationStatus_shorthandValue[s]; ok {
return OperationStatus(v), nil
}
return OperationStatus(0), fmt.Errorf("%s is not a valid OperationStatus", s)
}
var (
CancellationStatus_shorthandValue = map[string]int32{
"Unspecified": 0,
"Scheduled": 1,
"BackingOff": 2,
"Succeeded": 3,
"Failed": 4,
"TimedOut": 5,
"Blocked": 6,
}
)
// CancellationStatusFromString parses a CancellationStatus value from either the protojson
// canonical SCREAMING_CASE enum or the traditional temporal PascalCase enum to CancellationStatus
func CancellationStatusFromString(s string) (CancellationStatus, error) {
if v, ok := CancellationStatus_value[s]; ok {
return CancellationStatus(v), nil
} else if v, ok := CancellationStatus_shorthandValue[s]; ok {
return CancellationStatus(v), nil
}
return CancellationStatus(0), fmt.Errorf("%s is not a valid CancellationStatus", s)
}