public static final class ContentPolicy.PolicyAction extends GeneratedMessage implements ContentPolicy.PolicyActionOrBuilderA possible action to take when applying a content policy.
Protobuf type google.privacy.dlp.v2.ContentPolicy.PolicyAction
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > ContentPolicy.PolicyActionImplements
ContentPolicy.PolicyActionOrBuilderStatic Fields
RETURN_VERDICT_FIELD_NUMBER
public static final int RETURN_VERDICT_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static ContentPolicy.PolicyAction getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static ContentPolicy.PolicyAction.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction.Builder |
|
newBuilder(ContentPolicy.PolicyAction prototype)
public static ContentPolicy.PolicyAction.Builder newBuilder(ContentPolicy.PolicyAction prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
ContentPolicy.PolicyAction |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction.Builder |
|
parseDelimitedFrom(InputStream input)
public static ContentPolicy.PolicyAction parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentPolicy.PolicyAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static ContentPolicy.PolicyAction parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ContentPolicy.PolicyAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static ContentPolicy.PolicyAction parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ContentPolicy.PolicyAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static ContentPolicy.PolicyAction parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentPolicy.PolicyAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static ContentPolicy.PolicyAction parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ContentPolicy.PolicyAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static ContentPolicy.PolicyAction parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ContentPolicy.PolicyAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<ContentPolicy.PolicyAction> parser()| Returns | |
|---|---|
| Type | Description |
Parser<PolicyAction> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getActionCase()
public ContentPolicy.PolicyAction.ActionCase getActionCase()| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction.ActionCase |
|
getDefaultInstanceForType()
public ContentPolicy.PolicyAction getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction |
|
getParserForType()
public Parser<ContentPolicy.PolicyAction> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<PolicyAction> |
|
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. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public ContentPolicy.PolicyAction.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected ContentPolicy.PolicyAction.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction.Builder |
|
toBuilder()
public ContentPolicy.PolicyAction.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ContentPolicy.PolicyAction.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|