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 (eventCase_ == EventOneofCase.ProfileEvent) { hash ^= ProfileEvent.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.ParentEventId.Length != 0) { ParentEventId = other.ParentEventId; } if (other.createTime_ != null) { if (createTime_ == null) { createTime_ = new global::Google.Protobuf.WellKnownTypes.Timestamp(); } CreateTime.MergeFrom(other.CreateTime); } extraInfo_.Add(other.extraInfo_); switch (other.EventCase) { case EventOneofCase.JobEvent: if (JobEvent == null) { JobEvent = new global::Google.Cloud.Talent.V4Beta1.JobEvent(); } JobEvent.MergeFrom(other.JobEvent); break; case EventOneofCase.ProfileEvent: if (ProfileEvent == null) { ProfileEvent = new global::Google.Cloud.Talent.V4Beta1.ProfileEvent(); } ProfileEvent.MergeFrom(other.ProfileEvent); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }