Class CreateDeidentifyTemplateRequest.Builder (3.36.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDeidentifyTemplateRequest build()
Returns
TypeDescription
CreateDeidentifyTemplateRequest

buildPartial()

public CreateDeidentifyTemplateRequest buildPartial()
Returns
TypeDescription
CreateDeidentifyTemplateRequest

clear()

public CreateDeidentifyTemplateRequest.Builder clear()
Returns
TypeDescription
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
TypeDescription
CreateDeidentifyTemplateRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLocationId()

public CreateDeidentifyTemplateRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
TypeDescription
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateDeidentifyTemplateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

clone()

public CreateDeidentifyTemplateRequest.Builder clone()
Returns
TypeDescription
CreateDeidentifyTemplateRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateDeidentifyTemplateRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateDeidentifyTemplateRequest

getDeidentifyTemplate()

public DeidentifyTemplate getDeidentifyTemplate()

Required. The DeidentifyTemplate to create.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DeidentifyTemplateOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLocationId()

public String getLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
TypeDescription
String

The locationId.

getLocationIdBytes()

public ByteString getLocationIdBytes()

Deprecated. This field has no effect.

string location_id = 4;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the deidentifyTemplate field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueDeidentifyTemplate
Returns
TypeDescription
CreateDeidentifyTemplateRequest.Builder

mergeFrom(CreateDeidentifyTemplateRequest other)

public CreateDeidentifyTemplateRequest.Builder mergeFrom(CreateDeidentifyTemplateRequest other)
Parameter
NameDescription
otherCreateDeidentifyTemplateRequest
Returns
TypeDescription
CreateDeidentifyTemplateRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateDeidentifyTemplateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueDeidentifyTemplate
Returns
TypeDescription
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
NameDescription
builderForValueDeidentifyTemplate.Builder
Returns
TypeDescription
CreateDeidentifyTemplateRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocationId(String value)

public CreateDeidentifyTemplateRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 4;

Parameter
NameDescription
valueString

The locationId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for locationId to set.

Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The templateId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for templateId to set.

Returns
TypeDescription
CreateDeidentifyTemplateRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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