mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07: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`.
750 lines
29 KiB
Go
750 lines
29 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/persistence/v1/chasm.proto
|
|
|
|
package persistence
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
v1 "go.temporal.io/api/common/v1"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
)
|
|
|
|
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 ChasmNode struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Metadata present for all nodes.
|
|
Metadata *ChasmNodeMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
// User data for any type of node that stores it.
|
|
Data *v1.DataBlob `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmNode) Reset() {
|
|
*x = ChasmNode{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmNode) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmNode) ProtoMessage() {}
|
|
|
|
func (x *ChasmNode) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmNode.ProtoReflect.Descriptor instead.
|
|
func (*ChasmNode) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *ChasmNode) GetMetadata() *ChasmNodeMetadata {
|
|
if x != nil {
|
|
return x.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmNode) GetData() *v1.DataBlob {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChasmNodeMetadata struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Versioned transition when the node was instantiated.
|
|
InitialVersionedTransition *VersionedTransition `protobuf:"bytes,1,opt,name=initial_versioned_transition,json=initialVersionedTransition,proto3" json:"initial_versioned_transition,omitempty"`
|
|
// Versioned transition when the node was last updated.
|
|
LastUpdateVersionedTransition *VersionedTransition `protobuf:"bytes,2,opt,name=last_update_versioned_transition,json=lastUpdateVersionedTransition,proto3" json:"last_update_versioned_transition,omitempty"`
|
|
// Types that are valid to be assigned to Attributes:
|
|
//
|
|
// *ChasmNodeMetadata_ComponentAttributes
|
|
// *ChasmNodeMetadata_DataAttributes
|
|
// *ChasmNodeMetadata_CollectionAttributes
|
|
// *ChasmNodeMetadata_PointerAttributes
|
|
Attributes isChasmNodeMetadata_Attributes `protobuf_oneof:"attributes"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) Reset() {
|
|
*x = ChasmNodeMetadata{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmNodeMetadata) ProtoMessage() {}
|
|
|
|
func (x *ChasmNodeMetadata) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmNodeMetadata.ProtoReflect.Descriptor instead.
|
|
func (*ChasmNodeMetadata) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) GetInitialVersionedTransition() *VersionedTransition {
|
|
if x != nil {
|
|
return x.InitialVersionedTransition
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) GetLastUpdateVersionedTransition() *VersionedTransition {
|
|
if x != nil {
|
|
return x.LastUpdateVersionedTransition
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) GetAttributes() isChasmNodeMetadata_Attributes {
|
|
if x != nil {
|
|
return x.Attributes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) GetComponentAttributes() *ChasmComponentAttributes {
|
|
if x != nil {
|
|
if x, ok := x.Attributes.(*ChasmNodeMetadata_ComponentAttributes); ok {
|
|
return x.ComponentAttributes
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) GetDataAttributes() *ChasmDataAttributes {
|
|
if x != nil {
|
|
if x, ok := x.Attributes.(*ChasmNodeMetadata_DataAttributes); ok {
|
|
return x.DataAttributes
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) GetCollectionAttributes() *ChasmCollectionAttributes {
|
|
if x != nil {
|
|
if x, ok := x.Attributes.(*ChasmNodeMetadata_CollectionAttributes); ok {
|
|
return x.CollectionAttributes
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmNodeMetadata) GetPointerAttributes() *ChasmPointerAttributes {
|
|
if x != nil {
|
|
if x, ok := x.Attributes.(*ChasmNodeMetadata_PointerAttributes); ok {
|
|
return x.PointerAttributes
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type isChasmNodeMetadata_Attributes interface {
|
|
isChasmNodeMetadata_Attributes()
|
|
}
|
|
|
|
type ChasmNodeMetadata_ComponentAttributes struct {
|
|
ComponentAttributes *ChasmComponentAttributes `protobuf:"bytes,11,opt,name=component_attributes,json=componentAttributes,proto3,oneof"`
|
|
}
|
|
|
|
type ChasmNodeMetadata_DataAttributes struct {
|
|
DataAttributes *ChasmDataAttributes `protobuf:"bytes,12,opt,name=data_attributes,json=dataAttributes,proto3,oneof"`
|
|
}
|
|
|
|
type ChasmNodeMetadata_CollectionAttributes struct {
|
|
CollectionAttributes *ChasmCollectionAttributes `protobuf:"bytes,13,opt,name=collection_attributes,json=collectionAttributes,proto3,oneof"`
|
|
}
|
|
|
|
type ChasmNodeMetadata_PointerAttributes struct {
|
|
PointerAttributes *ChasmPointerAttributes `protobuf:"bytes,14,opt,name=pointer_attributes,json=pointerAttributes,proto3,oneof"`
|
|
}
|
|
|
|
func (*ChasmNodeMetadata_ComponentAttributes) isChasmNodeMetadata_Attributes() {}
|
|
|
|
func (*ChasmNodeMetadata_DataAttributes) isChasmNodeMetadata_Attributes() {}
|
|
|
|
func (*ChasmNodeMetadata_CollectionAttributes) isChasmNodeMetadata_Attributes() {}
|
|
|
|
func (*ChasmNodeMetadata_PointerAttributes) isChasmNodeMetadata_Attributes() {}
|
|
|
|
type ChasmComponentAttributes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Fully qualified type name of a registered component.
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
// Tasks are in their insertion order,
|
|
// i.e. by versioned transtion and versioned_transition_offset.
|
|
SideEffectTasks []*ChasmComponentAttributes_Task `protobuf:"bytes,2,rep,name=side_effect_tasks,json=sideEffectTasks,proto3" json:"side_effect_tasks,omitempty"`
|
|
// Tasks are ordered by their scheduled time, breaking ties by
|
|
// versioned transition and versioned_transition_offset.
|
|
PureTasks []*ChasmComponentAttributes_Task `protobuf:"bytes,3,rep,name=pure_tasks,json=pureTasks,proto3" json:"pure_tasks,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes) Reset() {
|
|
*x = ChasmComponentAttributes{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmComponentAttributes) ProtoMessage() {}
|
|
|
|
func (x *ChasmComponentAttributes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmComponentAttributes.ProtoReflect.Descriptor instead.
|
|
func (*ChasmComponentAttributes) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes) GetSideEffectTasks() []*ChasmComponentAttributes_Task {
|
|
if x != nil {
|
|
return x.SideEffectTasks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes) GetPureTasks() []*ChasmComponentAttributes_Task {
|
|
if x != nil {
|
|
return x.PureTasks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChasmDataAttributes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmDataAttributes) Reset() {
|
|
*x = ChasmDataAttributes{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmDataAttributes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmDataAttributes) ProtoMessage() {}
|
|
|
|
func (x *ChasmDataAttributes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmDataAttributes.ProtoReflect.Descriptor instead.
|
|
func (*ChasmDataAttributes) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
type ChasmCollectionAttributes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmCollectionAttributes) Reset() {
|
|
*x = ChasmCollectionAttributes{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmCollectionAttributes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmCollectionAttributes) ProtoMessage() {}
|
|
|
|
func (x *ChasmCollectionAttributes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmCollectionAttributes.ProtoReflect.Descriptor instead.
|
|
func (*ChasmCollectionAttributes) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type ChasmPointerAttributes struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
NodePath []string `protobuf:"bytes,1,rep,name=node_path,json=nodePath,proto3" json:"node_path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmPointerAttributes) Reset() {
|
|
*x = ChasmPointerAttributes{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmPointerAttributes) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmPointerAttributes) ProtoMessage() {}
|
|
|
|
func (x *ChasmPointerAttributes) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmPointerAttributes.ProtoReflect.Descriptor instead.
|
|
func (*ChasmPointerAttributes) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *ChasmPointerAttributes) GetNodePath() []string {
|
|
if x != nil {
|
|
return x.NodePath
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// ChasmComponentRef references a specific component within a CHASM tree
|
|
// (assuming you already have a reference to the tree/entity).
|
|
type ChasmComponentRef struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Initial versioned transition of the entity being referenced.
|
|
ComponentInitialVersionedTransition *VersionedTransition `protobuf:"bytes,1,opt,name=component_initial_versioned_transition,json=componentInitialVersionedTransition,proto3" json:"component_initial_versioned_transition,omitempty"`
|
|
// Last updated transition of the entity being referenced at the time the
|
|
// reference was created. Can be used to invalidate this reference.
|
|
ComponentLastUpdateVersionedTransition *VersionedTransition `protobuf:"bytes,2,opt,name=component_last_update_versioned_transition,json=componentLastUpdateVersionedTransition,proto3" json:"component_last_update_versioned_transition,omitempty"`
|
|
// Encoded full path to the component.
|
|
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmComponentRef) Reset() {
|
|
*x = ChasmComponentRef{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmComponentRef) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmComponentRef) ProtoMessage() {}
|
|
|
|
func (x *ChasmComponentRef) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmComponentRef.ProtoReflect.Descriptor instead.
|
|
func (*ChasmComponentRef) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *ChasmComponentRef) GetComponentInitialVersionedTransition() *VersionedTransition {
|
|
if x != nil {
|
|
return x.ComponentInitialVersionedTransition
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmComponentRef) GetComponentLastUpdateVersionedTransition() *VersionedTransition {
|
|
if x != nil {
|
|
return x.ComponentLastUpdateVersionedTransition
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmComponentRef) GetPath() string {
|
|
if x != nil {
|
|
return x.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// ChasmTaskInfo includes component-facing task metadata
|
|
type ChasmTaskInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Reference to the component responsible for this task.
|
|
Ref *ChasmComponentRef `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
|
|
// Task type (registered by components).
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
// Opaque attached task data. May be nil. Usable by components, not the CHASM
|
|
// framework itself.
|
|
Data *v1.DataBlob `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmTaskInfo) Reset() {
|
|
*x = ChasmTaskInfo{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmTaskInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmTaskInfo) ProtoMessage() {}
|
|
|
|
func (x *ChasmTaskInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmTaskInfo.ProtoReflect.Descriptor instead.
|
|
func (*ChasmTaskInfo) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ChasmTaskInfo) GetRef() *ChasmComponentRef {
|
|
if x != nil {
|
|
return x.Ref
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmTaskInfo) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChasmTaskInfo) GetData() *v1.DataBlob {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChasmComponentAttributes_Task struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Fully qualified type name of a registered task.
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
Destination string `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
|
|
ScheduledTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=scheduled_time,json=scheduledTime,proto3" json:"scheduled_time,omitempty"`
|
|
Data *v1.DataBlob `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
|
// Versioned transition of the Entity when the task was created.
|
|
VersionedTransition *VersionedTransition `protobuf:"bytes,5,opt,name=versioned_transition,json=versionedTransition,proto3" json:"versioned_transition,omitempty"`
|
|
// The xth task generated in this versioned transition.
|
|
// Together with the versioned transition, this is a unique identifier for
|
|
// this task.
|
|
VersionedTransitionOffset int64 `protobuf:"varint,6,opt,name=versioned_transition_offset,json=versionedTransitionOffset,proto3" json:"versioned_transition_offset,omitempty"`
|
|
// If a physical task is created for this task in this cluster.
|
|
// NOTE: this is a cluster-specific field and can not be replicated.
|
|
// Changes to this field also doesn't require an increase in versioned transition.
|
|
PhysicalTaskStatus int32 `protobuf:"varint,7,opt,name=physical_task_status,json=physicalTaskStatus,proto3" json:"physical_task_status,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) Reset() {
|
|
*x = ChasmComponentAttributes_Task{}
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChasmComponentAttributes_Task) ProtoMessage() {}
|
|
|
|
func (x *ChasmComponentAttributes_Task) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChasmComponentAttributes_Task.ProtoReflect.Descriptor instead.
|
|
func (*ChasmComponentAttributes_Task) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP(), []int{2, 0}
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) GetDestination() string {
|
|
if x != nil {
|
|
return x.Destination
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) GetScheduledTime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ScheduledTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) GetData() *v1.DataBlob {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) GetVersionedTransition() *VersionedTransition {
|
|
if x != nil {
|
|
return x.VersionedTransition
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) GetVersionedTransitionOffset() int64 {
|
|
if x != nil {
|
|
return x.VersionedTransitionOffset
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ChasmComponentAttributes_Task) GetPhysicalTaskStatus() int32 {
|
|
if x != nil {
|
|
return x.PhysicalTaskStatus
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_temporal_server_api_persistence_v1_chasm_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_persistence_v1_chasm_proto_rawDesc = "" +
|
|
"\n" +
|
|
".temporal/server/api/persistence/v1/chasm.proto\x12\"temporal.server.api.persistence.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a,temporal/server/api/persistence/v1/hsm.proto\x1a$temporal/api/common/v1/message.proto\"\x94\x01\n" +
|
|
"\tChasmNode\x12Q\n" +
|
|
"\bmetadata\x18\x01 \x01(\v25.temporal.server.api.persistence.v1.ChasmNodeMetadataR\bmetadata\x124\n" +
|
|
"\x04data\x18\x02 \x01(\v2 .temporal.api.common.v1.DataBlobR\x04data\"\xd9\x05\n" +
|
|
"\x11ChasmNodeMetadata\x12y\n" +
|
|
"\x1cinitial_versioned_transition\x18\x01 \x01(\v27.temporal.server.api.persistence.v1.VersionedTransitionR\x1ainitialVersionedTransition\x12\x80\x01\n" +
|
|
" last_update_versioned_transition\x18\x02 \x01(\v27.temporal.server.api.persistence.v1.VersionedTransitionR\x1dlastUpdateVersionedTransition\x12q\n" +
|
|
"\x14component_attributes\x18\v \x01(\v2<.temporal.server.api.persistence.v1.ChasmComponentAttributesH\x00R\x13componentAttributes\x12b\n" +
|
|
"\x0fdata_attributes\x18\f \x01(\v27.temporal.server.api.persistence.v1.ChasmDataAttributesH\x00R\x0edataAttributes\x12t\n" +
|
|
"\x15collection_attributes\x18\r \x01(\v2=.temporal.server.api.persistence.v1.ChasmCollectionAttributesH\x00R\x14collectionAttributes\x12k\n" +
|
|
"\x12pointer_attributes\x18\x0e \x01(\v2:.temporal.server.api.persistence.v1.ChasmPointerAttributesH\x00R\x11pointerAttributesB\f\n" +
|
|
"\n" +
|
|
"attributes\"\x95\x05\n" +
|
|
"\x18ChasmComponentAttributes\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12m\n" +
|
|
"\x11side_effect_tasks\x18\x02 \x03(\v2A.temporal.server.api.persistence.v1.ChasmComponentAttributes.TaskR\x0fsideEffectTasks\x12`\n" +
|
|
"\n" +
|
|
"pure_tasks\x18\x03 \x03(\v2A.temporal.server.api.persistence.v1.ChasmComponentAttributes.TaskR\tpureTasks\x1a\x93\x03\n" +
|
|
"\x04Task\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12 \n" +
|
|
"\vdestination\x18\x02 \x01(\tR\vdestination\x12A\n" +
|
|
"\x0escheduled_time\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\rscheduledTime\x124\n" +
|
|
"\x04data\x18\x04 \x01(\v2 .temporal.api.common.v1.DataBlobR\x04data\x12j\n" +
|
|
"\x14versioned_transition\x18\x05 \x01(\v27.temporal.server.api.persistence.v1.VersionedTransitionR\x13versionedTransition\x12>\n" +
|
|
"\x1bversioned_transition_offset\x18\x06 \x01(\x03R\x19versionedTransitionOffset\x120\n" +
|
|
"\x14physical_task_status\x18\a \x01(\x05R\x12physicalTaskStatus\"\x15\n" +
|
|
"\x13ChasmDataAttributes\"\x1b\n" +
|
|
"\x19ChasmCollectionAttributes\"5\n" +
|
|
"\x16ChasmPointerAttributes\x12\x1b\n" +
|
|
"\tnode_path\x18\x01 \x03(\tR\bnodePath\"\xcc\x02\n" +
|
|
"\x11ChasmComponentRef\x12\x8c\x01\n" +
|
|
"&component_initial_versioned_transition\x18\x01 \x01(\v27.temporal.server.api.persistence.v1.VersionedTransitionR#componentInitialVersionedTransition\x12\x93\x01\n" +
|
|
"*component_last_update_versioned_transition\x18\x02 \x01(\v27.temporal.server.api.persistence.v1.VersionedTransitionR&componentLastUpdateVersionedTransition\x12\x12\n" +
|
|
"\x04path\x18\x03 \x01(\tR\x04path\"\xa2\x01\n" +
|
|
"\rChasmTaskInfo\x12G\n" +
|
|
"\x03ref\x18\x01 \x01(\v25.temporal.server.api.persistence.v1.ChasmComponentRefR\x03ref\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x124\n" +
|
|
"\x04data\x18\x03 \x01(\v2 .temporal.api.common.v1.DataBlobR\x04dataB6Z4go.temporal.io/server/api/persistence/v1;persistenceb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_persistence_v1_chasm_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_persistence_v1_chasm_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_persistence_v1_chasm_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_persistence_v1_chasm_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_persistence_v1_chasm_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_persistence_v1_chasm_proto_rawDesc), len(file_temporal_server_api_persistence_v1_chasm_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_persistence_v1_chasm_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_persistence_v1_chasm_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
var file_temporal_server_api_persistence_v1_chasm_proto_goTypes = []any{
|
|
(*ChasmNode)(nil), // 0: temporal.server.api.persistence.v1.ChasmNode
|
|
(*ChasmNodeMetadata)(nil), // 1: temporal.server.api.persistence.v1.ChasmNodeMetadata
|
|
(*ChasmComponentAttributes)(nil), // 2: temporal.server.api.persistence.v1.ChasmComponentAttributes
|
|
(*ChasmDataAttributes)(nil), // 3: temporal.server.api.persistence.v1.ChasmDataAttributes
|
|
(*ChasmCollectionAttributes)(nil), // 4: temporal.server.api.persistence.v1.ChasmCollectionAttributes
|
|
(*ChasmPointerAttributes)(nil), // 5: temporal.server.api.persistence.v1.ChasmPointerAttributes
|
|
(*ChasmComponentRef)(nil), // 6: temporal.server.api.persistence.v1.ChasmComponentRef
|
|
(*ChasmTaskInfo)(nil), // 7: temporal.server.api.persistence.v1.ChasmTaskInfo
|
|
(*ChasmComponentAttributes_Task)(nil), // 8: temporal.server.api.persistence.v1.ChasmComponentAttributes.Task
|
|
(*v1.DataBlob)(nil), // 9: temporal.api.common.v1.DataBlob
|
|
(*VersionedTransition)(nil), // 10: temporal.server.api.persistence.v1.VersionedTransition
|
|
(*timestamppb.Timestamp)(nil), // 11: google.protobuf.Timestamp
|
|
}
|
|
var file_temporal_server_api_persistence_v1_chasm_proto_depIdxs = []int32{
|
|
1, // 0: temporal.server.api.persistence.v1.ChasmNode.metadata:type_name -> temporal.server.api.persistence.v1.ChasmNodeMetadata
|
|
9, // 1: temporal.server.api.persistence.v1.ChasmNode.data:type_name -> temporal.api.common.v1.DataBlob
|
|
10, // 2: temporal.server.api.persistence.v1.ChasmNodeMetadata.initial_versioned_transition:type_name -> temporal.server.api.persistence.v1.VersionedTransition
|
|
10, // 3: temporal.server.api.persistence.v1.ChasmNodeMetadata.last_update_versioned_transition:type_name -> temporal.server.api.persistence.v1.VersionedTransition
|
|
2, // 4: temporal.server.api.persistence.v1.ChasmNodeMetadata.component_attributes:type_name -> temporal.server.api.persistence.v1.ChasmComponentAttributes
|
|
3, // 5: temporal.server.api.persistence.v1.ChasmNodeMetadata.data_attributes:type_name -> temporal.server.api.persistence.v1.ChasmDataAttributes
|
|
4, // 6: temporal.server.api.persistence.v1.ChasmNodeMetadata.collection_attributes:type_name -> temporal.server.api.persistence.v1.ChasmCollectionAttributes
|
|
5, // 7: temporal.server.api.persistence.v1.ChasmNodeMetadata.pointer_attributes:type_name -> temporal.server.api.persistence.v1.ChasmPointerAttributes
|
|
8, // 8: temporal.server.api.persistence.v1.ChasmComponentAttributes.side_effect_tasks:type_name -> temporal.server.api.persistence.v1.ChasmComponentAttributes.Task
|
|
8, // 9: temporal.server.api.persistence.v1.ChasmComponentAttributes.pure_tasks:type_name -> temporal.server.api.persistence.v1.ChasmComponentAttributes.Task
|
|
10, // 10: temporal.server.api.persistence.v1.ChasmComponentRef.component_initial_versioned_transition:type_name -> temporal.server.api.persistence.v1.VersionedTransition
|
|
10, // 11: temporal.server.api.persistence.v1.ChasmComponentRef.component_last_update_versioned_transition:type_name -> temporal.server.api.persistence.v1.VersionedTransition
|
|
6, // 12: temporal.server.api.persistence.v1.ChasmTaskInfo.ref:type_name -> temporal.server.api.persistence.v1.ChasmComponentRef
|
|
9, // 13: temporal.server.api.persistence.v1.ChasmTaskInfo.data:type_name -> temporal.api.common.v1.DataBlob
|
|
11, // 14: temporal.server.api.persistence.v1.ChasmComponentAttributes.Task.scheduled_time:type_name -> google.protobuf.Timestamp
|
|
9, // 15: temporal.server.api.persistence.v1.ChasmComponentAttributes.Task.data:type_name -> temporal.api.common.v1.DataBlob
|
|
10, // 16: temporal.server.api.persistence.v1.ChasmComponentAttributes.Task.versioned_transition:type_name -> temporal.server.api.persistence.v1.VersionedTransition
|
|
17, // [17:17] is the sub-list for method output_type
|
|
17, // [17:17] is the sub-list for method input_type
|
|
17, // [17:17] is the sub-list for extension type_name
|
|
17, // [17:17] is the sub-list for extension extendee
|
|
0, // [0:17] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_api_persistence_v1_chasm_proto_init() }
|
|
func file_temporal_server_api_persistence_v1_chasm_proto_init() {
|
|
if File_temporal_server_api_persistence_v1_chasm_proto != nil {
|
|
return
|
|
}
|
|
file_temporal_server_api_persistence_v1_hsm_proto_init()
|
|
file_temporal_server_api_persistence_v1_chasm_proto_msgTypes[1].OneofWrappers = []any{
|
|
(*ChasmNodeMetadata_ComponentAttributes)(nil),
|
|
(*ChasmNodeMetadata_DataAttributes)(nil),
|
|
(*ChasmNodeMetadata_CollectionAttributes)(nil),
|
|
(*ChasmNodeMetadata_PointerAttributes)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_temporal_server_api_persistence_v1_chasm_proto_rawDesc), len(file_temporal_server_api_persistence_v1_chasm_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 9,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_persistence_v1_chasm_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_persistence_v1_chasm_proto_depIdxs,
|
|
MessageInfos: file_temporal_server_api_persistence_v1_chasm_proto_msgTypes,
|
|
}.Build()
|
|
File_temporal_server_api_persistence_v1_chasm_proto = out.File
|
|
file_temporal_server_api_persistence_v1_chasm_proto_goTypes = nil
|
|
file_temporal_server_api_persistence_v1_chasm_proto_depIdxs = nil
|
|
}
|