Class AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder (0.94.0)

public static final class AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllParams(Iterable<? extends AuthzPolicy.AuthzRule.StringMatch> values)

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];

Parameter
Name Description
values Iterable<? extends com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.StringMatch>
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

addParams(AuthzPolicy.AuthzRule.StringMatch value)

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];

Parameter
Name Description
value AuthzPolicy.AuthzRule.StringMatch
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

addParams(AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue)

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];

Parameter
Name Description
builderForValue AuthzPolicy.AuthzRule.StringMatch.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

addParams(int index, AuthzPolicy.AuthzRule.StringMatch value)

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];

Parameters
Name Description
index int
value AuthzPolicy.AuthzRule.StringMatch
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

addParams(int index, AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue AuthzPolicy.AuthzRule.StringMatch.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

addParamsBuilder()

public AuthzPolicy.AuthzRule.StringMatch.Builder 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];

Returns
Type Description
AuthzPolicy.AuthzRule.StringMatch.Builder

addParamsBuilder(int index)

public AuthzPolicy.AuthzRule.StringMatch.Builder addParamsBuilder(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.Builder

build()

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod build()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod

buildPartial()

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod buildPartial()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod

clear()

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder clear()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder
Overrides

clearName()

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder 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
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

This builder for chaining.

clearParams()

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder 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];

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

getDefaultInstanceForType()

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod getDefaultInstanceForType()
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String 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];

Returns
Type Description
String

The name.

getNameBytes()

public 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];

Returns
Type Description
ByteString

The bytes for name.

getParams(int index)

public 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

getParamsBuilder(int index)

public AuthzPolicy.AuthzRule.StringMatch.Builder getParamsBuilder(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.Builder

getParamsBuilderList()

public List<AuthzPolicy.AuthzRule.StringMatch.Builder> 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];

Returns
Type Description
List<Builder>

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];

Returns
Type Description
int

getParamsList()

public 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 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 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>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod other)

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder mergeFrom(AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod other)
Parameter
Name Description
other AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder
Overrides

removeParams(int index)

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder removeParams(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.To.RequestOperation.MCPMethod.Builder

setName(String value)

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder setName(String 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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

This builder for chaining.

setNameBytes(ByteString value)

public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder setNameBytes(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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

This builder for chaining.

setParams(int index, AuthzPolicy.AuthzRule.StringMatch value)

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];

Parameters
Name Description
index int
value AuthzPolicy.AuthzRule.StringMatch
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder

setParams(int index, AuthzPolicy.AuthzRule.StringMatch.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue AuthzPolicy.AuthzRule.StringMatch.Builder
Returns
Type Description
AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder