Class McpServerFloorSetting

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.modelarmor.v1beta.McpServerFloorSetting
All Implemented Interfaces:
McpServerFloorSettingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class McpServerFloorSetting extends com.google.protobuf.GeneratedMessage implements McpServerFloorSettingOrBuilder
 Message describing MCP Server Floor Setting.
 
Protobuf type google.cloud.modelarmor.v1beta.McpServerFloorSetting
See Also:
  • Field Details

    • INSPECT_ONLY_FIELD_NUMBER

      public static final int INSPECT_ONLY_FIELD_NUMBER
      See Also:
    • INSPECT_AND_BLOCK_FIELD_NUMBER

      public static final int INSPECT_AND_BLOCK_FIELD_NUMBER
      See Also:
    • ENABLE_CLOUD_LOGGING_FIELD_NUMBER

      public static final int ENABLE_CLOUD_LOGGING_FIELD_NUMBER
      See Also:
    • APIS_FIELD_NUMBER

      public static final int APIS_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
    • getEnforcementTypeCase

      public McpServerFloorSetting.EnforcementTypeCase getEnforcementTypeCase()
      Specified by:
      getEnforcementTypeCase in interface McpServerFloorSettingOrBuilder
    • hasInspectOnly

      public boolean hasInspectOnly()
       Optional. If true, Model Armor filters will be run in inspect only mode.
       No action will be taken on the request.
       
      bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasInspectOnly in interface McpServerFloorSettingOrBuilder
      Returns:
      Whether the inspectOnly field is set.
    • getInspectOnly

      public boolean getInspectOnly()
       Optional. If true, Model Armor filters will be run in inspect only mode.
       No action will be taken on the request.
       
      bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInspectOnly in interface McpServerFloorSettingOrBuilder
      Returns:
      The inspectOnly.
    • hasInspectAndBlock

      public boolean hasInspectAndBlock()
       Optional. If true, Model Armor filters will be run in inspect and block
       mode. Requests that trip Model Armor filters will be blocked.
       
      bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasInspectAndBlock in interface McpServerFloorSettingOrBuilder
      Returns:
      Whether the inspectAndBlock field is set.
    • getInspectAndBlock

      public boolean getInspectAndBlock()
       Optional. If true, Model Armor filters will be run in inspect and block
       mode. Requests that trip Model Armor filters will be blocked.
       
      bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getInspectAndBlock in interface McpServerFloorSettingOrBuilder
      Returns:
      The inspectAndBlock.
    • getEnableCloudLogging

      public boolean getEnableCloudLogging()
       Optional. If true, log Model Armor filter results to Cloud Logging.
       
      bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableCloudLogging in interface McpServerFloorSettingOrBuilder
      Returns:
      The enableCloudLogging.
    • getApisList

      public com.google.protobuf.ProtocolStringList getApisList()
       Optional. List of MCP servers for which the MCP floor setting is
       applicable. Examples: "bigquery.googleapis.com/mcp",
       "run.googleapis.com/mcp" Empty list denotes that the floor setting is
       applicable to all MCP servers.
       
      repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApisList in interface McpServerFloorSettingOrBuilder
      Returns:
      A list containing the apis.
    • getApisCount

      public int getApisCount()
       Optional. List of MCP servers for which the MCP floor setting is
       applicable. Examples: "bigquery.googleapis.com/mcp",
       "run.googleapis.com/mcp" Empty list denotes that the floor setting is
       applicable to all MCP servers.
       
      repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApisCount in interface McpServerFloorSettingOrBuilder
      Returns:
      The count of apis.
    • getApis

      public String getApis(int index)
       Optional. List of MCP servers for which the MCP floor setting is
       applicable. Examples: "bigquery.googleapis.com/mcp",
       "run.googleapis.com/mcp" Empty list denotes that the floor setting is
       applicable to all MCP servers.
       
      repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApis in interface McpServerFloorSettingOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The apis at the given index.
    • getApisBytes

      public com.google.protobuf.ByteString getApisBytes(int index)
       Optional. List of MCP servers for which the MCP floor setting is
       applicable. Examples: "bigquery.googleapis.com/mcp",
       "run.googleapis.com/mcp" Empty list denotes that the floor setting is
       applicable to all MCP servers.
       
      repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getApisBytes in interface McpServerFloorSettingOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the apis at the given index.
    • 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 McpServerFloorSetting parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static McpServerFloorSetting parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static McpServerFloorSetting parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static McpServerFloorSetting parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static McpServerFloorSetting parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static McpServerFloorSetting parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static McpServerFloorSetting parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static McpServerFloorSetting parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static McpServerFloorSetting parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static McpServerFloorSetting parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static McpServerFloorSetting parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static McpServerFloorSetting parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public McpServerFloorSetting.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static McpServerFloorSetting.Builder newBuilder()
    • newBuilder

      public static McpServerFloorSetting.Builder newBuilder(McpServerFloorSetting prototype)
    • toBuilder

      public McpServerFloorSetting.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected McpServerFloorSetting.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static McpServerFloorSetting getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<McpServerFloorSetting> parser()
    • getParserForType

      public com.google.protobuf.Parser<McpServerFloorSetting> 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 McpServerFloorSetting getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder