Skip to content

Releases: googleapis/google-cloud-java

0.9.3

22 Feb 23:10
Compare
Choose a tag to compare

Fixes

  • pubsub: start with polling by default (#1625)
    • Patches over a server issue where the wrong error code is being returned for an unimplemented method.

Moves/renames

  • move LocalPubSubHelper into deprecated (#1633)

Runtime updates

  • Update client name in header for Veneer layer (#1638)
  • Updating GAX to 0.1.2 (for header changes) (#1640)

Samples/docs

  • pubsub: new publish snippet (#1608)

0.9.2

14 Feb 20:25
Compare
Choose a tag to compare

New client for Cloud Spanner

google-cloud-spanner has been added. Find out more about Cloud Spanner at https://cloudplatform.googleblog.com/2017/02/introducing-Cloud-Spanner-a-global-database-service-for-mission-critical-applications.html .

0.9.0

13 Feb 16:11
Compare
Choose a tag to compare

Pub/Sub High-Performance Rewrite

The Pub/Sub client has been completely rewritten to enable high throughput. The handwritten layer on top of the SPI layer has been deprecated, and two handwritten classes have been added in the SPI layer, Publisher and Subscriber, for publishing and subscribing. (Note for those concerned: synchronous pull is still possible in SubscriberClient.) The handwritten layer was deprecated because the SPI layer can be kept up to date more easily with new service features. Since the change is so disruptive, we have retained the deprecated classes, but moved them under com.google.cloud.pubsub.deprecated. They will be removed before the Pub/Sub client goes to GA.

Logging

  • add zone to GAE Flex logging enhancer (#1589)
  • fix(logging): Make LoggingHandler.Enhancer interface public (#1607)

SPI layer changes

  • SPI layer: Regenerating with RpcStreamObserver (#1611)
    • This change is a prerequisite to enabling the shading of Guava

Docs

  • Javadocs: adding links to external types (#1600)
  • fix a typo in README.md (#1604)

0.8.3

03 Feb 23:47
Compare
Choose a tag to compare

Fixes

  • (Storage) Allow path in URIs passed to newFileSystem (#1470)
  • (Storage) Add a PathMatcher for CloudStorageFileSystem (#1469)
  • (Logging) Preventing logging re-entrance at FINE level (#1523)
  • (Logging) Set timestamp from LogRecord (#1533)
  • (Logging) Initialize the default MonitoredResource from a GAE environment (#1535)
  • (BigQuery) BigQuery: Add support to FormatOptions for AVRO (#1576)

SPI layer changes

  • use RpcFuture and remove old BundlingSettings (#1572)
  • fix DefaultLoggingRpc (#1584)

0.8.1

10 Jan 01:12
Compare
Choose a tag to compare

Dependency updates

The dependency on grpc was bumped from 1.0.1 to 1.0.3. (#1504)

Interface changes

  • SPI layer: Converted Error Reporting, Monitoring, and Pub/Sub to use resource name types, and removed formatX/parseX methods (#1454)

Test improvements

  • Fixed more races in pubsub tests (#1473)

0.8.0

09 Dec 00:24
Compare
Choose a tag to compare

Select clients going from Alpha to Beta

In this release, clients for four APIs are moving to beta:

  • Google Cloud BigQuery
  • Stackdriver Logging
  • Google Cloud Datastore
  • Google Cloud Storage

Their versions will have “-beta” on the end call out that fact. All other clients are still Alpha.

Features

  • QueryParameter support added to BigQuery, DATE/TIME/DATETIME added to LegacySQLTypeName (#1451)

Interface changes

  • Logging api layer: using resource name classes instead of strings where appropriate (#1454)

Test improvements

Several tests were flaky on AppVeyor, so improvements were made to make them more reliable.

  • BlockingProcessStreamReader (#1457)
  • BigQuery integration tests (#1456)
  • PubSub integration tests (#1453)
  • DNS tests: removed LocalDnsHelper and its test (#1446)

Despite that, integration tests were still failing on AppVeyor, so they have been disabled until they can all run reliably - tracking issue: #1429

Documentation, Snippets

0.7.0

25 Nov 01:57
Compare
Choose a tag to compare

Naming, interface changes

  • SPI classes ending in Api have been renamed so that they end in Client (#1417)
  • Deleted the client for Natural Language v1beta1, added the client for Natural Language v1 (#1417)
  • PubSub SPI classes now take resource name classes instead of strings (#1403)

Features

  • Speech SPI layer: AsyncRecognize now returns a new OperationFuture type which enables an easier way to get the final result of the long-running operation. (#1419)

Documentation, Snippets

0.6.0

15 Nov 03:00
Compare
Choose a tag to compare

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)

0.5.1

06 Nov 19:08
Compare
Choose a tag to compare

Fixes

All

  • Reduce gRPC dependency footprint. In particular, some gRPC-related dependencies are removed from google-cloud-core module. Get rid of duplicate classes (#1365)

Datastore

  • Deprecate DatastoreOptions.Builder's namespace(String) setter in favor of setNamespace(String), undo deprecating Transaction.Response.getGeneratedKeys() (#1358)

  • Avoid shading javax package in google-cloud-nio shaded jar (#1362)

0.5.0

29 Oct 21:44
Compare
Choose a tag to compare

Naming changes

  • Getters and setters with the get and set prefix have been added to all classes/builders. Older getters/setters (without get/set prefix) have been deprecated
  • Builder factory methods builder() have been deprecated, you should use newBuilder() instead
  • defaultInstance() factory methods have been deprecated, you should use getDefaultInstance() instead

See the following example of using google-cloud-storage after the naming changes:

Storage storage = StorageOptions.getDefaultInstance().getService();
BlobId blobId = BlobId.of("bucket", "blob_name");
Blob blob = storage.get(blobId);
if (blob != null) {
  byte[] prevContent = blob.getContent();
  System.out.println(new String(prevContent, UTF_8));
  WritableByteChannel channel = blob.writer();
  channel.write(ByteBuffer.wrap("Updated content".getBytes(UTF_8)));
  channel.close();
}

Features

Datastore

  • Add support to LocalDatastoreHelper for more recent version of the Datastore emulator installed via gcloud (#1303)
  • Add reset() method to LocalDatastoreHelper to clear the status of the Datastore emulator (#1293)

PubSub

  • Add support for PubSub emulator host variable. If the PUBSUB_EMULATOR_HOST environment variable is set, the PubSub client uses it to locate the PubSub emulator. (#1317)

Fixes

Datastore

  • Allow LocalDatastoreHelper to properly cache downloaded copies of the Datastore emulator (#1302)

Storage

  • Fix regression in Storage.signUrl to support blob names containing / characters (#1346)
  • Allow Storage.reader to read gzip blobs in compressed chunks. This prevents ReadChannel from trying (and failing) to uncompress gzipped chunks (#1301)

Storage NIO

  • All dependencies are now shaded in the google-cloud-nio shaded jar (#1327)