com.microsoft.azure.cognitiveservices.search.customimagesearch.models.Query Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-cognitiveservices-customimagesearch Show documentation
Show all versions of azure-cognitiveservices-customimagesearch Show documentation
This package contains Microsoft Cognitive Service Custom Image Search SDK.
The newest version!
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.cognitiveservices.search.customimagesearch.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Defines a search query.
*/
public class Query {
/**
* The query string. Use this string as the query term in a new search
* request.
*/
@JsonProperty(value = "text", required = true)
private String text;
/**
* The display version of the query term. This version of the query term
* may contain special characters that highlight the search term found in
* the query string. The string contains the highlighting characters only
* if the query enabled hit highlighting.
*/
@JsonProperty(value = "displayText", access = JsonProperty.Access.WRITE_ONLY)
private String displayText;
/**
* The URL that takes the user to the Bing search results page for the
* query.Only related search results include this field.
*/
@JsonProperty(value = "webSearchUrl", access = JsonProperty.Access.WRITE_ONLY)
private String webSearchUrl;
/**
* The URL that you use to get the results of the related search. Before
* using the URL, you must append query parameters as appropriate and
* include the Ocp-Apim-Subscription-Key header. Use this URL if you're
* displaying the results in your own user interface. Otherwise, use the
* webSearchUrl URL.
*/
@JsonProperty(value = "searchLink", access = JsonProperty.Access.WRITE_ONLY)
private String searchLink;
/**
* The URL to a thumbnail of a related image.
*/
@JsonProperty(value = "thumbnail", access = JsonProperty.Access.WRITE_ONLY)
private ImageObject thumbnail;
/**
* Get the text value.
*
* @return the text value
*/
public String text() {
return this.text;
}
/**
* Set the text value.
*
* @param text the text value to set
* @return the Query object itself.
*/
public Query withText(String text) {
this.text = text;
return this;
}
/**
* Get the displayText value.
*
* @return the displayText value
*/
public String displayText() {
return this.displayText;
}
/**
* Get the webSearchUrl value.
*
* @return the webSearchUrl value
*/
public String webSearchUrl() {
return this.webSearchUrl;
}
/**
* Get the searchLink value.
*
* @return the searchLink value
*/
public String searchLink() {
return this.searchLink;
}
/**
* Get the thumbnail value.
*
* @return the thumbnail value
*/
public ImageObject thumbnail() {
return this.thumbnail;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy