Class CreateJobTriggerRequest.Builder (3.47.0)

public static final class CreateJobTriggerRequest.Builder extends GeneratedMessageV3.Builder<CreateJobTriggerRequest.Builder> implements CreateJobTriggerRequestOrBuilder

Request message for CreateJobTrigger.

Protobuf type google.privacy.dlp.v2.CreateJobTriggerRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateJobTriggerRequest build()
Returns
Type Description
CreateJobTriggerRequest

buildPartial()

public CreateJobTriggerRequest buildPartial()
Returns
Type Description
CreateJobTriggerRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearJobTrigger()

public CreateJobTriggerRequest.Builder clearJobTrigger()

Required. The JobTrigger to create.

.google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateJobTriggerRequest.Builder

clearLocationId()

public CreateJobTriggerRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
Type Description
CreateJobTriggerRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateJobTriggerRequest.Builder clearParent()

Required. Parent resource name.

The format of this value varies depending on 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>

    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
CreateJobTriggerRequest.Builder

This builder for chaining.

clearTriggerId()

public CreateJobTriggerRequest.Builder clearTriggerId()

The trigger 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 trigger_id = 3;

Returns
Type Description
CreateJobTriggerRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateJobTriggerRequest getDefaultInstanceForType()
Returns
Type Description
CreateJobTriggerRequest

getDescriptorForType()

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

getJobTrigger()

public JobTrigger getJobTrigger()

Required. The JobTrigger to create.

.google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobTrigger

The jobTrigger.

getJobTriggerBuilder()

public JobTrigger.Builder getJobTriggerBuilder()

Required. The JobTrigger to create.

.google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobTrigger.Builder

getJobTriggerOrBuilder()

public JobTriggerOrBuilder getJobTriggerOrBuilder()

Required. The JobTrigger to create.

.google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
JobTriggerOrBuilder

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 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>

    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 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>

    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.

getTriggerId()

public String getTriggerId()

The trigger 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 trigger_id = 3;

Returns
Type Description
String

The triggerId.

getTriggerIdBytes()

public ByteString getTriggerIdBytes()

The trigger 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 trigger_id = 3;

Returns
Type Description
ByteString

The bytes for triggerId.

hasJobTrigger()

public boolean hasJobTrigger()

Required. The JobTrigger to create.

.google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the jobTrigger field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateJobTriggerRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeJobTrigger(JobTrigger value)

public CreateJobTriggerRequest.Builder mergeJobTrigger(JobTrigger value)

Required. The JobTrigger to create.

.google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value JobTrigger
Returns
Type Description
CreateJobTriggerRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setJobTrigger(JobTrigger value)

public CreateJobTriggerRequest.Builder setJobTrigger(JobTrigger value)

Required. The JobTrigger to create.

.google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value JobTrigger
Returns
Type Description
CreateJobTriggerRequest.Builder

setJobTrigger(JobTrigger.Builder builderForValue)

public CreateJobTriggerRequest.Builder setJobTrigger(JobTrigger.Builder builderForValue)

Required. The JobTrigger to create.

.google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue JobTrigger.Builder
Returns
Type Description
CreateJobTriggerRequest.Builder

setLocationId(String value)

public CreateJobTriggerRequest.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
CreateJobTriggerRequest.Builder

This builder for chaining.

setLocationIdBytes(ByteString value)

public CreateJobTriggerRequest.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
CreateJobTriggerRequest.Builder

This builder for chaining.

setParent(String value)

public CreateJobTriggerRequest.Builder setParent(String value)

Required. Parent resource name.

The format of this value varies depending on 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>

    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
CreateJobTriggerRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateJobTriggerRequest.Builder setParentBytes(ByteString value)

Required. Parent resource name.

The format of this value varies depending on 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>

    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
CreateJobTriggerRequest.Builder

This builder for chaining.

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

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

setTriggerId(String value)

public CreateJobTriggerRequest.Builder setTriggerId(String value)

The trigger 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 trigger_id = 3;

Parameter
Name Description
value String

The triggerId to set.

Returns
Type Description
CreateJobTriggerRequest.Builder

This builder for chaining.

setTriggerIdBytes(ByteString value)

public CreateJobTriggerRequest.Builder setTriggerIdBytes(ByteString value)

The trigger 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 trigger_id = 3;

Parameter
Name Description
value ByteString

The bytes for triggerId to set.

Returns
Type Description
CreateJobTriggerRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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