Class AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder>
com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder
- All Implemented Interfaces:
AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AuthzPolicy.AuthzRule.To.RequestOperation.MCP
public static final class AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder>
implements AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder
Describes 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-
Method Summary
Modifier and TypeMethodDescriptionaddAllMethods(Iterable<? extends AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod> values) Optional.addMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod value) Optional.addMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue) Optional.Optional.addMethods(AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue) Optional.Optional.addMethodsBuilder(int index) Optional.build()clear()Optional.Optional.Optional.intOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMethods(int index) Optional.getMethodsBuilder(int index) Optional.Optional.intOptional.Optional.getMethodsOrBuilder(int index) Optional.Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeMethods(int index) Optional.setBaseProtocolMethodsOption(AuthzPolicy.AuthzRule.To.RequestOperation.BaseProtocolMethodsOption value) Optional.setBaseProtocolMethodsOptionValue(int value) Optional.setMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod value) Optional.setMethods(int index, AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder>
-
mergeFrom
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder mergeFrom(AuthzPolicy.AuthzRule.To.RequestOperation.MCP other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder>
-
mergeFrom
public AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder>- Throws:
IOException
-
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];- Specified by:
getBaseProtocolMethodsOptionValuein interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder- Returns:
- The enum numeric value on the wire for baseProtocolMethodsOption.
-
setBaseProtocolMethodsOptionValue
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];- Parameters:
value- The enum numeric value on the wire for baseProtocolMethodsOption to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getBaseProtocolMethodsOptionin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder- Returns:
- The baseProtocolMethodsOption.
-
setBaseProtocolMethodsOption
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];- Parameters:
value- The baseProtocolMethodsOption to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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];- Specified by:
getMethodsListin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder
-
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];- Specified by:
getMethodsCountin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder
-
getMethods
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];- Specified by:
getMethodsin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder
-
setMethods
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]; -
setMethods
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]; -
addMethods
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]; -
addMethods
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]; -
addMethods
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]; -
addMethods
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]; -
addAllMethods
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]; -
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]; -
removeMethods
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]; -
getMethodsBuilder
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]; -
getMethodsOrBuilder
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];- Specified by:
getMethodsOrBuilderin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder
-
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];- Specified by:
getMethodsOrBuilderListin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder
-
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]; -
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]; -
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];
-