Google Cloud Model Armor V1beta Client - Class McpServerFloorSetting (0.6.0)

Reference documentation and code samples for the Google Cloud Model Armor V1beta Client class McpServerFloorSetting.

Message describing MCP Server Floor Setting.

Generated from protobuf message google.cloud.modelarmor.v1beta.McpServerFloorSetting

Namespace

Google \ Cloud \ ModelArmor \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ inspect_only bool

Optional. If true, Model Armor filters will be run in inspect only mode. No action will be taken on the request.

↳ inspect_and_block bool

Optional. If true, Model Armor filters will be run in inspect and block mode. Requests that trip Model Armor filters will be blocked.

↳ enable_cloud_logging bool

Optional. If true, log Model Armor filter results to Cloud Logging.

↳ apis string[]

Optional. List of MCP servers for which the MCP floor setting is applicable. Examples: "bigquery.googleapis.com/mcp", "run.googleapis.com/mcp" Empty list denotes that the floor setting is applicable to all MCP servers.

getInspectOnly

Optional. If true, Model Armor filters will be run in inspect only mode.

No action will be taken on the request.

Returns
Type Description
bool

hasInspectOnly

setInspectOnly

Optional. If true, Model Armor filters will be run in inspect only mode.

No action will be taken on the request.

Parameter
Name Description
var bool
Returns
Type Description
$this

getInspectAndBlock

Optional. If true, Model Armor filters will be run in inspect and block mode. Requests that trip Model Armor filters will be blocked.

Returns
Type Description
bool

hasInspectAndBlock

setInspectAndBlock

Optional. If true, Model Armor filters will be run in inspect and block mode. Requests that trip Model Armor filters will be blocked.

Parameter
Name Description
var bool
Returns
Type Description
$this

getEnableCloudLogging

Optional. If true, log Model Armor filter results to Cloud Logging.

Returns
Type Description
bool

setEnableCloudLogging

Optional. If true, log Model Armor filter results to Cloud Logging.

Parameter
Name Description
var bool
Returns
Type Description
$this

getApis

Optional. List of MCP servers for which the MCP floor setting is applicable. Examples: "bigquery.googleapis.com/mcp", "run.googleapis.com/mcp" Empty list denotes that the floor setting is applicable to all MCP servers.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setApis

Optional. List of MCP servers for which the MCP floor setting is applicable. Examples: "bigquery.googleapis.com/mcp", "run.googleapis.com/mcp" Empty list denotes that the floor setting is applicable to all MCP servers.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getEnforcementType

Returns
Type Description
string