From d39c5c6f1cb12ca6ce55a7f498a00d713370b1cb Mon Sep 17 00:00:00 2001 From: Sydney Munro Date: Thu, 1 Sep 2022 16:27:54 -0700 Subject: [PATCH] feat: Add toString method for CustomPlacementConfig --- .../src/main/java/com/google/cloud/storage/BucketInfo.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java index 70a9817c8d..bee76fd0f7 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java +++ b/google-cloud-storage/src/main/java/com/google/cloud/storage/BucketInfo.java @@ -353,6 +353,11 @@ public int hashCode() { return Objects.hashCode(dataLocations); } + @Override + public String toString() { + return MoreObjects.toStringHelper(this).add("dataLocations", dataLocations).toString(); + } + public static Builder newBuilder() { return new Builder(); }