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 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.MCP.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.MCP.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.MCP.Builder>
    • getDefaultInstanceForType

      public AuthzPolicy.AuthzRule.To.RequestOperation.MCP 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.MCP.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.MCP.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.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:
      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.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:
      getBaseProtocolMethodsOptionValue in interface AuthzPolicy.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

       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:
      getBaseProtocolMethodsOption in interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder
      Returns:
      The baseProtocolMethodsOption.
    • setBaseProtocolMethodsOption

       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

      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:
      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:
      getMethodsList in interface AuthzPolicy.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:
      getMethodsCount in interface AuthzPolicy.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:
      getMethods in interface AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder
    • setMethods

       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

       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

       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

       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

       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

       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

       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

      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];
      Specified by:
      getMethodsOrBuilder in interface AuthzPolicy.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:
      getMethodsOrBuilderList in interface AuthzPolicy.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];