Class AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder>
com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder
- All Implemented Interfaces:
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder,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.MCPMethod
public static final class AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder>
implements AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
Describes a set of MCP methods to match against.Protobuf type
google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod-
Method Summary
Modifier and TypeMethodDescriptionaddAllParams(Iterable<? extends AuthzPolicy.AuthzRule.StringMatch> values) Optional.addParams(int index, AuthzPolicy.AuthzRule.StringMatch value) Optional.addParams(int index, AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue) Optional.Optional.addParams(AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue) Optional.Optional.addParamsBuilder(int index) Optional.build()clear()Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.getParams(int index) Optional.getParamsBuilder(int index) Optional.Optional.intOptional.Optional.getParamsOrBuilder(int index) Optional.List<? extends AuthzPolicy.AuthzRule.StringMatchOrBuilder>Optional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeParams(int index) Optional.Required.setNameBytes(com.google.protobuf.ByteString value) Required.setParams(int index, AuthzPolicy.AuthzRule.StringMatch value) Optional.setParams(int index, AuthzPolicy.AuthzRule.StringMatch.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.MCPMethod.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.MCPMethod.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.MCPMethod.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.MCPMethod.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.MCPMethod.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder>
-
mergeFrom
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.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.MCPMethod.Builder>- Throws:
IOException
-
getName
Required. The MCP method to match against. Allowed values are as follows: 1. `tools`, `prompts`, `resources` - these will match against all sub methods under the respective methods. 2. `prompts/list`, `tools/list`, `resources/list`, `resources/templates/list` 3. `prompts/get`, `tools/call`, `resources/subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be specified for categories 1 and 2.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The MCP method to match against. Allowed values are as follows: 1. `tools`, `prompts`, `resources` - these will match against all sub methods under the respective methods. 2. `prompts/list`, `tools/list`, `resources/list`, `resources/templates/list` 3. `prompts/get`, `tools/call`, `resources/subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be specified for categories 1 and 2.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The MCP method to match against. Allowed values are as follows: 1. `tools`, `prompts`, `resources` - these will match against all sub methods under the respective methods. 2. `prompts/list`, `tools/list`, `resources/list`, `resources/templates/list` 3. `prompts/get`, `tools/call`, `resources/subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be specified for categories 1 and 2.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The MCP method to match against. Allowed values are as follows: 1. `tools`, `prompts`, `resources` - these will match against all sub methods under the respective methods. 2. `prompts/list`, `tools/list`, `resources/list`, `resources/templates/list` 3. `prompts/get`, `tools/call`, `resources/subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be specified for categories 1 and 2.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNameBytes
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder setNameBytes(com.google.protobuf.ByteString value) Required. The MCP method to match against. Allowed values are as follows: 1. `tools`, `prompts`, `resources` - these will match against all sub methods under the respective methods. 2. `prompts/list`, `tools/list`, `resources/list`, `resources/templates/list` 3. `prompts/get`, `tools/call`, `resources/subscribe`, `resources/unsubscribe`, `resources/read` Params cannot be specified for categories 1 and 2.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getParamsListin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
-
getParamsCount
public 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];- Specified by:
getParamsCountin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
-
getParams
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];- Specified by:
getParamsin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
-
setParams
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder setParams(int index, AuthzPolicy.AuthzRule.StringMatch value) 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]; -
setParams
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder setParams(int index, AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue) 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]; -
addParams
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder addParams(AuthzPolicy.AuthzRule.StringMatch value) 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]; -
addParams
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder addParams(int index, AuthzPolicy.AuthzRule.StringMatch value) 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]; -
addParams
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder addParams(AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue) 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]; -
addParams
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder addParams(int index, AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue) 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]; -
addAllParams
public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder addAllParams(Iterable<? extends AuthzPolicy.AuthzRule.StringMatch> values) 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]; -
clearParams
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]; -
removeParams
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]; -
getParamsBuilder
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]; -
getParamsOrBuilder
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];- Specified by:
getParamsOrBuilderin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
-
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];- Specified by:
getParamsOrBuilderListin interfaceAuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
-
addParamsBuilder
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]; -
addParamsBuilder
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]; -
getParamsBuilderList
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];
-