Class CreateJobTriggerRequest.Builder (3.10.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateJobTriggerRequest build()
Returns
TypeDescription
CreateJobTriggerRequest

buildPartial()

public CreateJobTriggerRequest buildPartial()
Returns
TypeDescription
CreateJobTriggerRequest

clear()

public CreateJobTriggerRequest.Builder clear()
Returns
TypeDescription
CreateJobTriggerRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateJobTriggerRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
CreateJobTriggerRequest.Builder

clearLocationId()

public CreateJobTriggerRequest.Builder clearLocationId()

Deprecated. This field has no effect.

string location_id = 4;

Returns
TypeDescription
CreateJobTriggerRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateJobTriggerRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateJobTriggerRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
JobTriggerOrBuilder

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

Whether the jobTrigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateJobTriggerRequest other)

public CreateJobTriggerRequest.Builder mergeFrom(CreateJobTriggerRequest other)
Parameter
NameDescription
otherCreateJobTriggerRequest
Returns
TypeDescription
CreateJobTriggerRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public CreateJobTriggerRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueJobTrigger
Returns
TypeDescription
CreateJobTriggerRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateJobTriggerRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateJobTriggerRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateJobTriggerRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueJobTrigger
Returns
TypeDescription
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
NameDescription
builderForValueJobTrigger.Builder
Returns
TypeDescription
CreateJobTriggerRequest.Builder

setLocationId(String value)

public CreateJobTriggerRequest.Builder setLocationId(String value)

Deprecated. This field has no effect.

string location_id = 4;

Parameter
NameDescription
valueString

The locationId to set.

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

The bytes for locationId to set.

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

The parent to set.

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

The bytes for parent to set.

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

The triggerId to set.

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

The bytes for triggerId to set.

Returns
TypeDescription
CreateJobTriggerRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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