1// Copyright 2019 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 16// Code generated by protoc-gen-go. DO NOT EDIT. 17// versions: 18// protoc-gen-go v1.26.0 19// protoc v3.12.2 20// source: google/cloud/scheduler/v1beta1/target.proto 21 22package scheduler 23 24import ( 25 reflect "reflect" 26 sync "sync" 27 28 _ "google.golang.org/genproto/googleapis/api/annotations" 29 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 30 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 31) 32 33const ( 34 // Verify that this generated code is sufficiently up-to-date. 35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 36 // Verify that runtime/protoimpl is sufficiently up-to-date. 37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 38) 39 40// The HTTP method used to execute the job. 41type HttpMethod int32 42 43const ( 44 // HTTP method unspecified. Defaults to POST. 45 HttpMethod_HTTP_METHOD_UNSPECIFIED HttpMethod = 0 46 // HTTP POST 47 HttpMethod_POST HttpMethod = 1 48 // HTTP GET 49 HttpMethod_GET HttpMethod = 2 50 // HTTP HEAD 51 HttpMethod_HEAD HttpMethod = 3 52 // HTTP PUT 53 HttpMethod_PUT HttpMethod = 4 54 // HTTP DELETE 55 HttpMethod_DELETE HttpMethod = 5 56 // HTTP PATCH 57 HttpMethod_PATCH HttpMethod = 6 58 // HTTP OPTIONS 59 HttpMethod_OPTIONS HttpMethod = 7 60) 61 62// Enum value maps for HttpMethod. 63var ( 64 HttpMethod_name = map[int32]string{ 65 0: "HTTP_METHOD_UNSPECIFIED", 66 1: "POST", 67 2: "GET", 68 3: "HEAD", 69 4: "PUT", 70 5: "DELETE", 71 6: "PATCH", 72 7: "OPTIONS", 73 } 74 HttpMethod_value = map[string]int32{ 75 "HTTP_METHOD_UNSPECIFIED": 0, 76 "POST": 1, 77 "GET": 2, 78 "HEAD": 3, 79 "PUT": 4, 80 "DELETE": 5, 81 "PATCH": 6, 82 "OPTIONS": 7, 83 } 84) 85 86func (x HttpMethod) Enum() *HttpMethod { 87 p := new(HttpMethod) 88 *p = x 89 return p 90} 91 92func (x HttpMethod) String() string { 93 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 94} 95 96func (HttpMethod) Descriptor() protoreflect.EnumDescriptor { 97 return file_google_cloud_scheduler_v1beta1_target_proto_enumTypes[0].Descriptor() 98} 99 100func (HttpMethod) Type() protoreflect.EnumType { 101 return &file_google_cloud_scheduler_v1beta1_target_proto_enumTypes[0] 102} 103 104func (x HttpMethod) Number() protoreflect.EnumNumber { 105 return protoreflect.EnumNumber(x) 106} 107 108// Deprecated: Use HttpMethod.Descriptor instead. 109func (HttpMethod) EnumDescriptor() ([]byte, []int) { 110 return file_google_cloud_scheduler_v1beta1_target_proto_rawDescGZIP(), []int{0} 111} 112 113// Http target. The job will be pushed to the job handler by means of 114// an HTTP request via an [http_method][google.cloud.scheduler.v1beta1.HttpTarget.http_method] such as HTTP 115// POST, HTTP GET, etc. The job is acknowledged by means of an HTTP 116// response code in the range [200 - 299]. A failure to receive a response 117// constitutes a failed execution. For a redirected request, the response 118// returned by the redirected request is considered. 119type HttpTarget struct { 120 state protoimpl.MessageState 121 sizeCache protoimpl.SizeCache 122 unknownFields protoimpl.UnknownFields 123 124 // Required. The full URI path that the request will be sent to. This string 125 // must begin with either "http://" or "https://". Some examples of 126 // valid values for [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri] are: 127 // `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will 128 // encode some characters for safety and compatibility. The maximum allowed 129 // URL length is 2083 characters after encoding. 130 Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 131 // Which HTTP method to use for the request. 132 HttpMethod HttpMethod `protobuf:"varint,2,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.scheduler.v1beta1.HttpMethod" json:"http_method,omitempty"` 133 // The user can specify HTTP request headers to send with the job's 134 // HTTP request. This map contains the header field names and 135 // values. Repeated headers are not supported, but a header value can 136 // contain commas. These headers represent a subset of the headers 137 // that will accompany the job's HTTP request. Some HTTP request 138 // headers will be ignored or replaced. A partial list of headers that 139 // will be ignored or replaced is below: 140 // - Host: This will be computed by Cloud Scheduler and derived from 141 // [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri]. 142 // * `Content-Length`: This will be computed by Cloud Scheduler. 143 // * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`. 144 // * `X-Google-*`: Google internal use only. 145 // * `X-AppEngine-*`: Google internal use only. 146 // 147 // The total size of headers must be less than 80KB. 148 Headers map[string]string `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 149 // HTTP request body. A request body is allowed only if the HTTP 150 // method is POST, PUT, or PATCH. It is an error to set body on a job with an 151 // incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. 152 Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` 153 // The mode for generating an `Authorization` header for HTTP requests. 154 // 155 // If specified, all `Authorization` headers in the [HttpTarget.headers][google.cloud.scheduler.v1beta1.HttpTarget.headers] 156 // field will be overridden. 157 // 158 // Types that are assignable to AuthorizationHeader: 159 // *HttpTarget_OauthToken 160 // *HttpTarget_OidcToken 161 AuthorizationHeader isHttpTarget_AuthorizationHeader `protobuf_oneof:"authorization_header"` 162} 163 164func (x *HttpTarget) Reset() { 165 *x = HttpTarget{} 166 if protoimpl.UnsafeEnabled { 167 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[0] 168 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 169 ms.StoreMessageInfo(mi) 170 } 171} 172 173func (x *HttpTarget) String() string { 174 return protoimpl.X.MessageStringOf(x) 175} 176 177func (*HttpTarget) ProtoMessage() {} 178 179func (x *HttpTarget) ProtoReflect() protoreflect.Message { 180 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[0] 181 if protoimpl.UnsafeEnabled && x != nil { 182 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 183 if ms.LoadMessageInfo() == nil { 184 ms.StoreMessageInfo(mi) 185 } 186 return ms 187 } 188 return mi.MessageOf(x) 189} 190 191// Deprecated: Use HttpTarget.ProtoReflect.Descriptor instead. 192func (*HttpTarget) Descriptor() ([]byte, []int) { 193 return file_google_cloud_scheduler_v1beta1_target_proto_rawDescGZIP(), []int{0} 194} 195 196func (x *HttpTarget) GetUri() string { 197 if x != nil { 198 return x.Uri 199 } 200 return "" 201} 202 203func (x *HttpTarget) GetHttpMethod() HttpMethod { 204 if x != nil { 205 return x.HttpMethod 206 } 207 return HttpMethod_HTTP_METHOD_UNSPECIFIED 208} 209 210func (x *HttpTarget) GetHeaders() map[string]string { 211 if x != nil { 212 return x.Headers 213 } 214 return nil 215} 216 217func (x *HttpTarget) GetBody() []byte { 218 if x != nil { 219 return x.Body 220 } 221 return nil 222} 223 224func (m *HttpTarget) GetAuthorizationHeader() isHttpTarget_AuthorizationHeader { 225 if m != nil { 226 return m.AuthorizationHeader 227 } 228 return nil 229} 230 231func (x *HttpTarget) GetOauthToken() *OAuthToken { 232 if x, ok := x.GetAuthorizationHeader().(*HttpTarget_OauthToken); ok { 233 return x.OauthToken 234 } 235 return nil 236} 237 238func (x *HttpTarget) GetOidcToken() *OidcToken { 239 if x, ok := x.GetAuthorizationHeader().(*HttpTarget_OidcToken); ok { 240 return x.OidcToken 241 } 242 return nil 243} 244 245type isHttpTarget_AuthorizationHeader interface { 246 isHttpTarget_AuthorizationHeader() 247} 248 249type HttpTarget_OauthToken struct { 250 // If specified, an 251 // [OAuth token](https://developers.google.com/identity/protocols/OAuth2) 252 // will be generated and attached as an `Authorization` header in the HTTP 253 // request. 254 // 255 // This type of authorization should generally only be used when calling 256 // Google APIs hosted on *.googleapis.com. 257 OauthToken *OAuthToken `protobuf:"bytes,5,opt,name=oauth_token,json=oauthToken,proto3,oneof"` 258} 259 260type HttpTarget_OidcToken struct { 261 // If specified, an 262 // [OIDC](https://developers.google.com/identity/protocols/OpenIDConnect) 263 // token will be generated and attached as an `Authorization` header in the 264 // HTTP request. 265 // 266 // This type of authorization can be used for many scenarios, including 267 // calling Cloud Run, or endpoints where you intend to validate the token 268 // yourself. 269 OidcToken *OidcToken `protobuf:"bytes,6,opt,name=oidc_token,json=oidcToken,proto3,oneof"` 270} 271 272func (*HttpTarget_OauthToken) isHttpTarget_AuthorizationHeader() {} 273 274func (*HttpTarget_OidcToken) isHttpTarget_AuthorizationHeader() {} 275 276// App Engine target. The job will be pushed to a job handler by means 277// of an HTTP request via an [http_method][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http_method] such 278// as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an 279// HTTP response code in the range [200 - 299]. Error 503 is 280// considered an App Engine system error instead of an application 281// error. Requests returning error 503 will be retried regardless of 282// retry configuration and not counted against retry counts. Any other 283// response code, or a failure to receive a response before the 284// deadline, constitutes a failed attempt. 285type AppEngineHttpTarget struct { 286 state protoimpl.MessageState 287 sizeCache protoimpl.SizeCache 288 unknownFields protoimpl.UnknownFields 289 290 // The HTTP method to use for the request. PATCH and OPTIONS are not 291 // permitted. 292 HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.scheduler.v1beta1.HttpMethod" json:"http_method,omitempty"` 293 // App Engine Routing setting for the job. 294 AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"` 295 // The relative URI. 296 // 297 // The relative URL must begin with "/" and must be a valid HTTP relative URL. 298 // It can contain a path, query string arguments, and `#` fragments. 299 // If the relative URL is empty, then the root path "/" will be used. 300 // No spaces are allowed, and the maximum length allowed is 2083 characters. 301 RelativeUri string `protobuf:"bytes,3,opt,name=relative_uri,json=relativeUri,proto3" json:"relative_uri,omitempty"` 302 // HTTP request headers. 303 // 304 // This map contains the header field names and values. Headers can be set 305 // when the job is created. 306 // 307 // Cloud Scheduler sets some headers to default values: 308 // 309 // * `User-Agent`: By default, this header is 310 // `"AppEngine-Google; (+http://code.google.com/appengine)"`. 311 // This header can be modified, but Cloud Scheduler will append 312 // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the 313 // modified `User-Agent`. 314 // * `X-CloudScheduler`: This header will be set to true. 315 // 316 // If the job has an [body][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.body], Cloud Scheduler sets 317 // the following headers: 318 // 319 // * `Content-Type`: By default, the `Content-Type` header is set to 320 // `"application/octet-stream"`. The default can be overridden by explictly 321 // setting `Content-Type` to a particular media type when the job is 322 // created. 323 // For example, `Content-Type` can be set to `"application/json"`. 324 // * `Content-Length`: This is computed by Cloud Scheduler. This value is 325 // output only. It cannot be changed. 326 // 327 // The headers below are output only. They cannot be set or overridden: 328 // 329 // * `X-Google-*`: For Google internal use only. 330 // * `X-AppEngine-*`: For Google internal use only. 331 // 332 // In addition, some App Engine headers, which contain 333 // job-specific information, are also be sent to the job handler. 334 Headers map[string]string `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 335 // Body. 336 // 337 // HTTP request body. A request body is allowed only if the HTTP method is 338 // POST or PUT. It will result in invalid argument error to set a body on a 339 // job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod]. 340 Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"` 341} 342 343func (x *AppEngineHttpTarget) Reset() { 344 *x = AppEngineHttpTarget{} 345 if protoimpl.UnsafeEnabled { 346 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[1] 347 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 348 ms.StoreMessageInfo(mi) 349 } 350} 351 352func (x *AppEngineHttpTarget) String() string { 353 return protoimpl.X.MessageStringOf(x) 354} 355 356func (*AppEngineHttpTarget) ProtoMessage() {} 357 358func (x *AppEngineHttpTarget) ProtoReflect() protoreflect.Message { 359 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[1] 360 if protoimpl.UnsafeEnabled && x != nil { 361 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 362 if ms.LoadMessageInfo() == nil { 363 ms.StoreMessageInfo(mi) 364 } 365 return ms 366 } 367 return mi.MessageOf(x) 368} 369 370// Deprecated: Use AppEngineHttpTarget.ProtoReflect.Descriptor instead. 371func (*AppEngineHttpTarget) Descriptor() ([]byte, []int) { 372 return file_google_cloud_scheduler_v1beta1_target_proto_rawDescGZIP(), []int{1} 373} 374 375func (x *AppEngineHttpTarget) GetHttpMethod() HttpMethod { 376 if x != nil { 377 return x.HttpMethod 378 } 379 return HttpMethod_HTTP_METHOD_UNSPECIFIED 380} 381 382func (x *AppEngineHttpTarget) GetAppEngineRouting() *AppEngineRouting { 383 if x != nil { 384 return x.AppEngineRouting 385 } 386 return nil 387} 388 389func (x *AppEngineHttpTarget) GetRelativeUri() string { 390 if x != nil { 391 return x.RelativeUri 392 } 393 return "" 394} 395 396func (x *AppEngineHttpTarget) GetHeaders() map[string]string { 397 if x != nil { 398 return x.Headers 399 } 400 return nil 401} 402 403func (x *AppEngineHttpTarget) GetBody() []byte { 404 if x != nil { 405 return x.Body 406 } 407 return nil 408} 409 410// Pub/Sub target. The job will be delivered by publishing a message to 411// the given Pub/Sub topic. 412type PubsubTarget struct { 413 state protoimpl.MessageState 414 sizeCache protoimpl.SizeCache 415 unknownFields protoimpl.UnknownFields 416 417 // Required. The name of the Cloud Pub/Sub topic to which messages will 418 // be published when a job is delivered. The topic name must be in the 419 // same format as required by PubSub's 420 // [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), 421 // for example `projects/PROJECT_ID/topics/TOPIC_ID`. 422 // 423 // The topic must be in the same project as the Cloud Scheduler job. 424 TopicName string `protobuf:"bytes,1,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"` 425 // The message payload for PubsubMessage. 426 // 427 // Pubsub message must contain either non-empty data, or at least one 428 // attribute. 429 Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` 430 // Attributes for PubsubMessage. 431 // 432 // Pubsub message must contain either non-empty data, or at least one 433 // attribute. 434 Attributes map[string]string `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 435} 436 437func (x *PubsubTarget) Reset() { 438 *x = PubsubTarget{} 439 if protoimpl.UnsafeEnabled { 440 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[2] 441 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 442 ms.StoreMessageInfo(mi) 443 } 444} 445 446func (x *PubsubTarget) String() string { 447 return protoimpl.X.MessageStringOf(x) 448} 449 450func (*PubsubTarget) ProtoMessage() {} 451 452func (x *PubsubTarget) ProtoReflect() protoreflect.Message { 453 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[2] 454 if protoimpl.UnsafeEnabled && x != nil { 455 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 456 if ms.LoadMessageInfo() == nil { 457 ms.StoreMessageInfo(mi) 458 } 459 return ms 460 } 461 return mi.MessageOf(x) 462} 463 464// Deprecated: Use PubsubTarget.ProtoReflect.Descriptor instead. 465func (*PubsubTarget) Descriptor() ([]byte, []int) { 466 return file_google_cloud_scheduler_v1beta1_target_proto_rawDescGZIP(), []int{2} 467} 468 469func (x *PubsubTarget) GetTopicName() string { 470 if x != nil { 471 return x.TopicName 472 } 473 return "" 474} 475 476func (x *PubsubTarget) GetData() []byte { 477 if x != nil { 478 return x.Data 479 } 480 return nil 481} 482 483func (x *PubsubTarget) GetAttributes() map[string]string { 484 if x != nil { 485 return x.Attributes 486 } 487 return nil 488} 489 490// App Engine Routing. 491// 492// For more information about services, versions, and instances see 493// [An Overview of App 494// Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine), 495// [Microservices Architecture on Google App 496// Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine), 497// [App Engine Standard request 498// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed), 499// and [App Engine Flex request 500// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). 501type AppEngineRouting struct { 502 state protoimpl.MessageState 503 sizeCache protoimpl.SizeCache 504 unknownFields protoimpl.UnknownFields 505 506 // App service. 507 // 508 // By default, the job is sent to the service which is the default 509 // service when the job is attempted. 510 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 511 // App version. 512 // 513 // By default, the job is sent to the version which is the default 514 // version when the job is attempted. 515 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 516 // App instance. 517 // 518 // By default, the job is sent to an instance which is available when 519 // the job is attempted. 520 // 521 // Requests can only be sent to a specific instance if 522 // [manual scaling is used in App Engine 523 // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes). 524 // App Engine Flex does not support instances. For more information, see 525 // [App Engine Standard request 526 // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed) 527 // and [App Engine Flex request 528 // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed). 529 Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"` 530 // Output only. The host that the job is sent to. 531 // 532 // For more information about how App Engine requests are routed, see 533 // [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed). 534 // 535 // The host is constructed as: 536 // 537 // 538 // * `host = [application_domain_name]`</br> 539 // `| [service] + '.' + [application_domain_name]`</br> 540 // `| [version] + '.' + [application_domain_name]`</br> 541 // `| [version_dot_service]+ '.' + [application_domain_name]`</br> 542 // `| [instance] + '.' + [application_domain_name]`</br> 543 // `| [instance_dot_service] + '.' + [application_domain_name]`</br> 544 // `| [instance_dot_version] + '.' + [application_domain_name]`</br> 545 // `| [instance_dot_version_dot_service] + '.' + [application_domain_name]` 546 // 547 // * `application_domain_name` = The domain name of the app, for 548 // example <app-id>.appspot.com, which is associated with the 549 // job's project ID. 550 // 551 // * `service =` [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] 552 // 553 // * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] 554 // 555 // * `version_dot_service =` 556 // [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` 557 // [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] 558 // 559 // * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] 560 // 561 // * `instance_dot_service =` 562 // [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` 563 // [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] 564 // 565 // * `instance_dot_version =` 566 // [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` 567 // [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] 568 // 569 // * `instance_dot_version_dot_service =` 570 // [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +` 571 // [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +` 572 // [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] 573 // 574 // 575 // If [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] is empty, then the job will be sent 576 // to the service which is the default service when the job is attempted. 577 // 578 // If [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] is empty, then the job will be sent 579 // to the version which is the default version when the job is attempted. 580 // 581 // If [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] is empty, then the job will be 582 // sent to an instance which is available when the job is attempted. 583 // 584 // If [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service], 585 // [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or 586 // [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] is invalid, then the job will be sent 587 // to the default version of the default service when the job is attempted. 588 Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"` 589} 590 591func (x *AppEngineRouting) Reset() { 592 *x = AppEngineRouting{} 593 if protoimpl.UnsafeEnabled { 594 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[3] 595 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 596 ms.StoreMessageInfo(mi) 597 } 598} 599 600func (x *AppEngineRouting) String() string { 601 return protoimpl.X.MessageStringOf(x) 602} 603 604func (*AppEngineRouting) ProtoMessage() {} 605 606func (x *AppEngineRouting) ProtoReflect() protoreflect.Message { 607 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[3] 608 if protoimpl.UnsafeEnabled && x != nil { 609 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 610 if ms.LoadMessageInfo() == nil { 611 ms.StoreMessageInfo(mi) 612 } 613 return ms 614 } 615 return mi.MessageOf(x) 616} 617 618// Deprecated: Use AppEngineRouting.ProtoReflect.Descriptor instead. 619func (*AppEngineRouting) Descriptor() ([]byte, []int) { 620 return file_google_cloud_scheduler_v1beta1_target_proto_rawDescGZIP(), []int{3} 621} 622 623func (x *AppEngineRouting) GetService() string { 624 if x != nil { 625 return x.Service 626 } 627 return "" 628} 629 630func (x *AppEngineRouting) GetVersion() string { 631 if x != nil { 632 return x.Version 633 } 634 return "" 635} 636 637func (x *AppEngineRouting) GetInstance() string { 638 if x != nil { 639 return x.Instance 640 } 641 return "" 642} 643 644func (x *AppEngineRouting) GetHost() string { 645 if x != nil { 646 return x.Host 647 } 648 return "" 649} 650 651// Contains information needed for generating an 652// [OAuth token](https://developers.google.com/identity/protocols/OAuth2). 653// This type of authorization should generally only be used when calling Google 654// APIs hosted on *.googleapis.com. 655type OAuthToken struct { 656 state protoimpl.MessageState 657 sizeCache protoimpl.SizeCache 658 unknownFields protoimpl.UnknownFields 659 660 // [Service account email](https://cloud.google.com/iam/docs/service-accounts) 661 // to be used for generating OAuth token. 662 // The service account must be within the same project as the job. The caller 663 // must have iam.serviceAccounts.actAs permission for the service account. 664 ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` 665 // OAuth scope to be used for generating OAuth access token. 666 // If not specified, "https://www.googleapis.com/auth/cloud-platform" 667 // will be used. 668 Scope string `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"` 669} 670 671func (x *OAuthToken) Reset() { 672 *x = OAuthToken{} 673 if protoimpl.UnsafeEnabled { 674 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[4] 675 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 676 ms.StoreMessageInfo(mi) 677 } 678} 679 680func (x *OAuthToken) String() string { 681 return protoimpl.X.MessageStringOf(x) 682} 683 684func (*OAuthToken) ProtoMessage() {} 685 686func (x *OAuthToken) ProtoReflect() protoreflect.Message { 687 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[4] 688 if protoimpl.UnsafeEnabled && x != nil { 689 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 690 if ms.LoadMessageInfo() == nil { 691 ms.StoreMessageInfo(mi) 692 } 693 return ms 694 } 695 return mi.MessageOf(x) 696} 697 698// Deprecated: Use OAuthToken.ProtoReflect.Descriptor instead. 699func (*OAuthToken) Descriptor() ([]byte, []int) { 700 return file_google_cloud_scheduler_v1beta1_target_proto_rawDescGZIP(), []int{4} 701} 702 703func (x *OAuthToken) GetServiceAccountEmail() string { 704 if x != nil { 705 return x.ServiceAccountEmail 706 } 707 return "" 708} 709 710func (x *OAuthToken) GetScope() string { 711 if x != nil { 712 return x.Scope 713 } 714 return "" 715} 716 717// Contains information needed for generating an 718// [OpenID Connect 719// token](https://developers.google.com/identity/protocols/OpenIDConnect). 720// This type of authorization can be used for many scenarios, including 721// calling Cloud Run, or endpoints where you intend to validate the token 722// yourself. 723type OidcToken struct { 724 state protoimpl.MessageState 725 sizeCache protoimpl.SizeCache 726 unknownFields protoimpl.UnknownFields 727 728 // [Service account email](https://cloud.google.com/iam/docs/service-accounts) 729 // to be used for generating OIDC token. 730 // The service account must be within the same project as the job. The caller 731 // must have iam.serviceAccounts.actAs permission for the service account. 732 ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"` 733 // Audience to be used when generating OIDC token. If not specified, the URI 734 // specified in target will be used. 735 Audience string `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"` 736} 737 738func (x *OidcToken) Reset() { 739 *x = OidcToken{} 740 if protoimpl.UnsafeEnabled { 741 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[5] 742 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 743 ms.StoreMessageInfo(mi) 744 } 745} 746 747func (x *OidcToken) String() string { 748 return protoimpl.X.MessageStringOf(x) 749} 750 751func (*OidcToken) ProtoMessage() {} 752 753func (x *OidcToken) ProtoReflect() protoreflect.Message { 754 mi := &file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[5] 755 if protoimpl.UnsafeEnabled && x != nil { 756 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 757 if ms.LoadMessageInfo() == nil { 758 ms.StoreMessageInfo(mi) 759 } 760 return ms 761 } 762 return mi.MessageOf(x) 763} 764 765// Deprecated: Use OidcToken.ProtoReflect.Descriptor instead. 766func (*OidcToken) Descriptor() ([]byte, []int) { 767 return file_google_cloud_scheduler_v1beta1_target_proto_rawDescGZIP(), []int{5} 768} 769 770func (x *OidcToken) GetServiceAccountEmail() string { 771 if x != nil { 772 return x.ServiceAccountEmail 773 } 774 return "" 775} 776 777func (x *OidcToken) GetAudience() string { 778 if x != nil { 779 return x.Audience 780 } 781 return "" 782} 783 784var File_google_cloud_scheduler_v1beta1_target_proto protoreflect.FileDescriptor 785 786var file_google_cloud_scheduler_v1beta1_target_proto_rawDesc = []byte{ 787 0x0a, 0x2b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 788 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 789 0x2f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x67, 790 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 791 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x67, 792 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 793 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 794 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 795 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x03, 0x0a, 0x0a, 0x48, 0x74, 0x74, 0x70, 0x54, 796 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 797 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x4b, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 798 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 799 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 800 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x48, 0x74, 801 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x4d, 0x65, 802 0x74, 0x68, 0x6f, 0x64, 0x12, 0x51, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 803 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 804 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 805 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 806 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 807 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 808 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x4d, 0x0a, 0x0b, 0x6f, 809 0x61, 0x75, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 810 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 811 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 812 0x31, 0x2e, 0x4f, 0x41, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x0a, 813 0x6f, 0x61, 0x75, 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x4a, 0x0a, 0x0a, 0x6f, 0x69, 814 0x64, 0x63, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 815 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 816 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 817 0x4f, 0x69, 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x69, 0x64, 818 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 819 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 820 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 821 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 822 0x38, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 823 0x69, 0x6f, 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x22, 0x91, 0x03, 0x0a, 0x13, 0x41, 824 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74, 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 825 0x65, 0x74, 0x12, 0x4b, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f, 826 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 827 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 828 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 829 0x68, 0x6f, 0x64, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 830 0x5e, 0x0a, 0x12, 0x61, 0x70, 0x70, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x72, 0x6f, 831 0x75, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 832 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 833 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x70, 0x70, 834 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x10, 0x61, 835 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x12, 836 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x75, 0x72, 0x69, 0x18, 837 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x6c, 0x61, 0x74, 0x69, 0x76, 0x65, 0x55, 838 0x72, 0x69, 0x12, 0x5a, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20, 839 0x03, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 840 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 841 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x48, 0x74, 842 0x74, 0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 843 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 844 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 845 0x64, 0x79, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x45, 0x6e, 0x74, 846 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 847 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 848 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x80, 849 0x02, 0x0a, 0x0c, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 850 0x3f, 0x0a, 0x0a, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 851 0x01, 0x28, 0x09, 0x42, 0x20, 0xfa, 0x41, 0x1d, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 852 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 853 0x54, 0x6f, 0x70, 0x69, 0x63, 0x52, 0x09, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x4e, 0x61, 0x6d, 0x65, 854 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 855 0x64, 0x61, 0x74, 0x61, 0x12, 0x5c, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 856 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 857 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 858 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x75, 0x62, 0x73, 0x75, 0x62, 859 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 860 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 861 0x65, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 862 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 863 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 864 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 865 0x01, 0x22, 0x76, 0x0a, 0x10, 0x41, 0x70, 0x70, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x6f, 866 0x75, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 867 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 868 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 869 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x73, 870 0x74, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x69, 0x6e, 0x73, 871 0x74, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 872 0x01, 0x28, 0x09, 0x52, 0x04, 0x68, 0x6f, 0x73, 0x74, 0x22, 0x56, 0x0a, 0x0a, 0x4f, 0x41, 0x75, 873 0x74, 0x68, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 874 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 875 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 876 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x73, 877 0x63, 0x6f, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 878 0x65, 0x22, 0x5b, 0x0a, 0x09, 0x4f, 0x69, 0x64, 0x63, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x32, 879 0x0a, 0x15, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 880 0x74, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x73, 881 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x45, 0x6d, 0x61, 882 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x18, 0x02, 883 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x75, 0x64, 0x69, 0x65, 0x6e, 0x63, 0x65, 0x2a, 0x73, 884 0x0a, 0x0a, 0x48, 0x74, 0x74, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1b, 0x0a, 0x17, 885 0x48, 0x54, 0x54, 0x50, 0x5f, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 886 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x50, 0x4f, 0x53, 887 0x54, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x47, 0x45, 0x54, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 888 0x48, 0x45, 0x41, 0x44, 0x10, 0x03, 0x12, 0x07, 0x0a, 0x03, 0x50, 0x55, 0x54, 0x10, 0x04, 0x12, 889 0x0a, 0x0a, 0x06, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x05, 0x12, 0x09, 0x0a, 0x05, 0x50, 890 0x41, 0x54, 0x43, 0x48, 0x10, 0x06, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 891 0x53, 0x10, 0x07, 0x42, 0xbf, 0x01, 0x0a, 0x22, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 892 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 893 0x65, 0x72, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0b, 0x54, 0x61, 0x72, 0x67, 894 0x65, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 895 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 896 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 897 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x72, 898 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 899 0x65, 0x72, 0xea, 0x41, 0x40, 0x0a, 0x1b, 0x70, 0x75, 0x62, 0x73, 0x75, 0x62, 0x2e, 0x67, 0x6f, 900 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x6f, 0x70, 901 0x69, 0x63, 0x12, 0x21, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 902 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x73, 0x2f, 0x7b, 0x74, 903 0x6f, 0x70, 0x69, 0x63, 0x7d, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 904} 905 906var ( 907 file_google_cloud_scheduler_v1beta1_target_proto_rawDescOnce sync.Once 908 file_google_cloud_scheduler_v1beta1_target_proto_rawDescData = file_google_cloud_scheduler_v1beta1_target_proto_rawDesc 909) 910 911func file_google_cloud_scheduler_v1beta1_target_proto_rawDescGZIP() []byte { 912 file_google_cloud_scheduler_v1beta1_target_proto_rawDescOnce.Do(func() { 913 file_google_cloud_scheduler_v1beta1_target_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_scheduler_v1beta1_target_proto_rawDescData) 914 }) 915 return file_google_cloud_scheduler_v1beta1_target_proto_rawDescData 916} 917 918var file_google_cloud_scheduler_v1beta1_target_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 919var file_google_cloud_scheduler_v1beta1_target_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 920var file_google_cloud_scheduler_v1beta1_target_proto_goTypes = []interface{}{ 921 (HttpMethod)(0), // 0: google.cloud.scheduler.v1beta1.HttpMethod 922 (*HttpTarget)(nil), // 1: google.cloud.scheduler.v1beta1.HttpTarget 923 (*AppEngineHttpTarget)(nil), // 2: google.cloud.scheduler.v1beta1.AppEngineHttpTarget 924 (*PubsubTarget)(nil), // 3: google.cloud.scheduler.v1beta1.PubsubTarget 925 (*AppEngineRouting)(nil), // 4: google.cloud.scheduler.v1beta1.AppEngineRouting 926 (*OAuthToken)(nil), // 5: google.cloud.scheduler.v1beta1.OAuthToken 927 (*OidcToken)(nil), // 6: google.cloud.scheduler.v1beta1.OidcToken 928 nil, // 7: google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry 929 nil, // 8: google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry 930 nil, // 9: google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry 931} 932var file_google_cloud_scheduler_v1beta1_target_proto_depIdxs = []int32{ 933 0, // 0: google.cloud.scheduler.v1beta1.HttpTarget.http_method:type_name -> google.cloud.scheduler.v1beta1.HttpMethod 934 7, // 1: google.cloud.scheduler.v1beta1.HttpTarget.headers:type_name -> google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry 935 5, // 2: google.cloud.scheduler.v1beta1.HttpTarget.oauth_token:type_name -> google.cloud.scheduler.v1beta1.OAuthToken 936 6, // 3: google.cloud.scheduler.v1beta1.HttpTarget.oidc_token:type_name -> google.cloud.scheduler.v1beta1.OidcToken 937 0, // 4: google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http_method:type_name -> google.cloud.scheduler.v1beta1.HttpMethod 938 4, // 5: google.cloud.scheduler.v1beta1.AppEngineHttpTarget.app_engine_routing:type_name -> google.cloud.scheduler.v1beta1.AppEngineRouting 939 8, // 6: google.cloud.scheduler.v1beta1.AppEngineHttpTarget.headers:type_name -> google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry 940 9, // 7: google.cloud.scheduler.v1beta1.PubsubTarget.attributes:type_name -> google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry 941 8, // [8:8] is the sub-list for method output_type 942 8, // [8:8] is the sub-list for method input_type 943 8, // [8:8] is the sub-list for extension type_name 944 8, // [8:8] is the sub-list for extension extendee 945 0, // [0:8] is the sub-list for field type_name 946} 947 948func init() { file_google_cloud_scheduler_v1beta1_target_proto_init() } 949func file_google_cloud_scheduler_v1beta1_target_proto_init() { 950 if File_google_cloud_scheduler_v1beta1_target_proto != nil { 951 return 952 } 953 if !protoimpl.UnsafeEnabled { 954 file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 955 switch v := v.(*HttpTarget); i { 956 case 0: 957 return &v.state 958 case 1: 959 return &v.sizeCache 960 case 2: 961 return &v.unknownFields 962 default: 963 return nil 964 } 965 } 966 file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 967 switch v := v.(*AppEngineHttpTarget); i { 968 case 0: 969 return &v.state 970 case 1: 971 return &v.sizeCache 972 case 2: 973 return &v.unknownFields 974 default: 975 return nil 976 } 977 } 978 file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 979 switch v := v.(*PubsubTarget); i { 980 case 0: 981 return &v.state 982 case 1: 983 return &v.sizeCache 984 case 2: 985 return &v.unknownFields 986 default: 987 return nil 988 } 989 } 990 file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 991 switch v := v.(*AppEngineRouting); i { 992 case 0: 993 return &v.state 994 case 1: 995 return &v.sizeCache 996 case 2: 997 return &v.unknownFields 998 default: 999 return nil 1000 } 1001 } 1002 file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1003 switch v := v.(*OAuthToken); i { 1004 case 0: 1005 return &v.state 1006 case 1: 1007 return &v.sizeCache 1008 case 2: 1009 return &v.unknownFields 1010 default: 1011 return nil 1012 } 1013 } 1014 file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1015 switch v := v.(*OidcToken); i { 1016 case 0: 1017 return &v.state 1018 case 1: 1019 return &v.sizeCache 1020 case 2: 1021 return &v.unknownFields 1022 default: 1023 return nil 1024 } 1025 } 1026 } 1027 file_google_cloud_scheduler_v1beta1_target_proto_msgTypes[0].OneofWrappers = []interface{}{ 1028 (*HttpTarget_OauthToken)(nil), 1029 (*HttpTarget_OidcToken)(nil), 1030 } 1031 type x struct{} 1032 out := protoimpl.TypeBuilder{ 1033 File: protoimpl.DescBuilder{ 1034 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1035 RawDescriptor: file_google_cloud_scheduler_v1beta1_target_proto_rawDesc, 1036 NumEnums: 1, 1037 NumMessages: 9, 1038 NumExtensions: 0, 1039 NumServices: 0, 1040 }, 1041 GoTypes: file_google_cloud_scheduler_v1beta1_target_proto_goTypes, 1042 DependencyIndexes: file_google_cloud_scheduler_v1beta1_target_proto_depIdxs, 1043 EnumInfos: file_google_cloud_scheduler_v1beta1_target_proto_enumTypes, 1044 MessageInfos: file_google_cloud_scheduler_v1beta1_target_proto_msgTypes, 1045 }.Build() 1046 File_google_cloud_scheduler_v1beta1_target_proto = out.File 1047 file_google_cloud_scheduler_v1beta1_target_proto_rawDesc = nil 1048 file_google_cloud_scheduler_v1beta1_target_proto_goTypes = nil 1049 file_google_cloud_scheduler_v1beta1_target_proto_depIdxs = nil 1050} 1051