public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { PostId = input.ReadInt32(); break; } case 18: { Description = input.ReadString(); break; } case 26: { Domain = input.ReadString(); break; } case 34: { if (date_ == null) { Date = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } input.ReadMessage(Date); break; } case 42: { if (comments_ == null) { Comments = new global::PostCommentService.Comments(); } input.ReadMessage(Comments); break; } } } }
public void MergeFrom(Post other) { if (other == null) { return; } if (other.PostId != 0) { PostId = other.PostId; } if (other.Description.Length != 0) { Description = other.Description; } if (other.Domain.Length != 0) { Domain = other.Domain; } if (other.date_ != null) { if (date_ == null) { Date = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } Date.MergeFrom(other.Date); } if (other.comments_ != null) { if (comments_ == null) { Comments = new global::PostCommentService.Comments(); } Comments.MergeFrom(other.Comments); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }