@@ -239,6 +239,13 @@ message Template {
239
239
240
240
// Message describing TemplateMetadata
241
241
message TemplateMetadata {
242
+ // Metadata to enable multi language detection via template.
243
+ message MultiLanguageDetection {
244
+ // Required. If true, multi language detection will be enabled.
245
+ bool enable_multi_language_detection = 1
246
+ [(google.api.field_behavior ) = REQUIRED ];
247
+ }
248
+
242
249
// Optional. If true, partial detector failures should be ignored.
243
250
bool ignore_partial_invocation_failures = 1
244
251
[(google.api.field_behavior ) = OPTIONAL ];
@@ -269,6 +276,10 @@ message Template {
269
276
270
277
// Optional. If true, log sanitize operations.
271
278
bool log_sanitize_operations = 7 [(google.api.field_behavior ) = OPTIONAL ];
279
+
280
+ // Optional. Metadata for multi language detection.
281
+ MultiLanguageDetection multi_language_detection = 9
282
+ [(google.api.field_behavior ) = OPTIONAL ];
272
283
}
273
284
274
285
// Identifier. name of resource
@@ -659,6 +670,10 @@ message SanitizeUserPromptRequest {
659
670
660
671
// Required. User prompt data to sanitize.
661
672
DataItem user_prompt_data = 2 [(google.api.field_behavior ) = REQUIRED ];
673
+
674
+ // Optional. Metadata related to Multi Language Detection.
675
+ MultiLanguageDetectionMetadata multi_language_detection_metadata = 6
676
+ [(google.api.field_behavior ) = OPTIONAL ];
662
677
}
663
678
664
679
// Sanitize Model Response request.
@@ -677,6 +692,10 @@ message SanitizeModelResponseRequest {
677
692
678
693
// Optional. User Prompt associated with Model response.
679
694
string user_prompt = 4 [(google.api.field_behavior ) = OPTIONAL ];
695
+
696
+ // Optional. Metadata related for multi language detection.
697
+ MultiLanguageDetectionMetadata multi_language_detection_metadata = 7
698
+ [(google.api.field_behavior ) = OPTIONAL ];
680
699
}
681
700
682
701
// Sanitized User Prompt Response.
@@ -736,6 +755,19 @@ message SanitizationResult {
736
755
[(google.api.field_behavior ) = OUTPUT_ONLY ];
737
756
}
738
757
758
+ // Message for Enabling Multi Language Detection.
759
+ message MultiLanguageDetectionMetadata {
760
+ // Optional. Optional Source language of the user prompt.
761
+ //
762
+ // If multi-language detection is enabled but language is not set in that case
763
+ // we would automatically detect the source language.
764
+ string source_language = 1 [(google.api.field_behavior ) = OPTIONAL ];
765
+
766
+ // Optional. Enable detection of multi-language prompts and responses.
767
+ bool enable_multi_language_detection = 2
768
+ [(google.api.field_behavior ) = OPTIONAL ];
769
+ }
770
+
739
771
// Filter Result obtained after Sanitization operations.
740
772
message FilterResult {
741
773
// Encapsulates one of responsible AI, Sensitive Data Protection, Prompt
@@ -873,6 +905,12 @@ message ByteDataItem {
873
905
874
906
// PPTX, PPTM, POTX, POTM, POT
875
907
POWERPOINT_DOCUMENT = 5 ;
908
+
909
+ // TXT
910
+ TXT = 6 ;
911
+
912
+ // CSV
913
+ CSV = 7 ;
876
914
}
877
915
878
916
// Required. The type of byte data
0 commit comments