Class ContentPolicy.Builder (3.103.0)

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

A policy to apply to content based on its inspection findings.

Protobuf type google.privacy.dlp.v2.ContentPolicy

Static Methods

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends Error> values)

public ContentPolicy.Builder addAllErrors(Iterable<? extends Error> values)

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
values Iterable<? extends com.google.privacy.dlp.v2.Error>
Returns
Type Description
ContentPolicy.Builder

addAllLoggingConfigs(Iterable<? extends ContentPolicy.LoggingConfig> values)

public ContentPolicy.Builder addAllLoggingConfigs(Iterable<? extends ContentPolicy.LoggingConfig> values)

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
values Iterable<? extends com.google.privacy.dlp.v2.ContentPolicy.LoggingConfig>
Returns
Type Description
ContentPolicy.Builder

addAllRules(Iterable<? extends ContentPolicy.PolicyRule> values)

public ContentPolicy.Builder addAllRules(Iterable<? extends ContentPolicy.PolicyRule> values)

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
values Iterable<? extends com.google.privacy.dlp.v2.ContentPolicy.PolicyRule>
Returns
Type Description
ContentPolicy.Builder

addErrors(Error value)

public ContentPolicy.Builder addErrors(Error value)

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
value Error
Returns
Type Description
ContentPolicy.Builder

addErrors(Error.Builder builderForValue)

public ContentPolicy.Builder addErrors(Error.Builder builderForValue)

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
builderForValue Error.Builder
Returns
Type Description
ContentPolicy.Builder

addErrors(int index, Error value)

public ContentPolicy.Builder addErrors(int index, Error value)

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];

Parameters
Name Description
index int
value Error
Returns
Type Description
ContentPolicy.Builder

addErrors(int index, Error.Builder builderForValue)

