Interface ContentPolicyOrBuilder (3.103.0)

public interface ContentPolicyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. The creation timestamp of a contentPolicy; output-only field.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of a contentPolicy; output-only field.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultAction()

public abstract ContentPolicy.PolicyAction getDefaultAction()

Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction default_action = 11;

Returns
Type Description
ContentPolicy.PolicyAction

The defaultAction.

getDefaultActionOrBuilder()

public abstract ContentPolicy.PolicyActionOrBuilder getDefaultActionOrBuilder()

Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction default_action = 11;

Returns
Type Description
ContentPolicy.PolicyActionOrBuilder

getDisplayName()

public abstract String getDisplayName()

Optional. Display name (max 63 chars)

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

Optional. Display name (max 63 chars)

string display_name = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for displayName.

getErrors(int index)

public abstract Error getErrors(int index)

Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Whenever the policy is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Error

getErrorsCount()

public abstract int getErrorsCount()

Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Whenever the policy is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getErrorsList()

public abstract List<Error> getErrorsList()

Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Whenever the policy is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Error>

getErrorsOrBuilder(int index)

public abstract ErrorOrBuilder getErrorsOrBuilder(int index)

Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Whenever the policy is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ErrorOrBuilder

getErrorsOrBuilderList()

public abstract List<? extends ErrorOrBuilder> getErrorsOrBuilderList()

Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Whenever the policy is modified this list will be cleared.

repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.ErrorOrBuilder>

getFailedToScanSupportedFileType()

public abstract ContentPolicy.PolicyAction getFailedToScanSupportedFileType()

Optional. Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction failed_to_scan_supported_file_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentPolicy.PolicyAction

The failedToScanSupportedFileType.

getFailedToScanSupportedFileTypeOrBuilder()

public abstract ContentPolicy.PolicyActionOrBuilder getFailedToScanSupportedFileTypeOrBuilder()

Optional. Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction failed_to_scan_supported_file_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentPolicy.PolicyActionOrBuilder

getInputTooLarge()

public abstract ContentPolicy.PolicyAction getInputTooLarge()

Optional. Action to take if the content is a supported file type but is too large to be scanned.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction input_too_large = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentPolicy.PolicyAction

The inputTooLarge.

getInputTooLargeOrBuilder()

public abstract ContentPolicy.PolicyActionOrBuilder getInputTooLargeOrBuilder()

Optional. Action to take if the content is a supported file type but is too large to be scanned.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction input_too_large = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentPolicy.PolicyActionOrBuilder

getInspectConfig()

public abstract InspectConfig getInspectConfig()

Optional. InspectConfig to use to produce findings.

.google.privacy.dlp.v2.InspectConfig inspect_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InspectConfig

The inspectConfig.

getInspectConfigOrBuilder()

public abstract InspectConfigOrBuilder getInspectConfigOrBuilder()

Optional. InspectConfig to use to produce findings.

.google.privacy.dlp.v2.InspectConfig inspect_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
InspectConfigOrBuilder

getLoggingConfigs(int index)

public abstract ContentPolicy.LoggingConfig getLoggingConfigs(int index)

Optional. Log the actions taken by the content policy to external systems.

repeated .google.privacy.dlp.v2.ContentPolicy.LoggingConfig logging_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ContentPolicy.LoggingConfig

getLoggingConfigsCount()

public abstract int getLoggingConfigsCount()

Optional. Log the actions taken by the content policy to external systems.

repeated .google.privacy.dlp.v2.ContentPolicy.LoggingConfig logging_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLoggingConfigsList()

public abstract List<ContentPolicy.LoggingConfig> getLoggingConfigsList()

Optional. Log the actions taken by the content policy to external systems.

repeated .google.privacy.dlp.v2.ContentPolicy.LoggingConfig logging_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<LoggingConfig>

getLoggingConfigsOrBuilder(int index)

public abstract ContentPolicy.LoggingConfigOrBuilder getLoggingConfigsOrBuilder(int index)

Optional. Log the actions taken by the content policy to external systems.

repeated .google.privacy.dlp.v2.ContentPolicy.LoggingConfig logging_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ContentPolicy.LoggingConfigOrBuilder

getLoggingConfigsOrBuilderList()

public abstract List<? extends ContentPolicy.LoggingConfigOrBuilder> getLoggingConfigsOrBuilderList()

Optional. Log the actions taken by the content policy to external systems.

repeated .google.privacy.dlp.v2.ContentPolicy.LoggingConfig logging_configs = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.ContentPolicy.LoggingConfigOrBuilder>

getName()

public abstract String getName()

Output only. Resource name of the policy.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. Resource name of the policy.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getRules(int index)

public abstract ContentPolicy.PolicyRule getRules(int index)

Required. Policies to apply, based on the findings returned by inspection. The first rule to match applies.

repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule rules = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentPolicy.PolicyRule

getRulesCount()

public abstract int getRulesCount()

Required. Policies to apply, based on the findings returned by inspection. The first rule to match applies.

repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule rules = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

getRulesList()

public abstract List<ContentPolicy.PolicyRule> getRulesList()

Required. Policies to apply, based on the findings returned by inspection. The first rule to match applies.

repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule rules = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<PolicyRule>

getRulesOrBuilder(int index)

public abstract ContentPolicy.PolicyRuleOrBuilder getRulesOrBuilder(int index)

Required. Policies to apply, based on the findings returned by inspection. The first rule to match applies.

repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule rules = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int
Returns
Type Description
ContentPolicy.PolicyRuleOrBuilder

getRulesOrBuilderList()

public abstract List<? extends ContentPolicy.PolicyRuleOrBuilder> getRulesOrBuilderList()

Required. Policies to apply, based on the findings returned by inspection. The first rule to match applies.

repeated .google.privacy.dlp.v2.ContentPolicy.PolicyRule rules = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.ContentPolicy.PolicyRuleOrBuilder>

getUnsupportedFileType()

public abstract ContentPolicy.PolicyAction getUnsupportedFileType()

Optional. Action to take if the content is an unsupported file type.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction unsupported_file_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentPolicy.PolicyAction

The unsupportedFileType.

getUnsupportedFileTypeOrBuilder()

public abstract ContentPolicy.PolicyActionOrBuilder getUnsupportedFileTypeOrBuilder()

Optional. Action to take if the content is an unsupported file type.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction unsupported_file_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ContentPolicy.PolicyActionOrBuilder

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. The last update timestamp of a contentPolicy; output-only field.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of a contentPolicy; output-only field.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. The creation timestamp of a contentPolicy; output-only field.

.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasDefaultAction()

public abstract boolean hasDefaultAction()

Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction default_action = 11;

Returns
Type Description
boolean

Whether the defaultAction field is set.

hasFailedToScanSupportedFileType()

public abstract boolean hasFailedToScanSupportedFileType()

Optional. Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction failed_to_scan_supported_file_type = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the failedToScanSupportedFileType field is set.

hasInputTooLarge()

public abstract boolean hasInputTooLarge()

Optional. Action to take if the content is a supported file type but is too large to be scanned.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction input_too_large = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inputTooLarge field is set.

hasInspectConfig()

public abstract boolean hasInspectConfig()

Optional. InspectConfig to use to produce findings.

.google.privacy.dlp.v2.InspectConfig inspect_config = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the inspectConfig field is set.

hasUnsupportedFileType()

public abstract boolean hasUnsupportedFileType()

Optional. Action to take if the content is an unsupported file type.

.google.privacy.dlp.v2.ContentPolicy.PolicyAction unsupported_file_type = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the unsupportedFileType field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. The last update timestamp of a contentPolicy; output-only field.

.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.