Class DeidentifyTemplate.Builder (3.8.0)

public static final class DeidentifyTemplate.Builder extends GeneratedMessageV3.Builder<DeidentifyTemplate.Builder> implements DeidentifyTemplateOrBuilder

DeidentifyTemplates contains instructions on how to de-identify content. See https://cloud.google.com/dlp/docs/concepts-templates to learn more.

Protobuf type google.privacy.dlp.v2.DeidentifyTemplate

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeidentifyTemplate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

build()

public DeidentifyTemplate build()
Returns
TypeDescription
DeidentifyTemplate

buildPartial()

public DeidentifyTemplate buildPartial()
Returns
TypeDescription
DeidentifyTemplate

clear()

public DeidentifyTemplate.Builder clear()
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

clearCreateTime()

public DeidentifyTemplate.Builder clearCreateTime()

Output only. The creation timestamp of an inspectTemplate.

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

Returns
TypeDescription
DeidentifyTemplate.Builder

clearDeidentifyConfig()

public DeidentifyTemplate.Builder clearDeidentifyConfig()

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Returns
TypeDescription
DeidentifyTemplate.Builder

clearDescription()

public DeidentifyTemplate.Builder clearDescription()

Short description (max 256 chars).

string description = 3;

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

clearDisplayName()

public DeidentifyTemplate.Builder clearDisplayName()

Display name (max 256 chars).

string display_name = 2;

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeidentifyTemplate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

clearName()

public DeidentifyTemplate.Builder clearName()

Output only. The template name. The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

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

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeidentifyTemplate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

clearUpdateTime()

public DeidentifyTemplate.Builder clearUpdateTime()

Output only. The last update timestamp of an inspectTemplate.

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

Returns
TypeDescription
DeidentifyTemplate.Builder

clone()

public DeidentifyTemplate.Builder clone()
Returns
TypeDescription
DeidentifyTemplate.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
TypeDescription
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
TypeDescription
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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public DeidentifyTemplate getDefaultInstanceForType()
Returns
TypeDescription
DeidentifyTemplate

getDeidentifyConfig()

public DeidentifyConfig getDeidentifyConfig()

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Returns
TypeDescription
DeidentifyConfig

The deidentifyConfig.

getDeidentifyConfigBuilder()

public DeidentifyConfig.Builder getDeidentifyConfigBuilder()

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Returns
TypeDescription
DeidentifyConfig.Builder

getDeidentifyConfigOrBuilder()

public DeidentifyConfigOrBuilder getDeidentifyConfigOrBuilder()

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Returns
TypeDescription
DeidentifyConfigOrBuilder

getDescription()

public String getDescription()

Short description (max 256 chars).

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description (max 256 chars).

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Display name (max 256 chars).

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Display name (max 256 chars).

string display_name = 2;

Returns
TypeDescription
ByteString

The bytes for displayName.

getName()

public String getName()

Output only. The template name. The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The template name. The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

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

Returns
TypeDescription
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last update timestamp of an inspectTemplate.

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

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The last update timestamp of an inspectTemplate.

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

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last update timestamp of an inspectTemplate.

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

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The creation timestamp of an inspectTemplate.

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

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDeidentifyConfig()

public boolean hasDeidentifyConfig()

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Returns
TypeDescription
boolean

Whether the deidentifyConfig field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last update timestamp of an inspectTemplate.

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

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public DeidentifyTemplate.Builder mergeCreateTime(Timestamp value)

Output only. The creation timestamp of an inspectTemplate.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DeidentifyTemplate.Builder

mergeDeidentifyConfig(DeidentifyConfig value)

public DeidentifyTemplate.Builder mergeDeidentifyConfig(DeidentifyConfig value)

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Parameter
NameDescription
valueDeidentifyConfig
Returns
TypeDescription
DeidentifyTemplate.Builder

mergeFrom(DeidentifyTemplate other)

public DeidentifyTemplate.Builder mergeFrom(DeidentifyTemplate other)
Parameter
NameDescription
otherDeidentifyTemplate
Returns
TypeDescription
DeidentifyTemplate.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeidentifyTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeidentifyTemplate.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeidentifyTemplate.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

mergeUpdateTime(Timestamp value)

public DeidentifyTemplate.Builder mergeUpdateTime(Timestamp value)

Output only. The last update timestamp of an inspectTemplate.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DeidentifyTemplate.Builder

setCreateTime(Timestamp value)

public DeidentifyTemplate.Builder setCreateTime(Timestamp value)

Output only. The creation timestamp of an inspectTemplate.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DeidentifyTemplate.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DeidentifyTemplate.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The creation timestamp of an inspectTemplate.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DeidentifyTemplate.Builder

setDeidentifyConfig(DeidentifyConfig value)

public DeidentifyTemplate.Builder setDeidentifyConfig(DeidentifyConfig value)

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Parameter
NameDescription
valueDeidentifyConfig
Returns
TypeDescription
DeidentifyTemplate.Builder

setDeidentifyConfig(DeidentifyConfig.Builder builderForValue)

public DeidentifyTemplate.Builder setDeidentifyConfig(DeidentifyConfig.Builder builderForValue)

The core content of the template.

.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;

Parameter
NameDescription
builderForValueDeidentifyConfig.Builder
Returns
TypeDescription
DeidentifyTemplate.Builder

setDescription(String value)

public DeidentifyTemplate.Builder setDescription(String value)

Short description (max 256 chars).

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public DeidentifyTemplate.Builder setDescriptionBytes(ByteString value)

Short description (max 256 chars).

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

setDisplayName(String value)

public DeidentifyTemplate.Builder setDisplayName(String value)

Display name (max 256 chars).

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public DeidentifyTemplate.Builder setDisplayNameBytes(ByteString value)

Display name (max 256 chars).

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeidentifyTemplate.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

setName(String value)

public DeidentifyTemplate.Builder setName(String value)

Output only. The template name. The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeidentifyTemplate.Builder setNameBytes(ByteString value)

Output only. The template name. The template will have one of the following formats: projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID OR organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeidentifyTemplate.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeidentifyTemplate.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeidentifyTemplate.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeidentifyTemplate.Builder
Overrides

setUpdateTime(Timestamp value)

public DeidentifyTemplate.Builder setUpdateTime(Timestamp value)

Output only. The last update timestamp of an inspectTemplate.

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
DeidentifyTemplate.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DeidentifyTemplate.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The last update timestamp of an inspectTemplate.

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
DeidentifyTemplate.Builder