-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
SearchResultsAnswer.java
40 lines (35 loc) · 1.21 KB
/
SearchResultsAnswer.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* 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.autosuggest.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;
/**
* Defines a search result answer.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = SearchResultsAnswer.class)
@JsonTypeName("SearchResultsAnswer")
@JsonSubTypes({
@JsonSubTypes.Type(name = "Suggestions", value = Suggestions.class)
})
public class SearchResultsAnswer extends Answer {
/**
* The queryContext property.
*/
@JsonProperty(value = "queryContext", access = JsonProperty.Access.WRITE_ONLY)
private QueryContext queryContext;
/**
* Get the queryContext value.
*
* @return the queryContext value
*/
public QueryContext queryContext() {
return this.queryContext;
}
}