public void MergeFrom(TreeEvent other) { if (other == null) { return; } switch (other.KindCase) { case KindOneofCase.Created: if (Created == null) { Created = new global::Com.DigitalAsset.Ledger.Api.V1.CreatedEvent(); } Created.MergeFrom(other.Created); break; case KindOneofCase.Exercised: if (Exercised == null) { Exercised = new global::Com.DigitalAsset.Ledger.Api.V1.ExercisedEvent(); } Exercised.MergeFrom(other.Exercised); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (kindCase_ == KindOneofCase.Created) { hash ^= Created.GetHashCode(); } if (kindCase_ == KindOneofCase.Exercised) { hash ^= Exercised.GetHashCode(); } hash ^= (int)kindCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }