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)
118 lines
3.2 KiB
Go
118 lines
3.2 KiB
Go
// Code generated by protoc-gen-go-helpers. DO NOT EDIT.
|
|
package testspb
|
|
|
|
import (
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
// Marshal an object of type TestPayloadStore to the protobuf v3 wire format
|
|
func (val *TestPayloadStore) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type TestPayloadStore from the protobuf v3 wire format
|
|
func (val *TestPayloadStore) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *TestPayloadStore) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two TestPayloadStore 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 *TestPayloadStore) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *TestPayloadStore
|
|
switch t := that.(type) {
|
|
case *TestPayloadStore:
|
|
that1 = t
|
|
case TestPayloadStore:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type TestPayloadTTLPureTask to the protobuf v3 wire format
|
|
func (val *TestPayloadTTLPureTask) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type TestPayloadTTLPureTask from the protobuf v3 wire format
|
|
func (val *TestPayloadTTLPureTask) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *TestPayloadTTLPureTask) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two TestPayloadTTLPureTask 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 *TestPayloadTTLPureTask) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *TestPayloadTTLPureTask
|
|
switch t := that.(type) {
|
|
case *TestPayloadTTLPureTask:
|
|
that1 = t
|
|
case TestPayloadTTLPureTask:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|
|
|
|
// Marshal an object of type TestPayloadTTLSideEffectTask to the protobuf v3 wire format
|
|
func (val *TestPayloadTTLSideEffectTask) Marshal() ([]byte, error) {
|
|
return proto.Marshal(val)
|
|
}
|
|
|
|
// Unmarshal an object of type TestPayloadTTLSideEffectTask from the protobuf v3 wire format
|
|
func (val *TestPayloadTTLSideEffectTask) Unmarshal(buf []byte) error {
|
|
return proto.Unmarshal(buf, val)
|
|
}
|
|
|
|
// Size returns the size of the object, in bytes, once serialized
|
|
func (val *TestPayloadTTLSideEffectTask) Size() int {
|
|
return proto.Size(val)
|
|
}
|
|
|
|
// Equal returns whether two TestPayloadTTLSideEffectTask 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 *TestPayloadTTLSideEffectTask) Equal(that interface{}) bool {
|
|
if that == nil {
|
|
return this == nil
|
|
}
|
|
|
|
var that1 *TestPayloadTTLSideEffectTask
|
|
switch t := that.(type) {
|
|
case *TestPayloadTTLSideEffectTask:
|
|
that1 = t
|
|
case TestPayloadTTLSideEffectTask:
|
|
that1 = &t
|
|
default:
|
|
return false
|
|
}
|
|
|
|
return proto.Equal(this, that1)
|
|
}
|