com.dominodatalab.api.model.DominoCommonGatewaySearchFuzzyHighlightInfo Maven / Gradle / Ivy
/*
* Domino Data Lab API v4
* This API is going to provide access to all the Domino functions available in the user interface. To authenticate your requests, include your API Key (which you can find on your account page) with the header X-Domino-Api-Key.
*
* The version of the OpenAPI document: 4.0.0
*
*
* 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.dominodatalab.api.model;
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.dominodatalab.api.model.DominoCommonGatewaySearchEntityHighlight;
import com.dominodatalab.api.model.DominoCommonGatewaySearchFeatureHighlight;
import com.dominodatalab.api.model.DominoCommonGatewaySearchTagKeyHighlight;
import com.dominodatalab.api.model.DominoCommonGatewaySearchTagValueHighlight;
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.ArrayList;
import java.util.Arrays;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* DominoCommonGatewaySearchFuzzyHighlightInfo
*/
@JsonPropertyOrder({
DominoCommonGatewaySearchFuzzyHighlightInfo.JSON_PROPERTY_MAYBE_HIGHLIGHTED_FEATURE_VIEW_NAME,
DominoCommonGatewaySearchFuzzyHighlightInfo.JSON_PROPERTY_MAYBE_HIGHLIGHTED_DESCRIPTION,
DominoCommonGatewaySearchFuzzyHighlightInfo.JSON_PROPERTY_HIGHLIGHTED_ENTITIES,
DominoCommonGatewaySearchFuzzyHighlightInfo.JSON_PROPERTY_HIGHLIGHTED_FEATURES,
DominoCommonGatewaySearchFuzzyHighlightInfo.JSON_PROPERTY_HIGHLIGHTED_TAG_KEYS,
DominoCommonGatewaySearchFuzzyHighlightInfo.JSON_PROPERTY_HIGHLIGHTED_TAG_VALUES,
DominoCommonGatewaySearchFuzzyHighlightInfo.JSON_PROPERTY_MAYBE_HIGHLIGHTED_MODEL_AUTHOR
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-17T15:20:46.682098100-04:00[America/New_York]")
public class DominoCommonGatewaySearchFuzzyHighlightInfo {
public static final String JSON_PROPERTY_MAYBE_HIGHLIGHTED_FEATURE_VIEW_NAME = "maybeHighlightedFeatureViewName";
private String maybeHighlightedFeatureViewName;
public static final String JSON_PROPERTY_MAYBE_HIGHLIGHTED_DESCRIPTION = "maybeHighlightedDescription";
private String maybeHighlightedDescription;
public static final String JSON_PROPERTY_HIGHLIGHTED_ENTITIES = "highlightedEntities";
private List highlightedEntities = new ArrayList<>();
public static final String JSON_PROPERTY_HIGHLIGHTED_FEATURES = "highlightedFeatures";
private List highlightedFeatures = new ArrayList<>();
public static final String JSON_PROPERTY_HIGHLIGHTED_TAG_KEYS = "highlightedTagKeys";
private List highlightedTagKeys = new ArrayList<>();
public static final String JSON_PROPERTY_HIGHLIGHTED_TAG_VALUES = "highlightedTagValues";
private List highlightedTagValues = new ArrayList<>();
public static final String JSON_PROPERTY_MAYBE_HIGHLIGHTED_MODEL_AUTHOR = "maybeHighlightedModelAuthor";
private String maybeHighlightedModelAuthor;
public DominoCommonGatewaySearchFuzzyHighlightInfo() {
}
public DominoCommonGatewaySearchFuzzyHighlightInfo maybeHighlightedFeatureViewName(String maybeHighlightedFeatureViewName) {
this.maybeHighlightedFeatureViewName = maybeHighlightedFeatureViewName;
return this;
}
/**
* Get maybeHighlightedFeatureViewName
* @return maybeHighlightedFeatureViewName
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MAYBE_HIGHLIGHTED_FEATURE_VIEW_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getMaybeHighlightedFeatureViewName() {
return maybeHighlightedFeatureViewName;
}
@JsonProperty(JSON_PROPERTY_MAYBE_HIGHLIGHTED_FEATURE_VIEW_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMaybeHighlightedFeatureViewName(String maybeHighlightedFeatureViewName) {
this.maybeHighlightedFeatureViewName = maybeHighlightedFeatureViewName;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo maybeHighlightedDescription(String maybeHighlightedDescription) {
this.maybeHighlightedDescription = maybeHighlightedDescription;
return this;
}
/**
* Get maybeHighlightedDescription
* @return maybeHighlightedDescription
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MAYBE_HIGHLIGHTED_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getMaybeHighlightedDescription() {
return maybeHighlightedDescription;
}
@JsonProperty(JSON_PROPERTY_MAYBE_HIGHLIGHTED_DESCRIPTION)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMaybeHighlightedDescription(String maybeHighlightedDescription) {
this.maybeHighlightedDescription = maybeHighlightedDescription;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo highlightedEntities(List highlightedEntities) {
this.highlightedEntities = highlightedEntities;
return this;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo addHighlightedEntitiesItem(DominoCommonGatewaySearchEntityHighlight highlightedEntitiesItem) {
if (this.highlightedEntities == null) {
this.highlightedEntities = new ArrayList<>();
}
this.highlightedEntities.add(highlightedEntitiesItem);
return this;
}
/**
* Get highlightedEntities
* @return highlightedEntities
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HIGHLIGHTED_ENTITIES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getHighlightedEntities() {
return highlightedEntities;
}
@JsonProperty(JSON_PROPERTY_HIGHLIGHTED_ENTITIES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHighlightedEntities(List highlightedEntities) {
this.highlightedEntities = highlightedEntities;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo highlightedFeatures(List highlightedFeatures) {
this.highlightedFeatures = highlightedFeatures;
return this;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo addHighlightedFeaturesItem(DominoCommonGatewaySearchFeatureHighlight highlightedFeaturesItem) {
if (this.highlightedFeatures == null) {
this.highlightedFeatures = new ArrayList<>();
}
this.highlightedFeatures.add(highlightedFeaturesItem);
return this;
}
/**
* Get highlightedFeatures
* @return highlightedFeatures
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HIGHLIGHTED_FEATURES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getHighlightedFeatures() {
return highlightedFeatures;
}
@JsonProperty(JSON_PROPERTY_HIGHLIGHTED_FEATURES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHighlightedFeatures(List highlightedFeatures) {
this.highlightedFeatures = highlightedFeatures;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo highlightedTagKeys(List highlightedTagKeys) {
this.highlightedTagKeys = highlightedTagKeys;
return this;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo addHighlightedTagKeysItem(DominoCommonGatewaySearchTagKeyHighlight highlightedTagKeysItem) {
if (this.highlightedTagKeys == null) {
this.highlightedTagKeys = new ArrayList<>();
}
this.highlightedTagKeys.add(highlightedTagKeysItem);
return this;
}
/**
* Get highlightedTagKeys
* @return highlightedTagKeys
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HIGHLIGHTED_TAG_KEYS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getHighlightedTagKeys() {
return highlightedTagKeys;
}
@JsonProperty(JSON_PROPERTY_HIGHLIGHTED_TAG_KEYS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHighlightedTagKeys(List highlightedTagKeys) {
this.highlightedTagKeys = highlightedTagKeys;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo highlightedTagValues(List highlightedTagValues) {
this.highlightedTagValues = highlightedTagValues;
return this;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo addHighlightedTagValuesItem(DominoCommonGatewaySearchTagValueHighlight highlightedTagValuesItem) {
if (this.highlightedTagValues == null) {
this.highlightedTagValues = new ArrayList<>();
}
this.highlightedTagValues.add(highlightedTagValuesItem);
return this;
}
/**
* Get highlightedTagValues
* @return highlightedTagValues
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_HIGHLIGHTED_TAG_VALUES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List getHighlightedTagValues() {
return highlightedTagValues;
}
@JsonProperty(JSON_PROPERTY_HIGHLIGHTED_TAG_VALUES)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setHighlightedTagValues(List highlightedTagValues) {
this.highlightedTagValues = highlightedTagValues;
}
public DominoCommonGatewaySearchFuzzyHighlightInfo maybeHighlightedModelAuthor(String maybeHighlightedModelAuthor) {
this.maybeHighlightedModelAuthor = maybeHighlightedModelAuthor;
return this;
}
/**
* Get maybeHighlightedModelAuthor
* @return maybeHighlightedModelAuthor
**/
@javax.annotation.Nonnull
@JsonProperty(JSON_PROPERTY_MAYBE_HIGHLIGHTED_MODEL_AUTHOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getMaybeHighlightedModelAuthor() {
return maybeHighlightedModelAuthor;
}
@JsonProperty(JSON_PROPERTY_MAYBE_HIGHLIGHTED_MODEL_AUTHOR)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setMaybeHighlightedModelAuthor(String maybeHighlightedModelAuthor) {
this.maybeHighlightedModelAuthor = maybeHighlightedModelAuthor;
}
/**
* Return true if this domino.common.gateway.search.FuzzyHighlightInfo object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DominoCommonGatewaySearchFuzzyHighlightInfo dominoCommonGatewaySearchFuzzyHighlightInfo = (DominoCommonGatewaySearchFuzzyHighlightInfo) o;
return Objects.equals(this.maybeHighlightedFeatureViewName, dominoCommonGatewaySearchFuzzyHighlightInfo.maybeHighlightedFeatureViewName) &&
Objects.equals(this.maybeHighlightedDescription, dominoCommonGatewaySearchFuzzyHighlightInfo.maybeHighlightedDescription) &&
Objects.equals(this.highlightedEntities, dominoCommonGatewaySearchFuzzyHighlightInfo.highlightedEntities) &&
Objects.equals(this.highlightedFeatures, dominoCommonGatewaySearchFuzzyHighlightInfo.highlightedFeatures) &&
Objects.equals(this.highlightedTagKeys, dominoCommonGatewaySearchFuzzyHighlightInfo.highlightedTagKeys) &&
Objects.equals(this.highlightedTagValues, dominoCommonGatewaySearchFuzzyHighlightInfo.highlightedTagValues) &&
Objects.equals(this.maybeHighlightedModelAuthor, dominoCommonGatewaySearchFuzzyHighlightInfo.maybeHighlightedModelAuthor);
}
@Override
public int hashCode() {
return Objects.hash(maybeHighlightedFeatureViewName, maybeHighlightedDescription, highlightedEntities, highlightedFeatures, highlightedTagKeys, highlightedTagValues, maybeHighlightedModelAuthor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DominoCommonGatewaySearchFuzzyHighlightInfo {\n");
sb.append(" maybeHighlightedFeatureViewName: ").append(toIndentedString(maybeHighlightedFeatureViewName)).append("\n");
sb.append(" maybeHighlightedDescription: ").append(toIndentedString(maybeHighlightedDescription)).append("\n");
sb.append(" highlightedEntities: ").append(toIndentedString(highlightedEntities)).append("\n");
sb.append(" highlightedFeatures: ").append(toIndentedString(highlightedFeatures)).append("\n");
sb.append(" highlightedTagKeys: ").append(toIndentedString(highlightedTagKeys)).append("\n");
sb.append(" highlightedTagValues: ").append(toIndentedString(highlightedTagValues)).append("\n");
sb.append(" maybeHighlightedModelAuthor: ").append(toIndentedString(maybeHighlightedModelAuthor)).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 `maybeHighlightedFeatureViewName` to the URL query string
if (getMaybeHighlightedFeatureViewName() != null) {
joiner.add(String.format("%smaybeHighlightedFeatureViewName%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaybeHighlightedFeatureViewName()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `maybeHighlightedDescription` to the URL query string
if (getMaybeHighlightedDescription() != null) {
joiner.add(String.format("%smaybeHighlightedDescription%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaybeHighlightedDescription()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
// add `highlightedEntities` to the URL query string
if (getHighlightedEntities() != null) {
for (int i = 0; i < getHighlightedEntities().size(); i++) {
if (getHighlightedEntities().get(i) != null) {
joiner.add(getHighlightedEntities().get(i).toUrlQueryString(String.format("%shighlightedEntities%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `highlightedFeatures` to the URL query string
if (getHighlightedFeatures() != null) {
for (int i = 0; i < getHighlightedFeatures().size(); i++) {
if (getHighlightedFeatures().get(i) != null) {
joiner.add(getHighlightedFeatures().get(i).toUrlQueryString(String.format("%shighlightedFeatures%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `highlightedTagKeys` to the URL query string
if (getHighlightedTagKeys() != null) {
for (int i = 0; i < getHighlightedTagKeys().size(); i++) {
if (getHighlightedTagKeys().get(i) != null) {
joiner.add(getHighlightedTagKeys().get(i).toUrlQueryString(String.format("%shighlightedTagKeys%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `highlightedTagValues` to the URL query string
if (getHighlightedTagValues() != null) {
for (int i = 0; i < getHighlightedTagValues().size(); i++) {
if (getHighlightedTagValues().get(i) != null) {
joiner.add(getHighlightedTagValues().get(i).toUrlQueryString(String.format("%shighlightedTagValues%s%s", prefix, suffix,
"".equals(suffix) ? "" : String.format("%s%d%s", containerPrefix, i, containerSuffix))));
}
}
}
// add `maybeHighlightedModelAuthor` to the URL query string
if (getMaybeHighlightedModelAuthor() != null) {
joiner.add(String.format("%smaybeHighlightedModelAuthor%s=%s", prefix, suffix, URLEncoder.encode(String.valueOf(getMaybeHighlightedModelAuthor()), StandardCharsets.UTF_8).replaceAll("\\+", "%20")));
}
return joiner.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy