title: Object to ByteString \ Byte Array
body: <p>New to GooglePubSub and trying to use its feature under .net framework application. I am trying to publish one of c# object over pubsub bus using Publishasync API (<a href="https://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.PubSub.V1/api/Google.Cloud.PubSub.V1.PublisherClient.html" rel="nofollow noreferrer">https://googleapis.github.io/google-cloud-dotnet/docs/Google.Cloud.PubSub.V1/api/Google.Cloud.PubSub.V1.PublisherClient.html</a>) Just wondering does google pub sub provides any handy method to convert c# object to bytestring, which can be easily deserialized on receving end by applications like Java or .NEt core.
  One of the option I know to do this is by using protobuf-net. Is there is any other way to easily convert c# object to bytestring (or byte array) in language neutral way.
  Thanks for reading.</p>