Package com.google.cloud.scheduler.v1
Class Job
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.scheduler.v1.Job
-
- All Implemented Interfaces:
JobOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Job extends com.google.protobuf.GeneratedMessageV3 implements JobOrBuilder
Configuration for a job. The maximum allowed size for a job is 1MB.
Protobuf typegoogle.cloud.scheduler.v1.Job- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJob.BuilderConfiguration for a job.static classJob.StateState of the job.static classJob.TargetCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAPP_ENGINE_HTTP_TARGET_FIELD_NUMBERstatic intATTEMPT_DEADLINE_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intHTTP_TARGET_FIELD_NUMBERstatic intLAST_ATTEMPT_TIME_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intPUBSUB_TARGET_FIELD_NUMBERstatic intRETRY_CONFIG_FIELD_NUMBERstatic intSCHEDULE_FIELD_NUMBERstatic intSCHEDULE_TIME_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intSTATUS_FIELD_NUMBERstatic intTIME_ZONE_FIELD_NUMBERstatic intUSER_UPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)AppEngineHttpTargetgetAppEngineHttpTarget()App Engine HTTP target.AppEngineHttpTargetOrBuildergetAppEngineHttpTargetOrBuilder()App Engine HTTP target.com.google.protobuf.DurationgetAttemptDeadline()The deadline for job attempts.com.google.protobuf.DurationOrBuildergetAttemptDeadlineOrBuilder()The deadline for job attempts.static JobgetDefaultInstance()JobgetDefaultInstanceForType()StringgetDescription()Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].com.google.protobuf.ByteStringgetDescriptionBytes()Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].static com.google.protobuf.Descriptors.DescriptorgetDescriptor()HttpTargetgetHttpTarget()HTTP target.HttpTargetOrBuildergetHttpTargetOrBuilder()HTTP target.com.google.protobuf.TimestampgetLastAttemptTime()Output only.com.google.protobuf.TimestampOrBuildergetLastAttemptTimeOrBuilder()Output only.StringgetName()Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after which it becomes output only.com.google.protobuf.ByteStringgetNameBytes()Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after which it becomes output only.com.google.protobuf.Parser<Job>getParserForType()PubsubTargetgetPubsubTarget()Pub/Sub target.PubsubTargetOrBuildergetPubsubTargetOrBuilder()Pub/Sub target.RetryConfiggetRetryConfig()Settings that determine the retry behavior.RetryConfigOrBuildergetRetryConfigOrBuilder()Settings that determine the retry behavior.StringgetSchedule()Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].com.google.protobuf.ByteStringgetScheduleBytes()Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].com.google.protobuf.TimestampgetScheduleTime()Output only.com.google.protobuf.TimestampOrBuildergetScheduleTimeOrBuilder()Output only.intgetSerializedSize()Job.StategetState()Output only.intgetStateValue()Output only.com.google.rpc.StatusgetStatus()Output only.com.google.rpc.StatusOrBuildergetStatusOrBuilder()Output only.Job.TargetCasegetTargetCase()StringgetTimeZone()Specifies the time zone to be used in interpreting [schedule][google.cloud.scheduler.v1.Job.schedule].com.google.protobuf.ByteStringgetTimeZoneBytes()Specifies the time zone to be used in interpreting [schedule][google.cloud.scheduler.v1.Job.schedule].com.google.protobuf.TimestampgetUserUpdateTime()Output only.com.google.protobuf.TimestampOrBuildergetUserUpdateTimeOrBuilder()Output only.booleanhasAppEngineHttpTarget()App Engine HTTP target.booleanhasAttemptDeadline()The deadline for job attempts.inthashCode()booleanhasHttpTarget()HTTP target.booleanhasLastAttemptTime()Output only.booleanhasPubsubTarget()Pub/Sub target.booleanhasRetryConfig()Settings that determine the retry behavior.booleanhasScheduleTime()Output only.booleanhasStatus()Output only.booleanhasUserUpdateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Job.BuildernewBuilder()static Job.BuildernewBuilder(Job prototype)Job.BuildernewBuilderForType()protected Job.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static JobparseDelimitedFrom(InputStream input)static JobparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(byte[] data)static JobparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(com.google.protobuf.ByteString data)static JobparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(com.google.protobuf.CodedInputStream input)static JobparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(InputStream input)static JobparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static JobparseFrom(ByteBuffer data)static JobparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Job>parser()Job.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PUBSUB_TARGET_FIELD_NUMBER
public static final int PUBSUB_TARGET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
APP_ENGINE_HTTP_TARGET_FIELD_NUMBER
public static final int APP_ENGINE_HTTP_TARGET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HTTP_TARGET_FIELD_NUMBER
public static final int HTTP_TARGET_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEDULE_FIELD_NUMBER
public static final int SCHEDULE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIME_ZONE_FIELD_NUMBER
public static final int TIME_ZONE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_UPDATE_TIME_FIELD_NUMBER
public static final int USER_UPDATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCHEDULE_TIME_FIELD_NUMBER
public static final int SCHEDULE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LAST_ATTEMPT_TIME_FIELD_NUMBER
public static final int LAST_ATTEMPT_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RETRY_CONFIG_FIELD_NUMBER
public static final int RETRY_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ATTEMPT_DEADLINE_FIELD_NUMBER
public static final int ATTEMPT_DEADLINE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTargetCase
public Job.TargetCase getTargetCase()
- Specified by:
getTargetCasein interfaceJobOrBuilder
-
getName
public String getName()
Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.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](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling [ListLocations][google.cloud.location.Locations.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;- Specified by:
getNamein interfaceJobOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.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](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the job's location. The list of available locations can be obtained by calling [ListLocations][google.cloud.location.Locations.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;- Specified by:
getNameBytesin interfaceJobOrBuilder- Returns:
- The bytes for name.
-
getDescription
public String getDescription()
Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. A human-readable description for the job. This string must not contain more than 500 characters.
string description = 2;- Specified by:
getDescriptionin interfaceJobOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. A human-readable description for the job. This string must not contain more than 500 characters.
string description = 2;- Specified by:
getDescriptionBytesin interfaceJobOrBuilder- Returns:
- The bytes for description.
-
hasPubsubTarget
public boolean hasPubsubTarget()
Pub/Sub target.
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;- Specified by:
hasPubsubTargetin interfaceJobOrBuilder- Returns:
- Whether the pubsubTarget field is set.
-
getPubsubTarget
public PubsubTarget getPubsubTarget()
Pub/Sub target.
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;- Specified by:
getPubsubTargetin interfaceJobOrBuilder- Returns:
- The pubsubTarget.
-
getPubsubTargetOrBuilder
public PubsubTargetOrBuilder getPubsubTargetOrBuilder()
Pub/Sub target.
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;- Specified by:
getPubsubTargetOrBuilderin interfaceJobOrBuilder
-
hasAppEngineHttpTarget
public boolean hasAppEngineHttpTarget()
App Engine HTTP target.
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;- Specified by:
hasAppEngineHttpTargetin interfaceJobOrBuilder- Returns:
- Whether the appEngineHttpTarget field is set.
-
getAppEngineHttpTarget
public AppEngineHttpTarget getAppEngineHttpTarget()
App Engine HTTP target.
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;- Specified by:
getAppEngineHttpTargetin interfaceJobOrBuilder- Returns:
- The appEngineHttpTarget.
-
getAppEngineHttpTargetOrBuilder
public AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder()
App Engine HTTP target.
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;- Specified by:
getAppEngineHttpTargetOrBuilderin interfaceJobOrBuilder
-
hasHttpTarget
public boolean hasHttpTarget()
HTTP target.
.google.cloud.scheduler.v1.HttpTarget http_target = 6;- Specified by:
hasHttpTargetin interfaceJobOrBuilder- Returns:
- Whether the httpTarget field is set.
-
getHttpTarget
public HttpTarget getHttpTarget()
HTTP target.
.google.cloud.scheduler.v1.HttpTarget http_target = 6;- Specified by:
getHttpTargetin interfaceJobOrBuilder- Returns:
- The httpTarget.
-
getHttpTargetOrBuilder
public HttpTargetOrBuilder getHttpTargetOrBuilder()
HTTP target.
.google.cloud.scheduler.v1.HttpTarget http_target = 6;- Specified by:
getHttpTargetOrBuilderin interfaceJobOrBuilder
-
getSchedule
public String getSchedule()
Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. Describes the schedule on which the job will be executed. The schedule can be either of the following types: * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * English-like [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) 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+1`th execution is scheduled to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th 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][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, with exponential backoff, until the next scheduled start time.
string schedule = 20;- Specified by:
getSchedulein interfaceJobOrBuilder- Returns:
- The schedule.
-
getScheduleBytes
public com.google.protobuf.ByteString getScheduleBytes()
Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. Describes the schedule on which the job will be executed. The schedule can be either of the following types: * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) * English-like [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) 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+1`th execution is scheduled to run at 16:00 but the `n`th execution takes until 16:15, the `n+1`th 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][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and a job attempt fails, the job will be tried a total of [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, with exponential backoff, until the next scheduled start time.
string schedule = 20;- Specified by:
getScheduleBytesin interfaceJobOrBuilder- Returns:
- The bytes for schedule.
-
getTimeZone
public String getTimeZone()
Specifies the time zone to be used in interpreting [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/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;- Specified by:
getTimeZonein interfaceJobOrBuilder- Returns:
- The timeZone.
-
getTimeZoneBytes
public com.google.protobuf.ByteString getTimeZoneBytes()
Specifies the time zone to be used in interpreting [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field must be a time zone name from the [tz database](http://en.wikipedia.org/wiki/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;- Specified by:
getTimeZoneBytesin interfaceJobOrBuilder- Returns:
- The bytes for timeZone.
-
hasUserUpdateTime
public boolean hasUserUpdateTime()
Output only. The creation time of the job.
.google.protobuf.Timestamp user_update_time = 9;- Specified by:
hasUserUpdateTimein interfaceJobOrBuilder- Returns:
- Whether the userUpdateTime field is set.
-
getUserUpdateTime
public com.google.protobuf.Timestamp getUserUpdateTime()
Output only. The creation time of the job.
.google.protobuf.Timestamp user_update_time = 9;- Specified by:
getUserUpdateTimein interfaceJobOrBuilder- Returns:
- The userUpdateTime.
-
getUserUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUserUpdateTimeOrBuilder()
Output only. The creation time of the job.
.google.protobuf.Timestamp user_update_time = 9;- Specified by:
getUserUpdateTimeOrBuilderin interfaceJobOrBuilder
-
getStateValue
public int getStateValue()
Output only. State of the job.
.google.cloud.scheduler.v1.Job.State state = 10;- Specified by:
getStateValuein interfaceJobOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public Job.State getState()
Output only. State of the job.
.google.cloud.scheduler.v1.Job.State state = 10;- Specified by:
getStatein interfaceJobOrBuilder- Returns:
- The state.
-
hasStatus
public boolean hasStatus()
Output only. The response from the target for the last attempted execution.
.google.rpc.Status status = 11;- Specified by:
hasStatusin interfaceJobOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
public com.google.rpc.Status getStatus()
Output only. The response from the target for the last attempted execution.
.google.rpc.Status status = 11;- Specified by:
getStatusin interfaceJobOrBuilder- Returns:
- The status.
-
getStatusOrBuilder
public com.google.rpc.StatusOrBuilder getStatusOrBuilder()
Output only. The response from the target for the last attempted execution.
.google.rpc.Status status = 11;- Specified by:
getStatusOrBuilderin interfaceJobOrBuilder
-
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;- Specified by:
hasScheduleTimein interfaceJobOrBuilder- Returns:
- Whether the scheduleTime field is set.
-
getScheduleTime
public com.google.protobuf.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;- Specified by:
getScheduleTimein interfaceJobOrBuilder- Returns:
- The scheduleTime.
-
getScheduleTimeOrBuilder
public com.google.protobuf.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;- Specified by:
getScheduleTimeOrBuilderin interfaceJobOrBuilder
-
hasLastAttemptTime
public boolean hasLastAttemptTime()
Output only. The time the last job attempt started.
.google.protobuf.Timestamp last_attempt_time = 18;- Specified by:
hasLastAttemptTimein interfaceJobOrBuilder- Returns:
- Whether the lastAttemptTime field is set.
-
getLastAttemptTime
public com.google.protobuf.Timestamp getLastAttemptTime()
Output only. The time the last job attempt started.
.google.protobuf.Timestamp last_attempt_time = 18;- Specified by:
getLastAttemptTimein interfaceJobOrBuilder- Returns:
- The lastAttemptTime.
-
getLastAttemptTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastAttemptTimeOrBuilder()
Output only. The time the last job attempt started.
.google.protobuf.Timestamp last_attempt_time = 18;- Specified by:
getLastAttemptTimeOrBuilderin interfaceJobOrBuilder
-
hasRetryConfig
public boolean hasRetryConfig()
Settings that determine the retry behavior.
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;- Specified by:
hasRetryConfigin interfaceJobOrBuilder- Returns:
- Whether the retryConfig field is set.
-
getRetryConfig
public RetryConfig getRetryConfig()
Settings that determine the retry behavior.
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;- Specified by:
getRetryConfigin interfaceJobOrBuilder- Returns:
- The retryConfig.
-
getRetryConfigOrBuilder
public RetryConfigOrBuilder getRetryConfigOrBuilder()
Settings that determine the retry behavior.
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;- Specified by:
getRetryConfigOrBuilderin interfaceJobOrBuilder
-
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][google.cloud.scheduler.v1.RetryConfig]. The default and the allowed values depend on the type of target: * For [HTTP targets][google.cloud.scheduler.v1.Job.http_target], the default is 3 minutes. The deadline must be in the interval [15 seconds, 30 minutes]. * For [App Engine HTTP targets][google.cloud.scheduler.v1.Job.app_engine_http_target], 0 indicates that the request has the default deadline. The default deadline depends on the scaling type of the service: 10 minutes for standard apps with automatic scaling, 24 hours for standard apps with manual and basic scaling, and 60 minutes for flex apps. If the request deadline is set, it must be in the interval [15 seconds, 24 hours 15 seconds]. * For [Pub/Sub targets][google.cloud.scheduler.v1.Job.pubsub_target], this field is ignored.
.google.protobuf.Duration attempt_deadline = 22;- Specified by:
hasAttemptDeadlinein interfaceJobOrBuilder- Returns:
- Whether the attemptDeadline field is set.
-
getAttemptDeadline
public com.google.protobuf.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][google.cloud.scheduler.v1.RetryConfig]. The default and the allowed values depend on the type of target: * For [HTTP targets][google.cloud.scheduler.v1.Job.http_target], the default is 3 minutes. The deadline must be in the interval [15 seconds, 30 minutes]. * For [App Engine HTTP targets][google.cloud.scheduler.v1.Job.app_engine_http_target], 0 indicates that the request has the default deadline. The default deadline depends on the scaling type of the service: 10 minutes for standard apps with automatic scaling, 24 hours for standard apps with manual and basic scaling, and 60 minutes for flex apps. If the request deadline is set, it must be in the interval [15 seconds, 24 hours 15 seconds]. * For [Pub/Sub targets][google.cloud.scheduler.v1.Job.pubsub_target], this field is ignored.
.google.protobuf.Duration attempt_deadline = 22;- Specified by:
getAttemptDeadlinein interfaceJobOrBuilder- Returns:
- The attemptDeadline.
-
getAttemptDeadlineOrBuilder
public com.google.protobuf.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][google.cloud.scheduler.v1.RetryConfig]. The default and the allowed values depend on the type of target: * For [HTTP targets][google.cloud.scheduler.v1.Job.http_target], the default is 3 minutes. The deadline must be in the interval [15 seconds, 30 minutes]. * For [App Engine HTTP targets][google.cloud.scheduler.v1.Job.app_engine_http_target], 0 indicates that the request has the default deadline. The default deadline depends on the scaling type of the service: 10 minutes for standard apps with automatic scaling, 24 hours for standard apps with manual and basic scaling, and 60 minutes for flex apps. If the request deadline is set, it must be in the interval [15 seconds, 24 hours 15 seconds]. * For [Pub/Sub targets][google.cloud.scheduler.v1.Job.pubsub_target], this field is ignored.
.google.protobuf.Duration attempt_deadline = 22;- Specified by:
getAttemptDeadlineOrBuilderin interfaceJobOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Job parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Job parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Job parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Job parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Job parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Job parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Job parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Job.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Job.Builder newBuilder()
-
newBuilder
public static Job.Builder newBuilder(Job prototype)
-
toBuilder
public Job.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Job.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Job getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Job> parser()
-
getParserForType
public com.google.protobuf.Parser<Job> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Job getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-