Lines Matching refs:other

290     public TestAllTypesProto3(TestAllTypesProto3 other) : this() {
291 optionalInt32_ = other.optionalInt32_;
292 optionalInt64_ = other.optionalInt64_;
293 optionalUint32_ = other.optionalUint32_;
294 optionalUint64_ = other.optionalUint64_;
295 optionalSint32_ = other.optionalSint32_;
296 optionalSint64_ = other.optionalSint64_;
297 optionalFixed32_ = other.optionalFixed32_;
298 optionalFixed64_ = other.optionalFixed64_;
299 optionalSfixed32_ = other.optionalSfixed32_;
300 optionalSfixed64_ = other.optionalSfixed64_;
301 optionalFloat_ = other.optionalFloat_;
302 optionalDouble_ = other.optionalDouble_;
303 optionalBool_ = other.optionalBool_;
304 optionalString_ = other.optionalString_;
305 optionalBytes_ = other.optionalBytes_;
306 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
307 optionalForeignMessage_ = other.optionalForeignMessage_ != null ? other.optionalForeignMessage_.Clone() : null;
308 optionalNestedEnum_ = other.optionalNestedEnum_;
309 optionalForeignEnum_ = other.optionalForeignEnum_;
310 optionalAliasedEnum_ = other.optionalAliasedEnum_;
311 optionalStringPiece_ = other.optionalStringPiece_;
312 optionalCord_ = other.optionalCord_;
313 recursiveMessage_ = other.recursiveMessage_ != null ? other.recursiveMessage_.Clone() : null;
314 repeatedInt32_ = other.repeatedInt32_.Clone();
315 repeatedInt64_ = other.repeatedInt64_.Clone();
316 repeatedUint32_ = other.repeatedUint32_.Clone();
317 repeatedUint64_ = other.repeatedUint64_.Clone();
318 repeatedSint32_ = other.repeatedSint32_.Clone();
319 repeatedSint64_ = other.repeatedSint64_.Clone();
320 repeatedFixed32_ = other.repeatedFixed32_.Clone();
321 repeatedFixed64_ = other.repeatedFixed64_.Clone();
322 repeatedSfixed32_ = other.repeatedSfixed32_.Clone();
323 repeatedSfixed64_ = other.repeatedSfixed64_.Clone();
324 repeatedFloat_ = other.repeatedFloat_.Clone();
325 repeatedDouble_ = other.repeatedDouble_.Clone();
326 repeatedBool_ = other.repeatedBool_.Clone();
327 repeatedString_ = other.repeatedString_.Clone();
328 repeatedBytes_ = other.repeatedBytes_.Clone();
329 repeatedNestedMessage_ = other.repeatedNestedMessage_.Clone();
330 repeatedForeignMessage_ = other.repeatedForeignMessage_.Clone();
331 repeatedNestedEnum_ = other.repeatedNestedEnum_.Clone();
332 repeatedForeignEnum_ = other.repeatedForeignEnum_.Clone();
333 repeatedStringPiece_ = other.repeatedStringPiece_.Clone();
334 repeatedCord_ = other.repeatedCord_.Clone();
335 packedInt32_ = other.packedInt32_.Clone();
336 packedInt64_ = other.packedInt64_.Clone();
337 packedUint32_ = other.packedUint32_.Clone();
338 packedUint64_ = other.packedUint64_.Clone();
339 packedSint32_ = other.packedSint32_.Clone();
340 packedSint64_ = other.packedSint64_.Clone();
341 packedFixed32_ = other.packedFixed32_.Clone();
342 packedFixed64_ = other.packedFixed64_.Clone();
343 packedSfixed32_ = other.packedSfixed32_.Clone();
344 packedSfixed64_ = other.packedSfixed64_.Clone();
345 packedFloat_ = other.packedFloat_.Clone();
346 packedDouble_ = other.packedDouble_.Clone();
347 packedBool_ = other.packedBool_.Clone();
348 packedNestedEnum_ = other.packedNestedEnum_.Clone();
349 unpackedInt32_ = other.unpackedInt32_.Clone();
350 unpackedInt64_ = other.unpackedInt64_.Clone();
351 unpackedUint32_ = other.unpackedUint32_.Clone();
352 unpackedUint64_ = other.unpackedUint64_.Clone();
353 unpackedSint32_ = other.unpackedSint32_.Clone();
354 unpackedSint64_ = other.unpackedSint64_.Clone();
355 unpackedFixed32_ = other.unpackedFixed32_.Clone();
356 unpackedFixed64_ = other.unpackedFixed64_.Clone();
357 unpackedSfixed32_ = other.unpackedSfixed32_.Clone();
358 unpackedSfixed64_ = other.unpackedSfixed64_.Clone();
359 unpackedFloat_ = other.unpackedFloat_.Clone();
360 unpackedDouble_ = other.unpackedDouble_.Clone();
361 unpackedBool_ = other.unpackedBool_.Clone();
362 unpackedNestedEnum_ = other.unpackedNestedEnum_.Clone();
363 mapInt32Int32_ = other.mapInt32Int32_.Clone();
364 mapInt64Int64_ = other.mapInt64Int64_.Clone();
365 mapUint32Uint32_ = other.mapUint32Uint32_.Clone();
366 mapUint64Uint64_ = other.mapUint64Uint64_.Clone();
367 mapSint32Sint32_ = other.mapSint32Sint32_.Clone();
368 mapSint64Sint64_ = other.mapSint64Sint64_.Clone();
369 mapFixed32Fixed32_ = other.mapFixed32Fixed32_.Clone();
370 mapFixed64Fixed64_ = other.mapFixed64Fixed64_.Clone();
371 mapSfixed32Sfixed32_ = other.mapSfixed32Sfixed32_.Clone();
372 mapSfixed64Sfixed64_ = other.mapSfixed64Sfixed64_.Clone();
373 mapInt32Float_ = other.mapInt32Float_.Clone();
374 mapInt32Double_ = other.mapInt32Double_.Clone();
375 mapBoolBool_ = other.mapBoolBool_.Clone();
376 mapStringString_ = other.mapStringString_.Clone();
377 mapStringBytes_ = other.mapStringBytes_.Clone();
378 mapStringNestedMessage_ = other.mapStringNestedMessage_.Clone();
379 mapStringForeignMessage_ = other.mapStringForeignMessage_.Clone();
380 mapStringNestedEnum_ = other.mapStringNestedEnum_.Clone();
381 mapStringForeignEnum_ = other.mapStringForeignEnum_.Clone();
382 OptionalBoolWrapper = other.OptionalBoolWrapper;
383 OptionalInt32Wrapper = other.OptionalInt32Wrapper;
384 OptionalInt64Wrapper = other.OptionalInt64Wrapper;
385 OptionalUint32Wrapper = other.OptionalUint32Wrapper;
386 OptionalUint64Wrapper = other.OptionalUint64Wrapper;
387 OptionalFloatWrapper = other.OptionalFloatWrapper;
388 OptionalDoubleWrapper = other.OptionalDoubleWrapper;
389 OptionalStringWrapper = other.OptionalStringWrapper;
390 OptionalBytesWrapper = other.OptionalBytesWrapper;
391 repeatedBoolWrapper_ = other.repeatedBoolWrapper_.Clone();
392 repeatedInt32Wrapper_ = other.repeatedInt32Wrapper_.Clone();
393 repeatedInt64Wrapper_ = other.repeatedInt64Wrapper_.Clone();
394 repeatedUint32Wrapper_ = other.repeatedUint32Wrapper_.Clone();
395 repeatedUint64Wrapper_ = other.repeatedUint64Wrapper_.Clone();
396 repeatedFloatWrapper_ = other.repeatedFloatWrapper_.Clone();
397 repeatedDoubleWrapper_ = other.repeatedDoubleWrapper_.Clone();
398 repeatedStringWrapper_ = other.repeatedStringWrapper_.Clone();
399 repeatedBytesWrapper_ = other.repeatedBytesWrapper_.Clone();
400 optionalDuration_ = other.optionalDuration_ != null ? other.optionalDuration_.Clone() : null;
401 optionalTimestamp_ = other.optionalTimestamp_ != null ? other.optionalTimestamp_.Clone() : null;
402 optionalFieldMask_ = other.optionalFieldMask_ != null ? other.optionalFieldMask_.Clone() : null;
403 optionalStruct_ = other.optionalStruct_ != null ? other.optionalStruct_.Clone() : null;
404 optionalAny_ = other.optionalAny_ != null ? other.optionalAny_.Clone() : null;
405 optionalValue_ = other.optionalValue_ != null ? other.optionalValue_.Clone() : null;
406 repeatedDuration_ = other.repeatedDuration_.Clone();
407 repeatedTimestamp_ = other.repeatedTimestamp_.Clone();
408 repeatedFieldmask_ = other.repeatedFieldmask_.Clone();
409 repeatedStruct_ = other.repeatedStruct_.Clone();
410 repeatedAny_ = other.repeatedAny_.Clone();
411 repeatedValue_ = other.repeatedValue_.Clone();
412 repeatedListValue_ = other.repeatedListValue_.Clone();
413 fieldname1_ = other.fieldname1_;
414 fieldName2_ = other.fieldName2_;
415 FieldName3_ = other.FieldName3_;
416 fieldName4_ = other.fieldName4_;
417 field0Name5_ = other.field0Name5_;
418 field0Name6_ = other.field0Name6_;
419 fieldName7_ = other.fieldName7_;
420 fieldName8_ = other.fieldName8_;
421 fieldName9_ = other.fieldName9_;
422 fieldName10_ = other.fieldName10_;
423 fIELDNAME11_ = other.fIELDNAME11_;
424 fIELDName12_ = other.fIELDName12_;
425 FieldName13_ = other.FieldName13_;
426 FieldName14_ = other.FieldName14_;
427 fieldName15_ = other.fieldName15_;
428 fieldName16_ = other.fieldName16_;
429 fieldName17_ = other.fieldName17_;
430 fieldName18_ = other.fieldName18_;
431 switch (other.OneofFieldCase) {
433 OneofUint32 = other.OneofUint32;
436 OneofNestedMessage = other.OneofNestedMessage.Clone();
439 OneofString = other.OneofString;
442 OneofBytes = other.OneofBytes;
445 OneofBool = other.OneofBool;
448 OneofUint64 = other.OneofUint64;
451 OneofFloat = other.OneofFloat;
454 OneofDouble = other.OneofDouble;
457 OneofEnum = other.OneofEnum;
461 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2091 public override bool Equals(object other) {
2092 return Equals(other as TestAllTypesProto3);
2096 public bool Equals(TestAllTypesProto3 other) {
2097 if (ReferenceEquals(other, null)) {
2100 if (ReferenceEquals(other, this)) {
2103 if (OptionalInt32 != other.OptionalInt32) return false;
2104 if (OptionalInt64 != other.OptionalInt64) return false;
2105 if (OptionalUint32 != other.OptionalUint32) return false;
2106 if (OptionalUint64 != other.OptionalUint64) return false;
2107 if (OptionalSint32 != other.OptionalSint32) return false;
2108 if (OptionalSint64 != other.OptionalSint64) return false;
2109 if (OptionalFixed32 != other.OptionalFixed32) return false;
2110 if (OptionalFixed64 != other.OptionalFixed64) return false;
2111 if (OptionalSfixed32 != other.OptionalSfixed32) return false;
2112 if (OptionalSfixed64 != other.OptionalSfixed64) return false;
2113 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
2114 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
2115 if (OptionalBool != other.OptionalBool) return false;
2116 if (OptionalString != other.OptionalString) return false;
2117 if (OptionalBytes != other.OptionalBytes) return false;
2118 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
2119 if (!object.Equals(OptionalForeignMessage, other.OptionalForeignMessage)) return false;
2120 if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
2121 if (OptionalForeignEnum != other.OptionalForeignEnum) return false;
2122 if (OptionalAliasedEnum != other.OptionalAliasedEnum) return false;
2123 if (OptionalStringPiece != other.OptionalStringPiece) return false;
2124 if (OptionalCord != other.OptionalCord) return false;
2125 if (!object.Equals(RecursiveMessage, other.RecursiveMessage)) return false;
2126 if(!repeatedInt32_.Equals(other.repeatedInt32_)) return false;
2127 if(!repeatedInt64_.Equals(other.repeatedInt64_)) return false;
2128 if(!repeatedUint32_.Equals(other.repeatedUint32_)) return false;
2129 if(!repeatedUint64_.Equals(other.repeatedUint64_)) return false;
2130 if(!repeatedSint32_.Equals(other.repeatedSint32_)) return false;
2131 if(!repeatedSint64_.Equals(other.repeatedSint64_)) return false;
2132 if(!repeatedFixed32_.Equals(other.repeatedFixed32_)) return false;
2133 if(!repeatedFixed64_.Equals(other.repeatedFixed64_)) return false;
2134 if(!repeatedSfixed32_.Equals(other.repeatedSfixed32_)) return false;
2135 if(!repeatedSfixed64_.Equals(other.repeatedSfixed64_)) return false;
2136 if(!repeatedFloat_.Equals(other.repeatedFloat_)) return false;
2137 if(!repeatedDouble_.Equals(other.repeatedDouble_)) return false;
2138 if(!repeatedBool_.Equals(other.repeatedBool_)) return false;
2139 if(!repeatedString_.Equals(other.repeatedString_)) return false;
2140 if(!repeatedBytes_.Equals(other.repeatedBytes_)) return false;
2141 if(!repeatedNestedMessage_.Equals(other.repeatedNestedMessage_)) return false;
2142 if(!repeatedForeignMessage_.Equals(other.repeatedForeignMessage_)) return false;
2143 if(!repeatedNestedEnum_.Equals(other.repeatedNestedEnum_)) return false;
2144 if(!repeatedForeignEnum_.Equals(other.repeatedForeignEnum_)) return false;
2145 if(!repeatedStringPiece_.Equals(other.repeatedStringPiece_)) return false;
2146 if(!repeatedCord_.Equals(other.repeatedCord_)) return false;
2147 if(!packedInt32_.Equals(other.packedInt32_)) return false;
2148 if(!packedInt64_.Equals(other.packedInt64_)) return false;
2149 if(!packedUint32_.Equals(other.packedUint32_)) return false;
2150 if(!packedUint64_.Equals(other.packedUint64_)) return false;
2151 if(!packedSint32_.Equals(other.packedSint32_)) return false;
2152 if(!packedSint64_.Equals(other.packedSint64_)) return false;
2153 if(!packedFixed32_.Equals(other.packedFixed32_)) return false;
2154 if(!packedFixed64_.Equals(other.packedFixed64_)) return false;
2155 if(!packedSfixed32_.Equals(other.packedSfixed32_)) return false;
2156 if(!packedSfixed64_.Equals(other.packedSfixed64_)) return false;
2157 if(!packedFloat_.Equals(other.packedFloat_)) return false;
2158 if(!packedDouble_.Equals(other.packedDouble_)) return false;
2159 if(!packedBool_.Equals(other.packedBool_)) return false;
2160 if(!packedNestedEnum_.Equals(other.packedNestedEnum_)) return false;
2161 if(!unpackedInt32_.Equals(other.unpackedInt32_)) return false;
2162 if(!unpackedInt64_.Equals(other.unpackedInt64_)) return false;
2163 if(!unpackedUint32_.Equals(other.unpackedUint32_)) return false;
2164 if(!unpackedUint64_.Equals(other.unpackedUint64_)) return false;
2165 if(!unpackedSint32_.Equals(other.unpackedSint32_)) return false;
2166 if(!unpackedSint64_.Equals(other.unpackedSint64_)) return false;
2167 if(!unpackedFixed32_.Equals(other.unpackedFixed32_)) return false;
2168 if(!unpackedFixed64_.Equals(other.unpackedFixed64_)) return false;
2169 if(!unpackedSfixed32_.Equals(other.unpackedSfixed32_)) return false;
2170 if(!unpackedSfixed64_.Equals(other.unpackedSfixed64_)) return false;
2171 if(!unpackedFloat_.Equals(other.unpackedFloat_)) return false;
2172 if(!unpackedDouble_.Equals(other.unpackedDouble_)) return false;
2173 if(!unpackedBool_.Equals(other.unpackedBool_)) return false;
2174 if(!unpackedNestedEnum_.Equals(other.unpackedNestedEnum_)) return false;
2175 if (!MapInt32Int32.Equals(other.MapInt32Int32)) return false;
2176 if (!MapInt64Int64.Equals(other.MapInt64Int64)) return false;
2177 if (!MapUint32Uint32.Equals(other.MapUint32Uint32)) return false;
2178 if (!MapUint64Uint64.Equals(other.MapUint64Uint64)) return false;
2179 if (!MapSint32Sint32.Equals(other.MapSint32Sint32)) return false;
2180 if (!MapSint64Sint64.Equals(other.MapSint64Sint64)) return false;
2181 if (!MapFixed32Fixed32.Equals(other.MapFixed32Fixed32)) return false;
2182 if (!MapFixed64Fixed64.Equals(other.MapFixed64Fixed64)) return false;
2183 if (!MapSfixed32Sfixed32.Equals(other.MapSfixed32Sfixed32)) return false;
2184 if (!MapSfixed64Sfixed64.Equals(other.MapSfixed64Sfixed64)) return false;
2185 if (!MapInt32Float.Equals(other.MapInt32Float)) return false;
2186 if (!MapInt32Double.Equals(other.MapInt32Double)) return false;
2187 if (!MapBoolBool.Equals(other.MapBoolBool)) return false;
2188 if (!MapStringString.Equals(other.MapStringString)) return false;
2189 if (!MapStringBytes.Equals(other.MapStringBytes)) return false;
2190 if (!MapStringNestedMessage.Equals(other.MapStringNestedMessage)) return false;
2191 if (!MapStringForeignMessage.Equals(other.MapStringForeignMessage)) return false;
2192 if (!MapStringNestedEnum.Equals(other.MapStringNestedEnum)) return false;
2193 if (!MapStringForeignEnum.Equals(other.MapStringForeignEnum)) return false;
2194 if (OneofUint32 != other.OneofUint32) return false;
2195 if (!object.Equals(OneofNestedMessage, other.OneofNestedMessage)) return false;
2196 if (OneofString != other.OneofString) return false;
2197 if (OneofBytes != other.OneofBytes) return false;
2198 if (OneofBool != other.OneofBool) return false;
2199 if (OneofUint64 != other.OneofUint64) return false;
2200 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OneofFloat, other.OneofFloat)) return false;
2201 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OneofDouble, other.OneofDouble)) return false;
2202 if (OneofEnum != other.OneofEnum) return false;
2203 if (OptionalBoolWrapper != other.OptionalBoolWrapper) return false;
2204 if (OptionalInt32Wrapper != other.OptionalInt32Wrapper) return false;
2205 if (OptionalInt64Wrapper != other.OptionalInt64Wrapper) return false;
2206 if (OptionalUint32Wrapper != other.OptionalUint32Wrapper) return false;
2207 if (OptionalUint64Wrapper != other.OptionalUint64Wrapper) return false;
2208 if (!pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.Equals(OptionalFloatWrapper, other.OptionalFloatWrapper)) return false;
2209 if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(OptionalDoubleWrapper, other.OptionalDoubleWrapper)) return false;
2210 if (OptionalStringWrapper != other.OptionalStringWrapper) return false;
2211 if (OptionalBytesWrapper != other.OptionalBytesWrapper) return false;
2212 if(!repeatedBoolWrapper_.Equals(other.repeatedBoolWrapper_)) return false;
2213 if(!repeatedInt32Wrapper_.Equals(other.repeatedInt32Wrapper_)) return false;
2214 if(!repeatedInt64Wrapper_.Equals(other.repeatedInt64Wrapper_)) return false;
2215 if(!repeatedUint32Wrapper_.Equals(other.repeatedUint32Wrapper_)) return false;
2216 if(!repeatedUint64Wrapper_.Equals(other.repeatedUint64Wrapper_)) return false;
2217 if(!repeatedFloatWrapper_.Equals(other.repeatedFloatWrapper_)) return false;
2218 if(!repeatedDoubleWrapper_.Equals(other.repeatedDoubleWrapper_)) return false;
2219 if(!repeatedStringWrapper_.Equals(other.repeatedStringWrapper_)) return false;
2220 if(!repeatedBytesWrapper_.Equals(other.repeatedBytesWrapper_)) return false;
2221 if (!object.Equals(OptionalDuration, other.OptionalDuration)) return false;
2222 if (!object.Equals(OptionalTimestamp, other.OptionalTimestamp)) return false;
2223 if (!object.Equals(OptionalFieldMask, other.OptionalFieldMask)) return false;
2224 if (!object.Equals(OptionalStruct, other.OptionalStruct)) return false;
2225 if (!object.Equals(OptionalAny, other.OptionalAny)) return false;
2226 if (!object.Equals(OptionalValue, other.OptionalValue)) return false;
2227 if(!repeatedDuration_.Equals(other.repeatedDuration_)) return false;
2228 if(!repeatedTimestamp_.Equals(other.repeatedTimestamp_)) return false;
2229 if(!repeatedFieldmask_.Equals(other.repeatedFieldmask_)) return false;
2230 if(!repeatedStruct_.Equals(other.repeatedStruct_)) return false;
2231 if(!repeatedAny_.Equals(other.repeatedAny_)) return false;
2232 if(!repeatedValue_.Equals(other.repeatedValue_)) return false;
2233 if(!repeatedListValue_.Equals(other.repeatedListValue_)) return false;
2234 if (Fieldname1 != other.Fieldname1) return false;
2235 if (FieldName2 != other.FieldName2) return false;
2236 if (FieldName3 != other.FieldName3) return false;
2237 if (FieldName4 != other.FieldName4) return false;
2238 if (Field0Name5 != other.Field0Name5) return false;
2239 if (Field0Name6 != other.Field0Name6) return false;
2240 if (FieldName7 != other.FieldName7) return false;
2241 if (FieldName8 != other.FieldName8) return false;
2242 if (FieldName9 != other.FieldName9) return false;
2243 if (FieldName10 != other.FieldName10) return false;
2244 if (FIELDNAME11 != other.FIELDNAME11) return false;
2245 if (FIELDName12 != other.FIELDName12) return false;
2246 if (FieldName13 != other.FieldName13) return false;
2247 if (FieldName14 != other.FieldName14) return false;
2248 if (FieldName15 != other.FieldName15) return false;
2249 if (FieldName16 != other.FieldName16) return false;
2250 if (FieldName17 != other.FieldName17) return false;
2251 if (FieldName18 != other.FieldName18) return false;
2252 if (OneofFieldCase != other.OneofFieldCase) return false;
2253 return Equals(_unknownFields, other._unknownFields);
3399 public void MergeFrom(TestAllTypesProto3 other) {
3400 if (other == null) {
3403 if (other.OptionalInt32 != 0) {
3404 OptionalInt32 = other.OptionalInt32;
3406 if (other.OptionalInt64 != 0L) {
3407 OptionalInt64 = other.OptionalInt64;
3409 if (other.OptionalUint32 != 0) {
3410 OptionalUint32 = other.OptionalUint32;
3412 if (other.OptionalUint64 != 0UL) {
3413 OptionalUint64 = other.OptionalUint64;
3415 if (other.OptionalSint32 != 0) {
3416 OptionalSint32 = other.OptionalSint32;
3418 if (other.OptionalSint64 != 0L) {
3419 OptionalSint64 = other.OptionalSint64;
3421 if (other.OptionalFixed32 != 0) {
3422 OptionalFixed32 = other.OptionalFixed32;
3424 if (other.OptionalFixed64 != 0UL) {
3425 OptionalFixed64 = other.OptionalFixed64;
3427 if (other.OptionalSfixed32 != 0) {
3428 OptionalSfixed32 = other.OptionalSfixed32;
3430 if (other.OptionalSfixed64 != 0L) {
3431 OptionalSfixed64 = other.OptionalSfixed64;
3433 if (other.OptionalFloat != 0F) {
3434 OptionalFloat = other.OptionalFloat;
3436 if (other.OptionalDouble != 0D) {
3437 OptionalDouble = other.OptionalDouble;
3439 if (other.OptionalBool != false) {
3440 OptionalBool = other.OptionalBool;
3442 if (other.OptionalString.Length != 0) {
3443 OptionalString = other.OptionalString;
3445 if (other.OptionalBytes.Length != 0) {
3446 OptionalBytes = other.OptionalBytes;
3448 if (other.optionalNestedMessage_ != null) {
3452 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
3454 if (other.optionalForeignMessage_ != null) {
3458 OptionalForeignMessage.MergeFrom(other.OptionalForeignMessage);
3460 if (other.OptionalNestedEnum != global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.NestedEnum.Foo) {
3461 OptionalNestedEnum = other.OptionalNestedEnum;
3463 if (other.OptionalForeignEnum != global::ProtobufTestMessages.Proto3.ForeignEnum.ForeignFoo) {
3464 OptionalForeignEnum = other.OptionalForeignEnum;
3466 if (other.OptionalAliasedEnum != global::ProtobufTestMessages.Proto3.TestAllTypesProto3.Types.AliasedEnum.AliasFoo) {
3467 OptionalAliasedEnum = other.OptionalAliasedEnum;
3469 if (other.OptionalStringPiece.Length != 0) {
3470 OptionalStringPiece = other.OptionalStringPiece;
3472 if (other.OptionalCord.Length != 0) {
3473 OptionalCord = other.OptionalCord;
3475 if (other.recursiveMessage_ != null) {
3479 RecursiveMessage.MergeFrom(other.RecursiveMessage);
3481 repeatedInt32_.Add(other.repeatedInt32_);
3482 repeatedInt64_.Add(other.repeatedInt64_);
3483 repeatedUint32_.Add(other.repeatedUint32_);
3484 repeatedUint64_.Add(other.repeatedUint64_);
3485 repeatedSint32_.Add(other.repeatedSint32_);
3486 repeatedSint64_.Add(other.repeatedSint64_);
3487 repeatedFixed32_.Add(other.repeatedFixed32_);
3488 repeatedFixed64_.Add(other.repeatedFixed64_);
3489 repeatedSfixed32_.Add(other.repeatedSfixed32_);
3490 repeatedSfixed64_.Add(other.repeatedSfixed64_);
3491 repeatedFloat_.Add(other.repeatedFloat_);
3492 repeatedDouble_.Add(other.repeatedDouble_);
3493 repeatedBool_.Add(other.repeatedBool_);
3494 repeatedString_.Add(other.repeatedString_);
3495 repeatedBytes_.Add(other.repeatedBytes_);
3496 repeatedNestedMessage_.Add(other.repeatedNestedMessage_);
3497 repeatedForeignMessage_.Add(other.repeatedForeignMessage_);
3498 repeatedNestedEnum_.Add(other.repeatedNestedEnum_);
3499 repeatedForeignEnum_.Add(other.repeatedForeignEnum_);
3500 repeatedStringPiece_.Add(other.repeatedStringPiece_);
3501 repeatedCord_.Add(other.repeatedCord_);
3502 packedInt32_.Add(other.packedInt32_);
3503 packedInt64_.Add(other.packedInt64_);
3504 packedUint32_.Add(other.packedUint32_);
3505 packedUint64_.Add(other.packedUint64_);
3506 packedSint32_.Add(other.packedSint32_);
3507 packedSint64_.Add(other.packedSint64_);
3508 packedFixed32_.Add(other.packedFixed32_);
3509 packedFixed64_.Add(other.packedFixed64_);
3510 packedSfixed32_.Add(other.packedSfixed32_);
3511 packedSfixed64_.Add(other.packedSfixed64_);
3512 packedFloat_.Add(other.packedFloat_);
3513 packedDouble_.Add(other.packedDouble_);
3514 packedBool_.Add(other.packedBool_);
3515 packedNestedEnum_.Add(other.packedNestedEnum_);
3516 unpackedInt32_.Add(other.unpackedInt32_);
3517 unpackedInt64_.Add(other.unpackedInt64_);
3518 unpackedUint32_.Add(other.unpackedUint32_);
3519 unpackedUint64_.Add(other.unpackedUint64_);
3520 unpackedSint32_.Add(other.unpackedSint32_);
3521 unpackedSint64_.Add(other.unpackedSint64_);
3522 unpackedFixed32_.Add(other.unpackedFixed32_);
3523 unpackedFixed64_.Add(other.unpackedFixed64_);
3524 unpackedSfixed32_.Add(other.unpackedSfixed32_);
3525 unpackedSfixed64_.Add(other.unpackedSfixed64_);
3526 unpackedFloat_.Add(other.unpackedFloat_);
3527 unpackedDouble_.Add(other.unpackedDouble_);
3528 unpackedBool_.Add(other.unpackedBool_);
3529 unpackedNestedEnum_.Add(other.unpackedNestedEnum_);
3530 mapInt32Int32_.Add(other.mapInt32Int32_);
3531 mapInt64Int64_.Add(other.mapInt64Int64_);
3532 mapUint32Uint32_.Add(other.mapUint32Uint32_);
3533 mapUint64Uint64_.Add(other.mapUint64Uint64_);
3534 mapSint32Sint32_.Add(other.mapSint32Sint32_);
3535 mapSint64Sint64_.Add(other.mapSint64Sint64_);
3536 mapFixed32Fixed32_.Add(other.mapFixed32Fixed32_);
3537 mapFixed64Fixed64_.Add(other.mapFixed64Fixed64_);
3538 mapSfixed32Sfixed32_.Add(other.mapSfixed32Sfixed32_);
3539 mapSfixed64Sfixed64_.Add(other.mapSfixed64Sfixed64_);
3540 mapInt32Float_.Add(other.mapInt32Float_);
3541 mapInt32Double_.Add(other.mapInt32Double_);
3542 mapBoolBool_.Add(other.mapBoolBool_);
3543 mapStringString_.Add(other.mapStringString_);
3544 mapStringBytes_.Add(other.mapStringBytes_);
3545 mapStringNestedMessage_.Add(other.mapStringNestedMessage_);
3546 mapStringForeignMessage_.Add(other.mapStringForeignMessage_);
3547 mapStringNestedEnum_.Add(other.mapStringNestedEnum_);
3548 mapStringForeignEnum_.Add(other.mapStringForeignEnum_);
3549 if (other.optionalBoolWrapper_ != null) {
3550 if (optionalBoolWrapper_ == null || other.OptionalBoolWrapper != false) {
3551 OptionalBoolWrapper = other.OptionalBoolWrapper;
3554 if (other.optionalInt32Wrapper_ != null) {
3555 if (optionalInt32Wrapper_ == null || other.OptionalInt32Wrapper != 0) {
3556 OptionalInt32Wrapper = other.OptionalInt32Wrapper;
3559 if (other.optionalInt64Wrapper_ != null) {
3560 if (optionalInt64Wrapper_ == null || other.OptionalInt64Wrapper != 0L) {
3561 OptionalInt64Wrapper = other.OptionalInt64Wrapper;
3564 if (other.optionalUint32Wrapper_ != null) {
3565 if (optionalUint32Wrapper_ == null || other.OptionalUint32Wrapper != 0) {
3566 OptionalUint32Wrapper = other.OptionalUint32Wrapper;
3569 if (other.optionalUint64Wrapper_ != null) {
3570 if (optionalUint64Wrapper_ == null || other.OptionalUint64Wrapper != 0UL) {
3571 OptionalUint64Wrapper = other.OptionalUint64Wrapper;
3574 if (other.optionalFloatWrapper_ != null) {
3575 if (optionalFloatWrapper_ == null || other.OptionalFloatWrapper != 0F) {
3576 OptionalFloatWrapper = other.OptionalFloatWrapper;
3579 if (other.optionalDoubleWrapper_ != null) {
3580 if (optionalDoubleWrapper_ == null || other.OptionalDoubleWrapper != 0D) {
3581 OptionalDoubleWrapper = other.OptionalDoubleWrapper;
3584 if (other.optionalStringWrapper_ != null) {
3585 if (optionalStringWrapper_ == null || other.OptionalStringWrapper != "") {
3586 OptionalStringWrapper = other.OptionalStringWrapper;
3589 if (other.optionalBytesWrapper_ != null) {
3590 if (optionalBytesWrapper_ == null || other.OptionalBytesWrapper != pb::ByteString.Empty) {
3591 OptionalBytesWrapper = other.OptionalBytesWrapper;
3594 repeatedBoolWrapper_.Add(other.repeatedBoolWrapper_);
3595 repeatedInt32Wrapper_.Add(other.repeatedInt32Wrapper_);
3596 repeatedInt64Wrapper_.Add(other.repeatedInt64Wrapper_);
3597 repeatedUint32Wrapper_.Add(other.repeatedUint32Wrapper_);
3598 repeatedUint64Wrapper_.Add(other.repeatedUint64Wrapper_);
3599 repeatedFloatWrapper_.Add(other.repeatedFloatWrapper_);
3600 repeatedDoubleWrapper_.Add(other.repeatedDoubleWrapper_);
3601 repeatedStringWrapper_.Add(other.repeatedStringWrapper_);
3602 repeatedBytesWrapper_.Add(other.repeatedBytesWrapper_);
3603 if (other.optionalDuration_ != null) {
3607 OptionalDuration.MergeFrom(other.OptionalDuration);
3609 if (other.optionalTimestamp_ != null) {
3613 OptionalTimestamp.MergeFrom(other.OptionalTimestamp);
3615 if (other.optionalFieldMask_ != null) {
3619 OptionalFieldMask.MergeFrom(other.OptionalFieldMask);
3621 if (other.optionalStruct_ != null) {
3625 OptionalStruct.MergeFrom(other.OptionalStruct);
3627 if (other.optionalAny_ != null) {
3631 OptionalAny.MergeFrom(other.OptionalAny);
3633 if (other.optionalValue_ != null) {
3637 OptionalValue.MergeFrom(other.OptionalValue);
3639 repeatedDuration_.Add(other.repeatedDuration_);
3640 repeatedTimestamp_.Add(other.repeatedTimestamp_);
3641 repeatedFieldmask_.Add(other.repeatedFieldmask_);
3642 repeatedStruct_.Add(other.repeatedStruct_);
3643 repeatedAny_.Add(other.repeatedAny_);
3644 repeatedValue_.Add(other.repeatedValue_);
3645 repeatedListValue_.Add(other.repeatedListValue_);
3646 if (other.Fieldname1 != 0) {
3647 Fieldname1 = other.Fieldname1;
3649 if (other.FieldName2 != 0) {
3650 FieldName2 = other.FieldName2;
3652 if (other.FieldName3 != 0) {
3653 FieldName3 = other.FieldName3;
3655 if (other.FieldName4 != 0) {
3656 FieldName4 = other.FieldName4;
3658 if (other.Field0Name5 != 0) {
3659 Field0Name5 = other.Field0Name5;
3661 if (other.Field0Name6 != 0) {
3662 Field0Name6 = other.Field0Name6;
3664 if (other.FieldName7 != 0) {
3665 FieldName7 = other.FieldName7;
3667 if (other.FieldName8 != 0) {
3668 FieldName8 = other.FieldName8;
3670 if (other.FieldName9 != 0) {
3671 FieldName9 = other.FieldName9;
3673 if (other.FieldName10 != 0) {
3674 FieldName10 = other.FieldName10;
3676 if (other.FIELDNAME11 != 0) {
3677 FIELDNAME11 = other.FIELDNAME11;
3679 if (other.FIELDName12 != 0) {
3680 FIELDName12 = other.FIELDName12;
3682 if (other.FieldName13 != 0) {
3683 FieldName13 = other.FieldName13;
3685 if (other.FieldName14 != 0) {
3686 FieldName14 = other.FieldName14;
3688 if (other.FieldName15 != 0) {
3689 FieldName15 = other.FieldName15;
3691 if (other.FieldName16 != 0) {
3692 FieldName16 = other.FieldName16;
3694 if (other.FieldName17 != 0) {
3695 FieldName17 = other.FieldName17;
3697 if (other.FieldName18 != 0) {
3698 FieldName18 = other.FieldName18;
3700 switch (other.OneofFieldCase) {
3702 OneofUint32 = other.OneofUint32;
3708 OneofNestedMessage.MergeFrom(other.OneofNestedMessage);
3711 OneofString = other.OneofString;
3714 OneofBytes = other.OneofBytes;
3717 OneofBool = other.OneofBool;
3720 OneofUint64 = other.OneofUint64;
3723 OneofFloat = other.OneofFloat;
3726 OneofDouble = other.OneofDouble;
3729 OneofEnum = other.OneofEnum;
3733 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5215 public NestedMessage(NestedMessage other) : this() {
5216 a_ = other.a_;
5217 corecursive_ = other.corecursive_ != null ? other.corecursive_.Clone() : null;
5218 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5249 public override bool Equals(object other) {
5250 return Equals(other as NestedMessage);
5254 public bool Equals(NestedMessage other) {
5255 if (ReferenceEquals(other, null)) {
5258 if (ReferenceEquals(other, this)) {
5261 if (A != other.A) return false;
5262 if (!object.Equals(Corecursive, other.Corecursive)) return false;
5263 return Equals(_unknownFields, other._unknownFields);
5334 public void MergeFrom(NestedMessage other) {
5335 if (other == null) {
5338 if (other.A != 0) {
5339 A = other.A;
5341 if (other.corecursive_ != null) {
5345 Corecursive.MergeFrom(other.Corecursive);
5347 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
5437 public ForeignMessage(ForeignMessage other) : this() {
5438 c_ = other.c_;
5439 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
5459 public override bool Equals(object other) {
5460 return Equals(other as ForeignMessage);
5464 public bool Equals(ForeignMessage other) {
5465 if (ReferenceEquals(other, null)) {
5468 if (ReferenceEquals(other, this)) {
5471 if (C != other.C) return false;
5472 return Equals(_unknownFields, other._unknownFields);
5531 public void MergeFrom(ForeignMessage other) {
5532 if (other == null) {
5535 if (other.C != 0) {
5536 C = other.C;
5538 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);