Skip to content

0.6.0

Compare
Choose a tag to compare
@mziccard mziccard released this 15 Nov 03:00

Credentials changes

AuthCredentials classes have been deleted. Use classes from google-auth-library-java for authentication.

google-cloud will still try to infer credentials from the environment when no credentials are provided:

Storage storage = StorageOptions.getDefaultInstance().getService();

You can also explicitly provide credentials. For instance, to use a JSON credentials file try the following code:

Storage storage = StorageOptions.newBuilder()
    .setCredentials(ServiceAccountCredentials.fromStream(new FileInputStream("/path/to/my/key.json"))
    .build()
    .getService();

For more details see the Authentication section of the main README.

Features

PubSub

  • All pullAsync methods now use returnImmediately=false and are not subject to client-side timeouts (#1387)

Translate

  • Add support for the TranslateOption.model(String) option which allows to set the language translation model used to translate text. This option is only available to whitelisted users (#1393)

Fixes

Storage

  • Change BaseWriteChannel's position to long to fix integer overflow on big files (#1390)