Class Job (2.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 2.78.0 (latest)
- 2.76.0
- 2.75.0
- 2.74.0
- 2.73.0
- 2.72.0
- 2.70.0
- 2.68.0
- 2.67.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.13
- 2.2.0
- 2.1.23
publicfinalclass JobextendsGeneratedMessageV3implementsJobOrBuilderConfiguration for a job. The maximum allowed size for a job is 100KB.
Protobuf type google.cloud.scheduler.v1beta1.Job
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > JobImplements
JobOrBuilderInherited Members
Static Fields
APP_ENGINE_HTTP_TARGET_FIELD_NUMBER
publicstaticfinalintAPP_ENGINE_HTTP_TARGET_FIELD_NUMBERATTEMPT_DEADLINE_FIELD_NUMBER
publicstaticfinalintATTEMPT_DEADLINE_FIELD_NUMBERDESCRIPTION_FIELD_NUMBER
publicstaticfinalintDESCRIPTION_FIELD_NUMBERHTTP_TARGET_FIELD_NUMBER
publicstaticfinalintHTTP_TARGET_FIELD_NUMBERLAST_ATTEMPT_TIME_FIELD_NUMBER
publicstaticfinalintLAST_ATTEMPT_TIME_FIELD_NUMBERNAME_FIELD_NUMBER
publicstaticfinalintNAME_FIELD_NUMBERPUBSUB_TARGET_FIELD_NUMBER
publicstaticfinalintPUBSUB_TARGET_FIELD_NUMBERRETRY_CONFIG_FIELD_NUMBER
publicstaticfinalintRETRY_CONFIG_FIELD_NUMBERSCHEDULE_FIELD_NUMBER
publicstaticfinalintSCHEDULE_FIELD_NUMBERSCHEDULE_TIME_FIELD_NUMBER
publicstaticfinalintSCHEDULE_TIME_FIELD_NUMBERSTATE_FIELD_NUMBER
publicstaticfinalintSTATE_FIELD_NUMBERSTATUS_FIELD_NUMBER
publicstaticfinalintSTATUS_FIELD_NUMBERTIME_ZONE_FIELD_NUMBER
publicstaticfinalintTIME_ZONE_FIELD_NUMBERUSER_UPDATE_TIME_FIELD_NUMBER
publicstaticfinalintUSER_UPDATE_TIME_FIELD_NUMBERStatic Methods
getDefaultInstance()
publicstaticJobgetDefaultInstance()getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()newBuilder()
publicstaticJob.BuildernewBuilder()newBuilder(Job prototype)
publicstaticJob.BuildernewBuilder(Jobprototype)parseDelimitedFrom(InputStream input)
publicstaticJobparseDelimitedFrom(InputStreaminput)parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticJobparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(byte[] data)
publicstaticJobparseFrom(byte[]data)byte[]parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticJobparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)byte[]parseFrom(ByteString data)
publicstaticJobparseFrom(ByteStringdata)parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticJobparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)parseFrom(CodedInputStream input)
publicstaticJobparseFrom(CodedInputStreaminput)parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticJobparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(InputStream input)
publicstaticJobparseFrom(InputStreaminput)parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
publicstaticJobparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)parseFrom(ByteBuffer data)
publicstaticJobparseFrom(ByteBufferdata)parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticJobparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)parser()
publicstaticParser<Job>parser()Methods
equals(Object obj)
publicbooleanequals(Objectobj)getAppEngineHttpTarget()
publicAppEngineHttpTargetgetAppEngineHttpTarget()App Engine HTTP target.
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
The appEngineHttpTarget.
getAppEngineHttpTargetOrBuilder()
publicAppEngineHttpTargetOrBuildergetAppEngineHttpTargetOrBuilder()App Engine HTTP target.
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
getAttemptDeadline()
publicDurationgetAttemptDeadline() 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;
The attemptDeadline.
getAttemptDeadlineOrBuilder()
publicDurationOrBuildergetAttemptDeadlineOrBuilder() 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;
getDefaultInstanceForType()
publicJobgetDefaultInstanceForType()getDescription()
publicStringgetDescription()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;
The description.
getDescriptionBytes()
publicByteStringgetDescriptionBytes()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;
The bytes for description.
getHttpTarget()
publicHttpTargetgetHttpTarget()HTTP target.
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
The httpTarget.
getHttpTargetOrBuilder()
publicHttpTargetOrBuildergetHttpTargetOrBuilder()HTTP target.
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
getLastAttemptTime()
publicTimestampgetLastAttemptTime()Output only. The time the last job attempt started.
.google.protobuf.Timestamp last_attempt_time = 18;
The lastAttemptTime.
getLastAttemptTimeOrBuilder()
publicTimestampOrBuildergetLastAttemptTimeOrBuilder()Output only. The time the last job attempt started.
.google.protobuf.Timestamp last_attempt_time = 18;
getName()
publicStringgetName() 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_IDcan contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projectsLOCATION_IDis 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_IDcan contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.
string name = 1;
The name.
getNameBytes()
publicByteStringgetNameBytes() 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_IDcan contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projectsLOCATION_IDis 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_IDcan contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.
string name = 1;
The bytes for name.
getParserForType()
publicParser<Job>getParserForType()getPubsubTarget()
publicPubsubTargetgetPubsubTarget()Pub/Sub target.
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
The pubsubTarget.
getPubsubTargetOrBuilder()
publicPubsubTargetOrBuildergetPubsubTargetOrBuilder()Pub/Sub target.
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
getRetryConfig()
publicRetryConfiggetRetryConfig()Settings that determine the retry behavior.
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
The retryConfig.
getRetryConfigOrBuilder()
publicRetryConfigOrBuildergetRetryConfigOrBuilder()Settings that determine the retry behavior.
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
getSchedule()
publicStringgetSchedule()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 + 1of a job will not begin until executionnhas finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if then+1th execution is scheduled to run at 16:00 but thenth execution takes until 16:15, then+1th execution will not start until16: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;
The schedule.
getScheduleBytes()
publicByteStringgetScheduleBytes()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 + 1of a job will not begin until executionnhas finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if then+1th execution is scheduled to run at 16:00 but thenth execution takes until 16:15, then+1th execution will not start until16: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;
The bytes for schedule.
getScheduleTime()
publicTimestampgetScheduleTime()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;
The scheduleTime.
getScheduleTimeOrBuilder()
publicTimestampOrBuildergetScheduleTimeOrBuilder()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;
getSerializedSize()
publicintgetSerializedSize()getState()
publicJob.StategetState()Output only. State of the job.
.google.cloud.scheduler.v1beta1.Job.State state = 10;
The state.
getStateValue()
publicintgetStateValue()Output only. State of the job.
.google.cloud.scheduler.v1beta1.Job.State state = 10;
The enum numeric value on the wire for state.
getStatus()
publicStatusgetStatus()Output only. The response from the target for the last attempted execution.
.google.rpc.Status status = 11;
The status.
getStatusOrBuilder()
publicStatusOrBuildergetStatusOrBuilder()Output only. The response from the target for the last attempted execution.
.google.rpc.Status status = 11;
getTargetCase()
publicJob.TargetCasegetTargetCase()getTimeZone()
publicStringgetTimeZone()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;
The timeZone.
getTimeZoneBytes()
publicByteStringgetTimeZoneBytes()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;
The bytes for timeZone.
getUnknownFields()
publicfinalUnknownFieldSetgetUnknownFields()getUserUpdateTime()
publicTimestampgetUserUpdateTime()Output only. The creation time of the job.
.google.protobuf.Timestamp user_update_time = 9;
The userUpdateTime.
getUserUpdateTimeOrBuilder()
publicTimestampOrBuildergetUserUpdateTimeOrBuilder()Output only. The creation time of the job.
.google.protobuf.Timestamp user_update_time = 9;
hasAppEngineHttpTarget()
publicbooleanhasAppEngineHttpTarget()App Engine HTTP target.
.google.cloud.scheduler.v1beta1.AppEngineHttpTarget app_engine_http_target = 5;
Whether the appEngineHttpTarget field is set.
hasAttemptDeadline()
publicbooleanhasAttemptDeadline() 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;
Whether the attemptDeadline field is set.
hasHttpTarget()
publicbooleanhasHttpTarget()HTTP target.
.google.cloud.scheduler.v1beta1.HttpTarget http_target = 6;
Whether the httpTarget field is set.
hasLastAttemptTime()
publicbooleanhasLastAttemptTime()Output only. The time the last job attempt started.
.google.protobuf.Timestamp last_attempt_time = 18;
Whether the lastAttemptTime field is set.
hasPubsubTarget()
publicbooleanhasPubsubTarget()Pub/Sub target.
.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;
Whether the pubsubTarget field is set.
hasRetryConfig()
publicbooleanhasRetryConfig()Settings that determine the retry behavior.
.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;
Whether the retryConfig field is set.
hasScheduleTime()
publicbooleanhasScheduleTime()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;
Whether the scheduleTime field is set.
hasStatus()
publicbooleanhasStatus()Output only. The response from the target for the last attempted execution.
.google.rpc.Status status = 11;
Whether the status field is set.
hasUserUpdateTime()
publicbooleanhasUserUpdateTime()Output only. The creation time of the job.
.google.protobuf.Timestamp user_update_time = 9;
Whether the userUpdateTime field is set.
hashCode()
publicinthashCode()internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()isInitialized()
publicfinalbooleanisInitialized()newBuilderForType()
publicJob.BuildernewBuilderForType()newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedJob.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)toBuilder()
publicJob.BuildertoBuilder()writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)