Files
tasks/chasm/lib/nexusoperation/gen/nexusoperationpb/v1/operation.go-helpers.pb.go
Stephan BehnkeandHanzo Dev f1c63eb0c0 Nexus Standalone: Start + Describe (#9487)
Add Nexus Standalone Describe and Start handlers.

- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [x] added new functional test(s)

---------

Co-authored-by: Hanzo Dev <[email protected]>
2026-04-23 22:49:17 -07:00

242 lines
6.6 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 NexusOperationTerminateState to the protobuf v3 wire format
func (val *NexusOperationTerminateState) Marshal() ([]byte, error) {
return proto.Marshal(val)
}
// Unmarshal an object of type NexusOperationTerminateState from the protobuf v3 wire format
func (val *NexusOperationTerminateState) Unmarshal(buf []byte) error {
return proto.Unmarshal(buf, val)
}
// Size returns the size of the object, in bytes, once serialized
func (val *NexusOperationTerminateState) Size() int {
return proto.Size(val)
}
// Equal returns whether two NexusOperationTerminateState 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 *NexusOperationTerminateState) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
var that1 *NexusOperationTerminateState
switch t := that.(type) {
case *NexusOperationTerminateState:
that1 = t
case NexusOperationTerminateState:
that1 = &t
default:
return false
}
return proto.Equal(this, that1)
}
// Marshal an object of type OperationOutcome to the protobuf v3 wire format
func (val *OperationOutcome) Marshal() ([]byte, error) {
return proto.Marshal(val)
}
// Unmarshal an object of type OperationOutcome from the protobuf v3 wire format
func (val *OperationOutcome) Unmarshal(buf []byte) error {
return proto.Unmarshal(buf, val)
}
// Size returns the size of the object, in bytes, once serialized
func (val *OperationOutcome) Size() int {
return proto.Size(val)
}
// Equal returns whether two OperationOutcome 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 *OperationOutcome) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
var that1 *OperationOutcome
switch t := that.(type) {
case *OperationOutcome:
that1 = t
case OperationOutcome:
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)
}
// Marshal an object of type OperationRequestData to the protobuf v3 wire format
func (val *OperationRequestData) Marshal() ([]byte, error) {
return proto.Marshal(val)
}
// Unmarshal an object of type OperationRequestData from the protobuf v3 wire format
func (val *OperationRequestData) Unmarshal(buf []byte) error {
return proto.Unmarshal(buf, val)
}
// Size returns the size of the object, in bytes, once serialized
func (val *OperationRequestData) Size() int {
return proto.Size(val)
}
// Equal returns whether two OperationRequestData 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 *OperationRequestData) Equal(that interface{}) bool {
if that == nil {
return this == nil
}
var that1 *OperationRequestData
switch t := that.(type) {
case *OperationRequestData:
that1 = t
case OperationRequestData:
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,
"Terminated": 8,
}
)
// 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)
}