Class Job.Builder (2.3.10)

public static final class Job.Builder extends GeneratedMessageV3.Builder<Job.Builder> implements JobOrBuilder

Configuration for a job. The maximum allowed size for a job is 100KB.

Protobuf type google.cloud.scheduler.v1beta1.Job

Implements

JobOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Job build()
Returns
TypeDescription
Job

buildPartial()

public Job buildPartial()
Returns
TypeDescription
Job

clear()

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

clearAppEngineHttpTarget()

public Job.Builder clearAppEngineHttpTarget()

App Engine HTTP target.

.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;

Returns
TypeDescription
Job.Builder

clearAttemptDeadline()

public Job.Builder clearAttemptDeadline()

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is:

  • For HTTP targets, between 15 seconds and 30 minutes.
  • For App Engine HTTP targets, between 15 seconds and 24 hours.
  • For PubSub targets, this field is ignored.

.google.protobuf.Duration attempt_deadline = 22;

Returns
TypeDescription
Job.Builder

clearDescription()

public Job.Builder clearDescription()

Optionally caller-specified in CreateJob or UpdateJob. A human-readable description for the job. This string must not contain more than 500 characters.

string description = 2;

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHttpTarget()

public Job.Builder clearHttpTarget()

HTTP target.

.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;

Returns
TypeDescription
Job.Builder

clearLastAttemptTime()

public Job.Builder clearLastAttemptTime()

Output only. The time the last job attempt started.

.google.protobuf.Timestamp last_attempt_time = 18;

Returns
TypeDescription
Job.Builder

clearName()

public Job.Builder clearName()

Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

  • PROJECT_ID can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects
  • LOCATION_ID is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/.
  • JOB_ID can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.

string name = 1;

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Job.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Job.Builder
Overrides

clearPubsubTarget()

public Job.Builder clearPubsubTarget()

Pub/Sub target.

.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;

Returns
TypeDescription
Job.Builder

clearRetryConfig()

public Job.Builder clearRetryConfig()

Settings that determine the retry behavior.

.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;

Returns
TypeDescription
Job.Builder

clearSchedule()

public Job.Builder clearSchedule()

Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types:

  • Crontab
  • English-like schedule As a general rule, execution n + 1 of a job will not begin until execution n has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the n+1th execution is scheduled to run at 16:00 but the nth execution takes until 16:15, the n+1th execution will not start until 16:15. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time.

string schedule = 20;

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearScheduleTime()

public Job.Builder clearScheduleTime()

Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.

.google.protobuf.Timestamp schedule_time = 17;

Returns
TypeDescription
Job.Builder

clearState()

public Job.Builder clearState()

Output only. State of the job.

.google.cloud.scheduler.v1beta1.Job.State state = 10;

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearStatus()

public Job.Builder clearStatus()

Output only. The response from the target for the last attempted execution.

.google.rpc.Status status = 11;

Returns
TypeDescription
Job.Builder

clearTarget()

public Job.Builder clearTarget()
Returns
TypeDescription
Job.Builder

clearTimeZone()

public Job.Builder clearTimeZone()

Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the tz database. Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT).

string time_zone = 21;

Returns
TypeDescription
Job.Builder

This builder for chaining.

clearUserUpdateTime()

public Job.Builder clearUserUpdateTime()

Output only. The creation time of the job.

.google.protobuf.Timestamp user_update_time = 9;

Returns
TypeDescription
Job.Builder

clone()

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

getAppEngineHttpTarget()

public AppEngineHttpTarget getAppEngineHttpTarget()

App Engine HTTP target.

.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;

Returns
TypeDescription
AppEngineHttpTarget

The appEngineHttpTarget.

getAppEngineHttpTargetBuilder()

public AppEngineHttpTarget.Builder getAppEngineHttpTargetBuilder()

App Engine HTTP target.

.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;

Returns
TypeDescription
AppEngineHttpTarget.Builder

getAppEngineHttpTargetOrBuilder()

public AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder()

App Engine HTTP target.

.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;

Returns
TypeDescription
AppEngineHttpTargetOrBuilder

getAttemptDeadline()

public Duration getAttemptDeadline()

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is:

  • For HTTP targets, between 15 seconds and 30 minutes.
  • For App Engine HTTP targets, between 15 seconds and 24 hours.
  • For PubSub targets, this field is ignored.

.google.protobuf.Duration attempt_deadline = 22;

Returns
TypeDescription
Duration

The attemptDeadline.

getAttemptDeadlineBuilder()

public Duration.Builder getAttemptDeadlineBuilder()

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is:

  • For HTTP targets, between 15 seconds and 30 minutes.
  • For App Engine HTTP targets, between 15 seconds and 24 hours.
  • For PubSub targets, this field is ignored.

.google.protobuf.Duration attempt_deadline = 22;

Returns
TypeDescription
Builder

getAttemptDeadlineOrBuilder()

public DurationOrBuilder getAttemptDeadlineOrBuilder()

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is:

  • For HTTP targets, between 15 seconds and 30 minutes.
  • For App Engine HTTP targets, between 15 seconds and 24 hours.
  • For PubSub targets, this field is ignored.

.google.protobuf.Duration attempt_deadline = 22;

Returns
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public Job getDefaultInstanceForType()
Returns
TypeDescription
Job

getDescription()

public String getDescription()

Optionally caller-specified in CreateJob or UpdateJob. A human-readable description for the job. This string must not contain more than 500 characters.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optionally caller-specified in CreateJob or UpdateJob. A human-readable description for the job. This string must not contain more than 500 characters.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHttpTarget()

public HttpTarget getHttpTarget()

HTTP target.

.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;

Returns
TypeDescription
HttpTarget

The httpTarget.

getHttpTargetBuilder()

public HttpTarget.Builder getHttpTargetBuilder()

HTTP target.

.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;

Returns
TypeDescription
HttpTarget.Builder

getHttpTargetOrBuilder()

public HttpTargetOrBuilder getHttpTargetOrBuilder()

HTTP target.

.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;

Returns
TypeDescription
HttpTargetOrBuilder

getLastAttemptTime()

public Timestamp getLastAttemptTime()

Output only. The time the last job attempt started.

.google.protobuf.Timestamp last_attempt_time = 18;

Returns
TypeDescription
Timestamp

The lastAttemptTime.

getLastAttemptTimeBuilder()

public Timestamp.Builder getLastAttemptTimeBuilder()

Output only. The time the last job attempt started.

.google.protobuf.Timestamp last_attempt_time = 18;

Returns
TypeDescription
Builder

getLastAttemptTimeOrBuilder()

public TimestampOrBuilder getLastAttemptTimeOrBuilder()

Output only. The time the last job attempt started.

.google.protobuf.Timestamp last_attempt_time = 18;

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

  • PROJECT_ID can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects
  • LOCATION_ID is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/.
  • JOB_ID can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

  • PROJECT_ID can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects
  • LOCATION_ID is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/.
  • JOB_ID can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPubsubTarget()

public PubsubTarget getPubsubTarget()

Pub/Sub target.

.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;

Returns
TypeDescription
PubsubTarget

The pubsubTarget.

getPubsubTargetBuilder()

public PubsubTarget.Builder getPubsubTargetBuilder()

Pub/Sub target.

.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;

Returns
TypeDescription
PubsubTarget.Builder

getPubsubTargetOrBuilder()

public PubsubTargetOrBuilder getPubsubTargetOrBuilder()

Pub/Sub target.

.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;

Returns
TypeDescription
PubsubTargetOrBuilder

getRetryConfig()

public RetryConfig getRetryConfig()

Settings that determine the retry behavior.

.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;

Returns
TypeDescription
RetryConfig

The retryConfig.

getRetryConfigBuilder()

public RetryConfig.Builder getRetryConfigBuilder()

Settings that determine the retry behavior.

.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;

Returns
TypeDescription
RetryConfig.Builder

getRetryConfigOrBuilder()

public RetryConfigOrBuilder getRetryConfigOrBuilder()

Settings that determine the retry behavior.

.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;

Returns
TypeDescription
RetryConfigOrBuilder

getSchedule()

public String getSchedule()

Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types:

  • Crontab
  • English-like schedule As a general rule, execution n + 1 of a job will not begin until execution n has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the n+1th execution is scheduled to run at 16:00 but the nth execution takes until 16:15, the n+1th execution will not start until 16:15. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time.

string schedule = 20;

Returns
TypeDescription
String

The schedule.

getScheduleBytes()

public ByteString getScheduleBytes()

Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types:

  • Crontab
  • English-like schedule As a general rule, execution n + 1 of a job will not begin until execution n has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the n+1th execution is scheduled to run at 16:00 but the nth execution takes until 16:15, the n+1th execution will not start until 16:15. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time.

string schedule = 20;

Returns
TypeDescription
ByteString

The bytes for schedule.

getScheduleTime()

public Timestamp getScheduleTime()

Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.

.google.protobuf.Timestamp schedule_time = 17;

Returns
TypeDescription
Timestamp

The scheduleTime.

getScheduleTimeBuilder()

public Timestamp.Builder getScheduleTimeBuilder()

Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.

.google.protobuf.Timestamp schedule_time = 17;

Returns
TypeDescription
Builder

getScheduleTimeOrBuilder()

public TimestampOrBuilder getScheduleTimeOrBuilder()

Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.

.google.protobuf.Timestamp schedule_time = 17;

Returns
TypeDescription
TimestampOrBuilder

getState()

public Job.State getState()

Output only. State of the job.

.google.cloud.scheduler.v1beta1.Job.State state = 10;

Returns
TypeDescription
Job.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the job.

.google.cloud.scheduler.v1beta1.Job.State state = 10;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStatus()

public Status getStatus()

Output only. The response from the target for the last attempted execution.

.google.rpc.Status status = 11;

Returns
TypeDescription
com.google.rpc.Status

The status.

getStatusBuilder()

public Status.Builder getStatusBuilder()

Output only. The response from the target for the last attempted execution.

.google.rpc.Status status = 11;

Returns
TypeDescription
com.google.rpc.Status.Builder

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

Output only. The response from the target for the last attempted execution.

.google.rpc.Status status = 11;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getTargetCase()

public Job.TargetCase getTargetCase()
Returns
TypeDescription
Job.TargetCase

getTimeZone()

public String getTimeZone()

Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the tz database. Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT).

string time_zone = 21;

Returns
TypeDescription
String

The timeZone.

getTimeZoneBytes()

public ByteString getTimeZoneBytes()

Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the tz database. Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT).

string time_zone = 21;

Returns
TypeDescription
ByteString

The bytes for timeZone.

getUserUpdateTime()

public Timestamp getUserUpdateTime()

Output only. The creation time of the job.

.google.protobuf.Timestamp user_update_time = 9;

Returns
TypeDescription
Timestamp

The userUpdateTime.

getUserUpdateTimeBuilder()

public Timestamp.Builder getUserUpdateTimeBuilder()

Output only. The creation time of the job.

.google.protobuf.Timestamp user_update_time = 9;

Returns
TypeDescription
Builder

getUserUpdateTimeOrBuilder()

public TimestampOrBuilder getUserUpdateTimeOrBuilder()

Output only. The creation time of the job.

.google.protobuf.Timestamp user_update_time = 9;

Returns
TypeDescription
TimestampOrBuilder

hasAppEngineHttpTarget()

public boolean hasAppEngineHttpTarget()

App Engine HTTP target.

.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;

Returns
TypeDescription
boolean

