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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder>
    • getDefaultInstanceForType

      public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethod.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      getName in interface AuthzPolicy.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:
      getNameBytes in interface AuthzPolicy.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

      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];
      Specified by:
      getParamsList in interface AuthzPolicy.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:
      getParamsCount in interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
    • getParams

      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];
      Specified by:
      getParams in interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
    • setParams

       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

       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

       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

       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

       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

       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

       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

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

      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];
      Specified by:
      getParamsOrBuilder in interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
    • 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];
      Specified by:
      getParamsOrBuilderList in interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPMethodOrBuilder
    • 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];
    • addParamsBuilder

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