Help us shape the future of Go! Take the 2026 Go Developer Survey

operation

package
v0.34.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMessage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AsyncOperation_State_name = map[int32]string{
	0: "StateUnspecified",
	1: "StatePending",
	2: "StateInProgress",
	3: "StateFailed",
	4: "StateCancelled",
	5: "StateFulfilled",
}
View Source
var AsyncOperation_State_value = map[string]int32{
	"StateUnspecified": 0,
	"StatePending":     1,
	"StateInProgress":  2,
	"StateFailed":      3,
	"StateCancelled":   4,
	"StateFulfilled":   5,
}

Functions

This section is empty.

Types

type AsyncOperation

type AsyncOperation struct {
	// The operation id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The current state of this operation
	// Possible values are: pending, in_progress, failed, cancelled, fulfilled
	// Deprecated: Use the state field instead.
	StateDeprecated string `protobuf:"bytes,2,opt,name=state_deprecated,json=stateDeprecated,proto3" json:"state_deprecated,omitempty"` // Deprecated: Do not use.
	// The current state of this operation.
	// temporal:enums:replaces=state_deprecated
	State AsyncOperation_State `protobuf:"varint,9,opt,name=state,proto3,enum=temporal.api.cloud.operation.v1.AsyncOperation_State" json:"state,omitempty"`
	// The recommended duration to check back for an update in the operation's state
	CheckDuration *types.Duration `protobuf:"bytes,3,opt,name=check_duration,json=checkDuration,proto3" json:"check_duration,omitempty"`
	// The type of operation being performed
	OperationType string `protobuf:"bytes,4,opt,name=operation_type,json=operationType,proto3" json:"operation_type,omitempty"`
	// The input to the operation being performed
	//
	// (-- api-linter: core::0146::any=disabled --)
	OperationInput *types.Any `protobuf:"bytes,5,opt,name=operation_input,json=operationInput,proto3" json:"operation_input,omitempty"`
	// If the operation failed, the reason for the failure
	FailureReason string `protobuf:"bytes,6,opt,name=failure_reason,json=failureReason,proto3" json:"failure_reason,omitempty"`
	// The date and time when the operation initiated
	StartedTime *types.Timestamp `protobuf:"bytes,7,opt,name=started_time,json=startedTime,proto3" json:"started_time,omitempty"`
	// The date and time when the operation completed
	FinishedTime *types.Timestamp `protobuf:"bytes,8,opt,name=finished_time,json=finishedTime,proto3" json:"finished_time,omitempty"`
}

func (*AsyncOperation) Descriptor

func (*AsyncOperation) Descriptor() ([]byte, []int)

func (*AsyncOperation) Equal

func (this *AsyncOperation) Equal(that interface{}) bool

func (*AsyncOperation) GetCheckDuration

func (m *AsyncOperation) GetCheckDuration() *types.Duration

func (*AsyncOperation) GetFailureReason

func (m *AsyncOperation) GetFailureReason() string

func (*AsyncOperation) GetFinishedTime

func (m *AsyncOperation) GetFinishedTime() *types.Timestamp

func (*AsyncOperation) GetId

func (m *AsyncOperation) GetId() string

func (*AsyncOperation) GetOperationInput

func (m *AsyncOperation) GetOperationInput() *types.Any

func (*AsyncOperation) GetOperationType

func (m *AsyncOperation) GetOperationType() string

func (*AsyncOperation) GetStartedTime

func (m *AsyncOperation) GetStartedTime() *types.Timestamp

func (*AsyncOperation) GetState

func (m *AsyncOperation) GetState() AsyncOperation_State

func (*AsyncOperation) GetStateDeprecated deprecated added in v0.34.0

func (m *AsyncOperation) GetStateDeprecated() string

Deprecated: Do not use.

func (*AsyncOperation) GoString

func (this *AsyncOperation) GoString() string

func (*AsyncOperation) Marshal

func (m *AsyncOperation) Marshal() (dAtA []byte, err error)

func (*AsyncOperation) MarshalTo

func (m *AsyncOperation) MarshalTo(dAtA []byte) (int, error)

func (*AsyncOperation) MarshalToSizedBuffer

func (m *AsyncOperation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AsyncOperation) ProtoMessage

func (*AsyncOperation) ProtoMessage()

func (*AsyncOperation) Reset

func (m *AsyncOperation) Reset()

func (*AsyncOperation) Size

func (m *AsyncOperation) Size() (n int)

func (*AsyncOperation) String

func (this *AsyncOperation) String() string

func (*AsyncOperation) Unmarshal

func (m *AsyncOperation) Unmarshal(dAtA []byte) error

func (*AsyncOperation) XXX_DiscardUnknown

func (m *AsyncOperation) XXX_DiscardUnknown()

func (*AsyncOperation) XXX_Marshal

func (m *AsyncOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AsyncOperation) XXX_Merge

func (m *AsyncOperation) XXX_Merge(src proto.Message)

func (*AsyncOperation) XXX_Size

func (m *AsyncOperation) XXX_Size() int

func (*AsyncOperation) XXX_Unmarshal

func (m *AsyncOperation) XXX_Unmarshal(b []byte) error

type AsyncOperation_State added in v0.34.0

type AsyncOperation_State int32
const (
	STATE_UNSPECIFIED AsyncOperation_State = 0
	STATE_PENDING     AsyncOperation_State = 1
	STATE_IN_PROGRESS AsyncOperation_State = 2
	STATE_FAILED      AsyncOperation_State = 3
	STATE_CANCELLED   AsyncOperation_State = 4
	STATE_FULFILLED   AsyncOperation_State = 5
)

func (AsyncOperation_State) EnumDescriptor added in v0.34.0

func (AsyncOperation_State) EnumDescriptor() ([]byte, []int)

func (AsyncOperation_State) String added in v0.34.0

func (x AsyncOperation_State) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL