mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
The rebrand sed of `go.temporal.io/server` → `github.com/hanzoai/tasks` rewrote the embedded raw descriptor byte strings inside every .pb.go, breaking the length-prefix bytes that precede each go_package field. The hanzoai path is longer, so the descriptor parser saw truncated fields and panicked with `slice bounds out of range [-4:]` at filedesc/desc_init.go:174. Fix: revert the go_package string *only inside the rawDesc const block* back to the temporal path. Go imports and package identities remain hanzoai — the descriptor is runtime reflection metadata only. Affected: 68 .pb.go files under api/ and chasm/lib/*/gen/.
218 lines
7.3 KiB
Go
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(go.temporal.io/server/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
|
|
}
|