sdk

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthTaskCompleteMetadata        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTaskCompleteMetadata          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTaskCompleteMetadata = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type WorkflowTaskCompletedMetadata

type WorkflowTaskCompletedMetadata struct {
	// Internal flags used by the core SDK. SDKs using flags must comply with the following behavior:
	//
	// During replay:
	// * If a flag is not recognized (value is too high or not defined), it must fail the workflow
	//   task.
	// * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for
	//   that flag during and after this WFT are allowed to assume that the flag is present.
	// * If a code check for a flag does not find the flag in the set of used flags, it must take
	//   the branch corresponding to the absence of that flag.
	//
	// During non-replay execution of new WFTs:
	// * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not
	//   previously recorded) flags when completing the WFT.
	//
	// SDKs which are too old to even know about this field at all are considered to produce
	// undefined behavior if they replay workflows which used this mechanism.
	//
	// (-- api-linter: core::0141::forbidden-types=disabled
	//     aip.dev/not-precedent: These really shouldn't have negative values. --)
	CoreUsedFlags []uint32 `protobuf:"varint,1,rep,packed,name=core_used_flags,json=coreUsedFlags,proto3" json:"core_used_flags,omitempty"`
	// Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages
	// here as processing a workflow with a different language than the one which authored it is
	// already undefined behavior. See `core_used_patches` for more.
	//
	// (-- api-linter: core::0141::forbidden-types=disabled
	//     aip.dev/not-precedent: These really shouldn't have negative values. --)
	LangUsedFlags []uint32 `protobuf:"varint,2,rep,packed,name=lang_used_flags,json=langUsedFlags,proto3" json:"lang_used_flags,omitempty"`
}

func (*WorkflowTaskCompletedMetadata) Descriptor

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

func (*WorkflowTaskCompletedMetadata) Equal

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

func (*WorkflowTaskCompletedMetadata) GetCoreUsedFlags

func (m *WorkflowTaskCompletedMetadata) GetCoreUsedFlags() []uint32

func (*WorkflowTaskCompletedMetadata) GetLangUsedFlags

func (m *WorkflowTaskCompletedMetadata) GetLangUsedFlags() []uint32

func (*WorkflowTaskCompletedMetadata) GoString

func (this *WorkflowTaskCompletedMetadata) GoString() string

func (*WorkflowTaskCompletedMetadata) Marshal

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

func (*WorkflowTaskCompletedMetadata) MarshalTo

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

func (*WorkflowTaskCompletedMetadata) MarshalToSizedBuffer

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

func (*WorkflowTaskCompletedMetadata) ProtoMessage

func (*WorkflowTaskCompletedMetadata) ProtoMessage()

func (*WorkflowTaskCompletedMetadata) Reset

func (m *WorkflowTaskCompletedMetadata) Reset()

func (*WorkflowTaskCompletedMetadata) Size

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

func (*WorkflowTaskCompletedMetadata) String

func (this *WorkflowTaskCompletedMetadata) String() string

func (*WorkflowTaskCompletedMetadata) Unmarshal

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

func (*WorkflowTaskCompletedMetadata) XXX_DiscardUnknown

func (m *WorkflowTaskCompletedMetadata) XXX_DiscardUnknown()

func (*WorkflowTaskCompletedMetadata) XXX_Marshal

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

func (*WorkflowTaskCompletedMetadata) XXX_Merge

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

func (*WorkflowTaskCompletedMetadata) XXX_Size

func (m *WorkflowTaskCompletedMetadata) XXX_Size() int

func (*WorkflowTaskCompletedMetadata) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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