Files
temporal/api/batch/v1/request_response.go-helpers.pb.go
Sean Kane 356eecafdd improvement: bypass middle-man-struct for batch operations (#8081)
## What changed?
Remove `BatchParams` to safely serialize proto -> json -> proto and add
a `BatchOperation` proto definition

## Why?
Remove custom serialization of proto for json safety.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [X] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)

## Potential risks
Could break batching backwards compatibility but tests should catch this
2025-08-04 14:26:50 -06:00

44 lines
1.1 KiB
Go

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