Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2af1541

Browse files
Google APIscopybara-github
authored andcommitted
feat: MultiLanguage Detection in Model Armor Floor Setting
feat: Add support for EnforcementType docs: fix comment formatting PiperOrigin-RevId: 786202489
1 parent 01f50f9 commit 2af1541

File tree

1 file changed

+61
-1
lines changed

1 file changed

+61
-1
lines changed

google/cloud/modelarmor/v1beta/service.proto

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,20 @@ message Template {
246246
[(google.api.field_behavior) = REQUIRED];
247247
}
248248

249+
// Enforcement type for Model Armor filters.
250+
enum EnforcementType {
251+
// Default value. Same as INSPECT_AND_BLOCK.
252+
ENFORCEMENT_TYPE_UNSPECIFIED = 0;
253+
254+
// Model Armor filters will run in inspect only mode. No action will be
255+
// taken on the request.
256+
INSPECT_ONLY = 1;
257+
258+
// Model Armor filters will run in inspect and block mode. Requests
259+
// that trip Model Armor filters will be blocked.
260+
INSPECT_AND_BLOCK = 2;
261+
}
262+
249263
// Optional. If true, partial detector failures should be ignored.
250264
bool ignore_partial_invocation_failures = 1
251265
[(google.api.field_behavior) = OPTIONAL];
@@ -277,6 +291,10 @@ message Template {
277291
// Optional. If true, log sanitize operations.
278292
bool log_sanitize_operations = 7 [(google.api.field_behavior) = OPTIONAL];
279293

294+
// Optional. Enforcement type for Model Armor filters.
295+
EnforcementType enforcement_type = 8
296+
[(google.api.field_behavior) = OPTIONAL];
297+
280298
// Optional. Metadata for multi language detection.
281299
MultiLanguageDetection multi_language_detection = 9
282300
[(google.api.field_behavior) = OPTIONAL];
@@ -315,6 +333,18 @@ message FloorSetting {
315333
singular: "floorSetting"
316334
};
317335

336+
// message describing FloorSetting Metadata
337+
message FloorSettingMetadata {}
338+
339+
// Integrated service for which the floor setting is applicable.
340+
enum IntegratedService {
341+
// Unspecified integrated service.
342+
INTEGRATED_SERVICE_UNSPECIFIED = 0;
343+
344+
// AI Platform.
345+
AI_PLATFORM = 1;
346+
}
347+
318348
// Identifier. The resource name.
319349
string name = 1 [(google.api.field_behavior) = IDENTIFIER];
320350

@@ -332,6 +362,36 @@ message FloorSetting {
332362
// Optional. Floor Settings enforcement status.
333363
optional bool enable_floor_setting_enforcement = 5
334364
[(google.api.field_behavior) = OPTIONAL];
365+
366+
// Optional. List of integrated services for which the floor setting is
367+
// applicable.
368+
repeated IntegratedService integrated_services = 6
369+
[(google.api.field_behavior) = OPTIONAL];
370+
371+
// Optional. AI Platform floor setting.
372+
optional AiPlatformFloorSetting ai_platform_floor_setting = 7
373+
[(google.api.field_behavior) = OPTIONAL];
374+
375+
// Optional. Metadata for FloorSetting
376+
FloorSettingMetadata floor_setting_metadata = 8
377+
[(google.api.field_behavior) = OPTIONAL];
378+
}
379+
380+
// message describing AiPlatformFloorSetting
381+
message AiPlatformFloorSetting {
382+
// enforcement type for Model Armor filters.
383+
oneof enforcement_type {
384+
// Optional. If true, Model Armor filters will be run in inspect only mode.
385+
// No action will be taken on the request.
386+
bool inspect_only = 1 [(google.api.field_behavior) = OPTIONAL];
387+
388+
// Optional. If true, Model Armor filters will be run in inspect and block
389+
// mode. Requests that trip Model Armor filters will be blocked.
390+
bool inspect_and_block = 2 [(google.api.field_behavior) = OPTIONAL];
391+
}
392+
393+
// Optional. If true, log Model Armor filter results to Cloud Logging.
394+
bool enable_cloud_logging = 3 [(google.api.field_behavior) = OPTIONAL];
335395
}
336396

337397
// Message for requesting list of Templates
@@ -639,7 +699,7 @@ message SdpAdvancedConfig {
639699
// Sanitization. All Sensitive Data Protection findings identified during
640700
// inspection will be returned as SdpFinding in SdpInsepctionResult.
641701
//
642-
// e.g.
702+
// e.g.
643703
// `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`
644704
string inspect_template = 1 [(google.api.field_behavior) = OPTIONAL];
645705

0 commit comments

Comments
 (0)