Interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder (0.94.0)

public static interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBaseProtocolMethodsOption()

public abstract AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption getBaseProtocolMethodsOption()

Optional. If specified, matches on the MCP protocol’s non-access specific methods namely:

  • initialize
  • completion/
  • logging/
  • notifications/
  • ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption

The baseProtocolMethodsOption.

getBaseProtocolMethodsOptionValue()

public abstract int getBaseProtocolMethodsOptionValue()

Optional. If specified, matches on the MCP protocol’s non-access specific methods namely:

  • initialize
  • completion/
  • logging/
  • notifications/
  • ping Defaults to SKIP_BASE_PROTOCOL_METHODS if not specified.

.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption base_protocol_methods_option = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for baseProtocolMethodsOption.

getMethods(int index)

public abstract AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod getMethods(int index)

Optional. A list of MCP methods and associated parameters to match on. It is recommended to use this field to match on tools, prompts and resource accesses while setting the baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP protocol methods. Limited to 10 MCP methods per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod

getMethodsCount()

public abstract int getMethodsCount()

Optional. A list of MCP methods and associated parameters to match on. It is recommended to use this field to match on tools, prompts and resource accesses while setting the baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP protocol methods. Limited to 10 MCP methods per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getMethodsList()

public abstract List<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod> getMethodsList()

Optional. A list of MCP methods and associated parameters to match on. It is recommended to use this field to match on tools, prompts and resource accesses while setting the baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP protocol methods. Limited to 10 MCP methods per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<MCPMethod>

getMethodsOrBuilder(int index)

public abstract AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder getMethodsOrBuilder(int index)

Optional. A list of MCP methods and associated parameters to match on. It is recommended to use this field to match on tools, prompts and resource accesses while setting the baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP protocol methods. Limited to 10 MCP methods per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder

getMethodsOrBuilderList()

public abstract List<? extends AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder> getMethodsOrBuilderList()

Optional. A list of MCP methods and associated parameters to match on. It is recommended to use this field to match on tools, prompts and resource accesses while setting the baseProtocolMethodsOption to MATCH_BASE_PROTOCOL_METHODS to match on all the other MCP protocol methods. Limited to 10 MCP methods per Authorization Policy.

repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod methods = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder>