public static final class McpServerFloorSetting.Builder extends GeneratedMessage.Builder<McpServerFloorSetting.Builder> implements McpServerFloorSettingOrBuilderMessage describing MCP Server Floor Setting.
Protobuf type google.cloud.modelarmor.v1.McpServerFloorSetting
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > McpServerFloorSetting.BuilderImplements
McpServerFloorSettingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public McpServerFloorSetting build()| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting |
|
buildPartial()
public McpServerFloorSetting buildPartial()| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting |
|
clear()
public McpServerFloorSetting.Builder clear()| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
|
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 | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
This builder for chaining. |
clearEnforcementType()
public McpServerFloorSetting.Builder clearEnforcementType()| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
|
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 | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
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 | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public McpServerFloorSetting getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The enableCloudLogging. |
getEnforcementTypeCase()
public McpServerFloorSetting.EnforcementTypeCase getEnforcementTypeCase()| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.EnforcementTypeCase |
|
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
The inspectAndBlock. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inspectAndBlock field is set. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the inspectOnly field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(McpServerFloorSetting other)
public McpServerFloorSetting.Builder mergeFrom(McpServerFloorSetting other)| Parameter | |
|---|---|
| Name | Description |
other |
McpServerFloorSetting |
| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public McpServerFloorSetting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public McpServerFloorSetting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
|
setEnableCloudLogging(boolean value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe enableCloudLogging to set. |
| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
This builder for chaining. |
setInspectAndBlock(boolean value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe inspectAndBlock to set. |
| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
This builder for chaining. |
setInspectOnly(boolean value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe inspectOnly to set. |
| Returns | |
|---|---|
| Type | Description |
McpServerFloorSetting.Builder |
This builder for chaining. |