Package com.google.privacy.dlp.v2
Class InspectTemplate.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
- com.google.privacy.dlp.v2.InspectTemplate.Builder
-
- All Implemented Interfaces:
InspectTemplateOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- InspectTemplate
public static final class InspectTemplate.Builder extends com.google.protobuf.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/dlp/docs/concepts-templates to learn more.
Protobuf typegoogle.privacy.dlp.v2.InspectTemplate
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InspectTemplate.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InspectTemplate
build()
InspectTemplate
buildPartial()
InspectTemplate.Builder
clear()
InspectTemplate.Builder
clearCreateTime()
Output only.InspectTemplate.Builder
clearDescription()
Short description (max 256 chars).InspectTemplate.Builder
clearDisplayName()
Display name (max 256 chars).InspectTemplate.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
InspectTemplate.Builder
clearInspectConfig()
The core content of the template.InspectTemplate.Builder
clearName()
Output only.InspectTemplate.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
InspectTemplate.Builder
clearUpdateTime()
Output only.InspectTemplate.Builder
clone()
com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.Timestamp.Builder
getCreateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.InspectTemplate
getDefaultInstanceForType()
String
getDescription()
Short description (max 256 chars).com.google.protobuf.ByteString
getDescriptionBytes()
Short description (max 256 chars).static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getDisplayName()
Display name (max 256 chars).com.google.protobuf.ByteString
getDisplayNameBytes()
Display name (max 256 chars).InspectConfig
getInspectConfig()
The core content of the template.InspectConfig.Builder
getInspectConfigBuilder()
The core content of the template.InspectConfigOrBuilder
getInspectConfigOrBuilder()
The core content of the template.String
getName()
Output only.com.google.protobuf.ByteString
getNameBytes()
Output only.com.google.protobuf.Timestamp
getUpdateTime()
Output only.com.google.protobuf.Timestamp.Builder
getUpdateTimeBuilder()
Output only.com.google.protobuf.TimestampOrBuilder
getUpdateTimeOrBuilder()
Output only.boolean
hasCreateTime()
Output only.boolean
hasInspectConfig()
The core content of the template.boolean
hasUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
InspectTemplate.Builder
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.InspectTemplate.Builder
mergeFrom(InspectTemplate other)
InspectTemplate.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
InspectTemplate.Builder
mergeFrom(com.google.protobuf.Message other)
InspectTemplate.Builder
mergeInspectConfig(InspectConfig value)
The core content of the template.InspectTemplate.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
InspectTemplate.Builder
mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only.InspectTemplate.Builder
setCreateTime(com.google.protobuf.Timestamp value)
Output only.InspectTemplate.Builder
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.InspectTemplate.Builder
setDescription(String value)
Short description (max 256 chars).InspectTemplate.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Short description (max 256 chars).InspectTemplate.Builder
setDisplayName(String value)
Display name (max 256 chars).InspectTemplate.Builder
setDisplayNameBytes(com.google.protobuf.ByteString value)
Display name (max 256 chars).InspectTemplate.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
InspectTemplate.Builder
setInspectConfig(InspectConfig value)
The core content of the template.InspectTemplate.Builder
setInspectConfig(InspectConfig.Builder builderForValue)
The core content of the template.InspectTemplate.Builder
setName(String value)
Output only.InspectTemplate.Builder
setNameBytes(com.google.protobuf.ByteString value)
Output only.InspectTemplate.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
InspectTemplate.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
InspectTemplate.Builder
setUpdateTime(com.google.protobuf.Timestamp value)
Output only.InspectTemplate.Builder
setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
clear
public InspectTemplate.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
getDefaultInstanceForType
public InspectTemplate getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public InspectTemplate build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InspectTemplate buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InspectTemplate.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
setField
public InspectTemplate.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
clearField
public InspectTemplate.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
clearOneof
public InspectTemplate.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
setRepeatedField
public InspectTemplate.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
addRepeatedField
public InspectTemplate.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
mergeFrom
public InspectTemplate.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InspectTemplate.Builder>
-
mergeFrom
public InspectTemplate.Builder mergeFrom(InspectTemplate other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
mergeFrom
public InspectTemplate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<InspectTemplate.Builder>
- Throws:
IOException
-
getName
public String getName()
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];
- Specified by:
getName
in interfaceInspectTemplateOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
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];
- Specified by:
getNameBytes
in interfaceInspectTemplateOrBuilder
- Returns:
- The bytes for name.
-
setName
public InspectTemplate.Builder setName(String value)
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];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
public InspectTemplate.Builder setNameBytes(com.google.protobuf.ByteString value)
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];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
public String getDisplayName()
Display name (max 256 chars).
string display_name = 2;
- Specified by:
getDisplayName
in interfaceInspectTemplateOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
Display name (max 256 chars).
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceInspectTemplateOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
public InspectTemplate.Builder setDisplayName(String value)
Display name (max 256 chars).
string display_name = 2;
- Parameters:
value
- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public InspectTemplate.Builder clearDisplayName()
Display name (max 256 chars).
string display_name = 2;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
public InspectTemplate.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
Display name (max 256 chars).
string display_name = 2;
- Parameters:
value
- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Short description (max 256 chars).
string description = 3;
- Specified by:
getDescription
in interfaceInspectTemplateOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Short description (max 256 chars).
string description = 3;
- Specified by:
getDescriptionBytes
in interfaceInspectTemplateOrBuilder
- Returns:
- The bytes for description.
-
setDescription
public InspectTemplate.Builder setDescription(String value)
Short description (max 256 chars).
string description = 3;
- Parameters:
value
- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public InspectTemplate.Builder clearDescription()
Short description (max 256 chars).
string description = 3;
- Returns:
- This builder for chaining.
-
setDescriptionBytes
public InspectTemplate.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Short description (max 256 chars).
string description = 3;
- Parameters:
value
- The bytes for description to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The creation timestamp of an inspectTemplate.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceInspectTemplateOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The creation timestamp of an inspectTemplate.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTime
in interfaceInspectTemplateOrBuilder
- Returns:
- The createTime.
-
setCreateTime
public InspectTemplate.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation timestamp of an inspectTemplate.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setCreateTime
public InspectTemplate.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The creation timestamp of an inspectTemplate.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeCreateTime
public InspectTemplate.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The creation timestamp of an inspectTemplate.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The creation timestamp of an inspectTemplate.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The creation timestamp of an inspectTemplate.
.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getCreateTimeOrBuilder
in interfaceInspectTemplateOrBuilder
-
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];
- Specified by:
hasUpdateTime
in interfaceInspectTemplateOrBuilder
- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
Output only. The last update timestamp of an inspectTemplate.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTime
in interfaceInspectTemplateOrBuilder
- Returns:
- The updateTime.
-
setUpdateTime
public InspectTemplate.Builder setUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last update timestamp of an inspectTemplate.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setUpdateTime
public InspectTemplate.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The last update timestamp of an inspectTemplate.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeUpdateTime
public InspectTemplate.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
Output only. The last update timestamp of an inspectTemplate.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
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];
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
Output only. The last update timestamp of an inspectTemplate.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The last update timestamp of an inspectTemplate.
.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getUpdateTimeOrBuilder
in interfaceInspectTemplateOrBuilder
-
hasInspectConfig
public boolean hasInspectConfig()
The core content of the template. Configuration of the scanning process.
.google.privacy.dlp.v2.InspectConfig inspect_config = 6;
- Specified by:
hasInspectConfig
in interfaceInspectTemplateOrBuilder
- Returns:
- Whether the inspectConfig field is set.
-
getInspectConfig
public InspectConfig getInspectConfig()
The core content of the template. Configuration of the scanning process.
.google.privacy.dlp.v2.InspectConfig inspect_config = 6;
- Specified by:
getInspectConfig
in interfaceInspectTemplateOrBuilder
- Returns:
- The inspectConfig.
-
setInspectConfig
public InspectTemplate.Builder setInspectConfig(InspectConfig value)
The core content of the template. Configuration of the scanning process.
.google.privacy.dlp.v2.InspectConfig inspect_config = 6;
-
setInspectConfig
public InspectTemplate.Builder setInspectConfig(InspectConfig.Builder builderForValue)
The core content of the template. Configuration of the scanning process.
.google.privacy.dlp.v2.InspectConfig inspect_config = 6;
-
mergeInspectConfig
public InspectTemplate.Builder mergeInspectConfig(InspectConfig value)
The core content of the template. Configuration of the scanning process.
.google.privacy.dlp.v2.InspectConfig inspect_config = 6;
-
clearInspectConfig
public InspectTemplate.Builder clearInspectConfig()
The core content of the template. Configuration of the scanning process.
.google.privacy.dlp.v2.InspectConfig inspect_config = 6;
-
getInspectConfigBuilder
public InspectConfig.Builder getInspectConfigBuilder()
The core content of the template. Configuration of the scanning process.
.google.privacy.dlp.v2.InspectConfig inspect_config = 6;
-
getInspectConfigOrBuilder
public InspectConfigOrBuilder getInspectConfigOrBuilder()
The core content of the template. Configuration of the scanning process.
.google.privacy.dlp.v2.InspectConfig inspect_config = 6;
- Specified by:
getInspectConfigOrBuilder
in interfaceInspectTemplateOrBuilder
-
setUnknownFields
public final InspectTemplate.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
mergeUnknownFields
public final InspectTemplate.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<InspectTemplate.Builder>
-
-