-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace gogo protobuf with google's protobuf v2 compiler #119
Changes from 22 commits
e344d3e
a372766
2bef229
e660f0b
205b263
ce9a5b2
69c53d5
13f2c44
716a83c
f9fb8c6
6fdbb4c
389ae08
65454a6
7efc384
6cda8db
de61875
7c4c150
72ba345
b7493bd
cbe2bb4
d410a2a
428211c
dd417ed
b5b4a15
1ca3f12
62b7da4
ec12a7f
7515ef0
17191bd
16ae34d
910c300
837039d
aae8509
1d57552
8435832
47d4e43
4c04e0d
6e958a1
2c522e4
229d40f
0909eae
6469411
3a4d6e3
ef5a505
966fdd4
a2111ee
a9bd390
f1f1432
a4867f8
447c31e
bfe668b
098edea
872ab2d
ba122e5
c5f08f0
e3f2b0b
9088f4d
59e4eda
2507a24
f8d3c66
080d999
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[submodule "proto/api"] | ||
path = proto/api | ||
url = https://github.com/temporalio/api | ||
url = https://github.com/tdeebswihart/temporal-api | ||
branch = nomo-gogo |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not required here, but I guess we never had a CI step that did a rebuild + diff/status to confirm generated source is what remains in the repo (e.g. someone doesn't make a script alteration without regen). Also gives CI a chance to confirm that nobody messes up the build process. We can open an issue if we don't want to tackle now. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
// The MIT License | ||
// | ||
// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. | ||
// | ||
// Permission is hereby granted, free of charge, to any person obtaining a copy | ||
// of this software and associated documentation files (the "Software"), to deal | ||
// in the Software without restriction, including without limitation the rights | ||
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
// copies of the Software, and to permit persons to whom the Software is | ||
// furnished to do so, subject to the following conditions: | ||
// | ||
// The above copyright notice and this permission notice shall be included in | ||
// all copies or substantial portions of the Software. | ||
// | ||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
// THE SOFTWARE. | ||
|
||
package batch | ||
|
||
import "google.golang.org/protobuf/proto" | ||
|
||
func (val *BatchOperationInfo) Marshal() ([]byte, error) { | ||
tdeebswihart marked this conversation as resolved.
Show resolved
Hide resolved
|
||
return proto.Marshal(val) | ||
} | ||
|
||
func (val *BatchOperationInfo) Unmarshal(buf []byte) error { | ||
return proto.Unmarshal(buf, val) | ||
} | ||
|
||
func (val *BatchOperationInfo) Size() int { | ||
return proto.Size(val) | ||
} | ||
|
||
// Equal returns whether two BatchOperationInfo 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 *BatchOperationInfo) Equal(that interface{}) bool { | ||
if that == nil { | ||
return this == nil | ||
} | ||
|
||
var that1 *BatchOperationInfo | ||
switch t := that.(type) { | ||
case *BatchOperationInfo: | ||
that1 = t | ||
case BatchOperationInfo: | ||
that1 = &t | ||
default: | ||
return false | ||
} | ||
|
||
return proto.Equal(this, that1) | ||
} | ||
func (val *BatchOperationTermination) Marshal() ([]byte, error) { | ||
return proto.Marshal(val) | ||
} | ||
|
||
func (val *BatchOperationTermination) Unmarshal(buf []byte) error { | ||
return proto.Unmarshal(buf, val) | ||
} | ||
|
||
func (val *BatchOperationTermination) Size() int { | ||
return proto.Size(val) | ||
} | ||
|
||
// Equal returns whether two BatchOperationTermination 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 *BatchOperationTermination) Equal(that interface{}) bool { | ||
if that == nil { | ||
return this == nil | ||
} | ||
|
||
var that1 *BatchOperationTermination | ||
switch t := that.(type) { | ||
case *BatchOperationTermination: | ||
that1 = t | ||
case BatchOperationTermination: | ||
that1 = &t | ||
default: | ||
return false | ||
} | ||
|
||
return proto.Equal(this, that1) | ||
} | ||
func (val *BatchOperationSignal) Marshal() ([]byte, error) { | ||
return proto.Marshal(val) | ||
} | ||
|
||
func (val *BatchOperationSignal) Unmarshal(buf []byte) error { | ||
return proto.Unmarshal(buf, val) | ||
} | ||
|
||
func (val *BatchOperationSignal) Size() int { | ||
return proto.Size(val) | ||
} | ||
|
||
// Equal returns whether two BatchOperationSignal 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 *BatchOperationSignal) Equal(that interface{}) bool { | ||
if that == nil { | ||
return this == nil | ||
} | ||
|
||
var that1 *BatchOperationSignal | ||
switch t := that.(type) { | ||
case *BatchOperationSignal: | ||
that1 = t | ||
case BatchOperationSignal: | ||
that1 = &t | ||
default: | ||
return false | ||
} | ||
|
||
return proto.Equal(this, that1) | ||
} | ||
func (val *BatchOperationCancellation) Marshal() ([]byte, error) { | ||
return proto.Marshal(val) | ||
} | ||
|
||
func (val *BatchOperationCancellation) Unmarshal(buf []byte) error { | ||
return proto.Unmarshal(buf, val) | ||
} | ||
|
||
func (val *BatchOperationCancellation) Size() int { | ||
return proto.Size(val) | ||
} | ||
|
||
// Equal returns whether two BatchOperationCancellation 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 *BatchOperationCancellation) Equal(that interface{}) bool { | ||
if that == nil { | ||
return this == nil | ||
} | ||
|
||
var that1 *BatchOperationCancellation | ||
switch t := that.(type) { | ||
case *BatchOperationCancellation: | ||
that1 = t | ||
case BatchOperationCancellation: | ||
that1 = &t | ||
default: | ||
return false | ||
} | ||
|
||
return proto.Equal(this, that1) | ||
} | ||
func (val *BatchOperationDeletion) Marshal() ([]byte, error) { | ||
return proto.Marshal(val) | ||
} | ||
|
||
func (val *BatchOperationDeletion) Unmarshal(buf []byte) error { | ||
return proto.Unmarshal(buf, val) | ||
} | ||
|
||
func (val *BatchOperationDeletion) Size() int { | ||
return proto.Size(val) | ||
} | ||
|
||
// Equal returns whether two BatchOperationDeletion 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 *BatchOperationDeletion) Equal(that interface{}) bool { | ||
if that == nil { | ||
return this == nil | ||
} | ||
|
||
var that1 *BatchOperationDeletion | ||
switch t := that.(type) { | ||
case *BatchOperationDeletion: | ||
that1 = t | ||
case BatchOperationDeletion: | ||
that1 = &t | ||
default: | ||
return false | ||
} | ||
|
||
return proto.Equal(this, that1) | ||
} | ||
func (val *BatchOperationReset) Marshal() ([]byte, error) { | ||
return proto.Marshal(val) | ||
} | ||
|
||
func (val *BatchOperationReset) Unmarshal(buf []byte) error { | ||
return proto.Unmarshal(buf, val) | ||
} | ||
|
||
func (val *BatchOperationReset) Size() int { | ||
return proto.Size(val) | ||
} | ||
|
||
// Equal returns whether two BatchOperationReset 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 *BatchOperationReset) Equal(that interface{}) bool { | ||
if that == nil { | ||
return this == nil | ||
} | ||
|
||
var that1 *BatchOperationReset | ||
switch t := that.(type) { | ||
case *BatchOperationReset: | ||
that1 = t | ||
case BatchOperationReset: | ||
that1 = &t | ||
default: | ||
return false | ||
} | ||
|
||
return proto.Equal(this, that1) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Goes without saying I'm sure, but reminder to replace this when temporalio/api#317 merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