Class ContentPolicy.PolicyAction.Builder (3.103.0)

public static final class ContentPolicy.PolicyAction.Builder extends GeneratedMessage.Builder<ContentPolicy.PolicyAction.Builder> implements ContentPolicy.PolicyActionOrBuilder

A possible action to take when applying a content policy.

Protobuf type google.privacy.dlp.v2.ContentPolicy.PolicyAction

Static Methods

getDescriptor()

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

Methods

build()

public ContentPolicy.PolicyAction build()
Returns
Type Description
ContentPolicy.PolicyAction

buildPartial()

public ContentPolicy.PolicyAction buildPartial()
Returns
Type Description
ContentPolicy.PolicyAction

clear()

public ContentPolicy.PolicyAction.Builder clear()
Returns
Type Description
ContentPolicy.PolicyAction.Builder
Overrides

clearAction()

public ContentPolicy.PolicyAction.Builder clearAction()
Returns
Type Description
ContentPolicy.PolicyAction.Builder

clearReturnVerdict()

public ContentPolicy.PolicyAction.Builder clearReturnVerdict()

Optional. If set, the verdict will be returned to the user.

.google.privacy.dlp.v2.ContentPolicyVerdict return_verdict = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentPolicy.PolicyAction.Builder

This builder for chaining.

getActionCase()

public ContentPolicy.PolicyAction.ActionCase getActionCase()
Returns
Type Description
ContentPolicy.PolicyAction.ActionCase

getDefaultInstanceForType()

public ContentPolicy.PolicyAction getDefaultInstanceForType()
Returns
Type Description
ContentPolicy.PolicyAction

getDescriptorForType()

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

getReturnVerdict()

public ContentPolicyVerdict getReturnVerdict()

Optional. If set, the verdict will be returned to the user.

.google.privacy.dlp.v2.ContentPolicyVerdict return_verdict = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentPolicyVerdict

The returnVerdict.

getReturnVerdictValue()

public int getReturnVerdictValue()

Optional. If set, the verdict will be returned to the user.

.google.privacy.dlp.v2.ContentPolicyVerdict return_verdict = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for returnVerdict.

hasReturnVerdict()

public boolean hasReturnVerdict()

Optional. If set, the verdict will be returned to the user.

.google.privacy.dlp.v2.ContentPolicyVerdict return_verdict = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the returnVerdict field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ContentPolicy.PolicyAction other)

public ContentPolicy.PolicyAction.Builder mergeFrom(ContentPolicy.PolicyAction other)
Parameter
Name Description
other ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.PolicyAction.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContentPolicy.PolicyAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ContentPolicy.PolicyAction.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

setReturnVerdict(ContentPolicyVerdict value)

public ContentPolicy.PolicyAction.Builder setReturnVerdict(ContentPolicyVerdict value)

Optional. If set, the verdict will be returned to the user.

.google.privacy.dlp.v2.ContentPolicyVerdict return_verdict = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ContentPolicyVerdict

The returnVerdict to set.

Returns
Type Description
ContentPolicy.PolicyAction.Builder

This builder for chaining.

setReturnVerdictValue(int value)

public ContentPolicy.PolicyAction.Builder setReturnVerdictValue(int value)

Optional. If set, the verdict will be returned to the user.

.google.privacy.dlp.v2.ContentPolicyVerdict return_verdict = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The enum numeric value on the wire for returnVerdict to set.

Returns
Type Description
ContentPolicy.PolicyAction.Builder

This builder for chaining.