/** * * * <pre> * Pub/Sub target. * </pre> * * <code>.google.cloud.scheduler.v1beta1.PubsubTarget pubsub_target = 4;</code> */ public Builder setPubsubTarget(com.google.cloud.scheduler.v1beta1.PubsubTarget value) { if (pubsubTargetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { pubsubTargetBuilder_.setMessage(value); } targetCase_ = 4; return this; } /**
/** * * * <pre> * A human-readable description for the job. This string must not contain * more than 500 characters. * </pre> * * <code>string description = 2;</code> */ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; }
/** * * * <pre> * A human-readable description for the job. This string must not contain * more than 500 characters. * </pre> * * <code>string description = 2;</code> */ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /**
/** * * * <pre> * Output only. The time the last job attempt started. * </pre> * * <code>.google.protobuf.Timestamp last_attempt_time = 18;</code> */ public Builder clearLastAttemptTime() { if (lastAttemptTimeBuilder_ == null) { lastAttemptTime_ = null; onChanged(); } else { lastAttemptTime_ = null; lastAttemptTimeBuilder_ = null; } return this; } /**
/** * * * <pre> * Output only. The response from the target for the last attempted execution. * </pre> * * <code>.google.rpc.Status status = 11;</code> */ public Builder clearStatus() { if (statusBuilder_ == null) { status_ = null; onChanged(); } else { status_ = null; statusBuilder_ = null; } return this; } /**
/** * * * <pre> * Specifies the time zone to be used in interpreting * [schedule][google.cloud.scheduler.v1beta1.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). * </pre> * * <code>string time_zone = 21;</code> */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The time the last job attempt started. * </pre> * * <code>.google.protobuf.Timestamp last_attempt_time = 18;</code> */ public Builder setLastAttemptTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastAttemptTimeBuilder_ == null) { lastAttemptTime_ = builderForValue.build(); onChanged(); } else { lastAttemptTimeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. The response from the target for the last attempted execution. * </pre> * * <code>.google.rpc.Status status = 11;</code> */ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. The creation time of the job. * </pre> * * <code>.google.protobuf.Timestamp user_update_time = 9;</code> */ public Builder setUserUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (userUpdateTimeBuilder_ == null) { userUpdateTime_ = builderForValue.build(); onChanged(); } else { userUpdateTimeBuilder_.setMessage(builderForValue.build()); } return this; } /**
/** * * * <pre> * Output only. State of the job. * </pre> * * <code>.google.cloud.scheduler.v1beta1.Job.State state = 10;</code> */ public Builder setState(com.google.cloud.scheduler.v1beta1.Job.State value) { if (value == null) { throw new NullPointerException(); } state_ = value.getNumber(); onChanged(); return this; } /**
/** * * * <pre> * Output only. The creation time of the job. * </pre> * * <code>.google.protobuf.Timestamp user_update_time = 9;</code> */ public Builder clearUserUpdateTime() { if (userUpdateTimeBuilder_ == null) { userUpdateTime_ = null; onChanged(); } else { userUpdateTime_ = null; userUpdateTimeBuilder_ = null; } return this; } /**
/** * * * <pre> * 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. * </pre> * * <code>.google.protobuf.Timestamp schedule_time = 17;</code> */ public com.google.protobuf.Timestamp.Builder getScheduleTimeBuilder() { onChanged(); return getScheduleTimeFieldBuilder().getBuilder(); } /**
/** * * * <pre> * A human-readable description for the job. This string must not contain * more than 500 characters. * </pre> * * <code>string description = 2;</code> */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /**
/** * * * <pre> * Output only. State of the job. * </pre> * * <code>.google.cloud.scheduler.v1beta1.Job.State state = 10;</code> */ public Builder setStateValue(int value) { state_ = value; onChanged(); return this; } /**
/** * * * <pre> * Settings that determine the retry behavior. * </pre> * * <code>.google.cloud.scheduler.v1beta1.RetryConfig retry_config = 19;</code> */ public com.google.cloud.scheduler.v1beta1.RetryConfig.Builder getRetryConfigBuilder() { onChanged(); return getRetryConfigFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Output only. The creation time of the job. * </pre> * * <code>.google.protobuf.Timestamp user_update_time = 9;</code> */ public com.google.protobuf.Timestamp.Builder getUserUpdateTimeBuilder() { onChanged(); return getUserUpdateTimeFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Output only. The time the last job attempt started. * </pre> * * <code>.google.protobuf.Timestamp last_attempt_time = 18;</code> */ public com.google.protobuf.Timestamp.Builder getLastAttemptTimeBuilder() { onChanged(); return getLastAttemptTimeFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Output only. The response from the target for the last attempted execution. * </pre> * * <code>.google.rpc.Status status = 11;</code> */ public com.google.rpc.Status.Builder getStatusBuilder() { onChanged(); return getStatusFieldBuilder().getBuilder(); } /**
/** * * * <pre> * Output only. State of the job. * </pre> * * <code>.google.cloud.scheduler.v1beta1.Job.State state = 10;</code> */ public Builder clearState() { state_ = 0; onChanged(); return this; }
public Builder clearTarget() { targetCase_ = 0; target_ = null; onChanged(); return this; }