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`.
414 lines
12 KiB
Go
414 lines
12 KiB
Go
// Code generated by protoc-gen-go-helpers. DO NOT EDIT.
|
|
package persistence
|
|
|
|
import (
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
// Marshal an object of type Predicate to the protobuf v3 wire format
|
|
func (val *Predicate) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type Predicate from the protobuf v3 wire format
|
|
func (val *Predicate) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *Predicate) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two Predicate values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *Predicate) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *Predicate
|
|
switch t := that.(type) {
|
|
case *Predicate:
|
|
that1 = t
|
|
case Predicate:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type UniversalPredicateAttributes to the protobuf v3 wire format
|
|
func (val *UniversalPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type UniversalPredicateAttributes from the protobuf v3 wire format
|
|
func (val *UniversalPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *UniversalPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two UniversalPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *UniversalPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *UniversalPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *UniversalPredicateAttributes:
|
|
that1 = t
|
|
case UniversalPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type EmptyPredicateAttributes to the protobuf v3 wire format
|
|
func (val *EmptyPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type EmptyPredicateAttributes from the protobuf v3 wire format
|
|
func (val *EmptyPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *EmptyPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two EmptyPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *EmptyPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *EmptyPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *EmptyPredicateAttributes:
|
|
that1 = t
|
|
case EmptyPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type AndPredicateAttributes to the protobuf v3 wire format
|
|
func (val *AndPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type AndPredicateAttributes from the protobuf v3 wire format
|
|
func (val *AndPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *AndPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two AndPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *AndPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *AndPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *AndPredicateAttributes:
|
|
that1 = t
|
|
case AndPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type OrPredicateAttributes to the protobuf v3 wire format
|
|
func (val *OrPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type OrPredicateAttributes from the protobuf v3 wire format
|
|
func (val *OrPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *OrPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two OrPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *OrPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *OrPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *OrPredicateAttributes:
|
|
that1 = t
|
|
case OrPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type NotPredicateAttributes to the protobuf v3 wire format
|
|
func (val *NotPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type NotPredicateAttributes from the protobuf v3 wire format
|
|
func (val *NotPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *NotPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two NotPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *NotPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *NotPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *NotPredicateAttributes:
|
|
that1 = t
|
|
case NotPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type NamespaceIdPredicateAttributes to the protobuf v3 wire format
|
|
func (val *NamespaceIdPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type NamespaceIdPredicateAttributes from the protobuf v3 wire format
|
|
func (val *NamespaceIdPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *NamespaceIdPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two NamespaceIdPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *NamespaceIdPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *NamespaceIdPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *NamespaceIdPredicateAttributes:
|
|
that1 = t
|
|
case NamespaceIdPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type TaskTypePredicateAttributes to the protobuf v3 wire format
|
|
func (val *TaskTypePredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type TaskTypePredicateAttributes from the protobuf v3 wire format
|
|
func (val *TaskTypePredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *TaskTypePredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two TaskTypePredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *TaskTypePredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *TaskTypePredicateAttributes
|
|
switch t := that.(type) {
|
|
case *TaskTypePredicateAttributes:
|
|
that1 = t
|
|
case TaskTypePredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type DestinationPredicateAttributes to the protobuf v3 wire format
|
|
func (val *DestinationPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type DestinationPredicateAttributes from the protobuf v3 wire format
|
|
func (val *DestinationPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *DestinationPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two DestinationPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *DestinationPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *DestinationPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *DestinationPredicateAttributes:
|
|
that1 = t
|
|
case DestinationPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type OutboundTaskGroupPredicateAttributes to the protobuf v3 wire format
|
|
func (val *OutboundTaskGroupPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type OutboundTaskGroupPredicateAttributes from the protobuf v3 wire format
|
|
func (val *OutboundTaskGroupPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *OutboundTaskGroupPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two OutboundTaskGroupPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *OutboundTaskGroupPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *OutboundTaskGroupPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *OutboundTaskGroupPredicateAttributes:
|
|
that1 = t
|
|
case OutboundTaskGroupPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type OutboundTaskPredicateAttributes to the protobuf v3 wire format
|
|
func (val *OutboundTaskPredicateAttributes) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type OutboundTaskPredicateAttributes from the protobuf v3 wire format
|
|
func (val *OutboundTaskPredicateAttributes) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *OutboundTaskPredicateAttributes) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two OutboundTaskPredicateAttributes values are equivalent by recursively
|
|
// comparing the message's fields.
|
|
// For more information see the documentation for
|
|
// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal
|
|
func (this *OutboundTaskPredicateAttributes) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *OutboundTaskPredicateAttributes
|
|
switch t := that.(type) {
|
|
case *OutboundTaskPredicateAttributes:
|
|
that1 = t
|
|
case OutboundTaskPredicateAttributes:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|