public static final class DeidentifyTemplate.Builder extends GeneratedMessage.Builder<DeidentifyTemplate.Builder> implements DeidentifyTemplateOrBuilderDeidentifyTemplates contains instructions on how to de-identify content. See https://cloud.google.com/sensitive-data-protection/docs/concepts-templates to learn more.
Protobuf type google.privacy.dlp.v2.DeidentifyTemplate
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DeidentifyTemplate.BuilderImplements
DeidentifyTemplateOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DeidentifyTemplate build()| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate |
|
buildPartial()
public DeidentifyTemplate buildPartial()| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate |
|
clear()
public DeidentifyTemplate.Builder clear()| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
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 | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
clearDeidentifyConfig()
public DeidentifyTemplate.Builder clearDeidentifyConfig()The core content of the template.
.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
clearDescription()
public DeidentifyTemplate.Builder clearDescription()Short description (max 256 chars).
string description = 3;
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
This builder for chaining. |
clearDisplayName()
public DeidentifyTemplate.Builder clearDisplayName()Display name (max 256 chars).
string display_name = 2;
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
This builder for chaining. |
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 | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
This builder for chaining. |
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 | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
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 DeidentifyTemplate getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate |
|
getDeidentifyConfig()
public DeidentifyConfig getDeidentifyConfig()The core content of the template.
.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;
| Returns | |
|---|---|
| Type | Description |
DeidentifyConfig |
The deidentifyConfig. |
getDeidentifyConfigBuilder()
public DeidentifyConfig.Builder getDeidentifyConfigBuilder()The core content of the template.
.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;
| Returns | |
|---|---|
| Type | Description |
DeidentifyConfig.Builder |
|
getDeidentifyConfigOrBuilder()
public DeidentifyConfigOrBuilder getDeidentifyConfigOrBuilder()The core content of the template.
.google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6;
| Returns | |
|---|---|
| Type | Description |
DeidentifyConfigOrBuilder |
|
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 |
|
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. |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
DeidentifyConfig |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
mergeFrom(DeidentifyTemplate other)
public DeidentifyTemplate.Builder mergeFrom(DeidentifyTemplate other)| Parameter | |
|---|---|
| Name | Description |
other |
DeidentifyTemplate |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DeidentifyTemplate.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DeidentifyTemplate.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
DeidentifyConfig |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
DeidentifyConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|
setDescription(String value)
public DeidentifyTemplate.Builder setDescription(String value)Short description (max 256 chars).
string description = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public DeidentifyTemplate.Builder setDescriptionBytes(ByteString value)Short description (max 256 chars).
string description = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
This builder for chaining. |
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 | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
This builder for chaining. |
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 | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
DeidentifyTemplate.Builder |
|