# Model Armor v1beta API - Class ModelArmorClient.StreamSanitizeUserPromptStream (1.0.0-beta06)

1.0.0-beta06 (latest) 1.0.0-beta05

    public abstract class ModelArmorClient.StreamSanitizeUserPromptStream : BidirectionalStreamingBase<SanitizeUserPromptRequest, SanitizeUserPromptResponse>, IDisposable

Reference documentation and code samples for the Model Armor v1beta API class ModelArmorClient.StreamSanitizeUserPromptStream.

Bidirectional streaming methods for
[StreamSanitizeUserPrompt(CallSettings, BidirectionalStreamingSettings)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.ModelArmorClient#Google_Cloud_ModelArmor_V1Beta_ModelArmorClient_StreamSanitizeUserPrompt_Google_Api_Gax_Grpc_CallSettings_Google_Api_Gax_Grpc_BidirectionalStreamingSettings_).

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [BidirectionalStreamingBase](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html)[SanitizeUserPromptRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.SanitizeUserPromptRequest)[SanitizeUserPromptResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta.SanitizeUserPromptResponse) \> ModelArmorClient.StreamSanitizeUserPromptStream

## Implements

[IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

## Inherited Members

[BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.TryWriteAsync(SanitizeUserPromptRequest)](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_TryWriteAsync__0_) [BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.WriteAsync(SanitizeUserPromptRequest)](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_WriteAsync__0_) [BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.TryWriteAsync(SanitizeUserPromptRequest, WriteOptions)](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_TryWriteAsync__0_Grpc_Core_WriteOptions_) [BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.WriteAsync(SanitizeUserPromptRequest, WriteOptions)](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_WriteAsync__0_Grpc_Core_WriteOptions_) [BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.TryWriteCompleteAsync()](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_TryWriteCompleteAsync) [BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.WriteCompleteAsync()](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_WriteCompleteAsync) [BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.GetResponseStream()](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_GetResponseStream) [BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.Dispose()](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_Dispose) [BidirectionalStreamingBase\<SanitizeUserPromptRequest, SanitizeUserPromptResponse\>.GrpcCall](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2.html#Google_Api_Gax_Grpc_BidirectionalStreamingBase_2_GrpcCall) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ModelArmor.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ModelArmor.V1Beta/latest/Google.Cloud.ModelArmor.V1Beta)

## Assembly

Google.Cloud.ModelArmor.V1Beta.dll