public void MergeFrom(PostModel 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.Length != 0) { Date = other.Date; } if (other.comments_ != null) { if (comments_ == null) { Comments = new global::GrpcService.CommentsList(); } Comments.MergeFrom(other.Comments); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
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: { Date = input.ReadString(); break; } case 42: { if (comments_ == null) { Comments = new global::GrpcService.CommentsList(); } input.ReadMessage(Comments); break; } } } }