Class McpServerFloorSetting (0.34.0)

public final class McpServerFloorSetting extends GeneratedMessage implements McpServerFloorSettingOrBuilder

Message describing MCP Server Floor Setting.

Protobuf type google.cloud.modelarmor.v1beta.McpServerFloorSetting

Static Fields

APIS_FIELD_NUMBER

public static final int APIS_FIELD_NUMBER
Field Value
Type Description
int

ENABLE_CLOUD_LOGGING_FIELD_NUMBER

public static final int ENABLE_CLOUD_LOGGING_FIELD_NUMBER
Field Value
Type Description
int

INSPECT_AND_BLOCK_FIELD_NUMBER

public static final int INSPECT_AND_BLOCK_FIELD_NUMBER
Field Value
Type Description
int

INSPECT_ONLY_FIELD_NUMBER

public static final int INSPECT_ONLY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static McpServerFloorSetting getDefaultInstance()
Returns
Type Description
McpServerFloorSetting

getDescriptor()

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

newBuilder()

public static McpServerFloorSetting.Builder newBuilder()
Returns
Type Description
McpServerFloorSetting.Builder

newBuilder(McpServerFloorSetting prototype)

public static McpServerFloorSetting.Builder newBuilder(McpServerFloorSetting prototype)
Parameter
Name Description
prototype McpServerFloorSetting
Returns
Type Description
McpServerFloorSetting.Builder

parseDelimitedFrom(InputStream input)

public static McpServerFloorSetting parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static McpServerFloorSetting parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static McpServerFloorSetting parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static McpServerFloorSetting parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static McpServerFloorSetting parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static McpServerFloorSetting parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static McpServerFloorSetting parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static McpServerFloorSetting parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static McpServerFloorSetting parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static McpServerFloorSetting parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static McpServerFloorSetting parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static McpServerFloorSetting parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
McpServerFloorSetting
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<McpServerFloorSetting> parser()
Returns
Type Description
Parser<McpServerFloorSetting>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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

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.

getParserForType()

public Parser<McpServerFloorSetting> getParserForType()
Returns
Type Description
Parser<McpServerFloorSetting>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected McpServerFloorSetting.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
McpServerFloorSetting.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException