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`.
299 lines
11 KiB
Go
299 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/api/persistence/v1/history_tree.proto
|
|
|
|
package persistence
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
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)
|
|
)
|
|
|
|
// branch column
|
|
type HistoryTreeInfo struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
BranchInfo *HistoryBranch `protobuf:"bytes,1,opt,name=branch_info,json=branchInfo,proto3" json:"branch_info,omitempty"`
|
|
// For fork operation to prevent race condition of leaking event data when forking branches fail. Also can be used for clean up leaked data.
|
|
ForkTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=fork_time,json=forkTime,proto3" json:"fork_time,omitempty"`
|
|
// For lookup back to workflow during debugging, also background cleanup when fork operation cannot finish self cleanup due to crash.
|
|
Info string `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
|
|
// Deprecating branch token in favor of branch info.
|
|
//
|
|
// Deprecated: Marked as deprecated in temporal/server/api/persistence/v1/history_tree.proto.
|
|
BranchToken []byte `protobuf:"bytes,4,opt,name=branch_token,json=branchToken,proto3" json:"branch_token,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HistoryTreeInfo) Reset() {
|
|
*x = HistoryTreeInfo{}
|
|
mi := &file_temporal_server_api_persistence_v1_history_tree_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HistoryTreeInfo) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HistoryTreeInfo) ProtoMessage() {}
|
|
|
|
func (x *HistoryTreeInfo) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_history_tree_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 HistoryTreeInfo.ProtoReflect.Descriptor instead.
|
|
func (*HistoryTreeInfo) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_history_tree_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *HistoryTreeInfo) GetBranchInfo() *HistoryBranch {
|
|
if x != nil {
|
|
return x.BranchInfo
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *HistoryTreeInfo) GetForkTime() *timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ForkTime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *HistoryTreeInfo) GetInfo() string {
|
|
if x != nil {
|
|
return x.Info
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// Deprecated: Marked as deprecated in temporal/server/api/persistence/v1/history_tree.proto.
|
|
func (x *HistoryTreeInfo) GetBranchToken() []byte {
|
|
if x != nil {
|
|
return x.BranchToken
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// For history persistence to serialize/deserialize branch details.
|
|
type HistoryBranch struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TreeId string `protobuf:"bytes,1,opt,name=tree_id,json=treeId,proto3" json:"tree_id,omitempty"`
|
|
BranchId string `protobuf:"bytes,2,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
|
|
Ancestors []*HistoryBranchRange `protobuf:"bytes,3,rep,name=ancestors,proto3" json:"ancestors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HistoryBranch) Reset() {
|
|
*x = HistoryBranch{}
|
|
mi := &file_temporal_server_api_persistence_v1_history_tree_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HistoryBranch) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HistoryBranch) ProtoMessage() {}
|
|
|
|
func (x *HistoryBranch) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_history_tree_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 HistoryBranch.ProtoReflect.Descriptor instead.
|
|
func (*HistoryBranch) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_history_tree_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *HistoryBranch) GetTreeId() string {
|
|
if x != nil {
|
|
return x.TreeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HistoryBranch) GetBranchId() string {
|
|
if x != nil {
|
|
return x.BranchId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HistoryBranch) GetAncestors() []*HistoryBranchRange {
|
|
if x != nil {
|
|
return x.Ancestors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// HistoryBranchRange represents a piece of range for a branch.
|
|
type HistoryBranchRange struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// BranchId of original branch forked from.
|
|
BranchId string `protobuf:"bytes,1,opt,name=branch_id,json=branchId,proto3" json:"branch_id,omitempty"`
|
|
// Beginning node for the range, inclusive.
|
|
BeginNodeId int64 `protobuf:"varint,2,opt,name=begin_node_id,json=beginNodeId,proto3" json:"begin_node_id,omitempty"`
|
|
// Ending node for the range, exclusive.
|
|
EndNodeId int64 `protobuf:"varint,3,opt,name=end_node_id,json=endNodeId,proto3" json:"end_node_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *HistoryBranchRange) Reset() {
|
|
*x = HistoryBranchRange{}
|
|
mi := &file_temporal_server_api_persistence_v1_history_tree_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *HistoryBranchRange) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*HistoryBranchRange) ProtoMessage() {}
|
|
|
|
func (x *HistoryBranchRange) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_api_persistence_v1_history_tree_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 HistoryBranchRange.ProtoReflect.Descriptor instead.
|
|
func (*HistoryBranchRange) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_api_persistence_v1_history_tree_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *HistoryBranchRange) GetBranchId() string {
|
|
if x != nil {
|
|
return x.BranchId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *HistoryBranchRange) GetBeginNodeId() int64 {
|
|
if x != nil {
|
|
return x.BeginNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *HistoryBranchRange) GetEndNodeId() int64 {
|
|
if x != nil {
|
|
return x.EndNodeId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_temporal_server_api_persistence_v1_history_tree_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_api_persistence_v1_history_tree_proto_rawDesc = "" +
|
|
"\n" +
|
|
"5temporal/server/api/persistence/v1/history_tree.proto\x12\"temporal.server.api.persistence.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd9\x01\n" +
|
|
"\x0fHistoryTreeInfo\x12R\n" +
|
|
"\vbranch_info\x18\x01 \x01(\v21.temporal.server.api.persistence.v1.HistoryBranchR\n" +
|
|
"branchInfo\x127\n" +
|
|
"\tfork_time\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\bforkTime\x12\x12\n" +
|
|
"\x04info\x18\x03 \x01(\tR\x04info\x12%\n" +
|
|
"\fbranch_token\x18\x04 \x01(\fB\x02\x18\x01R\vbranchToken\"\x9b\x01\n" +
|
|
"\rHistoryBranch\x12\x17\n" +
|
|
"\atree_id\x18\x01 \x01(\tR\x06treeId\x12\x1b\n" +
|
|
"\tbranch_id\x18\x02 \x01(\tR\bbranchId\x12T\n" +
|
|
"\tancestors\x18\x03 \x03(\v26.temporal.server.api.persistence.v1.HistoryBranchRangeR\tancestors\"u\n" +
|
|
"\x12HistoryBranchRange\x12\x1b\n" +
|
|
"\tbranch_id\x18\x01 \x01(\tR\bbranchId\x12\"\n" +
|
|
"\rbegin_node_id\x18\x02 \x01(\x03R\vbeginNodeId\x12\x1e\n" +
|
|
"\vend_node_id\x18\x03 \x01(\x03R\tendNodeIdB6Z4go.temporal.io/server/api/persistence/v1;persistenceb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_api_persistence_v1_history_tree_proto_rawDescOnce sync.Once
|
|
file_temporal_server_api_persistence_v1_history_tree_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_api_persistence_v1_history_tree_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_api_persistence_v1_history_tree_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_api_persistence_v1_history_tree_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_persistence_v1_history_tree_proto_rawDesc), len(file_temporal_server_api_persistence_v1_history_tree_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_api_persistence_v1_history_tree_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_api_persistence_v1_history_tree_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_temporal_server_api_persistence_v1_history_tree_proto_goTypes = []any{
|
|
(*HistoryTreeInfo)(nil), // 0: temporal.server.api.persistence.v1.HistoryTreeInfo
|
|
(*HistoryBranch)(nil), // 1: temporal.server.api.persistence.v1.HistoryBranch
|
|
(*HistoryBranchRange)(nil), // 2: temporal.server.api.persistence.v1.HistoryBranchRange
|
|
(*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
|
|
}
|
|
var file_temporal_server_api_persistence_v1_history_tree_proto_depIdxs = []int32{
|
|
1, // 0: temporal.server.api.persistence.v1.HistoryTreeInfo.branch_info:type_name -> temporal.server.api.persistence.v1.HistoryBranch
|
|
3, // 1: temporal.server.api.persistence.v1.HistoryTreeInfo.fork_time:type_name -> google.protobuf.Timestamp
|
|
2, // 2: temporal.server.api.persistence.v1.HistoryBranch.ancestors:type_name -> temporal.server.api.persistence.v1.HistoryBranchRange
|
|
3, // [3:3] is the sub-list for method output_type
|
|
3, // [3:3] is the sub-list for method input_type
|
|
3, // [3:3] is the sub-list for extension type_name
|
|
3, // [3:3] is the sub-list for extension extendee
|
|
0, // [0:3] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_api_persistence_v1_history_tree_proto_init() }
|
|
func file_temporal_server_api_persistence_v1_history_tree_proto_init() {
|
|
if File_temporal_server_api_persistence_v1_history_tree_proto != nil {
|
|
return
|
|
}
|
|
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_history_tree_proto_rawDesc), len(file_temporal_server_api_persistence_v1_history_tree_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_api_persistence_v1_history_tree_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_api_persistence_v1_history_tree_proto_depIdxs,
|
|
MessageInfos: file_temporal_server_api_persistence_v1_history_tree_proto_msgTypes,
|
|
}.Build()
|
|
File_temporal_server_api_persistence_v1_history_tree_proto = out.File
|
|
file_temporal_server_api_persistence_v1_history_tree_proto_goTypes = nil
|
|
file_temporal_server_api_persistence_v1_history_tree_proto_depIdxs = nil
|
|
}
|