Whether the appEngineHttpTarget field is set.

hasAttemptDeadline()

public boolean hasAttemptDeadline()

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is:

  • For HTTP targets, between 15 seconds and 30 minutes.
  • For App Engine HTTP targets, between 15 seconds and 24 hours.
  • For PubSub targets, this field is ignored.

.google.protobuf.Duration attempt_deadline = 22;

Returns
TypeDescription
boolean

Whether the attemptDeadline field is set.

hasHttpTarget()

public boolean hasHttpTarget()

HTTP target.

.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;

Returns
TypeDescription
boolean

Whether the httpTarget field is set.

hasLastAttemptTime()

public boolean hasLastAttemptTime()

Output only. The time the last job attempt started.

.google.protobuf.Timestamp last_attempt_time = 18;

Returns
TypeDescription
boolean

Whether the lastAttemptTime field is set.

hasPubsubTarget()

public boolean hasPubsubTarget()

Pub/Sub target.

.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;

Returns
TypeDescription
boolean

Whether the pubsubTarget field is set.

hasRetryConfig()

public boolean hasRetryConfig()

Settings that determine the retry behavior.

.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;

Returns
TypeDescription
boolean

Whether the retryConfig field is set.

hasScheduleTime()

public boolean hasScheduleTime()

Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.

.google.protobuf.Timestamp schedule_time = 17;

Returns
TypeDescription
boolean

Whether the scheduleTime field is set.

hasStatus()

public boolean hasStatus()

Output only. The response from the target for the last attempted execution.

.google.rpc.Status status = 11;

Returns
TypeDescription
boolean

Whether the status field is set.

hasUserUpdateTime()

public boolean hasUserUpdateTime()

Output only. The creation time of the job.

.google.protobuf.Timestamp user_update_time = 9;

Returns
TypeDescription
boolean

Whether the userUpdateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAppEngineHttpTarget(AppEngineHttpTarget value)

public Job.Builder mergeAppEngineHttpTarget(AppEngineHttpTarget value)

App Engine HTTP target.

.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;

Parameter
NameDescription
valueAppEngineHttpTarget
Returns
TypeDescription
Job.Builder

mergeAttemptDeadline(Duration value)

public Job.Builder mergeAttemptDeadline(Duration value)

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is:

  • For HTTP targets, between 15 seconds and 30 minutes.
  • For App Engine HTTP targets, between 15 seconds and 24 hours.
  • For PubSub targets, this field is ignored.

.google.protobuf.Duration attempt_deadline = 22;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Job.Builder

mergeFrom(Job other)

public Job.Builder mergeFrom(Job other)
Parameter
NameDescription
otherJob
Returns
TypeDescription
Job.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHttpTarget(HttpTarget value)

public Job.Builder mergeHttpTarget(HttpTarget value)

HTTP target.

.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;

Parameter
NameDescription
valueHttpTarget
Returns
TypeDescription
Job.Builder

mergeLastAttemptTime(Timestamp value)

public Job.Builder mergeLastAttemptTime(Timestamp value)

Output only. The time the last job attempt started.

.google.protobuf.Timestamp last_attempt_time = 18;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

mergePubsubTarget(PubsubTarget value)

public Job.Builder mergePubsubTarget(PubsubTarget value)

Pub/Sub target.

.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;

Parameter
NameDescription
valuePubsubTarget
Returns
TypeDescription
Job.Builder

mergeRetryConfig(RetryConfig value)

public Job.Builder mergeRetryConfig(RetryConfig value)

Settings that determine the retry behavior.

.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;

Parameter
NameDescription
valueRetryConfig
Returns
TypeDescription
Job.Builder

mergeScheduleTime(Timestamp value)

public Job.Builder mergeScheduleTime(Timestamp value)

Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.

.google.protobuf.Timestamp schedule_time = 17;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

mergeStatus(Status value)

public Job.Builder mergeStatus(Status value)

