{
  "resources": {
    "projects": {
      "resources": {
        "locations": {
          "methods": {
            "list": {
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "GET",
              "description": "Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.",
              "parameters": {
                "pageSize": {
                  "location": "query",
                  "type": "integer",
                  "format": "int32",
                  "description": "The maximum number of results to return. If not set, the service selects a default."
                },
                "name": {
                  "type": "string",
                  "description": "The resource that owns the locations collection, if applicable.",
                  "pattern": "^projects/[^/]+$",
                  "location": "path",
                  "required": true
                },
                "pageToken": {
                  "location": "query",
                  "type": "string",
                  "description": "A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page."
                },
                "extraLocationTypes": {
                  "location": "query",
                  "type": "string",
                  "repeated": true,
                  "description": "Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage."
                },
                "filter": {
                  "description": "A filter to narrow down results to a preferred subset. The filtering language accepts strings like `\"displayName=tokyo\"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160).",
                  "location": "query",
                  "type": "string"
                }
              },
              "response": {
                "$ref": "ListLocationsResponse"
              },
              "flatPath": "v1/projects/{projectsId}/locations",
              "path": "v1/{+name}/locations",
              "id": "modelarmor.projects.locations.list",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ]
            },
            "get": {
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "GET",
              "description": "Gets information about a location.",
              "parameters": {
                "name": {
                  "description": "Resource name for the location.",
                  "type": "string",
                  "required": true,
                  "pattern": "^projects/[^/]+/locations/[^/]+$",
                  "location": "path"
                }
              },
              "response": {
                "$ref": "Location"
              },
              "flatPath": "v1/projects/{projectsId}/locations/{locationsId}",
              "path": "v1/{+name}",
              "id": "modelarmor.projects.locations.get",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ]
            },
            "updateFloorSetting": {
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "PATCH",
              "description": "Updates the parameters of a single floor setting of a project",
              "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/floorSetting",
              "request": {
                "$ref": "FloorSetting"
              },
              "parameters": {
                "name": {
                  "description": "Identifier. The resource name.",
                  "type": "string",
                  "required": true,
                  "pattern": "^projects/[^/]+/locations/[^/]+/floorSetting$",
                  "location": "path"
                },
                "updateMask": {
                  "description": "Optional. Field mask is used to specify the fields to be overwritten in the FloorSetting resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.",
                  "format": "google-fieldmask",
                  "location": "query",
                  "type": "string"
                }
              },
              "response": {
                "$ref": "FloorSetting"
              },
              "id": "modelarmor.projects.locations.updateFloorSetting",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "path": "v1/{+name}"
            },
            "getFloorSetting": {
              "id": "modelarmor.projects.locations.getFloorSetting",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "path": "v1/{+name}",
              "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/floorSetting",
              "parameters": {
                "name": {
                  "required": true,
                  "pattern": "^projects/[^/]+/locations/[^/]+/floorSetting$",
                  "location": "path",
                  "description": "Required. The name of the floor setting to get, example projects/123/floorsetting.",
                  "type": "string"
                }
              },
              "response": {
                "$ref": "FloorSetting"
              },
              "httpMethod": "GET",
              "description": "Gets details of a single floor setting of a project",
              "parameterOrder": [
                "name"
              ]
            }
          },
          "resources": {
            "templates": {
              "methods": {
                "list": {
                  "parameterOrder": [
                    "parent"
                  ],
                  "httpMethod": "GET",
                  "description": "Lists Templates in a given project and location.",
                  "parameters": {
                    "filter": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. Filtering results"
                    },
                    "orderBy": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. Hint for how to order the results"
                    },
                    "parent": {
                      "description": "Required. Parent value for ListTemplatesRequest",
                      "type": "string",
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "location": "path"
                    },
                    "pageToken": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. A token identifying a page of results the server should return."
                    },
                    "pageSize": {
                      "location": "query",
                      "type": "integer",
                      "format": "int32",
                      "description": "Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default."
                    }
                  },
                  "response": {
                    "$ref": "ListTemplatesResponse"
                  },
                  "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates",
                  "path": "v1/{+parent}/templates",
                  "id": "modelarmor.projects.locations.templates.list",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ]
                },
                "delete": {
                  "parameterOrder": [
                    "name"
                  ],
                  "id": "modelarmor.projects.locations.templates.delete",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "path": "v1/{+name}",
                  "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}",
                  "parameters": {
                    "requestId": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server stores the request ID for 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000)."
                    },
                    "name": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "location": "path",
                      "description": "Required. Name of the resource",
                      "type": "string"
                    }
                  },
                  "response": {
                    "$ref": "Empty"
                  },
                  "httpMethod": "DELETE",
                  "description": "Deletes a single Template."
                },
                "get": {
                  "parameterOrder": [
                    "name"
                  ],
                  "httpMethod": "GET",
                  "description": "Gets details of a single Template.",
                  "parameters": {
                    "name": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "location": "path",
                      "description": "Required. Name of the resource",
                      "type": "string"
                    }
                  },
                  "response": {
                    "$ref": "Template"
                  },
                  "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}",
                  "path": "v1/{+name}",
                  "id": "modelarmor.projects.locations.templates.get",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ]
                },
                "create": {
                  "httpMethod": "POST",
                  "description": "Creates a new Template in a given project and location.",
                  "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates",
                  "request": {
                    "$ref": "Template"
                  },
                  "parameters": {
                    "parent": {
                      "type": "string",
                      "description": "Required. Value for parent.",
                      "pattern": "^projects/[^/]+/locations/[^/]+$",
                      "location": "path",
                      "required": true
                    },
                    "requestId": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server stores the request ID for 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000)."
                    },
                    "templateId": {
                      "location": "query",
                      "type": "string",
                      "description": "Required. Id of the requesting object If auto-generating Id server-side, remove this field and template_id from the method_signature of Create RPC"
                    }
                  },
                  "response": {
                    "$ref": "Template"
                  },
                  "id": "modelarmor.projects.locations.templates.create",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "path": "v1/{+parent}/templates",
                  "parameterOrder": [
                    "parent"
                  ]
                },
                "sanitizeUserPrompt": {
                  "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}:sanitizeUserPrompt",
                  "request": {
                    "$ref": "SanitizeUserPromptRequest"
                  },
                  "parameters": {
                    "name": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "location": "path",
                      "description": "Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01",
                      "type": "string"
                    }
                  },
                  "response": {
                    "$ref": "SanitizeUserPromptResponse"
                  },
                  "id": "modelarmor.projects.locations.templates.sanitizeUserPrompt",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "path": "v1/{+name}:sanitizeUserPrompt",
                  "httpMethod": "POST",
                  "description": "Sanitizes User Prompt.",
                  "parameterOrder": [
                    "name"
                  ]
                },
                "sanitizeModelResponse": {
                  "httpMethod": "POST",
                  "description": "Sanitizes Model Response.",
                  "id": "modelarmor.projects.locations.templates.sanitizeModelResponse",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "path": "v1/{+name}:sanitizeModelResponse",
                  "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}:sanitizeModelResponse",
                  "request": {
                    "$ref": "SanitizeModelResponseRequest"
                  },
                  "parameters": {
                    "name": {
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "location": "path",
                      "description": "Required. Represents resource name of template e.g. name=projects/sample-project/locations/us-central1/templates/templ01",
                      "type": "string"
                    }
                  },
                  "response": {
                    "$ref": "SanitizeModelResponseResponse"
                  },
                  "parameterOrder": [
                    "name"
                  ]
                },
                "patch": {
                  "parameterOrder": [
                    "name"
                  ],
                  "httpMethod": "PATCH",
                  "description": "Updates the parameters of a single Template.",
                  "flatPath": "v1/projects/{projectsId}/locations/{locationsId}/templates/{templatesId}",
                  "request": {
                    "$ref": "Template"
                  },
                  "parameters": {
                    "name": {
                      "description": "Identifier. name of resource",
                      "type": "string",
                      "required": true,
                      "pattern": "^projects/[^/]+/locations/[^/]+/templates/[^/]+$",
                      "location": "path"
                    },
                    "updateMask": {
                      "format": "google-fieldmask",
                      "location": "query",
                      "type": "string",
                      "description": "Required. Field mask is used to specify the fields to be overwritten in the Template resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten."
                    },
                    "requestId": {
                      "location": "query",
                      "type": "string",
                      "description": "Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server stores the request ID for 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000)."
                    }
                  },
                  "response": {
                    "$ref": "Template"
                  },
                  "id": "modelarmor.projects.locations.templates.patch",
                  "scopes": [
                    "https://www.googleapis.com/auth/cloud-platform"
                  ],
                  "path": "v1/{+name}"
                }
              }
            }
          }
        }
      }
    },
    "organizations": {
      "resources": {
        "locations": {
          "methods": {
            "updateFloorSetting": {
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "PATCH",
              "description": "Updates the parameters of a single floor setting of a project",
              "id": "modelarmor.organizations.locations.updateFloorSetting",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "path": "v1/{+name}",
              "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/floorSetting",
              "request": {
                "$ref": "FloorSetting"
              },
              "parameters": {
                "name": {
                  "description": "Identifier. The resource name.",
                  "type": "string",
                  "required": true,
                  "pattern": "^organizations/[^/]+/locations/[^/]+/floorSetting$",
                  "location": "path"
                },
                "updateMask": {
                  "description": "Optional. Field mask is used to specify the fields to be overwritten in the FloorSetting resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.",
                  "location": "query",
                  "type": "string",
                  "format": "google-fieldmask"
                }
              },
              "response": {
                "$ref": "FloorSetting"
              }
            },
            "getFloorSetting": {
              "parameterOrder": [
                "name"
              ],
              "parameters": {
                "name": {
                  "type": "string",
                  "description": "Required. The name of the floor setting to get, example projects/123/floorsetting.",
                  "pattern": "^organizations/[^/]+/locations/[^/]+/floorSetting$",
                  "location": "path",
                  "required": true
                }
              },
              "response": {
                "$ref": "FloorSetting"
              },
              "flatPath": "v1/organizations/{organizationsId}/locations/{locationsId}/floorSetting",
              "path": "v1/{+name}",
              "id": "modelarmor.organizations.locations.getFloorSetting",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "httpMethod": "GET",
              "description": "Gets details of a single floor setting of a project"
            }
          }
        }
      }
    },
    "folders": {
      "resources": {
        "locations": {
          "methods": {
            "updateFloorSetting": {
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "PATCH",
              "description": "Updates the parameters of a single floor setting of a project",
              "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/floorSetting",
              "request": {
                "$ref": "FloorSetting"
              },
              "parameters": {
                "name": {
                  "required": true,
                  "pattern": "^folders/[^/]+/locations/[^/]+/floorSetting$",
                  "location": "path",
                  "description": "Identifier. The resource name.",
                  "type": "string"
                },
                "updateMask": {
                  "location": "query",
                  "type": "string",
                  "format": "google-fieldmask",
                  "description": "Optional. Field mask is used to specify the fields to be overwritten in the FloorSetting resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten."
                }
              },
              "response": {
                "$ref": "FloorSetting"
              },
              "id": "modelarmor.folders.locations.updateFloorSetting",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ],
              "path": "v1/{+name}"
            },
            "getFloorSetting": {
              "parameterOrder": [
                "name"
              ],
              "httpMethod": "GET",
              "description": "Gets details of a single floor setting of a project",
              "parameters": {
                "name": {
                  "required": true,
                  "pattern": "^folders/[^/]+/locations/[^/]+/floorSetting$",
                  "location": "path",
                  "description": "Required. The name of the floor setting to get, example projects/123/floorsetting.",
                  "type": "string"
                }
              },
              "response": {
                "$ref": "FloorSetting"
              },
              "flatPath": "v1/folders/{foldersId}/locations/{locationsId}/floorSetting",
              "path": "v1/{+name}",
              "id": "modelarmor.folders.locations.getFloorSetting",
              "scopes": [
                "https://www.googleapis.com/auth/cloud-platform"
              ]
            }
          }
        }
      }
    }
  },
  "canonicalName": "Model Armor",
  "ownerDomain": "google.com",
  "rootUrl": "https://modelarmor.us.rep.googleapis.com/",
  "schemas": {
    "CsamFilterResult": {
      "description": "CSAM (Child Safety Abuse Material) Filter Result",
      "id": "CsamFilterResult",
      "properties": {
        "executionState": {
          "type": "string",
          "description": "Output only. Reports whether the CSAM filter was successfully executed or not.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Filter executed successfully",
            "Filter execution was skipped. This can happen due to server-side error or permission issue."
          ],
          "enum": [
            "FILTER_EXECUTION_STATE_UNSPECIFIED",
            "EXECUTION_SUCCESS",
            "EXECUTION_SKIPPED"
          ]
        },
        "matchState": {
          "description": "Output only. Match state for CSAM.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ],
          "type": "string",
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ]
        },
        "messageItems": {
          "items": {
            "$ref": "MessageItem"
          },
          "description": "Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation.",
          "type": "array"
        }
      },
      "type": "object"
    },
    "TemplateMetadata": {
      "type": "object",
      "description": "Message describing TemplateMetadata",
      "id": "TemplateMetadata",
      "properties": {
        "multiLanguageDetection": {
          "description": "Optional. Metadata for multi language detection.",
          "$ref": "MultiLanguageDetection"
        },
        "customLlmResponseSafetyErrorMessage": {
          "type": "string",
          "description": "Optional. Indicates the custom error message set by the user to be returned to the end user if the LLM response trips Model Armor filters."
        },
        "customPromptSafetyErrorCode": {
          "description": "Optional. Indicates the custom error code set by the user to be returned to the end user by the service extension if the prompt trips Model Armor filters.",
          "type": "integer",
          "format": "int32"
        },
        "customLlmResponseSafetyErrorCode": {
          "type": "integer",
          "format": "int32",
          "description": "Optional. Indicates the custom error code set by the user to be returned to the end user if the LLM response trips Model Armor filters."
        },
        "logTemplateOperations": {
          "description": "Optional. If true, log template crud operations.",
          "type": "boolean"
        },
        "filterVersionSelector": {
          "description": "Optional. Specifies the configuration for the Filter version to be used. If this field is populated, it takes precedence over any values set in the deprecated `filter_version` fields within `RaiFilterSettings`, `PiAndJailbreakFilterSettings`, and `TopicalityFilterSettings`.",
          "$ref": "FilterVersionSelector"
        },
        "ignorePartialInvocationFailures": {
          "type": "boolean",
          "description": "Optional. If true, partial detector failures should be ignored."
        },
        "enforcementType": {
          "type": "string",
          "enum": [
            "ENFORCEMENT_TYPE_UNSPECIFIED",
            "INSPECT_ONLY",
            "INSPECT_AND_BLOCK"
          ],
          "description": "Optional. Enforcement type for Model Armor filters.",
          "enumDescriptions": [
            "Default value. Same as INSPECT_AND_BLOCK.",
            "Model Armor filters will run in inspect only mode. No action will be taken on the request.",
            "Model Armor filters will run in inspect and block mode. Requests that trip Model Armor filters will be blocked."
          ]
        },
        "customPromptSafetyErrorMessage": {
          "type": "string",
          "description": "Optional. Indicates the custom error message set by the user to be returned to the end user if the prompt trips Model Armor filters."
        },
        "logSanitizeOperations": {
          "description": "Optional. If true, log sanitize operations.",
          "type": "boolean"
        }
      }
    },
    "FloorSettingMetadata": {
      "description": "message describing FloorSetting Metadata",
      "id": "FloorSettingMetadata",
      "properties": {
        "multiLanguageDetection": {
          "description": "Optional. Metadata for multi language detection.",
          "$ref": "FloorSettingFloorSettingMetadataMultiLanguageDetection"
        }
      },
      "type": "object"
    },
    "FilterVersionConfig": {
      "type": "object",
      "description": "Message describing a Filter Version Configuration.",
      "id": "FilterVersionConfig",
      "properties": {
        "filterVersionAlias": {
          "enum": [
            "FILTER_VERSION_ALIAS_UNSPECIFIED",
            "FILTER_VERSION_ALIAS_STABLE",
            "FILTER_VERSION_ALIAS_LATEST",
            "FILTER_VERSION_ALIAS_LEGACY",
            "FILTER_VERSION_ALIAS_RETIRED"
          ],
          "description": "Output only. The alias associated with this version, if any (e.g., \"STABLE\", \"LATEST\"). This will be populated if this version is currently mapped to an alias.",
          "readOnly": true,
          "enumDescriptions": [
            "The default value. If used, it will resolve to the `STABLE` alias.",
            "The `STABLE` alias points to the most recent stable model version. Using this alias means no code changes are required when a new model becomes the stable version.",
            "The `LATEST` alias points to the newest model version available. This version is subject to frequent revisions and offers SLO guarantees but does not assure stability, providing the most current security protections.",
            "The `LEGACY` alias could be used for sanitization operations for a transition period. New templates cannot be created with this version.",
            "The `RETIRED` alias could be used for versions that are no longer available to be used. While new templates cannot be created with this alias, any existing template or request using `RETIRED` version will fall back to the current `STABLE` version for sanitization operations."
          ],
          "type": "string"
        },
        "messageItems": {
          "description": "Output only. Extra information regarding this filter version",
          "readOnly": true,
          "items": {
            "$ref": "MessageItem"
          },
          "type": "array"
        },
        "releaseDate": {
          "description": "Output only. The date when this version was released.",
          "readOnly": true,
          "$ref": "Date"
        },
        "filterVersion": {
          "type": "string",
          "description": "Output only. The identifier for this specific version.",
          "readOnly": true
        },
        "projectedDeprecationDate": {
          "description": "Output only. The estimated date when this version is projected to be deprecated.",
          "readOnly": true,
          "$ref": "Date"
        }
      }
    },
    "RaiFilter": {
      "type": "object",
      "id": "RaiFilter",
      "properties": {
        "filterType": {
          "description": "Required. Type of responsible AI filter.",
          "enumDescriptions": [
            "Unspecified filter type.",
            "Sexually Explicit.",
            "Hate Speech.",
            "Harassment.",
            "Danger"
          ],
          "enum": [
            "RAI_FILTER_TYPE_UNSPECIFIED",
            "SEXUALLY_EXPLICIT",
            "HATE_SPEECH",
            "HARASSMENT",
            "DANGEROUS"
          ],
          "type": "string"
        },
        "confidenceLevel": {
          "type": "string",
          "enum": [
            "DETECTION_CONFIDENCE_LEVEL_UNSPECIFIED",
            "LOW_AND_ABOVE",
            "MEDIUM_AND_ABOVE",
            "HIGH"
          ],
          "description": "Optional. Confidence level for this RAI filter. During data sanitization, if data is classified under this filter with a confidence level equal to or greater than the specified level, a positive match is reported. If the confidence level is unspecified (i.e., 0), the system will use a reasonable default level based on the `filter_type`.",
          "enumDescriptions": [
            "Same as LOW_AND_ABOVE.",
            "Highest chance of a false positive.",
            "Some chance of false positives.",
            "Low chance of false positives."
          ]
        }
      },
      "description": "Responsible AI filter."
    },
    "McpServerFloorSetting": {
      "type": "object",
      "id": "McpServerFloorSetting",
      "properties": {
        "inspectOnly": {
          "type": "boolean",
          "description": "Optional. If true, Model Armor filters will be run in inspect only mode. No action will be taken on the request."
        },
        "inspectAndBlock": {
          "description": "Optional. If true, Model Armor filters will be run in inspect and block mode. Requests that trip Model Armor filters will be blocked.",
          "type": "boolean"
        },
        "enableCloudLogging": {
          "type": "boolean",
          "description": "Optional. If true, log Model Armor filter results to Cloud Logging."
        }
      },
      "description": "Message describing MCP Server Floor Setting."
    },
    "ListTemplatesResponse": {
      "type": "object",
      "description": "Message for response to listing Templates",
      "id": "ListTemplatesResponse",
      "properties": {
        "templates": {
          "items": {
            "$ref": "Template"
          },
          "description": "The list of Template",
          "type": "array"
        },
        "nextPageToken": {
          "type": "string",
          "description": "A token identifying a page of results the server should return."
        },
        "unreachable": {
          "items": {
            "type": "string"
          },
          "description": "Locations that could not be reached.",
          "type": "array"
        }
      }
    },
    "SdpBasicConfig": {
      "id": "SdpBasicConfig",
      "properties": {
        "filterEnforcement": {
          "type": "string",
          "description": "Optional. Tells whether the Sensitive Data Protection basic config is enabled or disabled.",
          "enumDescriptions": [
            "Same as Disabled",
            "Enabled",
            "Disabled"
          ],
          "enum": [
            "SDP_BASIC_CONFIG_ENFORCEMENT_UNSPECIFIED",
            "ENABLED",
            "DISABLED"
          ]
        }
      },
      "description": "Sensitive Data Protection basic configuration.",
      "type": "object"
    },
    "RaiFilterSettings": {
      "type": "object",
      "id": "RaiFilterSettings",
      "properties": {
        "raiFilters": {
          "items": {
            "$ref": "RaiFilter"
          },
          "description": "Required. List of Responsible AI filters enabled for template.",
          "type": "array"
        }
      },
      "description": "Responsible AI Filter settings."
    },
    "MaliciousUriMatchedItem": {
      "type": "object",
      "description": "Information regarding malicious URI and its location within the input content.",
      "id": "MaliciousUriMatchedItem",
      "properties": {
        "uri": {
          "type": "string",
          "description": "Malicious URI."
        },
        "locations": {
          "items": {
            "$ref": "RangeInfo"
          },
          "description": "List of locations where Malicious URI is identified. The `locations` field is supported only for plaintext content i.e. ByteItemType.PLAINTEXT_UTF8",
          "type": "array"
        }
      }
    },
    "MultiLanguageDetection": {
      "type": "object",
      "id": "MultiLanguageDetection",
      "properties": {
        "enableMultiLanguageDetection": {
          "description": "Required. If true, multi language detection will be enabled.",
          "type": "boolean"
        }
      },
      "description": "Metadata to enable multi language detection via template."
    },
    "SdpFilterResult": {
      "description": "Sensitive Data Protection filter result.",
      "id": "SdpFilterResult",
      "properties": {
        "inspectResult": {
          "description": "Sensitive Data Protection Inspection result if inspection is performed.",
          "$ref": "SdpInspectResult"
        },
        "deidentifyResult": {
          "description": "Sensitive Data Protection Deidentification result if deidentification is performed.",
          "$ref": "SdpDeidentifyResult"
        }
      },
      "type": "object"
    },
    "SdpDeidentifyResult": {
      "description": "Sensitive Data Protection Deidentification Result.",
      "id": "SdpDeidentifyResult",
      "properties": {
        "data": {
          "description": "De-identified data.",
          "$ref": "DataItem"
        },
        "infoTypes": {
          "type": "array",
          "description": "List of Sensitive Data Protection info-types that were de-identified.",
          "items": {
            "type": "string"
          }
        },
        "matchState": {
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ],
          "type": "string",
          "description": "Output only. Match state for Sensitive Data Protection Deidentification. Value is MATCH_FOUND if content is de-identified.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ]
        },
        "messageItems": {
          "type": "array",
          "items": {
            "$ref": "MessageItem"
          },
          "description": "Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation."
        },
        "transformedBytes": {
          "description": "Total size in bytes that were transformed during deidentification.",
          "type": "string",
          "format": "int64"
        },
        "executionState": {
          "type": "string",
          "description": "Output only. Reports whether Sensitive Data Protection deidentification was successfully executed or not.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Filter executed successfully",
            "Filter execution was skipped. This can happen due to server-side error or permission issue."
          ],
          "enum": [
            "FILTER_EXECUTION_STATE_UNSPECIFIED",
            "EXECUTION_SUCCESS",
            "EXECUTION_SKIPPED"
          ]
        }
      },
      "type": "object"
    },
    "MaliciousUriFilterResult": {
      "id": "MaliciousUriFilterResult",
      "properties": {
        "executionState": {
          "type": "string",
          "description": "Output only. Reports whether Malicious URI filter was successfully executed or not.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Filter executed successfully",
            "Filter execution was skipped. This can happen due to server-side error or permission issue."
          ],
          "enum": [
            "FILTER_EXECUTION_STATE_UNSPECIFIED",
            "EXECUTION_SUCCESS",
            "EXECUTION_SKIPPED"
          ]
        },
        "matchState": {
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ],
          "type": "string",
          "description": "Output only. Match state for this Malicious URI. Value is MATCH_FOUND if at least one Malicious URI is found.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ]
        },
        "messageItems": {
          "items": {
            "$ref": "MessageItem"
          },
          "description": "Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation.",
          "type": "array"
        },
        "maliciousUriMatchedItems": {
          "items": {
            "$ref": "MaliciousUriMatchedItem"
          },
          "description": "List of Malicious URIs found in data.",
          "type": "array"
        }
      },
      "description": "Malicious URI Filter Result.",
      "type": "object"
    },
    "SdpAdvancedConfig": {
      "description": "Sensitive Data Protection Advanced configuration.",
      "id": "SdpAdvancedConfig",
      "properties": {
        "deidentifyTemplate": {
          "type": "string",
          "description": "Optional. Optional Sensitive Data Protection Deidentify template resource name. If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template. e.g. `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}`"
        },
        "inspectTemplate": {
          "description": "Optional. Sensitive Data Protection inspect template resource name If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult. e.g. `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}`",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Template": {
      "description": "Message describing Template resource",
      "id": "Template",
      "properties": {
        "templateMetadata": {
          "description": "Optional. metadata for this template",
          "$ref": "TemplateMetadata"
        },
        "labels": {
          "description": "Optional. Labels as key value pairs",
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "name": {
          "type": "string",
          "description": "Identifier. name of resource"
        },
        "createTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. [Output only] Create time stamp",
          "readOnly": true
        },
        "updateTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. [Output only] Update time stamp",
          "readOnly": true
        },
        "filterConfig": {
          "description": "Required. filter configuration for this template",
          "$ref": "FilterConfig"
        }
      },
      "type": "object"
    },
    "FilterResult": {
      "description": "Filter Result obtained after Sanitization operations.",
      "id": "FilterResult",
      "properties": {
        "virusScanFilterResult": {
          "description": "Virus scan results.",
          "$ref": "VirusScanFilterResult"
        },
        "raiFilterResult": {
          "description": "Responsible AI filter results.",
          "$ref": "RaiFilterResult"
        },
        "piAndJailbreakFilterResult": {
          "description": "Prompt injection and Jailbreak filter results.",
          "$ref": "PiAndJailbreakFilterResult"
        },
        "csamFilterFilterResult": {
          "description": "CSAM filter results.",
          "$ref": "CsamFilterResult"
        },
        "sdpFilterResult": {
          "description": "Sensitive Data Protection results.",
          "$ref": "SdpFilterResult"
        },
        "maliciousUriFilterResult": {
          "description": "Malicious URI filter results.",
          "$ref": "MaliciousUriFilterResult"
        }
      },
      "type": "object"
    },
    "SdpInspectResult": {
      "description": "Sensitive Data Protection Inspection Result.",
      "id": "SdpInspectResult",
      "properties": {
        "findings": {
          "description": "List of Sensitive Data Protection findings.",
          "items": {
            "$ref": "SdpFinding"
          },
          "type": "array"
        },
        "matchState": {
          "description": "Output only. Match state for SDP Inspection. Value is MATCH_FOUND if at least one Sensitive Data Protection finding is identified.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ],
          "type": "string",
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ]
        },
        "messageItems": {
          "type": "array",
          "items": {
            "$ref": "MessageItem"
          },
          "description": "Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation."
        },
        "executionState": {
          "enum": [
            "FILTER_EXECUTION_STATE_UNSPECIFIED",
            "EXECUTION_SUCCESS",
            "EXECUTION_SKIPPED"
          ],
          "description": "Output only. Reports whether Sensitive Data Protection inspection was successfully executed or not.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Filter executed successfully",
            "Filter execution was skipped. This can happen due to server-side error or permission issue."
          ],
          "type": "string"
        },
        "findingsTruncated": {
          "type": "boolean",
          "description": "If true, then there is possibility that more findings were identified and the findings returned are a subset of all findings. The findings list might be truncated because the input items were too large, or because the server reached the maximum amount of resources allowed for a single API call."
        }
      },
      "type": "object"
    },
    "FilterConfig": {
      "type": "object",
      "description": "Filters configuration.",
      "id": "FilterConfig",
      "properties": {
        "sdpSettings": {
          "description": "Optional. Sensitive Data Protection settings.",
          "$ref": "SdpFilterSettings"
        },
        "piAndJailbreakFilterSettings": {
          "description": "Optional. Prompt injection and Jailbreak filter settings.",
          "$ref": "PiAndJailbreakFilterSettings"
        },
        "maliciousUriFilterSettings": {
          "description": "Optional. Malicious URI filter settings.",
          "$ref": "MaliciousUriFilterSettings"
        },
        "raiSettings": {
          "description": "Optional. Responsible AI settings.",
          "$ref": "RaiFilterSettings"
        }
      }
    },
    "SdpFinding": {
      "type": "object",
      "id": "SdpFinding",
      "properties": {
        "infoType": {
          "type": "string",
          "description": "Name of Sensitive Data Protection info type for this finding."
        },
        "location": {
          "description": "Location for this finding.",
          "$ref": "SdpFindingLocation"
        },
        "likelihood": {
          "enum": [
            "SDP_FINDING_LIKELIHOOD_UNSPECIFIED",
            "VERY_UNLIKELY",
            "UNLIKELY",
            "POSSIBLE",
            "LIKELY",
            "VERY_LIKELY"
          ],
          "description": "Identified confidence likelihood for `info_type`.",
          "enumDescriptions": [
            "Default value; same as POSSIBLE.",
            "Highest chance of a false positive.",
            "High chance of a false positive.",
            "Some matching signals. The default value.",
            "Low chance of a false positive.",
            "Confidence level is high. Lowest chance of a false positive."
          ],
          "type": "string"
        }
      },
      "description": "Finding corresponding to Sensitive Data Protection filter."
    },
    "SdpFilterSettings": {
      "id": "SdpFilterSettings",
      "properties": {
        "basicConfig": {
          "description": "Optional. Basic Sensitive Data Protection configuration inspects the content for sensitive data using a fixed set of six info-types. Sensitive Data Protection templates cannot be used with basic configuration. Only Sensitive Data Protection inspection operation is supported with basic configuration.",
          "$ref": "SdpBasicConfig"
        },
        "advancedConfig": {
          "description": "Optional. Advanced Sensitive Data Protection configuration which enables use of Sensitive Data Protection templates. Supports both Sensitive Data Protection inspection and de-identification operations.",
          "$ref": "SdpAdvancedConfig"
        }
      },
      "description": "Sensitive Data Protection settings.",
      "type": "object"
    },
    "DataItem": {
      "description": "Represents Data item",
      "id": "DataItem",
      "properties": {
        "byteItem": {
          "description": "Data provided in the form of bytes.",
          "$ref": "ByteDataItem"
        },
        "text": {
          "type": "string",
          "description": "Plaintext string data for sanitization."
        }
      },
      "type": "object"
    },
    "SanitizationMetadata": {
      "type": "object",
      "id": "SanitizationMetadata",
      "properties": {
        "errorMessage": {
          "type": "string",
          "description": "Error message if any."
        },
        "errorCode": {
          "description": "Error code if any.",
          "format": "int64",
          "type": "string"
        },
        "filterVersionConfig": {
          "$ref": "FilterVersionConfig",
          "description": "Output only. Provides details about the Filter Version configuration used to sanitize this request.",
          "readOnly": true
        },
        "streamChunkProcessed": {
          "description": "Output only. The stream chunk processed by the Sanitization service.",
          "readOnly": true,
          "$ref": "DataItem"
        },
        "ignorePartialInvocationFailures": {
          "type": "boolean",
          "description": "Passthrough field defined in TemplateMetadata to indicate whether to ignore partial invocation failures."
        }
      },
      "description": "Message describing Sanitization metadata."
    },
    "PiAndJailbreakFilterSettings": {
      "type": "object",
      "description": "Prompt injection and Jailbreak Filter settings.",
      "id": "PiAndJailbreakFilterSettings",
      "properties": {
        "filterEnforcement": {
          "enum": [
            "PI_AND_JAILBREAK_FILTER_ENFORCEMENT_UNSPECIFIED",
            "ENABLED",
            "DISABLED"
          ],
          "description": "Optional. Tells whether Prompt injection and Jailbreak filter is enabled or disabled.",
          "enumDescriptions": [
            "Same as Disabled",
            "Enabled",
            "Disabled"
          ],
          "type": "string"
        },
        "confidenceLevel": {
          "type": "string",
          "description": "Optional. Confidence level for this filter. Confidence level is used to determine the threshold for the filter. If detection confidence is equal to or greater than the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled.",
          "enumDescriptions": [
            "Same as LOW_AND_ABOVE.",
            "Highest chance of a false positive.",
            "Some chance of false positives.",
            "Low chance of false positives."
          ],
          "enum": [
            "DETECTION_CONFIDENCE_LEVEL_UNSPECIFIED",
            "LOW_AND_ABOVE",
            "MEDIUM_AND_ABOVE",
            "HIGH"
          ]
        }
      }
    },
    "RaiFilterResult": {
      "id": "RaiFilterResult",
      "properties": {
        "messageItems": {
          "items": {
            "$ref": "MessageItem"
          },
          "description": "Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation.",
          "type": "array"
        },
        "executionState": {
          "enum": [
            "FILTER_EXECUTION_STATE_UNSPECIFIED",
            "EXECUTION_SUCCESS",
            "EXECUTION_SKIPPED"
          ],
          "description": "Output only. Reports whether the RAI filter was successfully executed or not.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Filter executed successfully",
            "Filter execution was skipped. This can happen due to server-side error or permission issue."
          ],
          "type": "string"
        },
        "matchState": {
          "type": "string",
          "description": "Output only. Overall filter match state for RAI. Value is MATCH_FOUND if at least one RAI filter confidence level is equal to or higher than the confidence level defined in configuration.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ],
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ]
        },
        "raiFilterTypeResults": {
          "type": "object",
          "additionalProperties": {
            "$ref": "RaiFilterTypeResult"
          },
          "description": "The map of RAI filter results where key is RAI filter type - either of \"sexually_explicit\", \"hate_speech\", \"harassment\", \"dangerous\", \"violence\", \"sexually_suggestive\"."
        }
      },
      "description": "Responsible AI Result.",
      "type": "object"
    },
    "MaliciousUriFilterSettings": {
      "type": "object",
      "id": "MaliciousUriFilterSettings",
      "properties": {
        "filterEnforcement": {
          "type": "string",
          "description": "Optional. Tells whether the Malicious URI filter is enabled or disabled.",
          "enumDescriptions": [
            "Same as Disabled",
            "Enabled",
            "Disabled"
          ],
          "enum": [
            "MALICIOUS_URI_FILTER_ENFORCEMENT_UNSPECIFIED",
            "ENABLED",
            "DISABLED"
          ]
        }
      },
      "description": "Malicious URI filter settings."
    },
    "MessageItem": {
      "description": "Message item to report information, warning or error messages.",
      "id": "MessageItem",
      "properties": {
        "message": {
          "type": "string",
          "description": "The message content."
        },
        "messageType": {
          "description": "Type of message.",
          "enumDescriptions": [
            "Unused",
            "Information related message.",
            "Warning related message.",
            "Error message."
          ],
          "enum": [
            "MESSAGE_TYPE_UNSPECIFIED",
            "INFO",
            "WARNING",
            "ERROR"
          ],
          "type": "string"
        }
      },
      "type": "object"
    },
    "FloorSetting": {
      "description": "Message describing FloorSetting resource",
      "id": "FloorSetting",
      "properties": {
        "aiPlatformFloorSetting": {
          "description": "Optional. AI Platform floor setting.",
          "$ref": "AiPlatformFloorSetting"
        },
        "integratedServices": {
          "items": {
            "enumDescriptions": [
              "Unspecified integrated service.",
              "AI Platform.",
              "Google MCP Server (via Shim Service Extension)"
            ],
            "enum": [
              "INTEGRATED_SERVICE_UNSPECIFIED",
              "AI_PLATFORM",
              "GOOGLE_MCP_SERVER"
            ],
            "type": "string"
          },
          "description": "Optional. List of integrated services for which the floor setting is applicable.",
          "type": "array"
        },
        "createTime": {
          "type": "string",
          "format": "google-datetime",
          "description": "Output only. [Output only] Create timestamp",
          "readOnly": true
        },
        "updateTime": {
          "format": "google-datetime",
          "type": "string",
          "description": "Output only. [Output only] Update timestamp",
          "readOnly": true
        },
        "filterConfig": {
          "description": "Required. ModelArmor filter configuration.",
          "$ref": "FilterConfig"
        },
        "googleMcpServerFloorSetting": {
          "description": "Optional. Google MCP Server floor setting.",
          "$ref": "McpServerFloorSetting"
        },
        "enableFloorSettingEnforcement": {
          "description": "Optional. Floor Settings enforcement status.",
          "type": "boolean"
        },
        "name": {
          "type": "string",
          "description": "Identifier. The resource name."
        },
        "floorSettingMetadata": {
          "description": "Optional. Metadata for FloorSetting",
          "$ref": "FloorSettingMetadata"
        }
      },
      "type": "object"
    },
    "MultiLanguageDetectionMetadata": {
      "description": "Message for Enabling Multi Language Detection.",
      "id": "MultiLanguageDetectionMetadata",
      "properties": {
        "sourceLanguage": {
          "type": "string",
          "description": "Optional. Optional Source language of the user prompt. If multi-language detection is enabled and this field is not set, the source language will be automatically detected. When a source language is provided, Model Armor uses it to sanitize the input. In that case the system does not perform auto-detection and relies solely on the specified language. This string field accepts a language code from the ISO-639 standard. For a list of languages supported by Model Armor, see [Model Armor supported languages] (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported). For a comprehensive list of language codes, see [ISO-639](https://cloud.google.com/translate/docs/languages#nmt)."
        },
        "enableMultiLanguageDetection": {
          "description": "Optional. Enable detection of multi-language prompts and responses.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "SanitizeModelResponseResponse": {
      "description": "Sanitized Model Response Response.",
      "id": "SanitizeModelResponseResponse",
      "properties": {
        "sanitizationResult": {
          "description": "Output only. Sanitization Result.",
          "readOnly": true,
          "$ref": "SanitizationResult"
        }
      },
      "type": "object"
    },
    "RaiFilterTypeResult": {
      "type": "object",
      "description": "Detailed Filter result for each of the responsible AI Filter Types.",
      "id": "RaiFilterTypeResult",
      "properties": {
        "confidenceLevel": {
          "type": "string",
          "enum": [
            "DETECTION_CONFIDENCE_LEVEL_UNSPECIFIED",
            "LOW_AND_ABOVE",
            "MEDIUM_AND_ABOVE",
            "HIGH"
          ],
          "description": "Confidence level identified for this RAI filter.",
          "enumDescriptions": [
            "Same as LOW_AND_ABOVE.",
            "Highest chance of a false positive.",
            "Some chance of false positives.",
            "Low chance of false positives."
          ]
        },
        "matchState": {
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ],
          "description": "Output only. Match state for this RAI filter.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ],
          "type": "string"
        },
        "filterType": {
          "description": "Type of responsible AI filter.",
          "enumDescriptions": [
            "Unspecified filter type.",
            "Sexually Explicit.",
            "Hate Speech.",
            "Harassment.",
            "Danger"
          ],
          "enum": [
            "RAI_FILTER_TYPE_UNSPECIFIED",
            "SEXUALLY_EXPLICIT",
            "HATE_SPEECH",
            "HARASSMENT",
            "DANGEROUS"
          ],
          "type": "string"
        }
      }
    },
    "SanitizeUserPromptRequest": {
      "type": "object",
      "id": "SanitizeUserPromptRequest",
      "properties": {
        "streamingMode": {
          "enum": [
            "STREAMING_MODE_UNSPECIFIED",
            "STREAMING_MODE_BUFFERED",
            "STREAMING_MODE_REALTIME"
          ],
          "description": "Optional. Streaming Mode for StreamSanitize* API.",
          "enumDescriptions": [
            "Default value.",
            "Buffered Streaming mode.",
            "Real Time Streaming mode."
          ],
          "type": "string"
        },
        "multiLanguageDetectionMetadata": {
          "description": "Optional. Metadata related to Multi Language Detection.",
          "$ref": "MultiLanguageDetectionMetadata"
        },
        "userPromptData": {
          "description": "Required. User prompt data to sanitize.",
          "$ref": "DataItem"
        }
      },
      "description": "Sanitize User Prompt request."
    },
    "Empty": {
      "id": "Empty",
      "properties": {},
      "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
      "type": "object"
    },
    "ByteDataItem": {
      "description": "Represents Byte Data item.",
      "id": "ByteDataItem",
      "properties": {
        "byteDataType": {
          "enum": [
            "BYTE_ITEM_TYPE_UNSPECIFIED",
            "PLAINTEXT_UTF8",
            "PDF",
            "WORD_DOCUMENT",
            "EXCEL_DOCUMENT",
            "POWERPOINT_DOCUMENT",
            "TXT",
            "CSV"
          ],
          "description": "Required. The type of byte data",
          "enumDescriptions": [
            "Unused",
            "plain text",
            "PDF",
            "DOCX, DOCM, DOTX, DOTM",
            "XLSX, XLSM, XLTX, XLYM",
            "PPTX, PPTM, POTX, POTM, POT",
            "TXT",
            "CSV"
          ],
          "type": "string"
        },
        "byteData": {
          "format": "byte",
          "type": "string",
          "description": "Required. Bytes Data"
        },
        "fileLabel": {
          "type": "string",
          "description": "Optional. Label of the file. This is used to identify the file in the response."
        }
      },
      "type": "object"
    },
    "VirusScanFilterResult": {
      "description": "Virus scan results.",
      "id": "VirusScanFilterResult",
      "properties": {
        "messageItems": {
          "items": {
            "$ref": "MessageItem"
          },
          "description": "Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution status is skipped then this field provides related reason/explanation.",
          "type": "array"
        },
        "executionState": {
          "type": "string",
          "description": "Output only. Reports whether Virus Scan was successfully executed or not.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Filter executed successfully",
            "Filter execution was skipped. This can happen due to server-side error or permission issue."
          ],
          "enum": [
            "FILTER_EXECUTION_STATE_UNSPECIFIED",
            "EXECUTION_SUCCESS",
            "EXECUTION_SKIPPED"
          ]
        },
        "scannedSize": {
          "description": "Size of scanned content in bytes.",
          "format": "int64",
          "type": "string"
        },
        "matchState": {
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ],
          "description": "Output only. Match status for Virus. Value is MATCH_FOUND if the data is infected with a virus.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ],
          "type": "string"
        },
        "scannedContentType": {
          "type": "string",
          "description": "Type of content scanned.",
          "enumDescriptions": [
            "Unused",
            "Unknown content",
            "Plaintext",
            "PDF Scanning for only PDF is supported."
          ],
          "enum": [
            "SCANNED_CONTENT_TYPE_UNSPECIFIED",
            "UNKNOWN",
            "PLAINTEXT",
            "PDF"
          ]
        },
        "virusDetails": {
          "description": "List of Viruses identified. This field will be empty if no virus was detected.",
          "items": {
            "$ref": "VirusDetail"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "FloorSettingFloorSettingMetadataMultiLanguageDetection": {
      "type": "object",
      "description": "Metadata to enable multi language detection via floor setting.",
      "id": "FloorSettingFloorSettingMetadataMultiLanguageDetection",
      "properties": {
        "enableMultiLanguageDetection": {
          "description": "Required. If true, multi language detection will be enabled.",
          "type": "boolean"
        }
      }
    },
    "SanitizeModelResponseRequest": {
      "description": "Sanitize Model Response request.",
      "id": "SanitizeModelResponseRequest",
      "properties": {
        "userPrompt": {
          "type": "string",
          "description": "Optional. User Prompt associated with Model response."
        },
        "modelResponseData": {
          "description": "Required. Model response data to sanitize.",
          "$ref": "DataItem"
        },
        "multiLanguageDetectionMetadata": {
          "description": "Optional. Metadata related for multi language detection.",
          "$ref": "MultiLanguageDetectionMetadata"
        },
        "streamingMode": {
          "type": "string",
          "enum": [
            "STREAMING_MODE_UNSPECIFIED",
            "STREAMING_MODE_BUFFERED",
            "STREAMING_MODE_REALTIME"
          ],
          "description": "Optional. Streaming Mode for StreamSanitize* API.",
          "enumDescriptions": [
            "Default value.",
            "Buffered Streaming mode.",
            "Real Time Streaming mode."
          ]
        }
      },
      "type": "object"
    },
    "FilterVersionSelector": {
      "id": "FilterVersionSelector",
      "properties": {
        "version": {
          "description": "Allows customers to pin to a specific, immutable Filter Version. This provides stability, as this will not change after a version upgrade. Expected format is a case-sensitive string, e.g., \"v1\", \"v2\". Requests providing an invalid or non-existent version string will be rejected with an `INVALID_ARGUMENT` error.",
          "type": "string"
        },
        "alias": {
          "description": "Allows customers to use a predefined alias that dynamically points to a specific version based on internal upgrades. This offers flexibility and reduces the need for template updates.",
          "enumDescriptions": [
            "The default value. If used, it will resolve to the `STABLE` alias.",
            "The `STABLE` alias points to the most recent stable model version. Using this alias means no code changes are required when a new model becomes the stable version.",
            "The `LATEST` alias points to the newest model version available. This version is subject to frequent revisions and offers SLO guarantees but does not assure stability, providing the most current security protections.",
            "The `LEGACY` alias could be used for sanitization operations for a transition period. New templates cannot be created with this version.",
            "The `RETIRED` alias could be used for versions that are no longer available to be used. While new templates cannot be created with this alias, any existing template or request using `RETIRED` version will fall back to the current `STABLE` version for sanitization operations."
          ],
          "enum": [
            "FILTER_VERSION_ALIAS_UNSPECIFIED",
            "FILTER_VERSION_ALIAS_STABLE",
            "FILTER_VERSION_ALIAS_LATEST",
            "FILTER_VERSION_ALIAS_LEGACY",
            "FILTER_VERSION_ALIAS_RETIRED"
          ],
          "type": "string"
        }
      },
      "description": "Represents the configuration for selecting a Filter Version. Allows customers to choose to use either a specific version or a predefined alias.",
      "type": "object"
    },
    "Location": {
      "description": "A resource that represents a Google Cloud location.",
      "id": "Location",
      "properties": {
        "metadata": {
          "description": "Service-specific metadata. For example the available capacity at the given location.",
          "additionalProperties": {
            "description": "Properties of the object. Contains field @type with type URL.",
            "type": "any"
          },
          "type": "object"
        },
        "locationId": {
          "type": "string",
          "description": "The canonical id for this location. For example: `\"us-east1\"`."
        },
        "name": {
          "type": "string",
          "description": "Resource name for the location, which may vary between implementations. For example: `\"projects/example-project/locations/us-east1\"`"
        },
        "displayName": {
          "description": "The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".",
          "type": "string"
        },
        "labels": {
          "type": "object",
          "description": "Cross-service attributes for the location. For example {\"cloud.googleapis.com/region\": \"us-east1\"}",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "type": "object"
    },
    "PiAndJailbreakFilterResult": {
      "id": "PiAndJailbreakFilterResult",
      "properties": {
        "messageItems": {
          "description": "Optional messages corresponding to the result. A message can provide warnings or error details. For example, if execution state is skipped then this field provides related reason/explanation.",
          "items": {
            "$ref": "MessageItem"
          },
          "type": "array"
        },
        "confidenceLevel": {
          "type": "string",
          "description": "Confidence level identified for Prompt injection and Jailbreak.",
          "enumDescriptions": [
            "Same as LOW_AND_ABOVE.",
            "Highest chance of a false positive.",
            "Some chance of false positives.",
            "Low chance of false positives."
          ],
          "enum": [
            "DETECTION_CONFIDENCE_LEVEL_UNSPECIFIED",
            "LOW_AND_ABOVE",
            "MEDIUM_AND_ABOVE",
            "HIGH"
          ]
        },
        "executionState": {
          "description": "Output only. Reports whether Prompt injection and Jailbreak filter was successfully executed or not.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Filter executed successfully",
            "Filter execution was skipped. This can happen due to server-side error or permission issue."
          ],
          "type": "string",
          "enum": [
            "FILTER_EXECUTION_STATE_UNSPECIFIED",
            "EXECUTION_SUCCESS",
            "EXECUTION_SKIPPED"
          ]
        },
        "matchState": {
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ],
          "description": "Output only. Match state for Prompt injection and Jailbreak.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ],
          "type": "string"
        }
      },
      "description": "Prompt injection and Jailbreak Filter Result.",
      "type": "object"
    },
    "Date": {
      "type": "object",
      "id": "Date",
      "properties": {
        "month": {
          "description": "Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.",
          "type": "integer",
          "format": "int32"
        },
        "day": {
          "description": "Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant.",
          "type": "integer",
          "format": "int32"
        },
        "year": {
          "format": "int32",
          "type": "integer",
          "description": "Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year."
        }
      },
      "description": "Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp"
    },
    "ListLocationsResponse": {
      "id": "ListLocationsResponse",
      "properties": {
        "locations": {
          "type": "array",
          "description": "A list of locations that matches the specified filter in the request.",
          "items": {
            "$ref": "Location"
          }
        },
        "nextPageToken": {
          "description": "The standard List next-page token.",
          "type": "string"
        }
      },
      "description": "The response message for Locations.ListLocations.",
      "type": "object"
    },
    "SanitizationResult": {
      "id": "SanitizationResult",
      "properties": {
        "filterMatchState": {
          "enum": [
            "FILTER_MATCH_STATE_UNSPECIFIED",
            "NO_MATCH_FOUND",
            "MATCH_FOUND"
          ],
          "description": "Output only. Overall filter match state for Sanitization. The state can have below two values. 1) NO_MATCH_FOUND: No filters in configuration satisfy matching criteria. In other words, input passed all filters. 2) MATCH_FOUND: At least one filter in configuration satisfies matching. In other words, input did not pass one or more filters.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused",
            "Matching criteria is not achieved for filters.",
            "Matching criteria is achieved for the filter."
          ],
          "type": "string"
        },
        "filterResults": {
          "description": "Output only. Results for all filters where the key is the filter name - either of \"csam\", \"malicious_uris\", \"rai\", \"pi_and_jailbreak\" ,\"sdp\".",
          "readOnly": true,
          "additionalProperties": {
            "$ref": "FilterResult"
          },
          "type": "object"
        },
        "invocationResult": {
          "description": "Output only. A field indicating the outcome of the invocation, irrespective of match status. It can have the following three values: SUCCESS: All filters were executed successfully. PARTIAL: Some filters were skipped or failed execution. FAILURE: All filters were skipped or failed execution.",
          "readOnly": true,
          "enumDescriptions": [
            "Unused. Default value.",
            "All filters were invoked successfully.",
            "Some filters were skipped or failed.",
            "All filters were skipped or failed."
          ],
          "type": "string",
          "enum": [
            "INVOCATION_RESULT_UNSPECIFIED",
            "SUCCESS",
            "PARTIAL",
            "FAILURE"
          ]
        },
        "sanitizationMetadata": {
          "$ref": "SanitizationMetadata",
          "description": "Output only. Metadata related to Sanitization.",
          "readOnly": true
        }
      },
      "description": "Sanitization result after applying all the filters on input content.",
      "type": "object"
    },
    "SdpFindingLocation": {
      "id": "SdpFindingLocation",
      "properties": {
        "byteRange": {
          "description": "Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Note: Omitted if content is an image.",
          "$ref": "RangeInfo"
        },
        "codepointRange": {
          "description": "Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text. Note: Omitted if content is an image.",
          "$ref": "RangeInfo"
        }
      },
      "description": "Location of this Sensitive Data Protection Finding within input content.",
      "type": "object"
    },
    "RangeInfo": {
      "description": "Half-open range interval [start, end)",
      "id": "RangeInfo",
      "properties": {
        "start": {
          "description": "For proto3, value cannot be set to 0 unless the field is optional. Ref: https://protobuf.dev/programming-guides/proto3/#default Index of first character (inclusive).",
          "type": "string",
          "format": "int64"
        },
        "end": {
          "description": "Index of last character (exclusive).",
          "type": "string",
          "format": "int64"
        }
      },
      "type": "object"
    },
    "VirusDetail": {
      "type": "object",
      "id": "VirusDetail",
      "properties": {
        "threatType": {
          "description": "Threat type of the identified virus",
          "enumDescriptions": [
            "Unused",
            "Unable to categorize threat",
            "Virus or Worm threat.",
            "Malicious program. E.g. Spyware, Trojan.",
            "Potentially harmful content. E.g. Injected code, Macro",
            "Potentially unwanted content. E.g. Adware."
          ],
          "enum": [
            "THREAT_TYPE_UNSPECIFIED",
            "UNKNOWN",
            "VIRUS_OR_WORM",
            "MALICIOUS_PROGRAM",
            "POTENTIALLY_HARMFUL_CONTENT",
            "POTENTIALLY_UNWANTED_CONTENT"
          ],
          "type": "string"
        },
        "vendor": {
          "description": "Name of vendor that produced this virus identification.",
          "type": "string"
        },
        "names": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Names of this Virus."
        }
      },
      "description": "Details of an identified virus"
    },
    "SanitizeUserPromptResponse": {
      "type": "object",
      "id": "SanitizeUserPromptResponse",
      "properties": {
        "sanitizationResult": {
          "$ref": "SanitizationResult",
          "description": "Output only. Sanitization Result.",
          "readOnly": true
        }
      },
      "description": "Sanitized User Prompt Response."
    },
    "AiPlatformFloorSetting": {
      "description": "message describing AiPlatformFloorSetting",
      "id": "AiPlatformFloorSetting",
      "properties": {
        "inspectOnly": {
          "type": "boolean",
          "description": "Optional. If true, Model Armor filters will be run in inspect only mode. No action will be taken on the request."
        },
        "inspectAndBlock": {
          "type": "boolean",
          "description": "Optional. If true, Model Armor filters will be run in inspect and block mode. Requests that trip Model Armor filters will be blocked."
        },
        "enableCloudLogging": {
          "description": "Optional. If true, log Model Armor filter results to Cloud Logging.",
          "type": "boolean"
        }
      },
      "type": "object"
    }
  },
  "batchPath": "batch",
  "name": "modelarmor",
  "endpoints": [
    {
      "description": "Regional Endpoint",
      "endpointUrl": "https://modelarmor.us-central1.rep.googleapis.com/",
      "location": "us-central1"
    },
    {
      "endpointUrl": "https://modelarmor.us-east1.rep.googleapis.com/",
      "description": "Regional Endpoint",
      "location": "us-east1"
    },
    {
      "location": "us-east7",
      "endpointUrl": "https://modelarmor.us-east7.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "us-west1",
      "endpointUrl": "https://modelarmor.us-west1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "europe-west1",
      "endpointUrl": "https://modelarmor.europe-west1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "description": "Regional Endpoint",
      "endpointUrl": "https://modelarmor.europe-west4.rep.googleapis.com/",
      "location": "europe-west4"
    },
    {
      "endpointUrl": "https://modelarmor.us-east4.rep.googleapis.com/",
      "description": "Regional Endpoint",
      "location": "us-east4"
    },
    {
      "location": "asia-southeast1",
      "endpointUrl": "https://modelarmor.asia-southeast1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "endpointUrl": "https://modelarmor.europe-west2.rep.googleapis.com/",
      "description": "Regional Endpoint",
      "location": "europe-west2"
    },
    {
      "endpointUrl": "https://modelarmor.europe-west3.rep.googleapis.com/",
      "description": "Regional Endpoint",
      "location": "europe-west3"
    },
    {
      "location": "asia-south1",
      "endpointUrl": "https://modelarmor.asia-south1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "europe-southwest1",
      "endpointUrl": "https://modelarmor.europe-southwest1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "asia-northeast1",
      "description": "Regional Endpoint",
      "endpointUrl": "https://modelarmor.asia-northeast1.rep.googleapis.com/"
    },
    {
      "location": "asia-northeast3",
      "endpointUrl": "https://modelarmor.asia-northeast3.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "australia-southeast1",
      "endpointUrl": "https://modelarmor.australia-southeast1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "description": "Regional Endpoint",
      "endpointUrl": "https://modelarmor.australia-southeast2.rep.googleapis.com/",
      "location": "australia-southeast2"
    },
    {
      "location": "northamerica-northeast1",
      "endpointUrl": "https://modelarmor.northamerica-northeast1.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "northamerica-northeast2",
      "endpointUrl": "https://modelarmor.northamerica-northeast2.rep.googleapis.com/",
      "description": "Regional Endpoint"
    },
    {
      "location": "europe-west9",
      "description": "Regional Endpoint",
      "endpointUrl": "https://modelarmor.europe-west9.rep.googleapis.com/"
    },
    {
      "location": "us",
      "description": "Regional Endpoint",
      "endpointUrl": "https://modelarmor.us.rep.googleapis.com/"
    },
    {
      "description": "Regional Endpoint",
      "endpointUrl": "https://modelarmor.eu.rep.googleapis.com/",
      "location": "eu"
    }
  ],
  "revision": "20260610",
  "fullyEncodeReservedExpansion": true,
  "basePath": "",
  "ownerName": "Google",
  "id": "modelarmor:v1",
  "parameters": {
    "callback": {
      "type": "string",
      "location": "query",
      "description": "JSONP"
    },
    "oauth_token": {
      "type": "string",
      "location": "query",
      "description": "OAuth 2.0 token for the current user."
    },
    "prettyPrint": {
      "type": "boolean",
      "location": "query",
      "description": "Returns response with indentations and line breaks.",
      "default": "true"
    },
    "uploadType": {
      "type": "string",
      "location": "query",
      "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
    },
    "alt": {
      "description": "Data format for response.",
      "enumDescriptions": [
        "Responses with Content-Type of application/json",
        "Media download with context-dependent Content-Type",
        "Responses with Content-Type of application/x-protobuf"
      ],
      "type": "string",
      "enum": [
        "json",
        "media",
        "proto"
      ],
      "default": "json",
      "location": "query"
    },
    "fields": {
      "description": "Selector specifying which fields to include in a partial response.",
      "type": "string",
      "location": "query"
    },
    "quotaUser": {
      "type": "string",
      "location": "query",
      "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters."
    },
    "$.xgafv": {
      "location": "query",
      "enum": [
        "1",
        "2"
      ],
      "type": "string",
      "description": "V1 error format.",
      "enumDescriptions": [
        "v1 error format",
        "v2 error format"
      ]
    },
    "key": {
      "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
      "type": "string",
      "location": "query"
    },
    "access_token": {
      "type": "string",
      "location": "query",
      "description": "OAuth access token."
    },
    "upload_protocol": {
      "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
      "type": "string",
      "location": "query"
    }
  },
  "discoveryVersion": "v1",
  "description": "Model Armor helps you protect against risks like prompt injection, harmful content, and data leakage in generative AI applications by letting you define policies that filter user prompts and model responses.",
  "title": "Model Armor API",
  "auth": {
    "oauth2": {
      "scopes": {
        "https://www.googleapis.com/auth/cloud-platform": {
          "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
        }
      }
    }
  },
  "baseUrl": "https://modelarmor.us.rep.googleapis.com/",
  "mtlsRootUrl": "https://modelarmor.us.rep.mtls.googleapis.com/",
  "version": "v1",
  "servicePath": "",
  "icons": {
    "x16": "http://www.google.com/images/icons/product/search-16.gif",
    "x32": "http://www.google.com/images/icons/product/search-32.gif"
  },
  "documentationLink": "https://cloud.google.com/security-command-center/docs/model-armor-overview",
  "kind": "discovery#restDescription",
  "protocol": "rest",
  "version_module": true
}
