| 1 |
// Copyright 2025 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.35.2 |
| 18 |
// protoc v4.25.7 |
| 19 |
// source: google/cloud/scheduler/v1/job.proto |
| 20 |
|
| 21 |
package schedulerpb |
| 22 |
|
| 23 |
import ( |
| 24 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 25 |
status "google.golang.org/genproto/googleapis/rpc/status" |
| 26 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 27 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 28 |
durationpb "google.golang.org/protobuf/types/known/durationpb" |
| 29 |
timestamppb "google.golang.org/protobuf/types/known/timestamppb" |
| 30 |
reflect "reflect" |
| 31 |
sync "sync" |
| 32 |
) |
| 33 |
|
| 34 |
const ( |
| 35 |
// Verify that this generated code is sufficiently up-to-date. |
| 36 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 37 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 38 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 39 |
) |
| 40 |
|
| 41 |
// State of the job. |
| 42 |
type Job_State int32 |
| 43 |
|
| 44 |
const ( |
| 45 |
// Unspecified state. |
| 46 |
Job_STATE_UNSPECIFIED Job_State = 0 |
| 47 |
// The job is executing normally. |
| 48 |
Job_ENABLED Job_State = 1 |
| 49 |
// The job is paused by the user. It will not execute. A user can |
| 50 |
// intentionally pause the job using |
| 51 |
// [PauseJobRequest][google.cloud.scheduler.v1.PauseJobRequest]. |
| 52 |
Job_PAUSED Job_State = 2 |
| 53 |
// The job is disabled by the system due to error. The user |
| 54 |
// cannot directly set a job to be disabled. |
| 55 |
Job_DISABLED Job_State = 3 |
| 56 |
// The job state resulting from a failed |
| 57 |
// [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] |
| 58 |
// operation. To recover a job from this state, retry |
| 59 |
// [CloudScheduler.UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob] |
| 60 |
// until a successful response is received. |
| 61 |
Job_UPDATE_FAILED Job_State = 4 |
| 62 |
) |
| 63 |
|
| 64 |
// Enum value maps for Job_State. |
| 65 |
var ( |
| 66 |
Job_State_name = map[int32]string{ |
| 67 |
0: "STATE_UNSPECIFIED", |
| 68 |
1: "ENABLED", |
| 69 |
2: "PAUSED", |
| 70 |
3: "DISABLED", |
| 71 |
4: "UPDATE_FAILED", |
| 72 |
} |
| 73 |
Job_State_value = map[string]int32{ |
| 74 |
"STATE_UNSPECIFIED": 0, |
| 75 |
"ENABLED": 1, |
| 76 |
"PAUSED": 2, |
| 77 |
"DISABLED": 3, |
| 78 |
"UPDATE_FAILED": 4, |
| 79 |
} |
| 80 |
) |
| 81 |
|
| 82 |
func (x Job_State) Enum() *Job_State { |
| 83 |
p := new(Job_State) |
| 84 |
*p = x |
| 85 |
return p |
| 86 |
} |
| 87 |
|
| 88 |
func (x Job_State) String() string { |
| 89 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 90 |
} |
| 91 |
|
| 92 |
func (Job_State) Descriptor() protoreflect.EnumDescriptor { |
| 93 |
return file_google_cloud_scheduler_v1_job_proto_enumTypes[0].Descriptor() |
| 94 |
} |
| 95 |
|
| 96 |
func (Job_State) Type() protoreflect.EnumType { |
| 97 |
return &file_google_cloud_scheduler_v1_job_proto_enumTypes[0] |
| 98 |
} |
| 99 |
|
| 100 |
func (x Job_State) Number() protoreflect.EnumNumber { |
| 101 |
return protoreflect.EnumNumber(x) |
| 102 |
} |
| 103 |
|
| 104 |
// Deprecated: Use Job_State.Descriptor instead. |
| 105 |
func (Job_State) EnumDescriptor() ([]byte, []int) { |
| 106 |
return file_google_cloud_scheduler_v1_job_proto_rawDescGZIP(), []int{0, 0} |
| 107 |
} |
| 108 |
|
| 109 |
// Configuration for a job. |
| 110 |
// The maximum allowed size for a job is 1MB. |
| 111 |
type Job struct { |
| 112 |
state protoimpl.MessageState |
| 113 |
sizeCache protoimpl.SizeCache |
| 114 |
unknownFields protoimpl.UnknownFields |
| 115 |
|
| 116 |
// Optionally caller-specified in |
| 117 |
// [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob], after |
| 118 |
// which it becomes output only. |
| 119 |
// |
| 120 |
// The job name. For example: |
| 121 |
// `projects/PROJECT_ID/locations/LOCATION_ID/jobs/JOB_ID`. |
| 122 |
// |
| 123 |
// - `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), |
| 124 |
// hyphens (-), colons (:), or periods (.). |
| 125 |
// For more information, see |
| 126 |
// [Identifying |
| 127 |
// projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) |
| 128 |
// - `LOCATION_ID` is the canonical ID for the job's location. |
| 129 |
// The list of available locations can be obtained by calling |
| 130 |
// [ListLocations][google.cloud.location.Locations.ListLocations]. |
| 131 |
// For more information, see https://cloud.google.com/about/locations/. |
| 132 |
// - `JOB_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), |
| 133 |
// hyphens (-), or underscores (_). The maximum length is 500 characters. |
| 134 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 135 |
// Optionally caller-specified in |
| 136 |
// [CreateJob][google.cloud.scheduler.v1.CloudScheduler.CreateJob] or |
| 137 |
// [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. |
| 138 |
// |
| 139 |
// A human-readable description for the job. This string must not contain |
| 140 |
// more than 500 characters. |
| 141 |
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` |
| 142 |
// Required. |
| 143 |
// |
| 144 |
// Delivery settings containing destination and parameters. |
| 145 |
// |
| 146 |
// Types that are assignable to Target: |
| 147 |
// |
| 148 |
// *Job_PubsubTarget |
| 149 |
// *Job_AppEngineHttpTarget |
| 150 |
// *Job_HttpTarget |
| 151 |
Target isJob_Target `protobuf_oneof:"target"` |
| 152 |
// Required, except when used with |
| 153 |
// [UpdateJob][google.cloud.scheduler.v1.CloudScheduler.UpdateJob]. |
| 154 |
// |
| 155 |
// Describes the schedule on which the job will be executed. |
| 156 |
// |
| 157 |
// The schedule can be either of the following types: |
| 158 |
// |
| 159 |
// * [Crontab](https://en.wikipedia.org/wiki/Cron#Overview) |
| 160 |
// * English-like |
| 161 |
// [schedule](https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules) |
| 162 |
// |
| 163 |
// As a general rule, execution `n + 1` of a job will not begin |
| 164 |
// until execution `n` has finished. Cloud Scheduler will never |
| 165 |
// allow two simultaneously outstanding executions. For example, |
| 166 |
// this implies that if the `n+1`th execution is scheduled to run at |
| 167 |
// 16:00 but the `n`th execution takes until 16:15, the `n+1`th |
| 168 |
// execution will not start until `16:15`. |
| 169 |
// A scheduled start time will be delayed if the previous |
| 170 |
// execution has not ended when its scheduled time occurs. |
| 171 |
// |
| 172 |
// If [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] > 0 and |
| 173 |
// a job attempt fails, the job will be tried a total of |
| 174 |
// [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times, |
| 175 |
// with exponential backoff, until the next scheduled start time. If |
| 176 |
// retry_count is 0, a job attempt will not be retried if it fails. Instead |
| 177 |
// the Cloud Scheduler system will wait for the next scheduled execution time. |
| 178 |
// Setting retry_count to 0 does not prevent failed jobs from running |
| 179 |
// according to schedule after the failure. |
| 180 |
Schedule string `protobuf:"bytes,20,opt,name=schedule,proto3" json:"schedule,omitempty"` |
| 181 |
// Specifies the time zone to be used in interpreting |
| 182 |
// [schedule][google.cloud.scheduler.v1.Job.schedule]. The value of this field |
| 183 |
// must be a time zone name from the [tz |
| 184 |
// database](http://en.wikipedia.org/wiki/Tz_database). |
| 185 |
// |
| 186 |
// Note that some time zones include a provision for |
| 187 |
// daylight savings time. The rules for daylight saving time are |
| 188 |
// determined by the chosen tz. For UTC use the string "utc". If a |
| 189 |
// time zone is not specified, the default will be in UTC (also known |
| 190 |
// as GMT). |
| 191 |
TimeZone string `protobuf:"bytes,21,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"` |
| 192 |
// Output only. The creation time of the job. |
| 193 |
UserUpdateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=user_update_time,json=userUpdateTime,proto3" json:"user_update_time,omitempty"` |
| 194 |
// Output only. State of the job. |
| 195 |
State Job_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.scheduler.v1.Job_State" json:"state,omitempty"` |
| 196 |
// Output only. The response from the target for the last attempted execution. |
| 197 |
Status *status.Status `protobuf:"bytes,11,opt,name=status,proto3" json:"status,omitempty"` |
| 198 |
// Output only. The next time the job is scheduled. Note that this may be a |
| 199 |
// retry of a previously failed attempt or the next execution time |
| 200 |
// according to the schedule. |
| 201 |
ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` |
| 202 |
// Output only. The time the last job attempt started. |
| 203 |
LastAttemptTime *timestamppb.Timestamp `protobuf:"bytes,18,opt,name=last_attempt_time,json=lastAttemptTime,proto3" json:"last_attempt_time,omitempty"` |
| 204 |
// Settings that determine the retry behavior. |
| 205 |
RetryConfig *RetryConfig `protobuf:"bytes,19,opt,name=retry_config,json=retryConfig,proto3" json:"retry_config,omitempty"` |
| 206 |
// The deadline for job attempts. If the request handler does not respond by |
| 207 |
// this deadline then the request is cancelled and the attempt is marked as a |
| 208 |
// `DEADLINE_EXCEEDED` failure. The failed attempt can be viewed in |
| 209 |
// execution logs. Cloud Scheduler will retry the job according |
| 210 |
// to the [RetryConfig][google.cloud.scheduler.v1.RetryConfig]. |
| 211 |
// |
| 212 |
// The default and the allowed values depend on the type of target: |
| 213 |
// |
| 214 |
// * For [HTTP targets][google.cloud.scheduler.v1.Job.http_target], the |
| 215 |
// default is 3 minutes. The deadline must be in the interval [15 seconds, 30 |
| 216 |
// minutes]. |
| 217 |
// |
| 218 |
// * For [App Engine HTTP |
| 219 |
// targets][google.cloud.scheduler.v1.Job.app_engine_http_target], 0 indicates |
| 220 |
// that the request has the default deadline. The default deadline depends on |
| 221 |
// the scaling type of the service: 10 minutes for standard apps with |
| 222 |
// automatic scaling, 24 hours for standard apps with manual and basic |
| 223 |
// scaling, and 60 minutes for flex apps. If the request deadline is set, it |
| 224 |
// must be in the interval [15 seconds, 24 hours 15 seconds]. |
| 225 |
// |
| 226 |
// * For [Pub/Sub targets][google.cloud.scheduler.v1.Job.pubsub_target], this |
| 227 |
// field is ignored. |
| 228 |
AttemptDeadline *durationpb.Duration `protobuf:"bytes,22,opt,name=attempt_deadline,json=attemptDeadline,proto3" json:"attempt_deadline,omitempty"` |
| 229 |
} |
| 230 |
|
| 231 |
func (x *Job) Reset() { |
| 232 |
*x = Job{} |
| 233 |
mi := &file_google_cloud_scheduler_v1_job_proto_msgTypes[0] |
| 234 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 235 |
ms.StoreMessageInfo(mi) |
| 236 |
} |
| 237 |
|
| 238 |
func (x *Job) String() string { |
| 239 |
return protoimpl.X.MessageStringOf(x) |
| 240 |
} |
| 241 |
|
| 242 |
func (*Job) ProtoMessage() {} |
| 243 |
|
| 244 |
func (x *Job) ProtoReflect() protoreflect.Message { |
| 245 |
mi := &file_google_cloud_scheduler_v1_job_proto_msgTypes[0] |
| 246 |
if x != nil { |
| 247 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 248 |
if ms.LoadMessageInfo() == nil { |
| 249 |
ms.StoreMessageInfo(mi) |
| 250 |
} |
| 251 |
return ms |
| 252 |
} |
| 253 |
return mi.MessageOf(x) |
| 254 |
} |
| 255 |
|
| 256 |
// Deprecated: Use Job.ProtoReflect.Descriptor instead. |
| 257 |
func (*Job) Descriptor() ([]byte, []int) { |
| 258 |
return file_google_cloud_scheduler_v1_job_proto_rawDescGZIP(), []int{0} |
| 259 |
} |
| 260 |
|
| 261 |
func (x *Job) GetName() string { |
| 262 |
if x != nil { |
| 263 |
return x.Name |
| 264 |
} |
| 265 |
return "" |
| 266 |
} |
| 267 |
|
| 268 |
func (x *Job) GetDescription() string { |
| 269 |
if x != nil { |
| 270 |
return x.Description |
| 271 |
} |
| 272 |
return "" |
| 273 |
} |
| 274 |
|
| 275 |
func (m *Job) GetTarget() isJob_Target { |
| 276 |
if m != nil { |
| 277 |
return m.Target |
| 278 |
} |
| 279 |
return nil |
| 280 |
} |
| 281 |
|
| 282 |
func (x *Job) GetPubsubTarget() *PubsubTarget { |
| 283 |
if x, ok := x.GetTarget().(*Job_PubsubTarget); ok { |
| 284 |
return x.PubsubTarget |
| 285 |
} |
| 286 |
return nil |
| 287 |
} |
| 288 |
|
| 289 |
func (x *Job) GetAppEngineHttpTarget() *AppEngineHttpTarget { |
| 290 |
if x, ok := x.GetTarget().(*Job_AppEngineHttpTarget); ok { |
| 291 |
return x.AppEngineHttpTarget |
| 292 |
} |
| 293 |
return nil |
| 294 |
} |
| 295 |
|
| 296 |
func (x *Job) GetHttpTarget() *HttpTarget { |
| 297 |
if x, ok := x.GetTarget().(*Job_HttpTarget); ok { |
| 298 |
return x.HttpTarget |
| 299 |
} |
| 300 |
return nil |
| 301 |
} |
| 302 |
|
| 303 |
func (x *Job) GetSchedule() string { |
| 304 |
if x != nil { |
| 305 |
return x.Schedule |
| 306 |
} |
| 307 |
return "" |
| 308 |
} |
| 309 |
|
| 310 |
func (x *Job) GetTimeZone() string { |
| 311 |
if x != nil { |
| 312 |
return x.TimeZone |
| 313 |
} |
| 314 |
return "" |
| 315 |
} |
| 316 |
|
| 317 |
func (x *Job) GetUserUpdateTime() *timestamppb.Timestamp { |
| 318 |
if x != nil { |
| 319 |
return x.UserUpdateTime |
| 320 |
} |
| 321 |
return nil |
| 322 |
} |
| 323 |
|
| 324 |
func (x *Job) GetState() Job_State { |
| 325 |
if x != nil { |
| 326 |
return x.State |
| 327 |
} |
| 328 |
return Job_STATE_UNSPECIFIED |
| 329 |
} |
| 330 |
|
| 331 |
func (x *Job) GetStatus() *status.Status { |
| 332 |
if x != nil { |
| 333 |
return x.Status |
| 334 |
} |
| 335 |
return nil |
| 336 |
} |
| 337 |
|
| 338 |
func (x *Job) GetScheduleTime() *timestamppb.Timestamp { |
| 339 |
if x != nil { |
| 340 |
return x.ScheduleTime |
| 341 |
} |
| 342 |
return nil |
| 343 |
} |
| 344 |
|
| 345 |
func (x *Job) GetLastAttemptTime() *timestamppb.Timestamp { |
| 346 |
if x != nil { |
| 347 |
return x.LastAttemptTime |
| 348 |
} |
| 349 |
return nil |
| 350 |
} |
| 351 |
|
| 352 |
func (x *Job) GetRetryConfig() *RetryConfig { |
| 353 |
if x != nil { |
| 354 |
return x.RetryConfig |
| 355 |
} |
| 356 |
return nil |
| 357 |
} |
| 358 |
|
| 359 |
func (x *Job) GetAttemptDeadline() *durationpb.Duration { |
| 360 |
if x != nil { |
| 361 |
return x.AttemptDeadline |
| 362 |
} |
| 363 |
return nil |
| 364 |
} |
| 365 |
|
| 366 |
type isJob_Target interface { |
| 367 |
isJob_Target() |
| 368 |
} |
| 369 |
|
| 370 |
type Job_PubsubTarget struct { |
| 371 |
// Pub/Sub target. |
| 372 |
PubsubTarget *PubsubTarget `protobuf:"bytes,4,opt,name=pubsub_target,json=pubsubTarget,proto3,oneof"` |
| 373 |
} |
| 374 |
|
| 375 |
type Job_AppEngineHttpTarget struct { |
| 376 |
// App Engine HTTP target. |
| 377 |
AppEngineHttpTarget *AppEngineHttpTarget `protobuf:"bytes,5,opt,name=app_engine_http_target,json=appEngineHttpTarget,proto3,oneof"` |
| 378 |
} |
| 379 |
|
| 380 |
type Job_HttpTarget struct { |
| 381 |
// HTTP target. |
| 382 |
HttpTarget *HttpTarget `protobuf:"bytes,6,opt,name=http_target,json=httpTarget,proto3,oneof"` |
| 383 |
} |
| 384 |
|
| 385 |
func (*Job_PubsubTarget) isJob_Target() {} |
| 386 |
|
| 387 |
func (*Job_AppEngineHttpTarget) isJob_Target() {} |
| 388 |
|
| 389 |
func (*Job_HttpTarget) isJob_Target() {} |
| 390 |
|
| 391 |
// Settings that determine the retry behavior. |
| 392 |
// |
| 393 |
// By default, if a job does not complete successfully (meaning that |
| 394 |
// an acknowledgement is not received from the handler, then it will be retried |
| 395 |
// with exponential backoff according to the settings in |
| 396 |
// [RetryConfig][google.cloud.scheduler.v1.RetryConfig]. |
| 397 |
type RetryConfig struct { |
| 398 |
state protoimpl.MessageState |
| 399 |
sizeCache protoimpl.SizeCache |
| 400 |
unknownFields protoimpl.UnknownFields |
| 401 |
|
| 402 |
// The number of attempts that the system will make to run a job using the |
| 403 |
// exponential backoff procedure described by |
| 404 |
// [max_doublings][google.cloud.scheduler.v1.RetryConfig.max_doublings]. |
| 405 |
// |
| 406 |
// The default value of retry_count is zero. |
| 407 |
// |
| 408 |
// If retry_count is 0, a job attempt will not be retried if |
| 409 |
// it fails. Instead the Cloud Scheduler system will wait for the |
| 410 |
// next scheduled execution time. Setting retry_count to 0 does not prevent |
| 411 |
// failed jobs from running according to schedule after the failure. |
| 412 |
// |
| 413 |
// If retry_count is set to a non-zero number then Cloud Scheduler |
| 414 |
// will retry failed attempts, using exponential backoff, |
| 415 |
// retry_count times, or until the next scheduled execution time, |
| 416 |
// whichever comes first. |
| 417 |
// |
| 418 |
// Values greater than 5 and negative values are not allowed. |
| 419 |
RetryCount int32 `protobuf:"varint,1,opt,name=retry_count,json=retryCount,proto3" json:"retry_count,omitempty"` |
| 420 |
// The time limit for retrying a failed job, measured from time when an |
| 421 |
// execution was first attempted. If specified with |
| 422 |
// [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count], the job |
| 423 |
// will be retried until both limits are reached. |
| 424 |
// |
| 425 |
// The default value for max_retry_duration is zero, which means retry |
| 426 |
// duration is unlimited. |
| 427 |
MaxRetryDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=max_retry_duration,json=maxRetryDuration,proto3" json:"max_retry_duration,omitempty"` |
| 428 |
// The minimum amount of time to wait before retrying a job after |
| 429 |
// it fails. |
| 430 |
// |
| 431 |
// The default value of this field is 5 seconds. |
| 432 |
MinBackoffDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=min_backoff_duration,json=minBackoffDuration,proto3" json:"min_backoff_duration,omitempty"` |
| 433 |
// The maximum amount of time to wait before retrying a job after |
| 434 |
// it fails. |
| 435 |
// |
| 436 |
// The default value of this field is 1 hour. |
| 437 |
MaxBackoffDuration *durationpb.Duration `protobuf:"bytes,4,opt,name=max_backoff_duration,json=maxBackoffDuration,proto3" json:"max_backoff_duration,omitempty"` |
| 438 |
// The time between retries will double `max_doublings` times. |
| 439 |
// |
| 440 |
// A job's retry interval starts at |
| 441 |
// [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration], |
| 442 |
// then doubles `max_doublings` times, then increases linearly, and finally |
| 443 |
// retries at intervals of |
| 444 |
// [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] |
| 445 |
// up to [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] |
| 446 |
// times. |
| 447 |
// |
| 448 |
// For example, if |
| 449 |
// [min_backoff_duration][google.cloud.scheduler.v1.RetryConfig.min_backoff_duration] |
| 450 |
// is 10s, |
| 451 |
// [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] |
| 452 |
// is 300s, and `max_doublings` is 3, then the job will first be retried in |
| 453 |
// 10s. The retry interval will double three times, and then increase linearly |
| 454 |
// by 2^3 * 10s. Finally, the job will retry at intervals of |
| 455 |
// [max_backoff_duration][google.cloud.scheduler.v1.RetryConfig.max_backoff_duration] |
| 456 |
// until the job has been attempted |
| 457 |
// [retry_count][google.cloud.scheduler.v1.RetryConfig.retry_count] times. |
| 458 |
// Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, |
| 459 |
// 300s, .... |
| 460 |
// |
| 461 |
// The default value of this field is 5. |
| 462 |
MaxDoublings int32 `protobuf:"varint,5,opt,name=max_doublings,json=maxDoublings,proto3" json:"max_doublings,omitempty"` |
| 463 |
} |
| 464 |
|
| 465 |
func (x *RetryConfig) Reset() { |
| 466 |
*x = RetryConfig{} |
| 467 |
mi := &file_google_cloud_scheduler_v1_job_proto_msgTypes[1] |
| 468 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 469 |
ms.StoreMessageInfo(mi) |
| 470 |
} |
| 471 |
|
| 472 |
func (x *RetryConfig) String() string { |
| 473 |
return protoimpl.X.MessageStringOf(x) |
| 474 |
} |
| 475 |
|
| 476 |
func (*RetryConfig) ProtoMessage() {} |
| 477 |
|
| 478 |
func (x *RetryConfig) ProtoReflect() protoreflect.Message { |
| 479 |
mi := &file_google_cloud_scheduler_v1_job_proto_msgTypes[1] |
| 480 |
if x != nil { |
| 481 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 482 |
if ms.LoadMessageInfo() == nil { |
| 483 |
ms.StoreMessageInfo(mi) |
| 484 |
} |
| 485 |
return ms |
| 486 |
} |
| 487 |
return mi.MessageOf(x) |
| 488 |
} |
| 489 |
|
| 490 |
// Deprecated: Use RetryConfig.ProtoReflect.Descriptor instead. |
| 491 |
func (*RetryConfig) Descriptor() ([]byte, []int) { |
| 492 |
return file_google_cloud_scheduler_v1_job_proto_rawDescGZIP(), []int{1} |
| 493 |
} |
| 494 |
|
| 495 |
func (x *RetryConfig) GetRetryCount() int32 { |
| 496 |
if x != nil { |
| 497 |
return x.RetryCount |
| 498 |
} |
| 499 |
return 0 |
| 500 |
} |
| 501 |
|
| 502 |
func (x *RetryConfig) GetMaxRetryDuration() *durationpb.Duration { |
| 503 |
if x != nil { |
| 504 |
return x.MaxRetryDuration |
| 505 |
} |
| 506 |
return nil |
| 507 |
} |
| 508 |
|
| 509 |
func (x *RetryConfig) GetMinBackoffDuration() *durationpb.Duration { |
| 510 |
if x != nil { |
| 511 |
return x.MinBackoffDuration |
| 512 |
} |
| 513 |
return nil |
| 514 |
} |
| 515 |
|
| 516 |
func (x *RetryConfig) GetMaxBackoffDuration() *durationpb.Duration { |
| 517 |
if x != nil { |
| 518 |
return x.MaxBackoffDuration |
| 519 |
} |
| 520 |
return nil |
| 521 |
} |
| 522 |
|
| 523 |
func (x *RetryConfig) GetMaxDoublings() int32 { |
| 524 |
if x != nil { |
| 525 |
return x.MaxDoublings |
| 526 |
} |
| 527 |
return 0 |
| 528 |
} |
| 529 |
|
| 530 |
var File_google_cloud_scheduler_v1_job_proto protoreflect.FileDescriptor |
| 531 |
|
| 532 |
var file_google_cloud_scheduler_v1_job_proto_rawDesc = []byte{ |
| 533 |
0x0a, 0x23, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, |
| 534 |
0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x6a, 0x6f, 0x62, 0x2e, |
| 535 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, |
| 536 |
0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, |
| 537 |
0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, |
| 538 |
0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 539 |
0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, |
| 540 |
0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x67, 0x6f, |
| 541 |
0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, |
| 542 |
0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x70, |
| 543 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, |
| 544 |
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, |
| 545 |
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, |
| 546 |
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, |
| 547 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x72, 0x70, |
| 548 |
0x63, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa1, |
| 549 |
0x08, 0x0a, 0x03, 0x4a, 0x6f, 0x62, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, |
| 550 |
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, |
| 551 |
0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 552 |
0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x0a, 0x0d, |
| 553 |
0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x04, 0x20, |
| 554 |
0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, |
| 555 |
0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, |
| 556 |
0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x00, 0x52, 0x0c, |
| 557 |
0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x65, 0x0a, 0x16, |
| 558 |
0x61, 0x70, 0x70, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x68, 0x74, 0x74, 0x70, 0x5f, |
| 559 |
0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x67, |
| 560 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, |
| 561 |
0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, |
| 562 |
0x6e, 0x65, 0x48, 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, 0x00, 0x52, 0x13, |
| 563 |
0x61, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, |
| 564 |
0x67, 0x65, 0x74, 0x12, 0x48, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x74, 0x61, 0x72, 0x67, |
| 565 |
0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 566 |
0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, |
| 567 |
0x72, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x48, |
| 568 |
0x00, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x1a, 0x0a, |
| 569 |
0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x09, 0x52, |
| 570 |
0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x69, 0x6d, |
| 571 |
0x65, 0x5f, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, |
| 572 |
0x6d, 0x65, 0x5a, 0x6f, 0x6e, 0x65, 0x12, 0x49, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x75, |
| 573 |
0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, |
| 574 |
0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, |
| 575 |
0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, |
| 576 |
0x03, 0x52, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, |
| 577 |
0x65, 0x12, 0x3f, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0e, |
| 578 |
0x32, 0x24, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 579 |
0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, |
| 580 |
0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, |
| 581 |
0x74, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0b, 0x20, 0x01, |
| 582 |
0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x72, 0x70, 0x63, 0x2e, |
| 583 |
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, |
| 584 |
0x74, 0x75, 0x73, 0x12, 0x44, 0x0a, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x5f, |
| 585 |
0x74, 0x69, 0x6d, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, |
| 586 |
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, |
| 587 |
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0c, 0x73, 0x63, 0x68, |
| 588 |
0x65, 0x64, 0x75, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x4b, 0x0a, 0x11, 0x6c, 0x61, 0x73, |
| 589 |
0x74, 0x5f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x12, |
| 590 |
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, |
| 591 |
0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, |
| 592 |
0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x6c, 0x61, 0x73, 0x74, 0x41, 0x74, 0x74, 0x65, 0x6d, |
| 593 |
0x70, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, |
| 594 |
0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x13, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, |
| 595 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, |
| 596 |
0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, |
| 597 |
0x6e, 0x66, 0x69, 0x67, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, |
| 598 |
0x67, 0x12, 0x44, 0x0a, 0x10, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x5f, 0x64, 0x65, 0x61, |
| 599 |
0x64, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, |
| 600 |
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, |
| 601 |
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x44, |
| 602 |
0x65, 0x61, 0x64, 0x6c, 0x69, 0x6e, 0x65, 0x22, 0x58, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, |
| 603 |
0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, |
| 604 |
0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, |
| 605 |
0x45, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x50, 0x41, 0x55, 0x53, 0x45, 0x44, 0x10, 0x02, |
| 606 |
0x12, 0x0c, 0x0a, 0x08, 0x44, 0x49, 0x53, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x12, 0x11, |
| 607 |
0x0a, 0x0d, 0x55, 0x50, 0x44, 0x41, 0x54, 0x45, 0x5f, 0x46, 0x41, 0x49, 0x4c, 0x45, 0x44, 0x10, |
| 608 |
0x04, 0x3a, 0x65, 0xea, 0x41, 0x62, 0x0a, 0x21, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x73, 0x63, 0x68, |
| 609 |
0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, |
| 610 |
0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x70, 0x72, 0x6f, 0x6a, 0x65, |
| 611 |
0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, |
| 612 |
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, |
| 613 |
0x6e, 0x7d, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x2f, 0x7b, 0x6a, 0x6f, 0x62, 0x7d, 0x2a, 0x04, 0x6a, |
| 614 |
0x6f, 0x62, 0x73, 0x32, 0x03, 0x6a, 0x6f, 0x62, 0x42, 0x08, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, |
| 615 |
0x65, 0x74, 0x22, 0xb6, 0x02, 0x0a, 0x0b, 0x52, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, |
| 616 |
0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x75, 0x6e, |
| 617 |
0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x72, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, |
| 618 |
0x75, 0x6e, 0x74, 0x12, 0x47, 0x0a, 0x12, 0x6d, 0x61, 0x78, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, |
| 619 |
0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 620 |
0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, |
| 621 |
0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x10, 0x6d, 0x61, 0x78, 0x52, |
| 622 |
0x65, 0x74, 0x72, 0x79, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x14, |
| 623 |
0x6d, 0x69, 0x6e, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x64, 0x75, 0x72, 0x61, |
| 624 |
0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, |
| 625 |
0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, |
| 626 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x6d, 0x69, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, |
| 627 |
0x66, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x14, 0x6d, 0x61, 0x78, |
| 628 |
0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x5f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, |
| 629 |
0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 630 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, |
| 631 |
0x6f, 0x6e, 0x52, 0x12, 0x6d, 0x61, 0x78, 0x42, 0x61, 0x63, 0x6b, 0x6f, 0x66, 0x66, 0x44, 0x75, |
| 632 |
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x23, 0x0a, 0x0d, 0x6d, 0x61, 0x78, 0x5f, 0x64, 0x6f, |
| 633 |
0x75, 0x62, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x6d, |
| 634 |
0x61, 0x78, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x69, 0x6e, 0x67, 0x73, 0x42, 0x68, 0x0a, 0x1d, 0x63, |
| 635 |
0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 636 |
0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x4a, 0x6f, |
| 637 |
0x62, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, |
| 638 |
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x63, |
| 639 |
0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x63, |
| 640 |
0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x70, 0x62, 0x3b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, |
| 641 |
0x6c, 0x65, 0x72, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 642 |
} |
| 643 |
|
| 644 |
var ( |
| 645 |
file_google_cloud_scheduler_v1_job_proto_rawDescOnce sync.Once |
| 646 |
file_google_cloud_scheduler_v1_job_proto_rawDescData = file_google_cloud_scheduler_v1_job_proto_rawDesc |
| 647 |
) |
| 648 |
|
| 649 |
func file_google_cloud_scheduler_v1_job_proto_rawDescGZIP() []byte { |
| 650 |
file_google_cloud_scheduler_v1_job_proto_rawDescOnce.Do(func() { |
| 651 |
file_google_cloud_scheduler_v1_job_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_scheduler_v1_job_proto_rawDescData) |
| 652 |
}) |
| 653 |
return file_google_cloud_scheduler_v1_job_proto_rawDescData |
| 654 |
} |
| 655 |
|
| 656 |
var file_google_cloud_scheduler_v1_job_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 657 |
var file_google_cloud_scheduler_v1_job_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 658 |
var file_google_cloud_scheduler_v1_job_proto_goTypes = []any{ |
| 659 |
(Job_State)(0), // 0: google.cloud.scheduler.v1.Job.State |
| 660 |
(*Job)(nil), // 1: google.cloud.scheduler.v1.Job |
| 661 |
(*RetryConfig)(nil), // 2: google.cloud.scheduler.v1.RetryConfig |
| 662 |
(*PubsubTarget)(nil), // 3: google.cloud.scheduler.v1.PubsubTarget |
| 663 |
(*AppEngineHttpTarget)(nil), // 4: google.cloud.scheduler.v1.AppEngineHttpTarget |
| 664 |
(*HttpTarget)(nil), // 5: google.cloud.scheduler.v1.HttpTarget |
| 665 |
(*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp |
| 666 |
(*status.Status)(nil), // 7: google.rpc.Status |
| 667 |
(*durationpb.Duration)(nil), // 8: google.protobuf.Duration |
| 668 |
} |
| 669 |
var file_google_cloud_scheduler_v1_job_proto_depIdxs = []int32{ |
| 670 |
3, // 0: google.cloud.scheduler.v1.Job.pubsub_target:type_name -> google.cloud.scheduler.v1.PubsubTarget |
| 671 |
4, // 1: google.cloud.scheduler.v1.Job.app_engine_http_target:type_name -> google.cloud.scheduler.v1.AppEngineHttpTarget |
| 672 |
5, // 2: google.cloud.scheduler.v1.Job.http_target:type_name -> google.cloud.scheduler.v1.HttpTarget |
| 673 |
6, // 3: google.cloud.scheduler.v1.Job.user_update_time:type_name -> google.protobuf.Timestamp |
| 674 |
0, // 4: google.cloud.scheduler.v1.Job.state:type_name -> google.cloud.scheduler.v1.Job.State |
| 675 |
7, // 5: google.cloud.scheduler.v1.Job.status:type_name -> google.rpc.Status |
| 676 |
6, // 6: google.cloud.scheduler.v1.Job.schedule_time:type_name -> google.protobuf.Timestamp |
| 677 |
6, // 7: google.cloud.scheduler.v1.Job.last_attempt_time:type_name -> google.protobuf.Timestamp |
| 678 |
2, // 8: google.cloud.scheduler.v1.Job.retry_config:type_name -> google.cloud.scheduler.v1.RetryConfig |
| 679 |
8, // 9: google.cloud.scheduler.v1.Job.attempt_deadline:type_name -> google.protobuf.Duration |
| 680 |
8, // 10: google.cloud.scheduler.v1.RetryConfig.max_retry_duration:type_name -> google.protobuf.Duration |
| 681 |
8, // 11: google.cloud.scheduler.v1.RetryConfig.min_backoff_duration:type_name -> google.protobuf.Duration |
| 682 |
8, // 12: google.cloud.scheduler.v1.RetryConfig.max_backoff_duration:type_name -> google.protobuf.Duration |
| 683 |
13, // [13:13] is the sub-list for method output_type |
| 684 |
13, // [13:13] is the sub-list for method input_type |
| 685 |
13, // [13:13] is the sub-list for extension type_name |
| 686 |
13, // [13:13] is the sub-list for extension extendee |
| 687 |
0, // [0:13] is the sub-list for field type_name |
| 688 |
} |
| 689 |
|
| 690 |
func init() { file_google_cloud_scheduler_v1_job_proto_init() } |
| 691 |
func file_google_cloud_scheduler_v1_job_proto_init() { |
| 692 |
if File_google_cloud_scheduler_v1_job_proto != nil { |
| 693 |
return |
| 694 |
} |
| 695 |
file_google_cloud_scheduler_v1_target_proto_init() |
| 696 |
file_google_cloud_scheduler_v1_job_proto_msgTypes[0].OneofWrappers = []any{ |
| 697 |
(*Job_PubsubTarget)(nil), |
| 698 |
(*Job_AppEngineHttpTarget)(nil), |
| 699 |
(*Job_HttpTarget)(nil), |
| 700 |
} |
| 701 |
type x struct{} |
| 702 |
out := protoimpl.TypeBuilder{ |
| 703 |
File: protoimpl.DescBuilder{ |
| 704 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 705 |
RawDescriptor: file_google_cloud_scheduler_v1_job_proto_rawDesc, |
| 706 |
NumEnums: 1, |
| 707 |
NumMessages: 2, |
| 708 |
NumExtensions: 0, |
| 709 |
NumServices: 0, |
| 710 |
}, |
| 711 |
GoTypes: file_google_cloud_scheduler_v1_job_proto_goTypes, |
| 712 |
DependencyIndexes: file_google_cloud_scheduler_v1_job_proto_depIdxs, |
| 713 |
EnumInfos: file_google_cloud_scheduler_v1_job_proto_enumTypes, |
| 714 |
MessageInfos: file_google_cloud_scheduler_v1_job_proto_msgTypes, |
| 715 |
}.Build() |
| 716 |
File_google_cloud_scheduler_v1_job_proto = out.File |
| 717 |
file_google_cloud_scheduler_v1_job_proto_rawDesc = nil |
| 718 |
file_google_cloud_scheduler_v1_job_proto_goTypes = nil |
| 719 |
file_google_cloud_scheduler_v1_job_proto_depIdxs = nil |
| 720 |
} |