mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-30 14:56:19 +00:00
## What changed? - Move chasm test payload store proto def to chasm package ## Why? - Follow the new convention we set up for chasm components ## How did you test it? - [x] built - [ ] run locally and tested manually - [x] covered by existing tests - [ ] added new unit test(s) - [ ] added new functional test(s)
258 lines
9.8 KiB
Go
258 lines
9.8 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// plugins:
|
|
// protoc-gen-go
|
|
// protoc
|
|
// source: temporal/server/chasm/lib/tests/proto/v1/message.proto
|
|
|
|
package testspb
|
|
|
|
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)
|
|
)
|
|
|
|
type TestPayloadStore struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TotalCount int64 `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
|
TotalSize int64 `protobuf:"varint,2,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
|
|
// (-- api-linter: core::0142::time-field-type=disabled --)
|
|
ExpirationTimes map[string]*timestamppb.Timestamp `protobuf:"bytes,3,rep,name=expiration_times,json=expirationTimes,proto3" json:"expiration_times,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
|
Closed bool `protobuf:"varint,4,opt,name=closed,proto3" json:"closed,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TestPayloadStore) Reset() {
|
|
*x = TestPayloadStore{}
|
|
mi := &file_temporal_server_chasm_lib_tests_proto_v1_message_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TestPayloadStore) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TestPayloadStore) ProtoMessage() {}
|
|
|
|
func (x *TestPayloadStore) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_tests_proto_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 TestPayloadStore.ProtoReflect.Descriptor instead.
|
|
func (*TestPayloadStore) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *TestPayloadStore) GetTotalCount() int64 {
|
|
if x != nil {
|
|
return x.TotalCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TestPayloadStore) GetTotalSize() int64 {
|
|
if x != nil {
|
|
return x.TotalSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *TestPayloadStore) GetExpirationTimes() map[string]*timestamppb.Timestamp {
|
|
if x != nil {
|
|
return x.ExpirationTimes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *TestPayloadStore) GetClosed() bool {
|
|
if x != nil {
|
|
return x.Closed
|
|
}
|
|
return false
|
|
}
|
|
|
|
type TestPayloadTTLPureTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PayloadKey string `protobuf:"bytes,1,opt,name=payload_key,json=payloadKey,proto3" json:"payload_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TestPayloadTTLPureTask) Reset() {
|
|
*x = TestPayloadTTLPureTask{}
|
|
mi := &file_temporal_server_chasm_lib_tests_proto_v1_message_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TestPayloadTTLPureTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TestPayloadTTLPureTask) ProtoMessage() {}
|
|
|
|
func (x *TestPayloadTTLPureTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_tests_proto_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 TestPayloadTTLPureTask.ProtoReflect.Descriptor instead.
|
|
func (*TestPayloadTTLPureTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *TestPayloadTTLPureTask) GetPayloadKey() string {
|
|
if x != nil {
|
|
return x.PayloadKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TestPayloadTTLSideEffectTask struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
PayloadKey string `protobuf:"bytes,1,opt,name=payload_key,json=payloadKey,proto3" json:"payload_key,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *TestPayloadTTLSideEffectTask) Reset() {
|
|
*x = TestPayloadTTLSideEffectTask{}
|
|
mi := &file_temporal_server_chasm_lib_tests_proto_v1_message_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *TestPayloadTTLSideEffectTask) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*TestPayloadTTLSideEffectTask) ProtoMessage() {}
|
|
|
|
func (x *TestPayloadTTLSideEffectTask) ProtoReflect() protoreflect.Message {
|
|
mi := &file_temporal_server_chasm_lib_tests_proto_v1_message_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 TestPayloadTTLSideEffectTask.ProtoReflect.Descriptor instead.
|
|
func (*TestPayloadTTLSideEffectTask) Descriptor() ([]byte, []int) {
|
|
return file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *TestPayloadTTLSideEffectTask) GetPayloadKey() string {
|
|
if x != nil {
|
|
return x.PayloadKey
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_temporal_server_chasm_lib_tests_proto_v1_message_proto protoreflect.FileDescriptor
|
|
|
|
const file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDesc = "" +
|
|
"\n" +
|
|
"6temporal/server/chasm/lib/tests/proto/v1/message.proto\x12(temporal.server.chasm.lib.tests.proto.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc6\x02\n" +
|
|
"\x10TestPayloadStore\x12\x1f\n" +
|
|
"\vtotal_count\x18\x01 \x01(\x03R\n" +
|
|
"totalCount\x12\x1d\n" +
|
|
"\n" +
|
|
"total_size\x18\x02 \x01(\x03R\ttotalSize\x12z\n" +
|
|
"\x10expiration_times\x18\x03 \x03(\v2O.temporal.server.chasm.lib.tests.proto.v1.TestPayloadStore.ExpirationTimesEntryR\x0fexpirationTimes\x12\x16\n" +
|
|
"\x06closed\x18\x04 \x01(\bR\x06closed\x1a^\n" +
|
|
"\x14ExpirationTimesEntry\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x120\n" +
|
|
"\x05value\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampR\x05value:\x028\x01\"9\n" +
|
|
"\x16TestPayloadTTLPureTask\x12\x1f\n" +
|
|
"\vpayload_key\x18\x01 \x01(\tR\n" +
|
|
"payloadKey\"?\n" +
|
|
"\x1cTestPayloadTTLSideEffectTask\x12\x1f\n" +
|
|
"\vpayload_key\x18\x01 \x01(\tR\n" +
|
|
"payloadKeyB;Z9go.temporal.io/server/chasm/lib/tests/gen/testspb;testspbb\x06proto3"
|
|
|
|
var (
|
|
file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescOnce sync.Once
|
|
file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescGZIP() []byte {
|
|
file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescOnce.Do(func() {
|
|
file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDesc), len(file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDesc)))
|
|
})
|
|
return file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDescData
|
|
}
|
|
|
|
var file_temporal_server_chasm_lib_tests_proto_v1_message_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_temporal_server_chasm_lib_tests_proto_v1_message_proto_goTypes = []any{
|
|
(*TestPayloadStore)(nil), // 0: temporal.server.chasm.lib.tests.proto.v1.TestPayloadStore
|
|
(*TestPayloadTTLPureTask)(nil), // 1: temporal.server.chasm.lib.tests.proto.v1.TestPayloadTTLPureTask
|
|
(*TestPayloadTTLSideEffectTask)(nil), // 2: temporal.server.chasm.lib.tests.proto.v1.TestPayloadTTLSideEffectTask
|
|
nil, // 3: temporal.server.chasm.lib.tests.proto.v1.TestPayloadStore.ExpirationTimesEntry
|
|
(*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp
|
|
}
|
|
var file_temporal_server_chasm_lib_tests_proto_v1_message_proto_depIdxs = []int32{
|
|
3, // 0: temporal.server.chasm.lib.tests.proto.v1.TestPayloadStore.expiration_times:type_name -> temporal.server.chasm.lib.tests.proto.v1.TestPayloadStore.ExpirationTimesEntry
|
|
4, // 1: temporal.server.chasm.lib.tests.proto.v1.TestPayloadStore.ExpirationTimesEntry.value:type_name -> google.protobuf.Timestamp
|
|
2, // [2:2] is the sub-list for method output_type
|
|
2, // [2:2] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_temporal_server_chasm_lib_tests_proto_v1_message_proto_init() }
|
|
func file_temporal_server_chasm_lib_tests_proto_v1_message_proto_init() {
|
|
if File_temporal_server_chasm_lib_tests_proto_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_chasm_lib_tests_proto_v1_message_proto_rawDesc), len(file_temporal_server_chasm_lib_tests_proto_v1_message_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_temporal_server_chasm_lib_tests_proto_v1_message_proto_goTypes,
|
|
DependencyIndexes: file_temporal_server_chasm_lib_tests_proto_v1_message_proto_depIdxs,
|
|
MessageInfos: file_temporal_server_chasm_lib_tests_proto_v1_message_proto_msgTypes,
|
|
}.Build()
|
|
File_temporal_server_chasm_lib_tests_proto_v1_message_proto = out.File
|
|
file_temporal_server_chasm_lib_tests_proto_v1_message_proto_goTypes = nil
|
|
file_temporal_server_chasm_lib_tests_proto_v1_message_proto_depIdxs = nil
|
|
}
|