Class InspectTemplate.Builder (3.47.0)

public static final class InspectTemplate.Builder extends GeneratedMessageV3.Builder<InspectTemplate.Builder> implements InspectTemplateOrBuilder

The inspectTemplate contains a configuration (set of types of sensitive data to be detected) to be used anywhere you otherwise would normally specify InspectConfig. See https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to learn more.

Protobuf type google.privacy.dlp.v2.InspectTemplate

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InspectTemplate build()
Returns
Type Description
InspectTemplate

buildPartial()

public InspectTemplate buildPartial()
Returns
Type Description
InspectTemplate

clear()

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

clearCreateTime()

public InspectTemplate.Builder clearCreateTime()

Output only. The creation timestamp of an inspectTemplate.

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

Returns
Type Description
InspectTemplate.Builder

clearDescription()

public InspectTemplate.Builder clearDescription()

Short description (max 256 chars).

string description = 3;

Returns
Type Description
InspectTemplate.Builder

This builder for chaining.

clearDisplayName()

public InspectTemplate.Builder clearDisplayName()

Display name (max 256 chars).

string display_name = 2;

Returns
Type Description
InspectTemplate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInspectConfig()

public InspectTemplate.Builder clearInspectConfig()

The core content of the template. Configuration of the scanning process.

.google.privacy.dlp.v2.InspectConfig inspect_config = 6;

Returns
Type Description
InspectTemplate.Builder

clearName()

public InspectTemplate.Builder clearName()

Output only. The template name.

The template will have one of the following formats: projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID;

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

Returns
Type Description
InspectTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public InspectTemplate.Builder clearUpdateTime()

Output only. The last update timestamp of an inspectTemplate.

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

Returns
Type Description
InspectTemplate.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The creation timestamp of an inspectTemplate.

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The creation timestamp of an inspectTemplate.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The creation timestamp of an inspectTemplate.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public InspectTemplate getDefaultInstanceForType()
Returns
Type Description
InspectTemplate

getDescription()

public String getDescription()

Short description (max 256 chars).

string description = 3;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description (max 256 chars).

string description = 3;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDisplayName()

public String getDisplayName()

Display name (max 256 chars).

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name (max 256 chars).

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getInspectConfig()

public InspectConfig getInspectConfig()

The core content of the template. Configuration of the scanning process.

.google.privacy.dlp.v2.InspectConfig inspect_config = 6;

Returns
Type Description
InspectConfig

The inspectConfig.

getInspectConfigBuilder()

public InspectConfig.Builder getInsp