public override int GetHashCode() { int hash = 1; if (RequestId.Length != 0) { hash ^= RequestId.GetHashCode(); } if (EventId.Length != 0) { hash ^= EventId.GetHashCode(); } if (createTime_ != null) { hash ^= CreateTime.GetHashCode(); } if (eventCase_ == EventOneofCase.JobEvent) { hash ^= JobEvent.GetHashCode(); } if (EventNotes.Length != 0) { hash ^= EventNotes.GetHashCode(); } hash ^= (int)eventCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(ClientEvent other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } if (other.EventId.Length != 0) { EventId = other.EventId; } if (other.createTime_ != null) { if (createTime_ == null) { CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreateTime.MergeFrom(other.CreateTime); } if (other.EventNotes.Length != 0) { EventNotes = other.EventNotes; } switch (other.EventCase) { case EventOneofCase.JobEvent: if (JobEvent == null) { JobEvent = new global::Google.Cloud.Talent.V4.JobEvent(); } JobEvent.MergeFrom(other.JobEvent); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }