Lines Matching defs:other
99 public TestProto3Optional(TestProto3Optional other) : this() {
100 _hasBits0 = other._hasBits0;
101 optionalInt32_ = other.optionalInt32_;
102 optionalInt64_ = other.optionalInt64_;
103 optionalUint32_ = other.optionalUint32_;
104 optionalUint64_ = other.optionalUint64_;
105 optionalSint32_ = other.optionalSint32_;
106 optionalSint64_ = other.optionalSint64_;
107 optionalFixed32_ = other.optionalFixed32_;
108 optionalFixed64_ = other.optionalFixed64_;
109 optionalSfixed32_ = other.optionalSfixed32_;
110 optionalSfixed64_ = other.optionalSfixed64_;
111 optionalFloat_ = other.optionalFloat_;
112 optionalDouble_ = other.optionalDouble_;
113 optionalBool_ = other.optionalBool_;
114 optionalString_ = other.optionalString_;
115 optionalBytes_ = other.optionalBytes_;
116 optionalCord_ = other.optionalCord_;
117 optionalNestedMessage_ = other.optionalNestedMessage_ != null ? other.optionalNestedMessage_.Clone() : null;
118 lazyNestedMessage_ = other.lazyNestedMessage_ != null ? other.lazyNestedMessage_.Clone() : null;
119 optionalNestedEnum_ = other.optionalNestedEnum_;
120 singularInt32_ = other.singularInt32_;
121 singularInt64_ = other.singularInt64_;
122 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
552 public override bool Equals(object other) {
553 return Equals(other as TestProto3Optional);
557 public bool Equals(TestProto3Optional other) {
558 if (ReferenceEquals(other, null)) {
561 if (ReferenceEquals(other, this)) {
564 if (OptionalInt32 != other.OptionalInt32) return false;
565 if (OptionalInt64 != other.OptionalInt64) return false;
566 if (OptionalUint32 != other.OptionalUint32) return false;
567 if (OptionalUint64 != other.OptionalUint64) return false;
568 if (OptionalSint32 != other.OptionalSint32) return false;
569 if (OptionalSint64 != other.OptionalSint64) return false;
570 if (OptionalFixed32 != other.OptionalFixed32) return false;
571 if (OptionalFixed64 != other.OptionalFixed64) return false;
572 if (OptionalSfixed32 != other.OptionalSfixed32) return false;
573 if (OptionalSfixed64 != other.OptionalSfixed64) return false;
574 if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OptionalFloat, other.OptionalFloat)) return false;
575 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OptionalDouble, other.OptionalDouble)) return false;
576 if (OptionalBool != other.OptionalBool) return false;
577 if (OptionalString != other.OptionalString) return false;
578 if (OptionalBytes != other.OptionalBytes) return false;
579 if (OptionalCord != other.OptionalCord) return false;
580 if (!object.Equals(OptionalNestedMessage, other.OptionalNestedMessage)) return false;
581 if (!object.Equals(LazyNestedMessage, other.LazyNestedMessage)) return false;
582 if (OptionalNestedEnum != other.OptionalNestedEnum) return false;
583 if (SingularInt32 != other.SingularInt32) return false;
584 if (SingularInt64 != other.SingularInt64) return false;
585 return Equals(_unknownFields, other._unknownFields);
884 public void MergeFrom(TestProto3Optional other) {
885 if (other == null) {
888 if (other.HasOptionalInt32) {
889 OptionalInt32 = other.OptionalInt32;
891 if (other.HasOptionalInt64) {
892 OptionalInt64 = other.OptionalInt64;
894 if (other.HasOptionalUint32) {
895 OptionalUint32 = other.OptionalUint32;
897 if (other.HasOptionalUint64) {
898 OptionalUint64 = other.OptionalUint64;
900 if (other.HasOptionalSint32) {
901 OptionalSint32 = other.OptionalSint32;
903 if (other.HasOptionalSint64) {
904 OptionalSint64 = other.OptionalSint64;
906 if (other.HasOptionalFixed32) {
907 OptionalFixed32 = other.OptionalFixed32;
909 if (other.HasOptionalFixed64) {
910 OptionalFixed64 = other.OptionalFixed64;
912 if (other.HasOptionalSfixed32) {
913 OptionalSfixed32 = other.OptionalSfixed32;
915 if (other.HasOptionalSfixed64) {
916 OptionalSfixed64 = other.OptionalSfixed64;
918 if (other.HasOptionalFloat) {
919 OptionalFloat = other.OptionalFloat;
921 if (other.HasOptionalDouble) {
922 OptionalDouble = other.OptionalDouble;
924 if (other.HasOptionalBool) {
925 OptionalBool = other.OptionalBool;
927 if (other.HasOptionalString) {
928 OptionalString = other.OptionalString;
930 if (other.HasOptionalBytes) {
931 OptionalBytes = other.OptionalBytes;
933 if (other.HasOptionalCord) {
934 OptionalCord = other.OptionalCord;
936 if (other.optionalNestedMessage_ != null) {
940 OptionalNestedMessage.MergeFrom(other.OptionalNestedMessage);
942 if (other.lazyNestedMessage_ != null) {
946 LazyNestedMessage.MergeFrom(other.LazyNestedMessage);
948 if (other.HasOptionalNestedEnum) {
949 OptionalNestedEnum = other.OptionalNestedEnum;
951 if (other.SingularInt32 != 0) {
952 SingularInt32 = other.SingularInt32;
954 if (other.SingularInt64 != 0L) {
955 SingularInt64 = other.SingularInt64;
957 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1214 public NestedMessage(NestedMessage other) : this() {
1215 _hasBits0 = other._hasBits0;
1216 bb_ = other.bb_;
1217 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1253 public override bool Equals(object other) {
1254 return Equals(other as NestedMessage);
1258 public bool Equals(NestedMessage other) {
1259 if (ReferenceEquals(other, null)) {
1262 if (ReferenceEquals(other, this)) {
1265 if (Bb != other.Bb) return false;
1266 return Equals(_unknownFields, other._unknownFields);
1325 public void MergeFrom(NestedMessage other) {
1326 if (other == null) {
1329 if (other.HasBb) {
1330 Bb = other.Bb;
1332 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);