/// <summary>
 /// Gets the trained application predictions for the given query. The current
 /// maximum query size is 500 characters.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='appId'>
 /// The identifier of the LUIS app used to extract the intents and entities. A
 /// LUIS app is identified by a GUID and is obtained from the LUIS portal.
 /// </param>
 /// <param name='q'>
 /// The query to extract intents and entities from.
 /// </param>
 /// <param name='versionId'>
 /// The version id of the trained LUIS app.
 /// </param>
 /// <param name='timezoneOffset'>
 /// The timezone offset for the location of the request in minutes.
 /// </param>
 /// <param name='verbose'>
 /// A boolean value indicating whether to return all intents instead of just
 /// the top-scoring intent.
 /// </param>
 /// <param name='log'>
 /// A boolean value indicating whether to log the query.
 /// </param>
 public static AppResponseV2 LuisV20AppsByAppIdVersionsByVersionIdPost(this ILuisCognitiveServiceAPI operations, System.Guid appId, string q, string versionId, double?timezoneOffset = 0, bool?verbose = false, bool?log = true)
 {
     return(operations.LuisV20AppsByAppIdVersionsByVersionIdPostAsync(appId, q, versionId, timezoneOffset, verbose, log).GetAwaiter().GetResult());
 }