Class McpServerFloorSetting.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<McpServerFloorSetting.Builder>
com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.Builder
All Implemented Interfaces:
McpServerFloorSettingOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
McpServerFloorSetting

public static final class McpServerFloorSetting.Builder extends com.google.protobuf.GeneratedMessage.Builder<McpServerFloorSetting.Builder> implements McpServerFloorSettingOrBuilder
 Message describing MCP Server Floor Setting.
 
Protobuf type google.cloud.modelarmor.v1beta.McpServerFloorSetting
  • 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<McpServerFloorSetting.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<McpServerFloorSetting.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<McpServerFloorSetting.Builder>
    • getDefaultInstanceForType

      public McpServerFloorSetting getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public McpServerFloorSetting.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<McpServerFloorSetting.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<McpServerFloorSetting.Builder>
    • mergeFrom

      public McpServerFloorSetting.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<McpServerFloorSetting.Builder>
      Throws:
      IOException
    • getEnforcementTypeCase

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

      public McpServerFloorSetting.Builder clearEnforcementType()
    • 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.
    • setInspectOnly

      public McpServerFloorSetting.Builder setInspectOnly(boolean value)
       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];
      Parameters:
      value - The inspectOnly to set.
      Returns:
      This builder for chaining.
    • clearInspectOnly

      public McpServerFloorSetting.Builder clearInspectOnly()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setInspectAndBlock

      public McpServerFloorSetting.Builder setInspectAndBlock(boolean value)
       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];
      Parameters:
      value - The inspectAndBlock to set.
      Returns:
      This builder for chaining.
    • clearInspectAndBlock

      public McpServerFloorSetting.Builder clearInspectAndBlock()
       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];
      Returns:
      This builder for chaining.
    • 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.
    • setEnableCloudLogging

      public McpServerFloorSetting.Builder setEnableCloudLogging(boolean value)
       Optional. If true, log Model Armor filter results to Cloud Logging.
       
      bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableCloudLogging to set.
      Returns:
      This builder for chaining.
    • clearEnableCloudLogging

      public McpServerFloorSetting.Builder clearEnableCloudLogging()
       Optional. If true, log Model Armor filter results to Cloud Logging.
       
      bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • 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.
    • setApis

      public McpServerFloorSetting.Builder setApis(int index, String value)
       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];
      Parameters:
      index - The index to set the value at.
      value - The apis to set.
      Returns:
      This builder for chaining.
    • addApis

      public McpServerFloorSetting.Builder addApis(String value)
       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];
      Parameters:
      value - The apis to add.
      Returns:
      This builder for chaining.
    • addAllApis

      public McpServerFloorSetting.Builder addAllApis(Iterable<String> values)
       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];
      Parameters:
      values - The apis to add.
      Returns:
      This builder for chaining.
    • clearApis

      public McpServerFloorSetting.Builder clearApis()
       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];
      Returns:
      This builder for chaining.
    • addApisBytes

      public McpServerFloorSetting.Builder addApisBytes(com.google.protobuf.ByteString value)
       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];
      Parameters:
      value - The bytes of the apis to add.
      Returns:
      This builder for chaining.