Class CreateDeidentifyTemplateRequest.Builder (3.46.0)

public static final class CreateDeidentifyTemplateRequest.Builder extends GeneratedMessageV3.Builder<CreateDeidentifyTemplateRequest.Builder> implements CreateDeidentifyTemplateRequestOrBuilder

Request message for CreateDeidentifyTemplate.

Protobuf type google.privacy.dlp.v2.CreateDeidentifyTemplateRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDeidentifyTemplateRequest build()
Returns
Type Description
CreateDeidentifyTemplateRequest

buildPartial()

public CreateDeidentifyTemplateRequest buildPartial()
Returns
Type Description
CreateDeidentifyTemplateRequest

clear()

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

clearDeidentifyTemplate()

public CreateDeidentifyTemplateRequest.Builder clearDeidentifyTemplate()

Required. The DeidentifyTemplate to create.

.google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLocationId()

public CreateDeidentifyTemplateRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDeidentifyTemplateRequest.Builder clearParent()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

clearTemplateId()

public CreateDeidentifyTemplateRequest.Builder clearTemplateId()

The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string template_id = 3;

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateDeidentifyTemplateRequest getDefaultInstanceForType()
Returns
Type Description
CreateDeidentifyTemplateRequest

getDeidentifyTemplate()

public DeidentifyTemplate getDeidentifyTemplate()

Required. The DeidentifyTemplate to create.

.google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeidentifyTemplate

The deidentifyTemplate.

getDeidentifyTemplateBuilder()

public DeidentifyTemplate.Builder getDeidentifyTemplateBuilder()

Required. The DeidentifyTemplate to create.

.google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeidentifyTemplate.Builder

getDeidentifyTemplateOrBuilder()

public DeidentifyTemplateOrBuilder getDeidentifyTemplateOrBuilder()

Required. The DeidentifyTemplate to create.

.google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DeidentifyTemplateOrBuilder

getDescriptorForType()

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

getLocationId()

public String getLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
Type Description
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Deprecated. This field has no effect.

string location_id = 4;

Returns
Type Description
ByteString

The bytes for locationId.

getParent()

public String getParent()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getTemplateId()

public String getTemplateId()

The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string template_id = 3;

Returns
Type Description
String

The templateId.

getTemplateIdBytes()

public ByteString getTemplateIdBytes()

The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string template_id = 3;

Returns
Type Description
ByteString

The bytes for templateId.

hasDeidentifyTemplate()

public boolean hasDeidentifyTemplate()

Required. The DeidentifyTemplate to create.

.google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the deidentifyTemplate field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeidentifyTemplate(DeidentifyTemplate value)

public CreateDeidentifyTemplateRequest.Builder mergeDeidentifyTemplate(DeidentifyTemplate value)

Required. The DeidentifyTemplate to create.

.google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeidentifyTemplate
Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

mergeFrom(CreateDeidentifyTemplateRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDeidentifyTemplate(DeidentifyTemplate value)

public CreateDeidentifyTemplateRequest.Builder setDeidentifyTemplate(DeidentifyTemplate value)

Required. The DeidentifyTemplate to create.

.google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DeidentifyTemplate
Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

setDeidentifyTemplate(DeidentifyTemplate.Builder builderForValue)

public CreateDeidentifyTemplateRequest.Builder setDeidentifyTemplate(DeidentifyTemplate.Builder builderForValue)

Required. The DeidentifyTemplate to create.

.google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DeidentifyTemplate.Builder
Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocationId(String value)

public CreateDeidentifyTemplateRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 4;

Parameter
Name Description
value String

The locationId to set.

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public CreateDeidentifyTemplateRequest.Builder setLocationIdBytes(ByteString value)

Deprecated. This field has no effect.

string location_id = 4;

Parameter
Name Description
value ByteString

The bytes for locationId to set.

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

setParent(String value)

public CreateDeidentifyTemplateRequest.Builder setParent(String value)

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDeidentifyTemplateRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name.

The format of this value varies depending on the scope of the request (project or organization) and whether you have specified a processing location:

  • Projects scope, location specified:<br/> projects/<var>PROJECT_ID</var>/locations/<var>LOCATION_ID</var>
  • Projects scope, no location specified (defaults to global):<br/> projects/<var>PROJECT_ID</var>
  • Organizations scope, location specified:<br/> organizations/<var>ORG_ID</var>/locations/<var>LOCATION_ID</var>
  • Organizations scope, no location specified (defaults to global):<br/> organizations/<var>ORG_ID</var>

    The following example parent string specifies a parent project with the identifier example-project, and specifies the europe-west3 location for processing data:

    parent=projects/example-project/locations/europe-west3

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

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

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

setTemplateId(String value)

public CreateDeidentifyTemplateRequest.Builder setTemplateId(String value)

The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string template_id = 3;

Parameter
Name Description
value String

The templateId to set.

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

setTemplateIdBytes(ByteString value)

public CreateDeidentifyTemplateRequest.Builder setTemplateIdBytes(ByteString value)

The template id can contain uppercase and lowercase letters, numbers, and hyphens; that is, it must match the regular expression: [a-zA-Z\d-_]+. The maximum length is 100 characters. Can be empty to allow the system to generate one.

string template_id = 3;

Parameter
Name Description
value ByteString

The bytes for templateId to set.

Returns
Type Description
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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