public static final class AiPlatformFloorSetting.Builder extends GeneratedMessage.Builder<AiPlatformFloorSetting.Builder> implements AiPlatformFloorSettingOrBuildermessage describing AiPlatformFloorSetting
Protobuf type google.cloud.modelarmor.v1.AiPlatformFloorSetting
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AiPlatformFloorSetting.BuilderImplements
AiPlatformFloorSettingOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AiPlatformFloorSetting build()| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting |
|
buildPartial()
public AiPlatformFloorSetting buildPartial()| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting |
|
clear()
public AiPlatformFloorSetting.Builder clear()| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting.Builder |
|
clearEnableCloudLogging()
public AiPlatformFloorSetting.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 |
AiPlatformFloorSetting.Builder |
This builder for chaining. |
clearEnforcementType()
public AiPlatformFloorSetting.Builder clearEnforcementType()| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting.Builder |
|
clearInspectAndBlock()
public AiPlatformFloorSetting.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 |
AiPlatformFloorSetting.Builder |
This builder for chaining. |
clearInspectOnly()
public AiPlatformFloorSetting.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 |
AiPlatformFloorSetting.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AiPlatformFloorSetting getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting |
|
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 AiPlatformFloorSetting.EnforcementTypeCase getEnforcementTypeCase()| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting.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(AiPlatformFloorSetting other)
public AiPlatformFloorSetting.Builder mergeFrom(AiPlatformFloorSetting other)| Parameter | |
|---|---|
| Name | Description |
other |
AiPlatformFloorSetting |
| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AiPlatformFloorSetting.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AiPlatformFloorSetting.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AiPlatformFloorSetting.Builder |
|
setEnableCloudLogging(boolean value)
public AiPlatformFloorSetting.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 |
AiPlatformFloorSetting.Builder |
This builder for chaining. |
setInspectAndBlock(boolean value)
public AiPlatformFloorSetting.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 |
AiPlatformFloorSetting.Builder |
This builder for chaining. |
setInspectOnly(boolean value)
public AiPlatformFloorSetting.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 |
AiPlatformFloorSetting.Builder |
This builder for chaining. |