public void MergeFrom(AddHolidaysReq other) { if (other == null) { return; } if (other.head_ != null) { if (head_ == null) { head_ = new global::Dnc.GrpcService.Protocol.MessageHead(); } Head.MergeFrom(other.Head); } if (other.HolidayName.Length != 0) { HolidayName = other.HolidayName; } if (other.StartDate.Length != 0) { StartDate = other.StartDate; } if (other.EndDate.Length != 0) { EndDate = other.EndDate; } }
public void MergeFrom(GetHolidaysReq other) { if (other == null) { return; } if (other.head_ != null) { if (head_ == null) { head_ = new global::Dnc.GrpcService.Protocol.MessageHead(); } Head.MergeFrom(other.Head); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (head_ == null) { head_ = new global::Dnc.GrpcService.Protocol.MessageHead(); } input.ReadMessage(head_); break; } case 18: { HolidayName = input.ReadString(); break; } case 26: { StartDate = input.ReadString(); break; } case 34: { EndDate = input.ReadString(); break; } } } }