Class AiPlatformFloorSetting.Builder (0.11.0)

public static final class AiPlatformFloorSetting.Builder extends GeneratedMessageV3.Builder<AiPlatformFloorSetting.Builder> implements AiPlatformFloorSettingOrBuilder

message describing AiPlatformFloorSetting

Protobuf type google.cloud.modelarmor.v1.AiPlatformFloorSetting

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AiPlatformFloorSetting.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides

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
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public AiPlatformFloorSetting.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides

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.

clearOneof(Descriptors.OneofDescriptor oneof)

public AiPlatformFloorSetting.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides

clone()

public AiPlatformFloorSetting.Builder clone()
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides

getDefaultInstanceForType()

public AiPlatformFloorSetting getDefaultInstanceForType()
Returns
Type Description
AiPlatformFloorSetting

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AiPlatformFloorSetting.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AiPlatformFloorSetting.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides

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 boolean

The enableCloudLogging to set.

Returns
Type Description
AiPlatformFloorSetting.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AiPlatformFloorSetting.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides

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 boolean

The 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 boolean

The inspectOnly to set.

Returns
Type Description
AiPlatformFloorSetting.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AiPlatformFloorSetting.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AiPlatformFloorSetting.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AiPlatformFloorSetting.Builder
Overrides