public override int GetHashCode() { int hash = 1; if (expectationCase_ == ExpectationOneofCase.PlainExpectation) { hash ^= PlainExpectation.GetHashCode(); } hash ^= (int)expectationCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void MergeFrom(TokenExpectation other) { if (other == null) { return; } switch (other.ExpectationCase) { case ExpectationOneofCase.PlainExpectation: if (PlainExpectation == null) { PlainExpectation = new global::Protos.PlainExpectation(); } PlainExpectation.MergeFrom(other.PlainExpectation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }