diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java index b935dfffd..552e336c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoBounds.java @@ -27,6 +27,7 @@ import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.json.UnionDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -167,6 +168,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + public static class Builder extends ObjectBuilderBase implements ObjectBuilder { private Kind _kind; private Object _value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java index 6c4cba37c..de2957117 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoHashPrecision.java @@ -27,6 +27,7 @@ import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.json.UnionDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -153,6 +154,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + public static class Builder extends ObjectBuilderBase implements ObjectBuilder { private Kind _kind; private Object _value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java index 8e293753e..1022ff213 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/GeoLocation.java @@ -27,6 +27,7 @@ import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.json.UnionDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -188,6 +189,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + public static class Builder extends ObjectBuilderBase implements ObjectBuilder { private Kind _kind; private Object _value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java index ff17f62a4..e32f22b1e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/RequestBase.java @@ -53,7 +53,7 @@ public RequestBase() { @Override public String toString() { - StringBuilder sb = new StringBuilder(); + StringBuilder sb = new StringBuilder(this.getClass().getSimpleName()).append(": "); try { @SuppressWarnings("unchecked") diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java index 9edd83199..1f2130c06 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/Script.java @@ -27,6 +27,7 @@ import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.JsonpSerializable; +import co.elastic.clients.json.JsonpUtils; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.json.UnionDeserializer; import co.elastic.clients.util.ApiTypeHelper; @@ -125,6 +126,11 @@ public void serialize(JsonGenerator generator, JsonpMapper mapper) { } + @Override + public String toString() { + return JsonpUtils.toString(this); + } + public static class Builder extends ObjectBuilderBase implements ObjectBuilder