Output only. The response from the target for the last attempted execution.

.google.rpc.Status status = 11;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
Job.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUserUpdateTime(Timestamp value)

public Job.Builder mergeUserUpdateTime(Timestamp value)

Output only. The creation time of the job.

.google.protobuf.Timestamp user_update_time = 9;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

setAppEngineHttpTarget(AppEngineHttpTarget value)

public Job.Builder setAppEngineHttpTarget(AppEngineHttpTarget value)

App Engine HTTP target.

.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;

Parameter
NameDescription
valueAppEngineHttpTarget
Returns
TypeDescription
Job.Builder

setAppEngineHttpTarget(AppEngineHttpTarget.Builder builderForValue)

public Job.Builder setAppEngineHttpTarget(AppEngineHttpTarget.Builder builderForValue)

App Engine HTTP target.

.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;

Parameter
NameDescription
builderForValueAppEngineHttpTarget.Builder
Returns
TypeDescription
Job.Builder

setAttemptDeadline(Duration value)

public Job.Builder setAttemptDeadline(Duration value)

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is:

  • For HTTP targets, between 15 seconds and 30 minutes.
  • For App Engine HTTP targets, between 15 seconds and 24 hours.
  • For PubSub targets, this field is ignored.

.google.protobuf.Duration attempt_deadline = 22;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
Job.Builder

setAttemptDeadline(Duration.Builder builderForValue)

public Job.Builder setAttemptDeadline(Duration.Builder builderForValue)

The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a DEADLINE_EXCEEDED failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The allowed duration for this deadline is:

  • For HTTP targets, between 15 seconds and 30 minutes.
  • For App Engine HTTP targets, between 15 seconds and 24 hours.
  • For PubSub targets, this field is ignored.

.google.protobuf.Duration attempt_deadline = 22;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Job.Builder

setDescription(String value)

public Job.Builder setDescription(String value)

Optionally caller-specified in CreateJob or UpdateJob. A human-readable description for the job. This string must not contain more than 500 characters.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Job.Builder setDescriptionBytes(ByteString value)

Optionally caller-specified in CreateJob or UpdateJob. A human-readable description for the job. This string must not contain more than 500 characters.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHttpTarget(HttpTarget value)

public Job.Builder setHttpTarget(HttpTarget value)

HTTP target.

.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;

Parameter
NameDescription
valueHttpTarget
Returns
TypeDescription
Job.Builder

setHttpTarget(HttpTarget.Builder builderForValue)

public Job.Builder setHttpTarget(HttpTarget.Builder builderForValue)

HTTP target.

.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;

Parameter
NameDescription
builderForValueHttpTarget.Builder
Returns
TypeDescription
Job.Builder

setLastAttemptTime(Timestamp value)

public Job.Builder setLastAttemptTime(Timestamp value)

Output only. The time the last job attempt started.

.google.protobuf.Timestamp last_attempt_time = 18;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

setLastAttemptTime(Timestamp.Builder builderForValue)

public Job.Builder setLastAttemptTime(Timestamp.Builder builderForValue)

Output only. The time the last job attempt started.

.google.protobuf.Timestamp last_attempt_time = 18;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Job.Builder

setName(String value)

public Job.Builder setName(String value)

Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

  • PROJECT_ID can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects
  • LOCATION_ID is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/.
  • JOB_ID can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Job.Builder setNameBytes(ByteString value)

Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID.

  • PROJECT_ID can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects
  • LOCATION_ID is the canonical ID for the job's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/.
  • JOB_ID can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setPubsubTarget(PubsubTarget value)

public Job.Builder setPubsubTarget(PubsubTarget value)

Pub/Sub target.

.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;

Parameter
NameDescription
valuePubsubTarget
Returns
TypeDescription
Job.Builder

setPubsubTarget(PubsubTarget.Builder builderForValue)

public Job.Builder setPubsubTarget(PubsubTarget.Builder builderForValue)

