Question: I'm trying to use setState after I did a fetch on an api so I can load it into react.
The problem is that it is a async function so I can't use it inside the class itself.
How can I still change the state from outside the class itself?

I have a function `async function getUsers() {}` and in the class that's just under it `starte = {data: ''}`

Answer: 
Try

```
System.out.println(myByteString.toString("UTF-8"));

```

or whatever encoding you are using. 

Check out this link:
[Google Developers: Class ByteString](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/ByteString#toString-java.nio.charset.Charset-)
you need call:

```
Base64.encodeToString(myByteString.toByteArray(), Base64.DEFAULT)

```