Class AuthzPolicy.AuthzRule.To.RequestOperation.MCP

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.MCP
All Implemented Interfaces:
AuthzPolicy.AuthzRule.To.RequestOperation.MCPOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
AuthzPolicy.AuthzRule.To.RequestOperation

public static final class AuthzPolicy.AuthzRule.To.RequestOperation.MCP extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • BASE_PROTOCOL_METHODS_OPTION_FIELD_NUMBER

      public static final int BASE_PROTOCOL_METHODS_OPTION_FIELD_NUMBER
      See Also:
    • METHODS_FIELD_NUMBER

      public static final int METHODS_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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
    • 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
    • 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
    • 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
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      Throws:
      IOException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AuthzPolicy.AuthzRule.To.RequestOperation.MCP.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AuthzPolicy.AuthzRule.To.RequestOperation.MCP getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AuthzPolicy.AuthzRule.To.RequestOperation.MCP> parser()
    • getParserForType

      public com.google.protobuf.Parser<AuthzPolicy.AuthzRule.To.RequestOperation.MCP> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • 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