public static final class AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder extends GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder> implements AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilderDescribes a set of MCP protocol attributes to match against for a given MCP request.
Protobuf type
google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuthzPolicy.AuthzRule.To.RequestOperation.MCP.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllMethods(Iterable<? extends AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod> values)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder addAllMethods(Iterable<? extends AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod> values)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 |
values |
Iterable<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod> |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
addMethods(AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod value)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder addMethods(AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod value)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 |
value |
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
addMethods(AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder addMethods(AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue)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 |
builderForValue |
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
addMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod value)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder addMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
addMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder addMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
addMethodsBuilder()
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder addMethodsBuilder()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 |
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder |
|
addMethodsBuilder(int index)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder addMethodsBuilder(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.Builder |
|
build()
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP build()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP |
|
buildPartial()
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP buildPartial()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP |
|
clear()
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder clear()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
clearBaseProtocolMethodsOption()
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder clearBaseProtocolMethodsOption()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.MCP.Builder |
This builder for chaining. |
clearMethods()
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder clearMethods()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 |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
getBaseProtocolMethodsOption()
public 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 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. |
getDefaultInstanceForType()
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMethods(int index)
public 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 |
|
getMethodsBuilder(int index)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder getMethodsBuilder(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.Builder |
|
getMethodsBuilderList()
public List<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder> getMethodsBuilderList()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<Builder> |
|
getMethodsCount()
public 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 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 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 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> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AuthzPolicy.AuthzRule.To.RequestOperation.MCP other)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder mergeFrom(AuthzPolicy.AuthzRule.To.RequestOperation.MCP other)| Parameter | |
|---|---|
| Name | Description |
other |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
removeMethods(int index)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder removeMethods(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.MCP.Builder |
|
setBaseProtocolMethodsOption(AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption value)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder setBaseProtocolMethodsOption(AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOptionThe baseProtocolMethodsOption to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
This builder for chaining. |
setBaseProtocolMethodsOptionValue(int value)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder setBaseProtocolMethodsOptionValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for baseProtocolMethodsOption to set. |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
This builder for chaining. |
setMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod value)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder setMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod value)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|
setMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue)
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder setMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue)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];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder |
| Returns | |
|---|---|
| Type | Description |
AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder |
|