Files
tasks/api/clock/v1/message.pb.go
zeekay 5a601d081b rebrand: go.temporal.io/server -> github.com/hanzoai/tasks
Full module path rebrand from Temporal to Hanzo Tasks:
- go.mod module: github.com/hanzoai/tasks
- All internal Go imports updated (1906 files)
- cmd/server renamed to cmd/tasksd
- Binary name: tasksd (was temporal-server)
- Docker images: hanzoai/tasks (was temporalio/server)
- README rewritten with Hanzo Tasks branding
- LLM.md created with integration notes
- Makefile, goreleaser, CI workflows updated
- go.temporal.io/sdk and go.temporal.io/api imports preserved (separate repos)

Fork of Temporal.io (MIT license).
2026-03-19 10:36:40 -07:00

218 lines
7.3 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// plugins:
// protoc-gen-go
// protoc
// source: temporal/server/api/clock/v1/message.proto
package clock
import (
reflect "reflect"
sync "sync"
unsafe "unsafe"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
)
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 VectorClock struct {
state protoimpl.MessageState `protogen:"open.v1"`
ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
Clock int64 `protobuf:"varint,2,opt,name=clock,proto3" json:"clock,omitempty"`
ClusterId int64 `protobuf:"varint,3,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VectorClock) Reset() {
*x = VectorClock{}
mi := &file_temporal_server_api_clock_v1_message_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VectorClock) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VectorClock) ProtoMessage() {}
func (x *VectorClock) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_clock_v1_message_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 VectorClock.ProtoReflect.Descriptor instead.
func (*VectorClock) Descriptor() ([]byte, []int) {
return file_temporal_server_api_clock_v1_message_proto_rawDescGZIP(), []int{0}
}
func (x *VectorClock) GetShardId() int32 {
if x != nil {
return x.ShardId
}
return 0
}
func (x *VectorClock) GetClock() int64 {
if x != nil {
return x.Clock
}
return 0
}
func (x *VectorClock) GetClusterId() int64 {
if x != nil {
return x.ClusterId
}
return 0
}
// A Hybrid Logical Clock timestamp.
// Guarantees strict total ordering for conflict resolution purposes.
type HybridLogicalClock struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Wall clock - A single time source MUST guarantee that 2 consecutive timestamps are monotonically non-decreasing.
// e.g. by storing the last wall clock and returning max(gettimeofday(), lastWallClock).
WallClock int64 `protobuf:"varint,1,opt,name=wall_clock,json=wallClock,proto3" json:"wall_clock,omitempty"`
// Incremental sequence that is reset every time the system's wallclock moves forward.
// Ensures the clock generates monotonically increasing timestamps.
Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
// The cluster version ID as described in the XDC docs - used as a tie breaker.
// See: https://github.com/uber/cadence/blob/master/docs/design/2290-cadence-ndc.md
ClusterId int64 `protobuf:"varint,3,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HybridLogicalClock) Reset() {
*x = HybridLogicalClock{}
mi := &file_temporal_server_api_clock_v1_message_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HybridLogicalClock) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HybridLogicalClock) ProtoMessage() {}
func (x *HybridLogicalClock) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_clock_v1_message_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 HybridLogicalClock.ProtoReflect.Descriptor instead.
func (*HybridLogicalClock) Descriptor() ([]byte, []int) {
return file_temporal_server_api_clock_v1_message_proto_rawDescGZIP(), []int{1}
}
func (x *HybridLogicalClock) GetWallClock() int64 {
if x != nil {
return x.WallClock
}
return 0
}
func (x *HybridLogicalClock) GetVersion() int32 {
if x != nil {
return x.Version
}
return 0
}
func (x *HybridLogicalClock) GetClusterId() int64 {
if x != nil {
return x.ClusterId
}
return 0
}
var File_temporal_server_api_clock_v1_message_proto protoreflect.FileDescriptor
const file_temporal_server_api_clock_v1_message_proto_rawDesc = "" +
"\n" +
"*temporal/server/api/clock/v1/message.proto\x12\x1ctemporal.server.api.clock.v1\"]\n" +
"\vVectorClock\x12\x19\n" +
"\bshard_id\x18\x01 \x01(\x05R\ashardId\x12\x14\n" +
"\x05clock\x18\x02 \x01(\x03R\x05clock\x12\x1d\n" +
"\n" +
"cluster_id\x18\x03 \x01(\x03R\tclusterId\"l\n" +
"\x12HybridLogicalClock\x12\x1d\n" +
"\n" +
"wall_clock\x18\x01 \x01(\x03R\twallClock\x12\x18\n" +
"\aversion\x18\x02 \x01(\x05R\aversion\x12\x1d\n" +
"\n" +
"cluster_id\x18\x03 \x01(\x03R\tclusterIdB*Z(github.com/hanzoai/tasks/api/clock/v1;clockb\x06proto3"
var (
file_temporal_server_api_clock_v1_message_proto_rawDescOnce sync.Once
file_temporal_server_api_clock_v1_message_proto_rawDescData []byte
)
func file_temporal_server_api_clock_v1_message_proto_rawDescGZIP() []byte {
file_temporal_server_api_clock_v1_message_proto_rawDescOnce.Do(func() {
file_temporal_server_api_clock_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_clock_v1_message_proto_rawDesc), len(file_temporal_server_api_clock_v1_message_proto_rawDesc)))
})
return file_temporal_server_api_clock_v1_message_proto_rawDescData
}
var file_temporal_server_api_clock_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_temporal_server_api_clock_v1_message_proto_goTypes = []any{
(*VectorClock)(nil), // 0: temporal.server.api.clock.v1.VectorClock
(*HybridLogicalClock)(nil), // 1: temporal.server.api.clock.v1.HybridLogicalClock
}
var file_temporal_server_api_clock_v1_message_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_temporal_server_api_clock_v1_message_proto_init() }
func file_temporal_server_api_clock_v1_message_proto_init() {
if File_temporal_server_api_clock_v1_message_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_clock_v1_message_proto_rawDesc), len(file_temporal_server_api_clock_v1_message_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_temporal_server_api_clock_v1_message_proto_goTypes,
DependencyIndexes: file_temporal_server_api_clock_v1_message_proto_depIdxs,
MessageInfos: file_temporal_server_api_clock_v1_message_proto_msgTypes,
}.Build()
File_temporal_server_api_clock_v1_message_proto = out.File
file_temporal_server_api_clock_v1_message_proto_goTypes = nil
file_temporal_server_api_clock_v1_message_proto_depIdxs = nil
}