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 Summary
Modifier and TypeMethodDescriptionaddAllApis(Iterable<String> values) Optional.Optional.addApisBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Optional.Optional.getApis(int index) Optional.com.google.protobuf.ByteStringgetApisBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(McpServerFloorSetting other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setEnableCloudLogging(boolean value) Optional.setInspectAndBlock(boolean value) Optional.setInspectOnly(boolean value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<McpServerFloorSetting.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<McpServerFloorSetting.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<McpServerFloorSetting.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<McpServerFloorSetting.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<McpServerFloorSetting.Builder>- Throws:
IOException
-
getEnforcementTypeCase
- Specified by:
getEnforcementTypeCasein interfaceMcpServerFloorSettingOrBuilder
-
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:
hasInspectOnlyin interfaceMcpServerFloorSettingOrBuilder- 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:
getInspectOnlyin interfaceMcpServerFloorSettingOrBuilder- Returns:
- The inspectOnly.
-
setInspectOnly
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
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:
hasInspectAndBlockin interfaceMcpServerFloorSettingOrBuilder- 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:
getInspectAndBlockin interfaceMcpServerFloorSettingOrBuilder- Returns:
- The inspectAndBlock.
-
setInspectAndBlock
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
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:
getEnableCloudLoggingin interfaceMcpServerFloorSettingOrBuilder- Returns:
- The enableCloudLogging.
-
setEnableCloudLogging
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
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:
getApisListin interfaceMcpServerFloorSettingOrBuilder- 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:
getApisCountin interfaceMcpServerFloorSettingOrBuilder- Returns:
- The count of apis.
-
getApis
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:
getApisin interfaceMcpServerFloorSettingOrBuilder- 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:
getApisBytesin interfaceMcpServerFloorSettingOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the apis at the given index.
-
setApis
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
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
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
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
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.
-