Class SdpAdvancedConfig.Builder (0.1.0)

public static final class SdpAdvancedConfig.Builder extends GeneratedMessageV3.Builder<SdpAdvancedConfig.Builder> implements SdpAdvancedConfigOrBuilder

Sensitive Data Protection Advanced configuration.

Protobuf type google.cloud.modelarmor.v1.SdpAdvancedConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SdpAdvancedConfig build()
Returns
Type Description
SdpAdvancedConfig

buildPartial()

public SdpAdvancedConfig buildPartial()
Returns
Type Description
SdpAdvancedConfig

clear()

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

clearDeidentifyTemplate()

public SdpAdvancedConfig.Builder clearDeidentifyTemplate()

Optional. Optional Sensitive Data Protection Deidentify template resource name.

If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template.

e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}

string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SdpAdvancedConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearInspectTemplate()

public SdpAdvancedConfig.Builder clearInspectTemplate()

Optional. Sensitive Data Protection inspect template resource name

If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult.

e.g. projects/{project}/locations/{location}/inspectTemplates/{inspect_template}

string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SdpAdvancedConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public SdpAdvancedConfig getDefaultInstanceForType()
Returns
Type Description
SdpAdvancedConfig

getDeidentifyTemplate()

public String getDeidentifyTemplate()

Optional. Optional Sensitive Data Protection Deidentify template resource name.

If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template.

e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}

string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The deidentifyTemplate.

getDeidentifyTemplateBytes()

public ByteString getDeidentifyTemplateBytes()

Optional. Optional Sensitive Data Protection Deidentify template resource name.

If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template.

e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}

string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for deidentifyTemplate.

getDescriptorForType()

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

getInspectTemplate()

public String getInspectTemplate()

Optional. Sensitive Data Protection inspect template resource name

If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult.

e.g. projects/{project}/locations/{location}/inspectTemplates/{inspect_template}

string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The inspectTemplate.

getInspectTemplateBytes()

public ByteString getInspectTemplateBytes()

Optional. Sensitive Data Protection inspect template resource name

If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult.

e.g. projects/{project}/locations/{location}/inspectTemplates/{inspect_template}

string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for inspectTemplate.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SdpAdvancedConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SdpAdvancedConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SdpAdvancedConfig.Builder
Overrides

setDeidentifyTemplate(String value)

public SdpAdvancedConfig.Builder setDeidentifyTemplate(String value)

Optional. Optional Sensitive Data Protection Deidentify template resource name.

If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template.

e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}

string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The deidentifyTemplate to set.

Returns
Type Description
SdpAdvancedConfig.Builder

This builder for chaining.

setDeidentifyTemplateBytes(ByteString value)

public SdpAdvancedConfig.Builder setDeidentifyTemplateBytes(ByteString value)

Optional. Optional Sensitive Data Protection Deidentify template resource name.

If provided then DeidentifyContent action is performed during Sanitization using this template and inspect template. The De-identified data will be returned in SdpDeidentifyResult. Note that all info-types present in the deidentify template must be present in inspect template.

e.g. projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}

string deidentify_template = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for deidentifyTemplate to set.

Returns
Type Description
SdpAdvancedConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setInspectTemplate(String value)

public SdpAdvancedConfig.Builder setInspectTemplate(String value)

Optional. Sensitive Data Protection inspect template resource name

If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult.

e.g. projects/{project}/locations/{location}/inspectTemplates/{inspect_template}

string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The inspectTemplate to set.

Returns
Type Description
SdpAdvancedConfig.Builder

This builder for chaining.

setInspectTemplateBytes(ByteString value)

public SdpAdvancedConfig.Builder setInspectTemplateBytes(ByteString value)

Optional. Sensitive Data Protection inspect template resource name

If only inspect template is provided (de-identify template not provided), then Sensitive Data Protection InspectContent action is performed during Sanitization. All Sensitive Data Protection findings identified during inspection will be returned as SdpFinding in SdpInsepctionResult.

e.g. projects/{project}/locations/{location}/inspectTemplates/{inspect_template}

string inspect_template = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for inspectTemplate to set.

Returns
Type Description
SdpAdvancedConfig.Builder

This builder for chaining.

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

public SdpAdvancedConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SdpAdvancedConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SdpAdvancedConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SdpAdvancedConfig.Builder
Overrides