|
| 1 | +// The MIT License |
| 2 | +// |
| 3 | +// Copyright (c) 2022 Temporal Technologies Inc. All rights reserved. |
| 4 | +// |
| 5 | +// Permission is hereby granted, free of charge, to any person obtaining a copy |
| 6 | +// of this software and associated documentation files (the "Software"), to deal |
| 7 | +// in the Software without restriction, including without limitation the rights |
| 8 | +// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 9 | +// copies of the Software, and to permit persons to whom the Software is |
| 10 | +// furnished to do so, subject to the following conditions: |
| 11 | +// |
| 12 | +// The above copyright notice and this permission notice shall be included in |
| 13 | +// all copies or substantial portions of the Software. |
| 14 | +// |
| 15 | +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 16 | +// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 17 | +// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 18 | +// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 19 | +// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 20 | +// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 21 | +// THE SOFTWARE. |
| 22 | + |
| 23 | +package batch |
| 24 | + |
| 25 | +import ( |
| 26 | + "google.golang.org/protobuf/proto" |
| 27 | +) |
| 28 | + |
| 29 | +// Marshal an object of type BatchOperationInfo to the protobuf v3 wire format |
| 30 | +func (val *BatchOperationInfo) Marshal() ([]byte, error) { |
| 31 | + return proto.Marshal(val) |
| 32 | +} |
| 33 | + |
| 34 | +// Unmarshal an object of type BatchOperationInfo from the protobuf v3 wire format |
| 35 | +func (val *BatchOperationInfo) Unmarshal(buf []byte) error { |
| 36 | + return proto.Unmarshal(buf, val) |
| 37 | +} |
| 38 | + |
| 39 | +// Size returns the size of the object, in bytes, once serialized |
| 40 | +func (val *BatchOperationInfo) Size() int { |
| 41 | + return proto.Size(val) |
| 42 | +} |
| 43 | + |
| 44 | +// Equal returns whether two BatchOperationInfo values are equivalent by recursively |
| 45 | +// comparing the message's fields. |
| 46 | +// For more information see the documentation for |
| 47 | +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal |
| 48 | +func (this *BatchOperationInfo) Equal(that interface{}) bool { |
| 49 | + if that == nil { |
| 50 | + return this == nil |
| 51 | + } |
| 52 | + |
| 53 | + var that1 *BatchOperationInfo |
| 54 | + switch t := that.(type) { |
| 55 | + case *BatchOperationInfo: |
| 56 | + that1 = t |
| 57 | + case BatchOperationInfo: |
| 58 | + that1 = &t |
| 59 | + default: |
| 60 | + return false |
| 61 | + } |
| 62 | + |
| 63 | + return proto.Equal(this, that1) |
| 64 | +} |
| 65 | + |
| 66 | +// Marshal an object of type BatchOperationTermination to the protobuf v3 wire format |
| 67 | +func (val *BatchOperationTermination) Marshal() ([]byte, error) { |
| 68 | + return proto.Marshal(val) |
| 69 | +} |
| 70 | + |
| 71 | +// Unmarshal an object of type BatchOperationTermination from the protobuf v3 wire format |
| 72 | +func (val *BatchOperationTermination) Unmarshal(buf []byte) error { |
| 73 | + return proto.Unmarshal(buf, val) |
| 74 | +} |
| 75 | + |
| 76 | +// Size returns the size of the object, in bytes, once serialized |
| 77 | +func (val *BatchOperationTermination) Size() int { |
| 78 | + return proto.Size(val) |
| 79 | +} |
| 80 | + |
| 81 | +// Equal returns whether two BatchOperationTermination values are equivalent by recursively |
| 82 | +// comparing the message's fields. |
| 83 | +// For more information see the documentation for |
| 84 | +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal |
| 85 | +func (this *BatchOperationTermination) Equal(that interface{}) bool { |
| 86 | + if that == nil { |
| 87 | + return this == nil |
| 88 | + } |
| 89 | + |
| 90 | + var that1 *BatchOperationTermination |
| 91 | + switch t := that.(type) { |
| 92 | + case *BatchOperationTermination: |
| 93 | + that1 = t |
| 94 | + case BatchOperationTermination: |
| 95 | + that1 = &t |
| 96 | + default: |
| 97 | + return false |
| 98 | + } |
| 99 | + |
| 100 | + return proto.Equal(this, that1) |
| 101 | +} |
| 102 | + |
| 103 | +// Marshal an object of type BatchOperationSignal to the protobuf v3 wire format |
| 104 | +func (val *BatchOperationSignal) Marshal() ([]byte, error) { |
| 105 | + return proto.Marshal(val) |
| 106 | +} |
| 107 | + |
| 108 | +// Unmarshal an object of type BatchOperationSignal from the protobuf v3 wire format |
| 109 | +func (val *BatchOperationSignal) Unmarshal(buf []byte) error { |
| 110 | + return proto.Unmarshal(buf, val) |
| 111 | +} |
| 112 | + |
| 113 | +// Size returns the size of the object, in bytes, once serialized |
| 114 | +func (val *BatchOperationSignal) Size() int { |
| 115 | + return proto.Size(val) |
| 116 | +} |
| 117 | + |
| 118 | +// Equal returns whether two BatchOperationSignal values are equivalent by recursively |
| 119 | +// comparing the message's fields. |
| 120 | +// For more information see the documentation for |
| 121 | +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal |
| 122 | +func (this *BatchOperationSignal) Equal(that interface{}) bool { |
| 123 | + if that == nil { |
| 124 | + return this == nil |
| 125 | + } |
| 126 | + |
| 127 | + var that1 *BatchOperationSignal |
| 128 | + switch t := that.(type) { |
| 129 | + case *BatchOperationSignal: |
| 130 | + that1 = t |
| 131 | + case BatchOperationSignal: |
| 132 | + that1 = &t |
| 133 | + default: |
| 134 | + return false |
| 135 | + } |
| 136 | + |
| 137 | + return proto.Equal(this, that1) |
| 138 | +} |
| 139 | + |
| 140 | +// Marshal an object of type BatchOperationCancellation to the protobuf v3 wire format |
| 141 | +func (val *BatchOperationCancellation) Marshal() ([]byte, error) { |
| 142 | + return proto.Marshal(val) |
| 143 | +} |
| 144 | + |
| 145 | +// Unmarshal an object of type BatchOperationCancellation from the protobuf v3 wire format |
| 146 | +func (val *BatchOperationCancellation) Unmarshal(buf []byte) error { |
| 147 | + return proto.Unmarshal(buf, val) |
| 148 | +} |
| 149 | + |
| 150 | +// Size returns the size of the object, in bytes, once serialized |
| 151 | +func (val *BatchOperationCancellation) Size() int { |
| 152 | + return proto.Size(val) |
| 153 | +} |
| 154 | + |
| 155 | +// Equal returns whether two BatchOperationCancellation values are equivalent by recursively |
| 156 | +// comparing the message's fields. |
| 157 | +// For more information see the documentation for |
| 158 | +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal |
| 159 | +func (this *BatchOperationCancellation) Equal(that interface{}) bool { |
| 160 | + if that == nil { |
| 161 | + return this == nil |
| 162 | + } |
| 163 | + |
| 164 | + var that1 *BatchOperationCancellation |
| 165 | + switch t := that.(type) { |
| 166 | + case *BatchOperationCancellation: |
| 167 | + that1 = t |
| 168 | + case BatchOperationCancellation: |
| 169 | + that1 = &t |
| 170 | + default: |
| 171 | + return false |
| 172 | + } |
| 173 | + |
| 174 | + return proto.Equal(this, that1) |
| 175 | +} |
| 176 | + |
| 177 | +// Marshal an object of type BatchOperationDeletion to the protobuf v3 wire format |
| 178 | +func (val *BatchOperationDeletion) Marshal() ([]byte, error) { |
| 179 | + return proto.Marshal(val) |
| 180 | +} |
| 181 | + |
| 182 | +// Unmarshal an object of type BatchOperationDeletion from the protobuf v3 wire format |
| 183 | +func (val *BatchOperationDeletion) Unmarshal(buf []byte) error { |
| 184 | + return proto.Unmarshal(buf, val) |
| 185 | +} |
| 186 | + |
| 187 | +// Size returns the size of the object, in bytes, once serialized |
| 188 | +func (val *BatchOperationDeletion) Size() int { |
| 189 | + return proto.Size(val) |
| 190 | +} |
| 191 | + |
| 192 | +// Equal returns whether two BatchOperationDeletion values are equivalent by recursively |
| 193 | +// comparing the message's fields. |
| 194 | +// For more information see the documentation for |
| 195 | +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal |
| 196 | +func (this *BatchOperationDeletion) Equal(that interface{}) bool { |
| 197 | + if that == nil { |
| 198 | + return this == nil |
| 199 | + } |
| 200 | + |
| 201 | + var that1 *BatchOperationDeletion |
| 202 | + switch t := that.(type) { |
| 203 | + case *BatchOperationDeletion: |
| 204 | + that1 = t |
| 205 | + case BatchOperationDeletion: |
| 206 | + that1 = &t |
| 207 | + default: |
| 208 | + return false |
| 209 | + } |
| 210 | + |
| 211 | + return proto.Equal(this, that1) |
| 212 | +} |
| 213 | + |
| 214 | +// Marshal an object of type BatchOperationReset to the protobuf v3 wire format |
| 215 | +func (val *BatchOperationReset) Marshal() ([]byte, error) { |
| 216 | + return proto.Marshal(val) |
| 217 | +} |
| 218 | + |
| 219 | +// Unmarshal an object of type BatchOperationReset from the protobuf v3 wire format |
| 220 | +func (val *BatchOperationReset) Unmarshal(buf []byte) error { |
| 221 | + return proto.Unmarshal(buf, val) |
| 222 | +} |
| 223 | + |
| 224 | +// Size returns the size of the object, in bytes, once serialized |
| 225 | +func (val *BatchOperationReset) Size() int { |
| 226 | + return proto.Size(val) |
| 227 | +} |
| 228 | + |
| 229 | +// Equal returns whether two BatchOperationReset values are equivalent by recursively |
| 230 | +// comparing the message's fields. |
| 231 | +// For more information see the documentation for |
| 232 | +// https://pkg.go.dev/google.golang.org/protobuf/proto#Equal |
| 233 | +func (this *BatchOperationReset) Equal(that interface{}) bool { |
| 234 | + if that == nil { |
| 235 | + return this == nil |
| 236 | + } |
| 237 | + |
| 238 | + var that1 *BatchOperationReset |
| 239 | + switch t := that.(type) { |
| 240 | + case *BatchOperationReset: |
| 241 | + that1 = t |
| 242 | + case BatchOperationReset: |
| 243 | + that1 = &t |
| 244 | + default: |
| 245 | + return false |
| 246 | + } |
| 247 | + |
| 248 | + return proto.Equal(this, that1) |
| 249 | +} |
0 commit comments