com.wultra.app.onboardingserver.provider.zenid.model.api.ZenidSharedMinedAddress Maven / Gradle / Ivy
The newest version!
/*
* ZenidWeb
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.wultra.app.onboardingserver.provider.zenid.model.api;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.StringJoiner;
import java.util.Objects;
import java.util.Map;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.wultra.app.onboardingserver.provider.zenid.model.ApiClient;
/**
* ZenidSharedMinedAddress
*/
@JsonPropertyOrder({
ZenidSharedMinedAddress.JSON_PROPERTY_I_D,
ZenidSharedMinedAddress.JSON_PROPERTY_A1,
ZenidSharedMinedAddress.JSON_PROPERTY_A2,
ZenidSharedMinedAddress.JSON_PROPERTY_A3,
ZenidSharedMinedAddress.JSON_PROPERTY_A4,
ZenidSharedMinedAddress.JSON_PROPERTY_ADMINISTRATIVE_AREA_LEVEL1,
ZenidSharedMinedAddress.JSON_PROPERTY_ADMINISTRATIVE_AREA_LEVEL2,
ZenidSharedMinedAddress.JSON_PROPERTY_LOCALITY,
ZenidSharedMinedAddress.JSON_PROPERTY_SUBLOCALITY,
ZenidSharedMinedAddress.JSON_PROPERTY_SUBURB,
ZenidSharedMinedAddress.JSON_PROPERTY_STREET,
ZenidSharedMinedAddress.JSON_PROPERTY_HOUSE_NUMBER,
ZenidSharedMinedAddress.JSON_PROPERTY_STREET_NUMBER,
ZenidSharedMinedAddress.JSON_PROPERTY_POSTAL_CODE,
ZenidSharedMinedAddress.JSON_PROPERTY_GOOGLE_SEARCHABLE,
ZenidSharedMinedAddress.JSON_PROPERTY_TEXT,
ZenidSharedMinedAddress.JSON_PROPERTY_CONFIDENCE
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.7.0")
public class ZenidSharedMinedAddress {
public static final String JSON_PROPERTY_I_D = "ID";
private String ID;
public static final String JSON_PROPERTY_A1 = "A1";
private String A1;
public static final String JSON_PROPERTY_A2 = "A2";
private String A2;
public static final String JSON_PROPERTY_A3 = "A3";
private String A3;
public static final String JSON_PROPERTY_A4 = "A4";
private String A4;
public static final String JSON_PROPERTY_ADMINISTRATIVE_AREA_LEVEL1 = "AdministrativeAreaLevel1";
private String administrativeAreaLevel1;
public static final String JSON_PROPERTY_ADMINISTRATIVE_AREA_LEVEL2 = "AdministrativeAreaLevel2";
private String administrativeAreaLevel2;
public static final String JSON_PROPERTY_LOCALITY = "Locality";
private String locality;
public static final String JSON_PROPERTY_SUBLOCALITY = "Sublocality";
private String sublocality;
public static final String JSON_PROPERTY_SUBURB = "Suburb";
private String suburb;
public static final String JSON_PROPERTY_STREET = "Street";
private String street;
public static final String JSON_PROPERTY_HOUSE_NUMBER = "HouseNumber";
private String houseNumber;
public static final String JSON_PROPERTY_STREET_NUMBER = "StreetNumber";
private String streetNumber;
public static final String JSON_PROPERTY_POSTAL_CODE = "PostalCode";
private String postalCode;
public static final String JSON_PROPERTY_GOOGLE_SEARCHABLE = "GoogleSearchable";
private String googleSearchable;
public static final String JSON_PROPERTY_TEXT = "Text";
private String text;
public static final String JSON_PROPERTY_CONFIDENCE = "Confidence";
private Integer confidence;
public ZenidSharedMinedAddress() {
}
@JsonCreator
public ZenidSharedMinedAddress(
@JsonProperty(JSON_PROPERTY_GOOGLE_SEARCHABLE) String googleSearchable
) {
this();
this.googleSearchable = googleSearchable;
}
public ZenidSharedMinedAddress ID(String ID) {
this.ID = ID;
return this;
}
/**
* Get ID
* @return ID
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getID() {
return ID;
}
@JsonProperty(JSON_PROPERTY_I_D)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setID(String ID) {
this.ID = ID;
}
public ZenidSharedMinedAddress A1(String A1) {
this.A1 = A1;
return this;
}
/**
* physical first row of address on card
* @return A1
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_A1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getA1() {
return A1;
}
@JsonProperty(JSON_PROPERTY_A1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setA1(String A1) {
this.A1 = A1;
}
public ZenidSharedMinedAddress A2(String A2) {
this.A2 = A2;
return this;
}
/**
* physical second row of address on card
* @return A2
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_A2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getA2() {
return A2;
}
@JsonProperty(JSON_PROPERTY_A2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setA2(String A2) {
this.A2 = A2;
}
public ZenidSharedMinedAddress A3(String A3) {
this.A3 = A3;
return this;
}
/**
* physical third row of address on card
* @return A3
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_A3)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getA3() {
return A3;
}
@JsonProperty(JSON_PROPERTY_A3)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setA3(String A3) {
this.A3 = A3;
}
public ZenidSharedMinedAddress A4(String A4) {
this.A4 = A4;
return this;
}
/**
* physical fourth row of address on card
* @return A4
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_A4)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getA4() {
return A4;
}
@JsonProperty(JSON_PROPERTY_A4)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setA4(String A4) {
this.A4 = A4;
}
public ZenidSharedMinedAddress administrativeAreaLevel1(String administrativeAreaLevel1) {
this.administrativeAreaLevel1 = administrativeAreaLevel1;
return this;
}
/**
* main admin. area - in CZ - kraj
* @return administrativeAreaLevel1
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ADMINISTRATIVE_AREA_LEVEL1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAdministrativeAreaLevel1() {
return administrativeAreaLevel1;
}
@JsonProperty(JSON_PROPERTY_ADMINISTRATIVE_AREA_LEVEL1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdministrativeAreaLevel1(String administrativeAreaLevel1) {
this.administrativeAreaLevel1 = administrativeAreaLevel1;
}
public ZenidSharedMinedAddress administrativeAreaLevel2(String administrativeAreaLevel2) {
this.administrativeAreaLevel2 = administrativeAreaLevel2;
return this;
}
/**
* secondary admin. area - in CZ - okres or towns behaves also as okres - like Brno
* @return administrativeAreaLevel2
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ADMINISTRATIVE_AREA_LEVEL2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAdministrativeAreaLevel2() {
return administrativeAreaLevel2;
}
@JsonProperty(JSON_PROPERTY_ADMINISTRATIVE_AREA_LEVEL2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setAdministrativeAreaLevel2(String administrativeAreaLevel2) {
this.administrativeAreaLevel2 = administrativeAreaLevel2;
}
public ZenidSharedMinedAddress locality(String locality) {
this.locality = locality;
return this;
}
/**
* identification of town/city/village (if not already defined up - Brno, Praha) / OSM: boundary=administrative+ admin_level=8
* @return locality
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LOCALITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLocality() {
return locality;
}
@JsonProperty(JSON_PROPERTY_LOCALITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLocality(String locality) {
this.locality = locality;
}
public ZenidSharedMinedAddress sublocality(String sublocality) {
this.sublocality = sublocality;
return this;
}
/**
* town-subdivision CZ - čtvrť/katastrální území (Neighborhood/Cadastral place) / OSM: boundary=administrative+ admin_level=10 SK - čtvrť/katastrální území (Neighborhood/Cadastral place) / OSM: boundary=administrative+ admin_level=10 DE - stadtteil without selfgovernment / OSM: boundary=administrative+ admin_level=10 HU - admin-level 9 todo slovak: Valaská - Piesok is in addess, but Piesok is just place=village, no admin_level=10
* @return sublocality
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SUBLOCALITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSublocality() {
return sublocality;
}
@JsonProperty(JSON_PROPERTY_SUBLOCALITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSublocality(String sublocality) {
this.sublocality = sublocality;
}
public ZenidSharedMinedAddress suburb(String suburb) {
this.suburb = suburb;
return this;
}
/**
* town-subdivision - selfgoverning - probably used only in CZ and maybe DE CZ - městská část/obvod / OSM: addr:suburb - it can be in multiple cadastral places (parts cadastral place Trnitá is in suburb Brno-střed and Brno-jih) DE - stadtteil without selfgovernment / OSM: boundary=administrative+ admin_level=9 todo not used outside CZ right now, so it is not searched/mined from osm, just ruian
* @return suburb
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SUBURB)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSuburb() {
return suburb;
}
@JsonProperty(JSON_PROPERTY_SUBURB)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSuburb(String suburb) {
this.suburb = suburb;
}
public ZenidSharedMinedAddress street(String street) {
this.street = street;
return this;
}
/**
* in CZ - ulice
* @return street
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STREET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStreet() {
return street;
}
@JsonProperty(JSON_PROPERTY_STREET)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStreet(String street) {
this.street = street;
}
public ZenidSharedMinedAddress houseNumber(String houseNumber) {
this.houseNumber = houseNumber;
return this;
}
/**
* descriptive house number in town - used in Czechia, Slovakia, Austria (číslo popisné, číslo súpisné, Konskriptionsnummer)
* @return houseNumber
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_HOUSE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getHouseNumber() {
return houseNumber;
}
@JsonProperty(JSON_PROPERTY_HOUSE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setHouseNumber(String houseNumber) {
this.houseNumber = houseNumber;
}
public ZenidSharedMinedAddress streetNumber(String streetNumber) {
this.streetNumber = streetNumber;
return this;
}
/**
* descriptive number of house on the street - in CZ - číslo orientační
* @return streetNumber
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STREET_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStreetNumber() {
return streetNumber;
}
@JsonProperty(JSON_PROPERTY_STREET_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStreetNumber(String streetNumber) {
this.streetNumber = streetNumber;
}
public ZenidSharedMinedAddress postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* in CZ - poštovní směrovací číslo - PSČ
* @return postalCode
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_POSTAL_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPostalCode() {
return postalCode;
}
@JsonProperty(JSON_PROPERTY_POSTAL_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
/**
* Get googleSearchable
* @return googleSearchable
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GOOGLE_SEARCHABLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getGoogleSearchable() {
return googleSearchable;
}
public ZenidSharedMinedAddress text(String text) {
this.text = text;
return this;
}
/**
* Get text
* @return text
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getText() {
return text;
}
@JsonProperty(JSON_PROPERTY_TEXT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setText(String text) {
this.text = text;
}
public ZenidSharedMinedAddress confidence(Integer confidence) {
this.confidence = confidence;
return this;
}
/**
* Get confidence
* @return confidence
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CONFIDENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getConfidence() {
return confidence;
}
@JsonProperty(JSON_PROPERTY_CONFIDENCE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setConfidence(Integer confidence) {
this.confidence = confidence;
}
/**
* Return true if this ZenidShared.MinedAddress object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ZenidSharedMinedAddress zenidSharedMinedAddress = (ZenidSharedMinedAddress) o;
return Objects.equals(this.ID, zenidSharedMinedAddress.ID) &&
Objects.equals(this.A1, zenidSharedMinedAddress.A1) &&
Objects.equals(this.A2, zenidSharedMinedAddress.A2) &&
Objects.equals(this.A3, zenidSharedMinedAddress.A3) &&
Objects.equals(this.A4, zenidSharedMinedAddress.A4) &&
Objects.equals(this.administrativeAreaLevel1, zenidSharedMinedAddress.administrativeAreaLevel1) &&
Objects.equals(this.administrativeAreaLevel2, zenidSharedMinedAddress.administrativeAreaLevel2) &&
Objects.equals(this.locality, zenidSharedMinedAddress.locality) &&
Objects.equals(this.sublocality, zenidSharedMinedAddress.sublocality) &&
Objects.equals(this.suburb, zenidSharedMinedAddress.suburb) &&
Objects.equals(this.street, zenidSharedMinedAddress.street) &&
Objects.equals(this.houseNumber, zenidSharedMinedAddress.houseNumber) &&
Objects.equals(this.streetNumber, zenidSharedMinedAddress.streetNumber) &&
Objects.equals(this.postalCode, zenidSharedMinedAddress.postalCode) &&
Objects.equals(this.googleSearchable, zenidSharedMinedAddress.googleSearchable) &&
Objects.equals(this.text, zenidSharedMinedAddress.text) &&
Objects.equals(this.confidence, zenidSharedMinedAddress.confidence);
}
@Override
public int hashCode() {
return Objects.hash(ID, A1, A2, A3, A4, administrativeAreaLevel1, administrativeAreaLevel2, locality, sublocality, suburb, street, houseNumber, streetNumber, postalCode, googleSearchable, text, confidence);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ZenidSharedMinedAddress {\n");
sb.append(" ID: ").append(toIndentedString(ID)).append("\n");
sb.append(" A1: ").append(toIndentedString(A1)).append("\n");
sb.append(" A2: ").append(toIndentedString(A2)).append("\n");
sb.append(" A3: ").append(toIndentedString(A3)).append("\n");
sb.append(" A4: ").append(toIndentedString(A4)).append("\n");
sb.append(" administrativeAreaLevel1: ").append(toIndentedString(administrativeAreaLevel1)).append("\n");
sb.append(" administrativeAreaLevel2: ").append(toIndentedString(administrativeAreaLevel2)).append("\n");
sb.append(" locality: ").append(toIndentedString(locality)).append("\n");
sb.append(" sublocality: ").append(toIndentedString(sublocality)).append("\n");
sb.append(" suburb: ").append(toIndentedString(suburb)).append("\n");
sb.append(" street: ").append(toIndentedString(street)).append("\n");
sb.append(" houseNumber: ").append(toIndentedString(houseNumber)).append("\n");
sb.append(" streetNumber: ").append(toIndentedString(streetNumber)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" googleSearchable: ").append(toIndentedString(googleSearchable)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).append("\n");
sb.append(" confidence: ").append(toIndentedString(confidence)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
/**
* Convert the instance into URL query string.
*
* @return URL query string
*/
public String toUrlQueryString() {
return toUrlQueryString(null);
}
/**
* Convert the instance into URL query string.
*
* @param prefix prefix of the query string
* @return URL query string
*/
public String toUrlQueryString(String prefix) {
String suffix = "";
String containerSuffix = "";
String containerPrefix = "";
if (prefix == null) {
// style=form, explode=true, e.g. /pet?name=cat&type=manx
prefix = "";
} else {
// deepObject style e.g. /pet?id[name]=cat&id[type]=manx
prefix = prefix + "[";
suffix = "]";
containerSuffix = "]";
containerPrefix = "[";
}
StringJoiner joiner = new StringJoiner("&");
// add `ID` to the URL query string
if (getID() != null) {
joiner.add(String.format("%sID%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getID()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `A1` to the URL query string
if (getA1() != null) {
joiner.add(String.format("%sA1%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getA1()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `A2` to the URL query string
if (getA2() != null) {
joiner.add(String.format("%sA2%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getA2()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `A3` to the URL query string
if (getA3() != null) {
joiner.add(String.format("%sA3%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getA3()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `A4` to the URL query string
if (getA4() != null) {
joiner.add(String.format("%sA4%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getA4()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `AdministrativeAreaLevel1` to the URL query string
if (getAdministrativeAreaLevel1() != null) {
joiner.add(String.format("%sAdministrativeAreaLevel1%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAdministrativeAreaLevel1()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `AdministrativeAreaLevel2` to the URL query string
if (getAdministrativeAreaLevel2() != null) {
joiner.add(String.format("%sAdministrativeAreaLevel2%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getAdministrativeAreaLevel2()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Locality` to the URL query string
if (getLocality() != null) {
joiner.add(String.format("%sLocality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getLocality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Sublocality` to the URL query string
if (getSublocality() != null) {
joiner.add(String.format("%sSublocality%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSublocality()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Suburb` to the URL query string
if (getSuburb() != null) {
joiner.add(String.format("%sSuburb%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getSuburb()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Street` to the URL query string
if (getStreet() != null) {
joiner.add(String.format("%sStreet%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStreet()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `HouseNumber` to the URL query string
if (getHouseNumber() != null) {
joiner.add(String.format("%sHouseNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getHouseNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `StreetNumber` to the URL query string
if (getStreetNumber() != null) {
joiner.add(String.format("%sStreetNumber%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getStreetNumber()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `PostalCode` to the URL query string
if (getPostalCode() != null) {
joiner.add(String.format("%sPostalCode%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getPostalCode()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `GoogleSearchable` to the URL query string
if (getGoogleSearchable() != null) {
joiner.add(String.format("%sGoogleSearchable%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getGoogleSearchable()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Text` to the URL query string
if (getText() != null) {
joiner.add(String.format("%sText%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getText()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `Confidence` to the URL query string
if (getConfidence() != null) {
joiner.add(String.format("%sConfidence%s=%s", prefix, suffix, URLEncoder.encode(ApiClient.valueToString(getConfidence()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}