public static interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getName()
public abstract String getName()Required. The MCP method to match against. Allowed values are as follows:
tools,prompts,resources- these will match against all sub methods under the respective methods.prompts/list,tools/list,resources/list,resources/templates/listprompts/get,tools/call,resources/subscribe,resources/unsubscribe,resources/readParams cannot be specified for categories 1 and 2.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public abstract ByteString getNameBytes()Required. The MCP method to match against. Allowed values are as follows:
tools,prompts,resources- these will match against all sub methods under the respective methods.prompts/list,tools/list,resources/list,resources/templates/listprompts/get,tools/call,resources/subscribe,resources/unsubscribe,resources/readParams cannot be specified for categories 1 and 2.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getParams(int index)
public abstract AuthzPolicy.AuthzRule.StringMatch getParams(int index)Optional. A list of MCP method parameters to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatch |
|
getParamsCount()
public abstract int getParamsCount()Optional. A list of MCP method parameters to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getParamsList()
public abstract List<AuthzPolicy.AuthzRule.StringMatch> getParamsList()Optional. A list of MCP method parameters to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<StringMatch> |
|
getParamsOrBuilder(int index)
public abstract AuthzPolicy.AuthzRule.StringMatchOrBuilder getParamsOrBuilder(int index)Optional. A list of MCP method parameters to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.StringMatchOrBuilder |
|
getParamsOrBuilderList()
public abstract List<? extends AuthzPolicy.AuthzRule.StringMatchOrBuilder> getParamsOrBuilderList()Optional. A list of MCP method parameters to match against. The match can be one of exact, prefix, suffix, or contains (substring match). Matches are always case sensitive unless the ignoreCase is set. Limited to 10 MCP method parameters per Authorization Policy.
repeated .google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch params = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatchOrBuilder> |
|