Write is the entry point function for performing write operations in GCP PubSub.
This is where we verify that the passed args and flags combo makes sense,
attempt to establish a connection, parse protobuf before finally attempting
to perform the write.