Pub/Sub target.

.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;

Parameter
NameDescription
builderForValuePubsubTarget.Builder
Returns
TypeDescription
Job.Builder

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

public Job.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Job.Builder
Overrides

setRetryConfig(RetryConfig value)

public Job.Builder setRetryConfig(RetryConfig value)

Settings that determine the retry behavior.

.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;

Parameter
NameDescription
valueRetryConfig
Returns
TypeDescription
Job.Builder

setRetryConfig(RetryConfig.Builder builderForValue)

public Job.Builder setRetryConfig(RetryConfig.Builder builderForValue)

Settings that determine the retry behavior.

.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;

Parameter
NameDescription
builderForValueRetryConfig.Builder
Returns
TypeDescription
Job.Builder

setSchedule(String value)

public Job.Builder setSchedule(String value)

Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types:

  • Crontab
  • English-like schedule As a general rule, execution n + 1 of a job will not begin until execution n has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the n+1th execution is scheduled to run at 16:00 but the nth execution takes until 16:15, the n+1th execution will not start until 16:15. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time.

string schedule = 20;

Parameter
NameDescription
valueString

The schedule to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setScheduleBytes(ByteString value)

public Job.Builder setScheduleBytes(ByteString value)

Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types:

  • Crontab
  • English-like schedule As a general rule, execution n + 1 of a job will not begin until execution n has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the n+1th execution is scheduled to run at 16:00 but the nth execution takes until 16:15, the n+1th execution will not start until 16:15. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry_count > 0 and a job attempt fails, the job will be tried a total of retry_count times, with exponential backoff, until the next scheduled start time.

string schedule = 20;

Parameter
NameDescription
valueByteString

The bytes for schedule to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setScheduleTime(Timestamp value)

public Job.Builder setScheduleTime(Timestamp value)

Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.

.google.protobuf.Timestamp schedule_time = 17;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

setScheduleTime(Timestamp.Builder builderForValue)

public Job.Builder setScheduleTime(Timestamp.Builder builderForValue)

Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.

.google.protobuf.Timestamp schedule_time = 17;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Job.Builder

setState(Job.State value)

public Job.Builder setState(Job.State value)

Output only. State of the job.

.google.cloud.scheduler.v1beta1.Job.State state = 10;

Parameter
NameDescription
valueJob.State

The state to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setStateValue(int value)

public Job.Builder setStateValue(int value)

Output only. State of the job.

.google.cloud.scheduler.v1beta1.Job.State state = 10;

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setStatus(Status value)

public Job.Builder setStatus(Status value)

Output only. The response from the target for the last attempted execution.

.google.rpc.Status status = 11;

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
Job.Builder

setStatus(Status.Builder builderForValue)

public Job.Builder setStatus(Status.Builder builderForValue)

Output only. The response from the target for the last attempted execution.

.google.rpc.Status status = 11;

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
Job.Builder

setTimeZone(String value)

public Job.Builder setTimeZone(String value)

Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the tz database. Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT).

string time_zone = 21;

Parameter
NameDescription
valueString

The timeZone to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setTimeZoneBytes(ByteString value)

public Job.Builder setTimeZoneBytes(ByteString value)

Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the tz database. Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string "utc". If a time zone is not specified, the default will be in UTC (also known as GMT).

string time_zone = 21;

Parameter
NameDescription
valueByteString

The bytes for timeZone to set.

Returns
TypeDescription
Job.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserUpdateTime(Timestamp value)

public Job.Builder setUserUpdateTime(Timestamp value)

Output only. The creation time of the job.

.google.protobuf.Timestamp user_update_time = 9;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Job.Builder

setUserUpdateTime(Timestamp.Builder builderForValue)

public Job.Builder setUserUpdateTime(Timestamp.Builder builderForValue)

Output only. The creation time of the job.

.google.protobuf.Timestamp user_update_time = 9;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Job.Builder