Files
temporal/api/common/v1/dlq.pb.go
Alex Shtin 91893f1064 Remove license header from every file (#7689)
## 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`.
2025-05-01 18:50:21 -07:00

320 lines
11 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// plugins:
// protoc-gen-go
// protoc
// source: temporal/server/api/common/v1/dlq.proto
package commonspb
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"
)
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 HistoryTask struct {
state protoimpl.MessageState `protogen:"open.v1"`
// shard_id is included to avoid having to deserialize the task blob.
ShardId int32 `protobuf:"varint,1,opt,name=shard_id,json=shardId,proto3" json:"shard_id,omitempty"`
Blob *v1.DataBlob `protobuf:"bytes,2,opt,name=blob,proto3" json:"blob,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HistoryTask) Reset() {
*x = HistoryTask{}
mi := &file_temporal_server_api_common_v1_dlq_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HistoryTask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HistoryTask) ProtoMessage() {}
func (x *HistoryTask) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_common_v1_dlq_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 HistoryTask.ProtoReflect.Descriptor instead.
func (*HistoryTask) Descriptor() ([]byte, []int) {
return file_temporal_server_api_common_v1_dlq_proto_rawDescGZIP(), []int{0}
}
func (x *HistoryTask) GetShardId() int32 {
if x != nil {
return x.ShardId
}
return 0
}
func (x *HistoryTask) GetBlob() *v1.DataBlob {
if x != nil {
return x.Blob
}
return nil
}
type HistoryDLQTaskMetadata struct {
state protoimpl.MessageState `protogen:"open.v1"`
// message_id is the zero-indexed sequence number of the message in the queue that contains this history task.
MessageId int64 `protobuf:"varint,1,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HistoryDLQTaskMetadata) Reset() {
*x = HistoryDLQTaskMetadata{}
mi := &file_temporal_server_api_common_v1_dlq_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HistoryDLQTaskMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HistoryDLQTaskMetadata) ProtoMessage() {}
func (x *HistoryDLQTaskMetadata) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_common_v1_dlq_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 HistoryDLQTaskMetadata.ProtoReflect.Descriptor instead.
func (*HistoryDLQTaskMetadata) Descriptor() ([]byte, []int) {
return file_temporal_server_api_common_v1_dlq_proto_rawDescGZIP(), []int{1}
}
func (x *HistoryDLQTaskMetadata) GetMessageId() int64 {
if x != nil {
return x.MessageId
}
return 0
}
// HistoryDLQTask is a history task that has been moved to the DLQ, so it also has a message ID (index within that
// queue).
type HistoryDLQTask struct {
state protoimpl.MessageState `protogen:"open.v1"`
Metadata *HistoryDLQTaskMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
// This is named payload to prevent stuttering (e.g. task.Task).
Payload *HistoryTask `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HistoryDLQTask) Reset() {
*x = HistoryDLQTask{}
mi := &file_temporal_server_api_common_v1_dlq_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HistoryDLQTask) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HistoryDLQTask) ProtoMessage() {}
func (x *HistoryDLQTask) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_common_v1_dlq_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 HistoryDLQTask.ProtoReflect.Descriptor instead.
func (*HistoryDLQTask) Descriptor() ([]byte, []int) {
return file_temporal_server_api_common_v1_dlq_proto_rawDescGZIP(), []int{2}
}
func (x *HistoryDLQTask) GetMetadata() *HistoryDLQTaskMetadata {
if x != nil {
return x.Metadata
}
return nil
}
func (x *HistoryDLQTask) GetPayload() *HistoryTask {
if x != nil {
return x.Payload
}
return nil
}
// HistoryDLQKey is a compound key that identifies a history DLQ.
type HistoryDLQKey struct {
state protoimpl.MessageState `protogen:"open.v1"`
// task_category is the category of the task. The default values are defined in the TaskCategory enum. However, there
// may also be other categories registered at runtime with the history/tasks package. As a result, the category here
// is an integer instead of an enum to support both the default values and custom values.
TaskCategory int32 `protobuf:"varint,1,opt,name=task_category,json=taskCategory,proto3" json:"task_category,omitempty"`
// source_cluster and target_cluster must both be non-empty. For non-cross DC tasks, i.e. non-replication tasks,
// they should be the same. The reason for this is that we may support wildcard clusters in the future, and we want
// to differentiate between queues which go from one cluster to all other clusters, and queues which don't leave the
// current cluster.
SourceCluster string `protobuf:"bytes,2,opt,name=source_cluster,json=sourceCluster,proto3" json:"source_cluster,omitempty"`
TargetCluster string `protobuf:"bytes,3,opt,name=target_cluster,json=targetCluster,proto3" json:"target_cluster,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HistoryDLQKey) Reset() {
*x = HistoryDLQKey{}
mi := &file_temporal_server_api_common_v1_dlq_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HistoryDLQKey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HistoryDLQKey) ProtoMessage() {}
func (x *HistoryDLQKey) ProtoReflect() protoreflect.Message {
mi := &file_temporal_server_api_common_v1_dlq_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 HistoryDLQKey.ProtoReflect.Descriptor instead.
func (*HistoryDLQKey) Descriptor() ([]byte, []int) {
return file_temporal_server_api_common_v1_dlq_proto_rawDescGZIP(), []int{3}
}
func (x *HistoryDLQKey) GetTaskCategory() int32 {
if x != nil {
return x.TaskCategory
}
return 0
}
func (x *HistoryDLQKey) GetSourceCluster() string {
if x != nil {
return x.SourceCluster
}
return ""
}
func (x *HistoryDLQKey) GetTargetCluster() string {
if x != nil {
return x.TargetCluster
}
return ""
}
var File_temporal_server_api_common_v1_dlq_proto protoreflect.FileDescriptor
const file_temporal_server_api_common_v1_dlq_proto_rawDesc = "" +
"\n" +
"'temporal/server/api/common/v1/dlq.proto\x12\x1dtemporal.server.api.common.v1\x1a$temporal/api/common/v1/message.proto\"^\n" +
"\vHistoryTask\x12\x19\n" +
"\bshard_id\x18\x01 \x01(\x05R\ashardId\x124\n" +
"\x04blob\x18\x02 \x01(\v2 .temporal.api.common.v1.DataBlobR\x04blob\"7\n" +
"\x16HistoryDLQTaskMetadata\x12\x1d\n" +
"\n" +
"message_id\x18\x01 \x01(\x03R\tmessageId\"\xa9\x01\n" +
"\x0eHistoryDLQTask\x12Q\n" +
"\bmetadata\x18\x01 \x01(\v25.temporal.server.api.common.v1.HistoryDLQTaskMetadataR\bmetadata\x12D\n" +
"\apayload\x18\x02 \x01(\v2*.temporal.server.api.common.v1.HistoryTaskR\apayload\"\x82\x01\n" +
"\rHistoryDLQKey\x12#\n" +
"\rtask_category\x18\x01 \x01(\x05R\ftaskCategory\x12%\n" +
"\x0esource_cluster\x18\x02 \x01(\tR\rsourceCluster\x12%\n" +
"\x0etarget_cluster\x18\x03 \x01(\tR\rtargetClusterB/Z-go.temporal.io/server/api/common/v1;commonspbb\x06proto3"
var (
file_temporal_server_api_common_v1_dlq_proto_rawDescOnce sync.Once
file_temporal_server_api_common_v1_dlq_proto_rawDescData []byte
)
func file_temporal_server_api_common_v1_dlq_proto_rawDescGZIP() []byte {
file_temporal_server_api_common_v1_dlq_proto_rawDescOnce.Do(func() {
file_temporal_server_api_common_v1_dlq_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_temporal_server_api_common_v1_dlq_proto_rawDesc), len(file_temporal_server_api_common_v1_dlq_proto_rawDesc)))
})
return file_temporal_server_api_common_v1_dlq_proto_rawDescData
}
var file_temporal_server_api_common_v1_dlq_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_temporal_server_api_common_v1_dlq_proto_goTypes = []any{
(*HistoryTask)(nil), // 0: temporal.server.api.common.v1.HistoryTask
(*HistoryDLQTaskMetadata)(nil), // 1: temporal.server.api.common.v1.HistoryDLQTaskMetadata
(*HistoryDLQTask)(nil), // 2: temporal.server.api.common.v1.HistoryDLQTask
(*HistoryDLQKey)(nil), // 3: temporal.server.api.common.v1.HistoryDLQKey
(*v1.DataBlob)(nil), // 4: temporal.api.common.v1.DataBlob
}
var file_temporal_server_api_common_v1_dlq_proto_depIdxs = []int32{
4, // 0: temporal.server.api.common.v1.HistoryTask.blob:type_name -> temporal.api.common.v1.DataBlob
1, // 1: temporal.server.api.common.v1.HistoryDLQTask.metadata:type_name -> temporal.server.api.common.v1.HistoryDLQTaskMetadata
0, // 2: temporal.server.api.common.v1.HistoryDLQTask.payload:type_name -> temporal.server.api.common.v1.HistoryTask
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_common_v1_dlq_proto_init() }
func file_temporal_server_api_common_v1_dlq_proto_init() {
if File_temporal_server_api_common_v1_dlq_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_common_v1_dlq_proto_rawDesc), len(file_temporal_server_api_common_v1_dlq_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_temporal_server_api_common_v1_dlq_proto_goTypes,
DependencyIndexes: file_temporal_server_api_common_v1_dlq_proto_depIdxs,
MessageInfos: file_temporal_server_api_common_v1_dlq_proto_msgTypes,
}.Build()
File_temporal_server_api_common_v1_dlq_proto = out.File
file_temporal_server_api_common_v1_dlq_proto_goTypes = nil
file_temporal_server_api_common_v1_dlq_proto_depIdxs = nil
}