@@ -22,234 +22,13 @@ def __init__(
2222 telemetry_client : BotTelemetryClient = NullTelemetryClient (),
2323 log_personal_information : bool = False ,
2424 ):
25- self ._bing_spell_check_subscription_key : str = bing_spell_check_subscription_key
26- self ._include_all_intents : bool = include_all_intents
27- self ._include_instance_data : bool = include_instance_data
28- self ._log : bool = log
29- self ._spell_check : bool = spell_check
30- self ._staging : bool = staging
31- self ._timeout : float = timeout
32- self ._timezone_offset : float = timezone_offset
33- self ._telemetry_client : BotTelemetryClient = telemetry_client
34- self ._log_personal_information : bool = log_personal_information
35-
36- @property
37- def bing_spell_check_subscription_key (self ) -> str :
38- """Gets the Bing Spell Check subscription key.
39-
40- :return: The Bing Spell Check subscription key.
41- :rtype: str
42- """
43-
44- return self ._bing_spell_check_subscription_key
45-
46- @bing_spell_check_subscription_key .setter
47- def bing_spell_check_subscription_key (self , value : str ) -> None :
48- """Sets the Bing Spell Check subscription key.
49-
50- :param value: The Bing Spell Check subscription key.
51- :type value: str
52- :return:
53- :rtype: None
54- """
55-
56- self ._bing_spell_check_subscription_key = value
57-
58- @property
59- def include_all_intents (self ) -> bool :
60- """Gets whether all intents come back or only the top one.
61-
62- :return: True for returning all intents.
63- :rtype: bool
64- """
65-
66- return self ._include_all_intents
67-
68- @include_all_intents .setter
69- def include_all_intents (self , value : bool ) -> None :
70- """Sets whether all intents come back or only the top one.
71-
72- :param value: True for returning all intents.
73- :type value: bool
74- :return:
75- :rtype: None
76- """
77-
78- self ._include_all_intents = value
79-
80- @property
81- def include_instance_data (self ) -> bool :
82- """Gets a value indicating whether or not instance data should be included in response.
83-
84- :return: A value indicating whether or not instance data should be included in response.
85- :rtype: bool
86- """
87-
88- return self ._include_instance_data
89-
90- @include_instance_data .setter
91- def include_instance_data (self , value : bool ) -> None :
92- """Sets a value indicating whether or not instance data should be included in response.
93-
94- :param value: A value indicating whether or not instance data should be included in response.
95- :type value: bool
96- :return:
97- :rtype: None
98- """
99-
100- self ._include_instance_data = value
101-
102- @property
103- def log (self ) -> bool :
104- """Gets if queries should be logged in LUIS.
105-
106- :return: If queries should be logged in LUIS.
107- :rtype: bool
108- """
109-
110- return self ._log
111-
112- @log .setter
113- def log (self , value : bool ) -> None :
114- """Sets if queries should be logged in LUIS.
115-
116- :param value: If queries should be logged in LUIS.
117- :type value: bool
118- :return:
119- :rtype: None
120- """
121-
122- self ._log = value
123-
124- @property
125- def spell_check (self ) -> bool :
126- """Gets whether to spell check queries.
127-
128- :return: Whether to spell check queries.
129- :rtype: bool
130- """
131-
132- return self ._spell_check
133-
134- @spell_check .setter
135- def spell_check (self , value : bool ) -> None :
136- """Sets whether to spell check queries.
137-
138- :param value: Whether to spell check queries.
139- :type value: bool
140- :return:
141- :rtype: None
142- """
143-
144- self ._spell_check = value
145-
146- @property
147- def staging (self ) -> bool :
148- """Gets whether to use the staging endpoint.
149-
150- :return: Whether to use the staging endpoint.
151- :rtype: bool
152- """
153-
154- return self ._staging
155-
156- @staging .setter
157- def staging (self , value : bool ) -> None :
158- """Sets whether to use the staging endpoint.
159-
160-
161- :param value: Whether to use the staging endpoint.
162- :type value: bool
163- :return:
164- :rtype: None
165- """
166-
167- self ._staging = value
168-
169- @property
170- def timeout (self ) -> float :
171- """Gets the time in milliseconds to wait before the request times out.
172-
173- :return: The time in milliseconds to wait before the request times out. Default is 100000 milliseconds.
174- :rtype: float
175- """
176-
177- return self ._timeout
178-
179- @timeout .setter
180- def timeout (self , value : float ) -> None :
181- """Sets the time in milliseconds to wait before the request times out.
182-
183- :param value: The time in milliseconds to wait before the request times out. Default is 100000 milliseconds.
184- :type value: float
185- :return:
186- :rtype: None
187- """
188-
189- self ._timeout = value
190-
191- @property
192- def timezone_offset (self ) -> float :
193- """Gets the time zone offset.
194-
195- :return: The time zone offset.
196- :rtype: float
197- """
198-
199- return self ._timezone_offset
200-
201- @timezone_offset .setter
202- def timezone_offset (self , value : float ) -> None :
203- """Sets the time zone offset.
204-
205- :param value: The time zone offset.
206- :type value: float
207- :return:
208- :rtype: None
209- """
210-
211- self ._timezone_offset = value
212-
213- @property
214- def telemetry_client (self ) -> BotTelemetryClient :
215- """Gets the BotTelemetryClient used to log the LuisResult event.
216-
217- :return: The client used to log telemetry events.
218- :rtype: BotTelemetryClient
219- """
220-
221- return self ._telemetry_client
222-
223- @telemetry_client .setter
224- def telemetry_client (self , value : BotTelemetryClient ) -> None :
225- """Sets the BotTelemetryClient used to log the LuisResult event.
226-
227- :param value: The client used to log telemetry events.
228- :type value: BotTelemetryClient
229- :return:
230- :rtype: None
231- """
232-
233- self ._telemetry_client = value
234-
235- @property
236- def log_personal_information (self ) -> bool :
237- """Gets a value indicating whether to log personal information that came from the user to telemetry.
238-
239- :return: If true, personal information is logged to Telemetry; otherwise the properties will be filtered.
240- :rtype: bool
241- """
242-
243- return self ._log_personal_information
244-
245- @log_personal_information .setter
246- def log_personal_information (self , value : bool ) -> None :
247- """Sets a value indicating whether to log personal information that came from the user to telemetry.
248-
249- :param value: If true, personal information is logged to Telemetry; otherwise the properties will be filtered.
250- :type value: bool
251- :return:
252- :rtype: None
253- """
254-
255- self .log_personal_information = value
25+ self .bing_spell_check_subscription_key : str = bing_spell_check_subscription_key
26+ self .include_all_intents : bool = include_all_intents
27+ self .include_instance_data : bool = include_instance_data
28+ self .log : bool = log
29+ self .spell_check : bool = spell_check
30+ self .staging : bool = staging
31+ self .timeout : float = timeout
32+ self .timezone_offset : float = timezone_offset
33+ self .telemetry_client : BotTelemetryClient = telemetry_client
34+ self .log_personal_information : bool = log_personal_information
0 commit comments