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 class
Job.Builder
Configuration for a job.static class
Job.State
State of the job.static class
Job.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 int
APP_ENGINE_HTTP_TARGET_FIELD_NUMBER
static int
ATTEMPT_DEADLINE_FIELD_NUMBER
static int
DESCRIPTION_FIELD_NUMBER
static int
HTTP_TARGET_FIELD_NUMBER
static int
LAST_ATTEMPT_TIME_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PUBSUB_TARGET_FIELD_NUMBER
static int
RETRY_CONFIG_FIELD_NUMBER
static int
SCHEDULE_FIELD_NUMBER
static int
SCHEDULE_TIME_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
STATUS_FIELD_NUMBER
static int
TIME_ZONE_FIELD_NUMBER
static int
USER_UPDATE_TIME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
AppEngineHttpTarget
getAppEngineHttpTarget()
App Engine HTTP target.AppEngineHttpTargetOrBuilder
getAppEngineHttpTargetOrBuilder()
App Engine HTTP target.com.google.protobuf.Duration
getAttemptDeadline()
The deadline for job attempts.com.google.protobuf.DurationOrBuilder
getAttemptDeadlineOrBuilder()
The deadline for job attempts.static Job
getDefaultInstance()
Job
getDefaultInstanceForType()
String
getDescription()
Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].com.google.protobuf.ByteString
getDescriptionBytes()
Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
HttpTarget
getHttpTarget()
HTTP target.HttpTargetOrBuilder
getHttpTargetOrBuilder()
HTTP target.com.google.protobuf.Timestamp
getLastAttemptTime()
Output only.com.google.protobuf.TimestampOrBuilder
getLastAttemptTimeOrBuilder()
Output only.String
getName()
Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after which it becomes output only.com.google.protobuf.ByteString
getNameBytes()
Optionally caller-specified in [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after which it becomes output only.com.google.protobuf.Parser<Job>
getParserForType()
PubsubTarget
getPubsubTarget()
Pub/Sub target.PubsubTargetOrBuilder
getPubsubTargetOrBuilder()
Pub/Sub target.RetryConfig
getRetryConfig()
Settings that determine the retry behavior.RetryConfigOrBuilder
getRetryConfigOrBuilder()
Settings that determine the retry behavior.String
getSchedule()
Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].com.google.protobuf.ByteString
getScheduleBytes()
Required, except when used with [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob].com.google.protobuf.Timestamp
getScheduleTime()
Output only.com.google.protobuf.TimestampOrBuilder
getScheduleTimeOrBuilder()
Output only.int
getSerializedSize()
Job.State
getState()
Output only.int
getStateValue()
Output only.com.google.rpc.Status
getStatus()
Output only.com.google.rpc.StatusOrBuilder
getStatusOrBuilder()
Output only.Job.TargetCase
getTargetCase()
String
getTimeZone()
Specifies the time zone to be used in interpreting [schedule][google.cloud.scheduler.v1.Job.schedule].com.google.protobuf.ByteString
getTimeZoneBytes()
Specifies the time zone to be used in interpreting [schedule][google.cloud.scheduler.v1.Job.schedule].com.google.protobuf.Timestamp
getUserUpdateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getUserUpdateTimeOrBuilder()
Output only.boolean
hasAppEngineHttpTarget()
App Engine HTTP target.boolean
hasAttemptDeadline()
The deadline for job attempts.int
hashCode()
boolean
hasHttpTarget()
HTTP target.boolean
hasLastAttemptTime()
Output only.boolean
hasPubsubTarget()
Pub/Sub target.boolean
hasRetryConfig()
Settings that determine the retry behavior.boolean
hasScheduleTime()
Output only.boolean
hasStatus()
Output only.boolean
hasUserUpdateTime()
Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Job.Builder
newBuilder()
static Job.Builder
newBuilder(Job prototype)
Job.Builder
newBuilderForType()
protected Job.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Job
parseDelimitedFrom(InputStream input)
static Job
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Job
parseFrom(byte[] data)
static Job
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Job
parseFrom(com.google.protobuf.ByteString data)
static Job
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Job
parseFrom(com.google.protobuf.CodedInputStream input)
static Job
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Job
parseFrom(InputStream input)
static Job
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Job
parseFrom(ByteBuffer data)
static Job
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Job>
parser()
Job.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getTargetCase
public Job.TargetCase getTargetCase()
- Specified by:
getTargetCase
in 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:
getName
in 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:
getNameBytes
in 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:
getDescription
in 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:
getDescriptionBytes
in interfaceJobOrBuilder
- Returns:
- The bytes for description.
-
hasPubsubTarget
public boolean hasPubsubTarget()
Pub/Sub target.
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
- Specified by:
hasPubsubTarget
in 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:
getPubsubTarget
in interfaceJobOrBuilder
- Returns:
- The pubsubTarget.
-
getPubsubTargetOrBuilder
public PubsubTargetOrBuilder getPubsubTargetOrBuilder()
Pub/Sub target.
.google.cloud.scheduler.v1.PubsubTarget pubsub_target = 4;
- Specified by:
getPubsubTargetOrBuilder
in interfaceJobOrBuilder
-
hasAppEngineHttpTarget
public boolean hasAppEngineHttpTarget()
App Engine HTTP target.
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
- Specified by:
hasAppEngineHttpTarget
in 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:
getAppEngineHttpTarget
in interfaceJobOrBuilder
- Returns:
- The appEngineHttpTarget.
-
getAppEngineHttpTargetOrBuilder
public AppEngineHttpTargetOrBuilder getAppEngineHttpTargetOrBuilder()
App Engine HTTP target.
.google.cloud.scheduler.v1.AppEngineHttpTarget app_engine_http_target = 5;
- Specified by:
getAppEngineHttpTargetOrBuilder
in interfaceJobOrBuilder
-
hasHttpTarget
public boolean hasHttpTarget()
HTTP target.
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
- Specified by:
hasHttpTarget
in interfaceJobOrBuilder
- Returns:
- Whether the httpTarget field is set.
-
getHttpTarget
public HttpTarget getHttpTarget()
HTTP target.
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
- Specified by:
getHttpTarget
in interfaceJobOrBuilder
- Returns:
- The httpTarget.
-
getHttpTargetOrBuilder
public HttpTargetOrBuilder getHttpTargetOrBuilder()
HTTP target.
.google.cloud.scheduler.v1.HttpTarget http_target = 6;
- Specified by:
getHttpTargetOrBuilder
in 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:
getSchedule
in 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:
getScheduleBytes
in 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:
getTimeZone
in 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:
getTimeZoneBytes
in 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:
hasUserUpdateTime
in 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:
getUserUpdateTime
in 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:
getUserUpdateTimeOrBuilder
in interfaceJobOrBuilder
-
getStateValue
public int getStateValue()
Output only. State of the job.
.google.cloud.scheduler.v1.Job.State state = 10;
- Specified by:
getStateValue
in 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:
getState
in 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:
hasStatus
in 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:
getStatus
in 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:
getStatusOrBuilder
in 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:
hasScheduleTime
in 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:
getScheduleTime
in 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:
getScheduleTimeOrBuilder
in interfaceJobOrBuilder
-
hasLastAttemptTime
public boolean hasLastAttemptTime()
Output only. The time the last job attempt started.
.google.protobuf.Timestamp last_attempt_time = 18;
- Specified by:
hasLastAttemptTime
in 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:
getLastAttemptTime
in 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:
getLastAttemptTimeOrBuilder
in interfaceJobOrBuilder
-
hasRetryConfig
public boolean hasRetryConfig()
Settings that determine the retry behavior.
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
- Specified by:
hasRetryConfig
in 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:
getRetryConfig
in interfaceJobOrBuilder
- Returns:
- The retryConfig.
-
getRetryConfigOrBuilder
public RetryConfigOrBuilder getRetryConfigOrBuilder()
Settings that determine the retry behavior.
.google.cloud.scheduler.v1.RetryConfig retry_config = 19;
- Specified by:
getRetryConfigOrBuilder
in 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:
hasAttemptDeadline
in 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:
getAttemptDeadline
in 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:
getAttemptDeadlineOrBuilder
in interfaceJobOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Job.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Job getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-