Class McpServerFloorSetting.Builder (0.34.0)

public static final class McpServerFloorSetting.Builder extends GeneratedMessage.Builder<McpServerFloorSetting.Builder> implements McpServerFloorSettingOrBuilder

Message describing MCP Server Floor Setting.

Protobuf type google.cloud.modelarmor.v1beta.McpServerFloorSetting

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllApis(Iterable<String> values)

public McpServerFloorSetting.Builder addAllApis(Iterable<String> values)

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The apis to add.

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

addApis(String value)

public McpServerFloorSetting.Builder addApis(String value)

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The apis to add.

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

addApisBytes(ByteString value)

public McpServerFloorSetting.Builder addApisBytes(ByteString value)

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the apis to add.

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

build()

public McpServerFloorSetting build()
Returns
Type Description
McpServerFloorSetting

buildPartial()

public McpServerFloorSetting buildPartial()
Returns
Type Description
McpServerFloorSetting

clear()

public McpServerFloorSetting.Builder clear()
Returns
Type Description
McpServerFloorSetting.Builder
Overrides

clearApis()

public McpServerFloorSetting.Builder clearApis()

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

clearEnableCloudLogging()

public McpServerFloorSetting.Builder clearEnableCloudLogging()

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

bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

clearEnforcementType()

public McpServerFloorSetting.Builder clearEnforcementType()
Returns
Type Description
McpServerFloorSetting.Builder

clearInspectAndBlock()

public McpServerFloorSetting.Builder clearInspectAndBlock()

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

bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

clearInspectOnly()

public McpServerFloorSetting.Builder clearInspectOnly()

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

bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

getApis(int index)

public String getApis(int index)

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The apis at the given index.

getApisBytes(int index)

public ByteString getApisBytes(int index)

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the apis at the given index.

getApisCount()

public int getApisCount()

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of apis.

getApisList()

public ProtocolStringList getApisList()

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the apis.

getDefaultInstanceForType()

public McpServerFloorSetting getDefaultInstanceForType()
Returns
Type Description
McpServerFloorSetting

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableCloudLogging()

public boolean getEnableCloudLogging()

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

bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableCloudLogging.

getEnforcementTypeCase()

public McpServerFloorSetting.EnforcementTypeCase getEnforcementTypeCase()
Returns
Type Description
McpServerFloorSetting.EnforcementTypeCase

getInspectAndBlock()

public boolean getInspectAndBlock()

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

bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The inspectAndBlock.

getInspectOnly()

public boolean getInspectOnly()

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

bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The inspectOnly.

hasInspectAndBlock()

public boolean hasInspectAndBlock()

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

bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inspectAndBlock field is set.

hasInspectOnly()

public boolean hasInspectOnly()

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

bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inspectOnly field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(McpServerFloorSetting other)

public McpServerFloorSetting.Builder mergeFrom(McpServerFloorSetting other)
Parameter
Name Description
other McpServerFloorSetting
Returns
Type Description
McpServerFloorSetting.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public McpServerFloorSetting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServerFloorSetting.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public McpServerFloorSetting.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
McpServerFloorSetting.Builder
Overrides

setApis(int index, String value)

public McpServerFloorSetting.Builder setApis(int index, String value)

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.

repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The apis to set.

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

setEnableCloudLogging(boolean value)

public McpServerFloorSetting.Builder setEnableCloudLogging(boolean value)

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

bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableCloudLogging to set.

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

setInspectAndBlock(boolean value)

public McpServerFloorSetting.Builder setInspectAndBlock(boolean value)

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

bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The inspectAndBlock to set.

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.

setInspectOnly(boolean value)

public McpServerFloorSetting.Builder setInspectOnly(boolean value)

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

bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The inspectOnly to set.

Returns
Type Description
McpServerFloorSetting.Builder

This builder for chaining.