Revert "Refactored the protobuf message comparison logic."
This reverts commit 2d4eb0ef3c162502595f135408b0fe42cf29ebfa.

The original equality check does not care about the order of repeated
fields (e.g., environments).

Review: https://reviews.apache.org/r/24657
Updated equality check for CommandInfo.

Review: https://reviews.apache.org/r/24658