From 49bf5b41c354089ad213ff1ce5d3f42aa3d1d02e Mon Sep 17 00:00:00 2001 From: bpcreech <35012922+bpcreech@users.noreply.github.com> Date: Thu, 18 Aug 2022 17:31:28 -0400 Subject: [PATCH] fix: Update the stub to avoid the deprecated *Map method (#1002) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: Update the stub to avoid the deprecated *Map method * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Ben Creech Co-authored-by: Owl Bot --- .../cloud/logging/v2/stub/LoggingServiceV2StubSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java index 220b7f22c..2a312b732 100644 --- a/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ b/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -331,7 +331,7 @@ public ApiFuture getFuturePagedResponse( @Override public PartitionKey getBatchPartitionKey(WriteLogEntriesRequest request) { return new PartitionKey( - request.getLogName(), request.getResource(), request.getLabels()); + request.getLogName(), request.getResource(), request.getLabelsMap()); } @Override