public ContentPolicy.Builder addErrors(int index, Error.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Error.Builder
Returns
Type Description
ContentPolicy.Builder

addErrorsBuilder()

public Error.Builder addErrorsBuilder()

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
Error.Builder

addErrorsBuilder(int index)

public Error.Builder addErrorsBuilder(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.Builder

addLoggingConfigs(ContentPolicy.LoggingConfig value)

public ContentPolicy.Builder addLoggingConfigs(ContentPolicy.LoggingConfig value)

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
value ContentPolicy.LoggingConfig
Returns
Type Description
ContentPolicy.Builder

addLoggingConfigs(ContentPolicy.LoggingConfig.Builder builderForValue)

public ContentPolicy.Builder addLoggingConfigs(ContentPolicy.LoggingConfig.Builder builderForValue)

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
builderForValue ContentPolicy.LoggingConfig.Builder
Returns
Type Description
ContentPolicy.Builder

addLoggingConfigs(int index, ContentPolicy.LoggingConfig value)

public ContentPolicy.Builder addLoggingConfigs(int index, ContentPolicy.LoggingConfig value)

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];

Parameters
Name Description
index int
value ContentPolicy.LoggingConfig
Returns
Type Description
ContentPolicy.Builder

addLoggingConfigs(int index, ContentPolicy.LoggingConfig.Builder builderForValue)

public ContentPolicy.Builder addLoggingConfigs(int index, ContentPolicy.LoggingConfig.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ContentPolicy.LoggingConfig.Builder
Returns
Type Description
ContentPolicy.Builder

addLoggingConfigsBuilder()

public ContentPolicy.LoggingConfig.Builder addLoggingConfigsBuilder()

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
ContentPolicy.LoggingConfig.Builder

addLoggingConfigsBuilder(int index)

public ContentPolicy.LoggingConfig.Builder addLoggingConfigsBuilder(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.Builder

addRules(ContentPolicy.PolicyRule value)

public ContentPolicy.Builder addRules(ContentPolicy.PolicyRule value)

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
value ContentPolicy.PolicyRule
Returns
Type Description
ContentPolicy.Builder

addRules(ContentPolicy.PolicyRule.Builder builderForValue)

public ContentPolicy.Builder addRules(ContentPolicy.PolicyRule.Builder builderForValue)

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
builderForValue ContentPolicy.PolicyRule.Builder
Returns
Type Description
ContentPolicy.Builder

addRules(int index, ContentPolicy.PolicyRule value)

public ContentPolicy.Builder addRules(int index, ContentPolicy.PolicyRule value)

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];

Parameters
Name Description
index int
value ContentPolicy.PolicyRule
Returns
Type Description
ContentPolicy.Builder

addRules(int index, ContentPolicy.PolicyRule.Builder builderForValue)

public ContentPolicy.Builder addRules(int index, ContentPolicy.PolicyRule.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ContentPolicy.PolicyRule.Builder
Returns
Type Description
ContentPolicy.Builder

addRulesBuilder()

public ContentPolicy.PolicyRule.Builder addRulesBuilder()

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
ContentPolicy.PolicyRule.Builder

addRulesBuilder(int index)

public ContentPolicy.PolicyRule.Builder addRulesBuilder(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.Builder

build()

public ContentPolicy build()
Returns
Type Description
ContentPolicy

buildPartial()

public ContentPolicy buildPartial()
Returns
Type Description
ContentPolicy

clear()

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

clearCreateTime()

public ContentPolicy.Builder clearCreateTime()

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
ContentPolicy.Builder

clearDefaultAction()

public ContentPolicy.Builder clearDefaultAction()

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.Builder

clearDisplayName()

public ContentPolicy.Builder clearDisplayName()

Optional. Display name (max 63 chars)

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

Returns
Type Description
ContentPolicy.Builder

This builder for chaining.

clearErrors()

public ContentPolicy.Builder clearErrors()

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
ContentPolicy.Builder

clearFailedToScanSupportedFileType()

public ContentPolicy.Builder clearFailedToScanSupportedFileType()

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.Builder

clearInputTooLarge()

public ContentPolicy.Builder clearInputTooLarge()

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.Builder

clearInspectConfig()

public ContentPolicy.Builder clearInspectConfig()

Optional. InspectConfig to use to produce findings.

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

Returns
Type Description
ContentPolicy.Builder

clearLoggingConfigs()

public ContentPolicy.Builder clearLoggingConfigs()

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
ContentPolicy.Builder

clearName()

public ContentPolicy.Builder clearName()

Output only. Resource name of the policy.

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

Returns
Type Description
ContentPolicy.Builder

This builder for chaining.

clearRules()

public ContentPolicy.Builder clearRules()

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
ContentPolicy.Builder

clearUnsupportedFileType()

public ContentPolicy.Builder clearUnsupportedFileType()

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.Builder

clearUpdateTime()

public ContentPolicy.Builder clearUpdateTime()

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
ContentPolicy.Builder

getCreateTime()

public 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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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
Builder

getCreateTimeOrBuilder()

public 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 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.

getDefaultActionBuilder()

public ContentPolicy.PolicyAction.Builder getDefaultActionBuilder()

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.Builder

getDefaultActionOrBuilder()

public 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

getDefaultInstanceForType()

public ContentPolicy getDefaultInstanceForType()
Returns
Type Description
ContentPolicy

getDescriptorForType()

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

getDisplayName()

public 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 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 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

getErrorsBuilder(int index)

public Error.Builder getErrorsBuilder(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.Builder

getErrorsBuilderList()

public List<Error.Builder> getErrorsBuilderList()

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<Builder>

getErrorsCount()

public 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 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 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 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 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.

getFailedToScanSupportedFileTypeBuilder()

public ContentPolicy.PolicyAction.Builder getFailedToScanSupportedFileTypeBuilder()

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.Builder

getFailedToScanSupportedFileTypeOrBuilder()

public 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 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.

getInputTooLargeBuilder()

public ContentPolicy.PolicyAction.Builder getInputTooLargeBuilder()

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.Builder

getInputTooLargeOrBuilder()

public 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 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.

getInspectConfigBuilder()

public InspectConfig.Builder getInspectConfigBuilder()

Optional. InspectConfig to use to produce findings.

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

Returns
Type Description
InspectConfig.Builder

getInspectConfigOrBuilder()

public 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 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

getLoggingConfigsBuilder(int index)

public ContentPolicy.LoggingConfig.Builder getLoggingConfigsBuilder(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.Builder

getLoggingConfigsBuilderList()

public List<ContentPolicy.LoggingConfig.Builder> getLoggingConfigsBuilderList()

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<Builder>

getLoggingConfigsCount()

public 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 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 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 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 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 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 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

getRulesBuilder(int index)

public ContentPolicy.PolicyRule.Builder getRulesBuilder(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.Builder

getRulesBuilderList()

public List<ContentPolicy.PolicyRule.Builder> getRulesBuilderList()

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<Builder>

getRulesCount()

public 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 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 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 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 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.

getUnsupportedFileTypeBuilder()

public ContentPolicy.PolicyAction.Builder getUnsupportedFileTypeBuilder()

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.Builder

getUnsupportedFileTypeOrBuilder()

public 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 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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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
Builder

getUpdateTimeOrBuilder()

public 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 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 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 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 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 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 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 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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ContentPolicy.Builder mergeCreateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ContentPolicy.Builder

mergeDefaultAction(ContentPolicy.PolicyAction value)

public ContentPolicy.Builder mergeDefaultAction(ContentPolicy.PolicyAction value)

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;

Parameter
Name Description
value ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.Builder

mergeFailedToScanSupportedFileType(ContentPolicy.PolicyAction value)

public ContentPolicy.Builder mergeFailedToScanSupportedFileType(ContentPolicy.PolicyAction value)

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];

Parameter
Name Description
value ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.Builder

mergeFrom(ContentPolicy other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInputTooLarge(ContentPolicy.PolicyAction value)

public ContentPolicy.Builder mergeInputTooLarge(ContentPolicy.PolicyAction value)

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];

Parameter
Name Description
value ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.Builder

mergeInspectConfig(InspectConfig value)

public ContentPolicy.Builder mergeInspectConfig(InspectConfig value)

Optional. InspectConfig to use to produce findings.

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

Parameter
Name Description
value InspectConfig
Returns
Type Description
ContentPolicy.Builder

mergeUnsupportedFileType(ContentPolicy.PolicyAction value)

public ContentPolicy.Builder mergeUnsupportedFileType(ContentPolicy.PolicyAction value)

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];

Parameter
Name Description
value ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.Builder

mergeUpdateTime(Timestamp value)

public ContentPolicy.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ContentPolicy.Builder

removeErrors(int index)

public ContentPolicy.Builder removeErrors(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
ContentPolicy.Builder

removeLoggingConfigs(int index)

public ContentPolicy.Builder removeLoggingConfigs(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.Builder

removeRules(int index)

public ContentPolicy.Builder removeRules(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.Builder

setCreateTime(Timestamp value)

public ContentPolicy.Builder setCreateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ContentPolicy.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ContentPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ContentPolicy.Builder

setDefaultAction(ContentPolicy.PolicyAction value)

public ContentPolicy.Builder setDefaultAction(ContentPolicy.PolicyAction value)

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;

Parameter
Name Description
value ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.Builder

setDefaultAction(ContentPolicy.PolicyAction.Builder builderForValue)

public ContentPolicy.Builder setDefaultAction(ContentPolicy.PolicyAction.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ContentPolicy.PolicyAction.Builder
Returns
Type Description
ContentPolicy.Builder

setDisplayName(String value)

public ContentPolicy.Builder setDisplayName(String value)

Optional. Display name (max 63 chars)

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

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
ContentPolicy.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public ContentPolicy.Builder setDisplayNameBytes(ByteString value)

Optional. Display name (max 63 chars)

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

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
ContentPolicy.Builder

This builder for chaining.

setErrors(int index, Error value)

public ContentPolicy.Builder setErrors(int index, Error value)

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];

Parameters
Name Description
index int
value Error
Returns
Type Description
ContentPolicy.Builder

setErrors(int index, Error.Builder builderForValue)

public ContentPolicy.Builder setErrors(int index, Error.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue Error.Builder
Returns
Type Description
ContentPolicy.Builder

setFailedToScanSupportedFileType(ContentPolicy.PolicyAction value)

public ContentPolicy.Builder setFailedToScanSupportedFileType(ContentPolicy.PolicyAction value)

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];

Parameter
Name Description
value ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.Builder

setFailedToScanSupportedFileType(ContentPolicy.PolicyAction.Builder builderForValue)

public ContentPolicy.Builder setFailedToScanSupportedFileType(ContentPolicy.PolicyAction.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ContentPolicy.PolicyAction.Builder
Returns
Type Description
ContentPolicy.Builder

setInputTooLarge(ContentPolicy.PolicyAction value)

public ContentPolicy.Builder setInputTooLarge(ContentPolicy.PolicyAction value)

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];

Parameter
Name Description
value ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.Builder

setInputTooLarge(ContentPolicy.PolicyAction.Builder builderForValue)

public ContentPolicy.Builder setInputTooLarge(ContentPolicy.PolicyAction.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ContentPolicy.PolicyAction.Builder
Returns
Type Description
ContentPolicy.Builder

setInspectConfig(InspectConfig value)

public ContentPolicy.Builder setInspectConfig(InspectConfig value)

Optional. InspectConfig to use to produce findings.

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

Parameter
Name Description
value InspectConfig
Returns
Type Description
ContentPolicy.Builder

setInspectConfig(InspectConfig.Builder builderForValue)

public ContentPolicy.Builder setInspectConfig(InspectConfig.Builder builderForValue)

Optional. InspectConfig to use to produce findings.

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

Parameter
Name Description
builderForValue InspectConfig.Builder
Returns
Type Description
ContentPolicy.Builder

setLoggingConfigs(int index, ContentPolicy.LoggingConfig value)

public ContentPolicy.Builder setLoggingConfigs(int index, ContentPolicy.LoggingConfig value)

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];

Parameters
Name Description
index int
value ContentPolicy.LoggingConfig
Returns
Type Description
ContentPolicy.Builder

setLoggingConfigs(int index, ContentPolicy.LoggingConfig.Builder builderForValue)

public ContentPolicy.Builder setLoggingConfigs(int index, ContentPolicy.LoggingConfig.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ContentPolicy.LoggingConfig.Builder
Returns
Type Description
ContentPolicy.Builder

setName(String value)

public ContentPolicy.Builder setName(String value)

Output only. Resource name of the policy.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ContentPolicy.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ContentPolicy.Builder setNameBytes(ByteString value)

Output only. Resource name of the policy.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ContentPolicy.Builder

This builder for chaining.

setRules(int index, ContentPolicy.PolicyRule value)

public ContentPolicy.Builder setRules(int index, ContentPolicy.PolicyRule value)

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];

Parameters
Name Description
index int
value ContentPolicy.PolicyRule
Returns
Type Description
ContentPolicy.Builder

setRules(int index, ContentPolicy.PolicyRule.Builder builderForValue)

public ContentPolicy.Builder setRules(int index, ContentPolicy.PolicyRule.Builder builderForValue)

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];

Parameters
Name Description
index int
builderForValue ContentPolicy.PolicyRule.Builder
Returns
Type Description
ContentPolicy.Builder

setUnsupportedFileType(ContentPolicy.PolicyAction value)

public ContentPolicy.Builder setUnsupportedFileType(ContentPolicy.PolicyAction value)

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];

Parameter
Name Description
value ContentPolicy.PolicyAction
Returns
Type Description
ContentPolicy.Builder

setUnsupportedFileType(ContentPolicy.PolicyAction.Builder builderForValue)

public ContentPolicy.Builder setUnsupportedFileType(ContentPolicy.PolicyAction.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ContentPolicy.PolicyAction.Builder
Returns
Type Description
ContentPolicy.Builder

setUpdateTime(Timestamp value)

public ContentPolicy.Builder setUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ContentPolicy.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public ContentPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ContentPolicy.Builder