diff --git a/src/libs/Rime/Generated/Rime.AutoSDKHttpResponse.g.cs b/src/libs/Rime/Generated/Rime.AutoSDKHttpResponse.g.cs index fda795b..06aba75 100644 --- a/src/libs/Rime/Generated/Rime.AutoSDKHttpResponse.g.cs +++ b/src/libs/Rime/Generated/Rime.AutoSDKHttpResponse.g.cs @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests { send = send ?? throw new global::System.ArgumentNullException(nameof(send)); requestOptions = CloneRequestOptions(requestOptions); - if (!string.IsNullOrWhiteSpace(entityTag)) + if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag)) { - requestOptions.Headers["If-None-Match"] = entityTag!; + requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag; } try diff --git a/src/libs/Rime/Generated/Rime.TextToSpeechClient.CreateTts.g.cs b/src/libs/Rime/Generated/Rime.TextToSpeechClient.CreateTts.g.cs index 59d7981..f6c750a 100644 --- a/src/libs/Rime/Generated/Rime.TextToSpeechClient.CreateTts.g.cs +++ b/src/libs/Rime/Generated/Rime.TextToSpeechClient.CreateTts.g.cs @@ -192,7 +192,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -226,7 +226,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -267,7 +267,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -315,7 +315,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -337,7 +337,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -633,7 +633,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -667,7 +667,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -708,7 +708,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -756,7 +756,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -778,7 +778,7 @@ partial void ProcessCreateTtsResponseContent( pathTemplate: "\"/v1/rime-tts\"", httpMethod: "POST", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Rime/Generated/Rime.VoicesClient.ListVoiceDetails.g.cs b/src/libs/Rime/Generated/Rime.VoicesClient.ListVoiceDetails.g.cs index e1531e9..1dba4fc 100644 --- a/src/libs/Rime/Generated/Rime.VoicesClient.ListVoiceDetails.g.cs +++ b/src/libs/Rime/Generated/Rime.VoicesClient.ListVoiceDetails.g.cs @@ -164,7 +164,7 @@ partial void ProcessListVoiceDetailsResponseContent( pathTemplate: "\"/data/voices/voice_details.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -198,7 +198,7 @@ partial void ProcessListVoiceDetailsResponseContent( pathTemplate: "\"/data/voices/voice_details.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -239,7 +239,7 @@ partial void ProcessListVoiceDetailsResponseContent( pathTemplate: "\"/data/voices/voice_details.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -287,7 +287,7 @@ partial void ProcessListVoiceDetailsResponseContent( pathTemplate: "\"/data/voices/voice_details.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -309,7 +309,7 @@ partial void ProcessListVoiceDetailsResponseContent( pathTemplate: "\"/data/voices/voice_details.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, diff --git a/src/libs/Rime/Generated/Rime.VoicesClient.ListVoices.g.cs b/src/libs/Rime/Generated/Rime.VoicesClient.ListVoices.g.cs index 922b9f6..941254a 100644 --- a/src/libs/Rime/Generated/Rime.VoicesClient.ListVoices.g.cs +++ b/src/libs/Rime/Generated/Rime.VoicesClient.ListVoices.g.cs @@ -162,7 +162,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/data/voices/all-v2.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: null, clientOptions: Options, @@ -196,7 +196,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/data/voices/all-v2.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: null, exception: __exception, clientOptions: Options, @@ -237,7 +237,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/data/voices/all-v2.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -285,7 +285,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/data/voices/all-v2.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options, @@ -307,7 +307,7 @@ partial void ProcessListVoicesResponseContent( pathTemplate: "\"/data/voices/all-v2.json\"", httpMethod: "GET", baseUri: BaseUri, - request: __httpRequest!, + request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."), response: __response, exception: null, clientOptions: Options,