public override int GetHashCode() { int hash = 1; if (Reward != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Reward); } if (Done != false) { hash ^= Done.GetHashCode(); } if (MaxStepReached != false) { hash ^= MaxStepReached.GetHashCode(); } if (Id != 0) { hash ^= Id.GetHashCode(); } hash ^= actionMask_.GetHashCode(); hash ^= observations_.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; hash ^= stackedVectorObservation_.GetHashCode(); hash ^= visualObservations_.GetHashCode(); if (TextObservation.Length != 0) { hash ^= TextObservation.GetHashCode(); } hash ^= storedVectorActions_.GetHashCode(); if (StoredTextActions.Length != 0) { hash ^= StoredTextActions.GetHashCode(); } hash ^= memories_.GetHashCode(); if (Reward != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Reward); } if (Done != false) { hash ^= Done.GetHashCode(); } if (MaxStepReached != false) { hash ^= MaxStepReached.GetHashCode(); } if (Id != 0) { hash ^= Id.GetHashCode(); } hash ^= actionMask_.GetHashCode(); if (customObservation_ != null) { hash ^= CustomObservation.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }