1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/cloud/scheduler/v1beta1/target.proto
3
4package scheduler
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11	_ "google.golang.org/genproto/googleapis/api/annotations"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25// The HTTP method used to execute the job.
26type HttpMethod int32
27
28const (
29	// HTTP method unspecified. Defaults to POST.
30	HttpMethod_HTTP_METHOD_UNSPECIFIED HttpMethod = 0
31	// HTTP POST
32	HttpMethod_POST HttpMethod = 1
33	// HTTP GET
34	HttpMethod_GET HttpMethod = 2
35	// HTTP HEAD
36	HttpMethod_HEAD HttpMethod = 3
37	// HTTP PUT
38	HttpMethod_PUT HttpMethod = 4
39	// HTTP DELETE
40	HttpMethod_DELETE HttpMethod = 5
41	// HTTP PATCH
42	HttpMethod_PATCH HttpMethod = 6
43	// HTTP OPTIONS
44	HttpMethod_OPTIONS HttpMethod = 7
45)
46
47var HttpMethod_name = map[int32]string{
48	0: "HTTP_METHOD_UNSPECIFIED",
49	1: "POST",
50	2: "GET",
51	3: "HEAD",
52	4: "PUT",
53	5: "DELETE",
54	6: "PATCH",
55	7: "OPTIONS",
56}
57
58var HttpMethod_value = map[string]int32{
59	"HTTP_METHOD_UNSPECIFIED": 0,
60	"POST":                    1,
61	"GET":                     2,
62	"HEAD":                    3,
63	"PUT":                     4,
64	"DELETE":                  5,
65	"PATCH":                   6,
66	"OPTIONS":                 7,
67}
68
69func (x HttpMethod) String() string {
70	return proto.EnumName(HttpMethod_name, int32(x))
71}
72
73func (HttpMethod) EnumDescriptor() ([]byte, []int) {
74	return fileDescriptor_30cd09e73d799915, []int{0}
75}
76
77// Http target. The job will be pushed to the job handler by means of
78// an HTTP request via an [http_method][google.cloud.scheduler.v1beta1.HttpTarget.http_method] such as HTTP
79// POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
80// response code in the range [200 - 299]. A failure to receive a response
81// constitutes a failed execution. For a redirected request, the response
82// returned by the redirected request is considered.
83type HttpTarget struct {
84	// Required. The full URI path that the request will be sent to. This string
85	// must begin with either "http://" or "https://". Some examples of
86	// valid values for [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri] are:
87	// `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
88	// encode some characters for safety and compatibility. The maximum allowed
89	// URL length is 2083 characters after encoding.
90	Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
91	// Which HTTP method to use for the request.
92	HttpMethod HttpMethod `protobuf:"varint,2,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.scheduler.v1beta1.HttpMethod" json:"http_method,omitempty"`
93	// The user can specify HTTP request headers to send with the job's
94	// HTTP request. This map contains the header field names and
95	// values. Repeated headers are not supported, but a header value can
96	// contain commas. These headers represent a subset of the headers
97	// that will accompany the job's HTTP request. Some HTTP request
98	// headers will be ignored or replaced. A partial list of headers that
99	// will be ignored or replaced is below:
100	// - Host: This will be computed by Cloud Scheduler and derived from
101	// [uri][google.cloud.scheduler.v1beta1.HttpTarget.uri].
102	// * `Content-Length`: This will be computed by Cloud Scheduler.
103	// * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
104	// * `X-Google-*`: Google internal use only.
105	// * `X-AppEngine-*`: Google internal use only.
106	//
107	// The total size of headers must be less than 80KB.
108	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"`
109	// HTTP request body. A request body is allowed only if the HTTP
110	// method is POST, PUT, or PATCH. It is an error to set body on a job with an
111	// incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod].
112	Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
113	// The mode for generating an `Authorization` header for HTTP requests.
114	//
115	// If specified, all `Authorization` headers in the [HttpTarget.headers][google.cloud.scheduler.v1beta1.HttpTarget.headers]
116	// field will be overridden.
117	//
118	// Types that are valid to be assigned to AuthorizationHeader:
119	//	*HttpTarget_OauthToken
120	//	*HttpTarget_OidcToken
121	AuthorizationHeader  isHttpTarget_AuthorizationHeader `protobuf_oneof:"authorization_header"`
122	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
123	XXX_unrecognized     []byte                           `json:"-"`
124	XXX_sizecache        int32                            `json:"-"`
125}
126
127func (m *HttpTarget) Reset()         { *m = HttpTarget{} }
128func (m *HttpTarget) String() string { return proto.CompactTextString(m) }
129func (*HttpTarget) ProtoMessage()    {}
130func (*HttpTarget) Descriptor() ([]byte, []int) {
131	return fileDescriptor_30cd09e73d799915, []int{0}
132}
133
134func (m *HttpTarget) XXX_Unmarshal(b []byte) error {
135	return xxx_messageInfo_HttpTarget.Unmarshal(m, b)
136}
137func (m *HttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
138	return xxx_messageInfo_HttpTarget.Marshal(b, m, deterministic)
139}
140func (m *HttpTarget) XXX_Merge(src proto.Message) {
141	xxx_messageInfo_HttpTarget.Merge(m, src)
142}
143func (m *HttpTarget) XXX_Size() int {
144	return xxx_messageInfo_HttpTarget.Size(m)
145}
146func (m *HttpTarget) XXX_DiscardUnknown() {
147	xxx_messageInfo_HttpTarget.DiscardUnknown(m)
148}
149
150var xxx_messageInfo_HttpTarget proto.InternalMessageInfo
151
152func (m *HttpTarget) GetUri() string {
153	if m != nil {
154		return m.Uri
155	}
156	return ""
157}
158
159func (m *HttpTarget) GetHttpMethod() HttpMethod {
160	if m != nil {
161		return m.HttpMethod
162	}
163	return HttpMethod_HTTP_METHOD_UNSPECIFIED
164}
165
166func (m *HttpTarget) GetHeaders() map[string]string {
167	if m != nil {
168		return m.Headers
169	}
170	return nil
171}
172
173func (m *HttpTarget) GetBody() []byte {
174	if m != nil {
175		return m.Body
176	}
177	return nil
178}
179
180type isHttpTarget_AuthorizationHeader interface {
181	isHttpTarget_AuthorizationHeader()
182}
183
184type HttpTarget_OauthToken struct {
185	OauthToken *OAuthToken `protobuf:"bytes,5,opt,name=oauth_token,json=oauthToken,proto3,oneof"`
186}
187
188type HttpTarget_OidcToken struct {
189	OidcToken *OidcToken `protobuf:"bytes,6,opt,name=oidc_token,json=oidcToken,proto3,oneof"`
190}
191
192func (*HttpTarget_OauthToken) isHttpTarget_AuthorizationHeader() {}
193
194func (*HttpTarget_OidcToken) isHttpTarget_AuthorizationHeader() {}
195
196func (m *HttpTarget) GetAuthorizationHeader() isHttpTarget_AuthorizationHeader {
197	if m != nil {
198		return m.AuthorizationHeader
199	}
200	return nil
201}
202
203func (m *HttpTarget) GetOauthToken() *OAuthToken {
204	if x, ok := m.GetAuthorizationHeader().(*HttpTarget_OauthToken); ok {
205		return x.OauthToken
206	}
207	return nil
208}
209
210func (m *HttpTarget) GetOidcToken() *OidcToken {
211	if x, ok := m.GetAuthorizationHeader().(*HttpTarget_OidcToken); ok {
212		return x.OidcToken
213	}
214	return nil
215}
216
217// XXX_OneofWrappers is for the internal use of the proto package.
218func (*HttpTarget) XXX_OneofWrappers() []interface{} {
219	return []interface{}{
220		(*HttpTarget_OauthToken)(nil),
221		(*HttpTarget_OidcToken)(nil),
222	}
223}
224
225// App Engine target. The job will be pushed to a job handler by means
226// of an HTTP request via an [http_method][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.http_method] such
227// as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
228// HTTP response code in the range [200 - 299]. Error 503 is
229// considered an App Engine system error instead of an application
230// error. Requests returning error 503 will be retried regardless of
231// retry configuration and not counted against retry counts. Any other
232// response code, or a failure to receive a response before the
233// deadline, constitutes a failed attempt.
234type AppEngineHttpTarget struct {
235	// The HTTP method to use for the request. PATCH and OPTIONS are not
236	// permitted.
237	HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.scheduler.v1beta1.HttpMethod" json:"http_method,omitempty"`
238	// App Engine Routing setting for the job.
239	AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"`
240	// The relative URI.
241	//
242	// The relative URL must begin with "/" and must be a valid HTTP relative URL.
243	// It can contain a path, query string arguments, and `#` fragments.
244	// If the relative URL is empty, then the root path "/" will be used.
245	// No spaces are allowed, and the maximum length allowed is 2083 characters.
246	RelativeUri string `protobuf:"bytes,3,opt,name=relative_uri,json=relativeUri,proto3" json:"relative_uri,omitempty"`
247	// HTTP request headers.
248	//
249	// This map contains the header field names and values. Headers can be set
250	// when the job is created.
251	//
252	// Cloud Scheduler sets some headers to default values:
253	//
254	// * `User-Agent`: By default, this header is
255	//   `"AppEngine-Google; (+http://code.google.com/appengine)"`.
256	//   This header can be modified, but Cloud Scheduler will append
257	//   `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
258	//   modified `User-Agent`.
259	// * `X-CloudScheduler`: This header will be set to true.
260	//
261	// If the job has an [body][google.cloud.scheduler.v1beta1.AppEngineHttpTarget.body], Cloud Scheduler sets
262	// the following headers:
263	//
264	// * `Content-Type`: By default, the `Content-Type` header is set to
265	//   `"application/octet-stream"`. The default can be overridden by explictly
266	//   setting `Content-Type` to a particular media type when the job is
267	//   created.
268	//   For example, `Content-Type` can be set to `"application/json"`.
269	// * `Content-Length`: This is computed by Cloud Scheduler. This value is
270	//   output only. It cannot be changed.
271	//
272	// The headers below are output only. They cannot be set or overridden:
273	//
274	// * `X-Google-*`: For Google internal use only.
275	// * `X-AppEngine-*`: For Google internal use only.
276	//
277	// In addition, some App Engine headers, which contain
278	// job-specific information, are also be sent to the job handler.
279	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"`
280	// Body.
281	//
282	// HTTP request body. A request body is allowed only if the HTTP method is
283	// POST or PUT. It will result in invalid argument error to set a body on a
284	// job with an incompatible [HttpMethod][google.cloud.scheduler.v1beta1.HttpMethod].
285	Body                 []byte   `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
286	XXX_NoUnkeyedLiteral struct{} `json:"-"`
287	XXX_unrecognized     []byte   `json:"-"`
288	XXX_sizecache        int32    `json:"-"`
289}
290
291func (m *AppEngineHttpTarget) Reset()         { *m = AppEngineHttpTarget{} }
292func (m *AppEngineHttpTarget) String() string { return proto.CompactTextString(m) }
293func (*AppEngineHttpTarget) ProtoMessage()    {}
294func (*AppEngineHttpTarget) Descriptor() ([]byte, []int) {
295	return fileDescriptor_30cd09e73d799915, []int{1}
296}
297
298func (m *AppEngineHttpTarget) XXX_Unmarshal(b []byte) error {
299	return xxx_messageInfo_AppEngineHttpTarget.Unmarshal(m, b)
300}
301func (m *AppEngineHttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
302	return xxx_messageInfo_AppEngineHttpTarget.Marshal(b, m, deterministic)
303}
304func (m *AppEngineHttpTarget) XXX_Merge(src proto.Message) {
305	xxx_messageInfo_AppEngineHttpTarget.Merge(m, src)
306}
307func (m *AppEngineHttpTarget) XXX_Size() int {
308	return xxx_messageInfo_AppEngineHttpTarget.Size(m)
309}
310func (m *AppEngineHttpTarget) XXX_DiscardUnknown() {
311	xxx_messageInfo_AppEngineHttpTarget.DiscardUnknown(m)
312}
313
314var xxx_messageInfo_AppEngineHttpTarget proto.InternalMessageInfo
315
316func (m *AppEngineHttpTarget) GetHttpMethod() HttpMethod {
317	if m != nil {
318		return m.HttpMethod
319	}
320	return HttpMethod_HTTP_METHOD_UNSPECIFIED
321}
322
323func (m *AppEngineHttpTarget) GetAppEngineRouting() *AppEngineRouting {
324	if m != nil {
325		return m.AppEngineRouting
326	}
327	return nil
328}
329
330func (m *AppEngineHttpTarget) GetRelativeUri() string {
331	if m != nil {
332		return m.RelativeUri
333	}
334	return ""
335}
336
337func (m *AppEngineHttpTarget) GetHeaders() map[string]string {
338	if m != nil {
339		return m.Headers
340	}
341	return nil
342}
343
344func (m *AppEngineHttpTarget) GetBody() []byte {
345	if m != nil {
346		return m.Body
347	}
348	return nil
349}
350
351// Pub/Sub target. The job will be delivered by publishing a message to
352// the given Pub/Sub topic.
353type PubsubTarget struct {
354	// Required. The name of the Cloud Pub/Sub topic to which messages will
355	// be published when a job is delivered. The topic name must be in the
356	// same format as required by PubSub's
357	// [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
358	// for example `projects/PROJECT_ID/topics/TOPIC_ID`.
359	//
360	// The topic must be in the same project as the Cloud Scheduler job.
361	TopicName string `protobuf:"bytes,1,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"`
362	// The message payload for PubsubMessage.
363	//
364	// Pubsub message must contain either non-empty data, or at least one
365	// attribute.
366	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
367	// Attributes for PubsubMessage.
368	//
369	// Pubsub message must contain either non-empty data, or at least one
370	// attribute.
371	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"`
372	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
373	XXX_unrecognized     []byte            `json:"-"`
374	XXX_sizecache        int32             `json:"-"`
375}
376
377func (m *PubsubTarget) Reset()         { *m = PubsubTarget{} }
378func (m *PubsubTarget) String() string { return proto.CompactTextString(m) }
379func (*PubsubTarget) ProtoMessage()    {}
380func (*PubsubTarget) Descriptor() ([]byte, []int) {
381	return fileDescriptor_30cd09e73d799915, []int{2}
382}
383
384func (m *PubsubTarget) XXX_Unmarshal(b []byte) error {
385	return xxx_messageInfo_PubsubTarget.Unmarshal(m, b)
386}
387func (m *PubsubTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
388	return xxx_messageInfo_PubsubTarget.Marshal(b, m, deterministic)
389}
390func (m *PubsubTarget) XXX_Merge(src proto.Message) {
391	xxx_messageInfo_PubsubTarget.Merge(m, src)
392}
393func (m *PubsubTarget) XXX_Size() int {
394	return xxx_messageInfo_PubsubTarget.Size(m)
395}
396func (m *PubsubTarget) XXX_DiscardUnknown() {
397	xxx_messageInfo_PubsubTarget.DiscardUnknown(m)
398}
399
400var xxx_messageInfo_PubsubTarget proto.InternalMessageInfo
401
402func (m *PubsubTarget) GetTopicName() string {
403	if m != nil {
404		return m.TopicName
405	}
406	return ""
407}
408
409func (m *PubsubTarget) GetData() []byte {
410	if m != nil {
411		return m.Data
412	}
413	return nil
414}
415
416func (m *PubsubTarget) GetAttributes() map[string]string {
417	if m != nil {
418		return m.Attributes
419	}
420	return nil
421}
422
423// App Engine Routing.
424//
425// For more information about services, versions, and instances see
426// [An Overview of App
427// Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
428// [Microservices Architecture on Google App
429// Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
430// [App Engine Standard request
431// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
432// and [App Engine Flex request
433// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
434type AppEngineRouting struct {
435	// App service.
436	//
437	// By default, the job is sent to the service which is the default
438	// service when the job is attempted.
439	Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
440	// App version.
441	//
442	// By default, the job is sent to the version which is the default
443	// version when the job is attempted.
444	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
445	// App instance.
446	//
447	// By default, the job is sent to an instance which is available when
448	// the job is attempted.
449	//
450	// Requests can only be sent to a specific instance if
451	// [manual scaling is used in App Engine
452	// Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
453	// App Engine Flex does not support instances. For more information, see
454	// [App Engine Standard request
455	// routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
456	// and [App Engine Flex request
457	// routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
458	Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
459	// Output only. The host that the job is sent to.
460	//
461	// For more information about how App Engine requests are routed, see
462	// [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
463	//
464	// The host is constructed as:
465	//
466	//
467	// * `host = [application_domain_name]`</br>
468	//   `| [service] + '.' + [application_domain_name]`</br>
469	//   `| [version] + '.' + [application_domain_name]`</br>
470	//   `| [version_dot_service]+ '.' + [application_domain_name]`</br>
471	//   `| [instance] + '.' + [application_domain_name]`</br>
472	//   `| [instance_dot_service] + '.' + [application_domain_name]`</br>
473	//   `| [instance_dot_version] + '.' + [application_domain_name]`</br>
474	//   `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
475	//
476	// * `application_domain_name` = The domain name of the app, for
477	//   example <app-id>.appspot.com, which is associated with the
478	//   job's project ID.
479	//
480	// * `service =` [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service]
481	//
482	// * `version =` [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version]
483	//
484	// * `version_dot_service =`
485	//   [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +`
486	//   [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service]
487	//
488	// * `instance =` [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance]
489	//
490	// * `instance_dot_service =`
491	//   [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +`
492	//   [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service]
493	//
494	// * `instance_dot_version =`
495	//   [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +`
496	//   [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version]
497	//
498	// * `instance_dot_version_dot_service =`
499	//   [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] `+ '.' +`
500	//   [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] `+ '.' +`
501	//   [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service]
502	//
503	//
504	// If [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service] is empty, then the job will be sent
505	// to the service which is the default service when the job is attempted.
506	//
507	// If [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version] is empty, then the job will be sent
508	// to the version which is the default version when the job is attempted.
509	//
510	// If [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] is empty, then the job will be
511	// sent to an instance which is available when the job is attempted.
512	//
513	// If [service][google.cloud.scheduler.v1beta1.AppEngineRouting.service],
514	// [version][google.cloud.scheduler.v1beta1.AppEngineRouting.version], or
515	// [instance][google.cloud.scheduler.v1beta1.AppEngineRouting.instance] is invalid, then the job will be sent
516	// to the default version of the default service when the job is attempted.
517	Host                 string   `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
518	XXX_NoUnkeyedLiteral struct{} `json:"-"`
519	XXX_unrecognized     []byte   `json:"-"`
520	XXX_sizecache        int32    `json:"-"`
521}
522
523func (m *AppEngineRouting) Reset()         { *m = AppEngineRouting{} }
524func (m *AppEngineRouting) String() string { return proto.CompactTextString(m) }
525func (*AppEngineRouting) ProtoMessage()    {}
526func (*AppEngineRouting) Descriptor() ([]byte, []int) {
527	return fileDescriptor_30cd09e73d799915, []int{3}
528}
529
530func (m *AppEngineRouting) XXX_Unmarshal(b []byte) error {
531	return xxx_messageInfo_AppEngineRouting.Unmarshal(m, b)
532}
533func (m *AppEngineRouting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
534	return xxx_messageInfo_AppEngineRouting.Marshal(b, m, deterministic)
535}
536func (m *AppEngineRouting) XXX_Merge(src proto.Message) {
537	xxx_messageInfo_AppEngineRouting.Merge(m, src)
538}
539func (m *AppEngineRouting) XXX_Size() int {
540	return xxx_messageInfo_AppEngineRouting.Size(m)
541}
542func (m *AppEngineRouting) XXX_DiscardUnknown() {
543	xxx_messageInfo_AppEngineRouting.DiscardUnknown(m)
544}
545
546var xxx_messageInfo_AppEngineRouting proto.InternalMessageInfo
547
548func (m *AppEngineRouting) GetService() string {
549	if m != nil {
550		return m.Service
551	}
552	return ""
553}
554
555func (m *AppEngineRouting) GetVersion() string {
556	if m != nil {
557		return m.Version
558	}
559	return ""
560}
561
562func (m *AppEngineRouting) GetInstance() string {
563	if m != nil {
564		return m.Instance
565	}
566	return ""
567}
568
569func (m *AppEngineRouting) GetHost() string {
570	if m != nil {
571		return m.Host
572	}
573	return ""
574}
575
576// Contains information needed for generating an
577// [OAuth token](https://developers.google.com/identity/protocols/OAuth2).
578// This type of authorization should generally only be used when calling Google
579// APIs hosted on *.googleapis.com.
580type OAuthToken struct {
581	// [Service account email](https://cloud.google.com/iam/docs/service-accounts)
582	// to be used for generating OAuth token.
583	// The service account must be within the same project as the job. The caller
584	// must have iam.serviceAccounts.actAs permission for the service account.
585	ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
586	// OAuth scope to be used for generating OAuth access token.
587	// If not specified, "https://www.googleapis.com/auth/cloud-platform"
588	// will be used.
589	Scope                string   `protobuf:"bytes,2,opt,name=scope,proto3" json:"scope,omitempty"`
590	XXX_NoUnkeyedLiteral struct{} `json:"-"`
591	XXX_unrecognized     []byte   `json:"-"`
592	XXX_sizecache        int32    `json:"-"`
593}
594
595func (m *OAuthToken) Reset()         { *m = OAuthToken{} }
596func (m *OAuthToken) String() string { return proto.CompactTextString(m) }
597func (*OAuthToken) ProtoMessage()    {}
598func (*OAuthToken) Descriptor() ([]byte, []int) {
599	return fileDescriptor_30cd09e73d799915, []int{4}
600}
601
602func (m *OAuthToken) XXX_Unmarshal(b []byte) error {
603	return xxx_messageInfo_OAuthToken.Unmarshal(m, b)
604}
605func (m *OAuthToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
606	return xxx_messageInfo_OAuthToken.Marshal(b, m, deterministic)
607}
608func (m *OAuthToken) XXX_Merge(src proto.Message) {
609	xxx_messageInfo_OAuthToken.Merge(m, src)
610}
611func (m *OAuthToken) XXX_Size() int {
612	return xxx_messageInfo_OAuthToken.Size(m)
613}
614func (m *OAuthToken) XXX_DiscardUnknown() {
615	xxx_messageInfo_OAuthToken.DiscardUnknown(m)
616}
617
618var xxx_messageInfo_OAuthToken proto.InternalMessageInfo
619
620func (m *OAuthToken) GetServiceAccountEmail() string {
621	if m != nil {
622		return m.ServiceAccountEmail
623	}
624	return ""
625}
626
627func (m *OAuthToken) GetScope() string {
628	if m != nil {
629		return m.Scope
630	}
631	return ""
632}
633
634// Contains information needed for generating an
635// [OpenID Connect
636// token](https://developers.google.com/identity/protocols/OpenIDConnect).
637// This type of authorization can be used for many scenarios, including
638// calling Cloud Run, or endpoints where you intend to validate the token
639// yourself.
640type OidcToken struct {
641	// [Service account email](https://cloud.google.com/iam/docs/service-accounts)
642	// to be used for generating OIDC token.
643	// The service account must be within the same project as the job. The caller
644	// must have iam.serviceAccounts.actAs permission for the service account.
645	ServiceAccountEmail string `protobuf:"bytes,1,opt,name=service_account_email,json=serviceAccountEmail,proto3" json:"service_account_email,omitempty"`
646	// Audience to be used when generating OIDC token. If not specified, the URI
647	// specified in target will be used.
648	Audience             string   `protobuf:"bytes,2,opt,name=audience,proto3" json:"audience,omitempty"`
649	XXX_NoUnkeyedLiteral struct{} `json:"-"`
650	XXX_unrecognized     []byte   `json:"-"`
651	XXX_sizecache        int32    `json:"-"`
652}
653
654func (m *OidcToken) Reset()         { *m = OidcToken{} }
655func (m *OidcToken) String() string { return proto.CompactTextString(m) }
656func (*OidcToken) ProtoMessage()    {}
657func (*OidcToken) Descriptor() ([]byte, []int) {
658	return fileDescriptor_30cd09e73d799915, []int{5}
659}
660
661func (m *OidcToken) XXX_Unmarshal(b []byte) error {
662	return xxx_messageInfo_OidcToken.Unmarshal(m, b)
663}
664func (m *OidcToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
665	return xxx_messageInfo_OidcToken.Marshal(b, m, deterministic)
666}
667func (m *OidcToken) XXX_Merge(src proto.Message) {
668	xxx_messageInfo_OidcToken.Merge(m, src)
669}
670func (m *OidcToken) XXX_Size() int {
671	return xxx_messageInfo_OidcToken.Size(m)
672}
673func (m *OidcToken) XXX_DiscardUnknown() {
674	xxx_messageInfo_OidcToken.DiscardUnknown(m)
675}
676
677var xxx_messageInfo_OidcToken proto.InternalMessageInfo
678
679func (m *OidcToken) GetServiceAccountEmail() string {
680	if m != nil {
681		return m.ServiceAccountEmail
682	}
683	return ""
684}
685
686func (m *OidcToken) GetAudience() string {
687	if m != nil {
688		return m.Audience
689	}
690	return ""
691}
692
693func init() {
694	proto.RegisterEnum("google.cloud.scheduler.v1beta1.HttpMethod", HttpMethod_name, HttpMethod_value)
695	proto.RegisterType((*HttpTarget)(nil), "google.cloud.scheduler.v1beta1.HttpTarget")
696	proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1beta1.HttpTarget.HeadersEntry")
697	proto.RegisterType((*AppEngineHttpTarget)(nil), "google.cloud.scheduler.v1beta1.AppEngineHttpTarget")
698	proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1beta1.AppEngineHttpTarget.HeadersEntry")
699	proto.RegisterType((*PubsubTarget)(nil), "google.cloud.scheduler.v1beta1.PubsubTarget")
700	proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1beta1.PubsubTarget.AttributesEntry")
701	proto.RegisterType((*AppEngineRouting)(nil), "google.cloud.scheduler.v1beta1.AppEngineRouting")
702	proto.RegisterType((*OAuthToken)(nil), "google.cloud.scheduler.v1beta1.OAuthToken")
703	proto.RegisterType((*OidcToken)(nil), "google.cloud.scheduler.v1beta1.OidcToken")
704}
705
706func init() {
707	proto.RegisterFile("google/cloud/scheduler/v1beta1/target.proto", fileDescriptor_30cd09e73d799915)
708}
709
710var fileDescriptor_30cd09e73d799915 = []byte{
711	// 810 bytes of a gzipped FileDescriptorProto
712	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x5f, 0x8f, 0xdb, 0x44,
713	0x10, 0xaf, 0xcf, 0xc9, 0xe5, 0x32, 0x8e, 0xc0, 0xda, 0x16, 0x08, 0x29, 0xa0, 0x34, 0x4f, 0xa1,
714	0x48, 0x36, 0x3d, 0x1e, 0x40, 0x05, 0x44, 0x7d, 0x3d, 0xd3, 0x1c, 0x70, 0x17, 0xe3, 0xf3, 0xf1,
715	0x50, 0x10, 0xd6, 0xc6, 0x5e, 0xd9, 0xcb, 0x25, 0x5e, 0x6b, 0xbd, 0x8e, 0x74, 0x54, 0x95, 0xf8,
716	0x0a, 0x7c, 0x22, 0xc4, 0xd7, 0xe1, 0x23, 0xf0, 0x84, 0x76, 0xfd, 0x27, 0x51, 0x24, 0x9a, 0x83,
717	0x3e, 0x65, 0x66, 0x67, 0xe6, 0xb7, 0x33, 0xbf, 0xf9, 0x6d, 0x0c, 0x1f, 0x25, 0x8c, 0x25, 0x4b,
718	0x62, 0x47, 0x4b, 0x56, 0xc6, 0x76, 0x11, 0xa5, 0x24, 0x2e, 0x97, 0x84, 0xdb, 0xeb, 0x47, 0x0b,
719	0x22, 0xf0, 0x23, 0x5b, 0x60, 0x9e, 0x10, 0x61, 0xe5, 0x9c, 0x09, 0x86, 0x3e, 0xa8, 0x92, 0x2d,
720	0x95, 0x6c, 0xb5, 0xc9, 0x56, 0x9d, 0x3c, 0x7a, 0xb7, 0x06, 0xc3, 0x39, 0xb5, 0x39, 0x29, 0x58,
721	0xc9, 0x23, 0x52, 0x95, 0x8e, 0xde, 0xdb, 0x0a, 0xe1, 0x2c, 0x63, 0x02, 0x0b, 0xca, 0xb2, 0xa2,
722	0x8a, 0x4e, 0xfe, 0xd4, 0x01, 0x66, 0x42, 0xe4, 0x81, 0xba, 0x0d, 0x99, 0xa0, 0x97, 0x9c, 0x0e,
723	0xb5, 0xb1, 0x36, 0xed, 0xfb, 0xd2, 0x44, 0xdf, 0x82, 0x91, 0x0a, 0x91, 0x87, 0x2b, 0x22, 0x52,
724	0x16, 0x0f, 0x0f, 0xc6, 0xda, 0xf4, 0x8d, 0xe3, 0x87, 0xd6, 0xab, 0xfb, 0xb1, 0x24, 0xe4, 0xb9,
725	0xaa, 0xf0, 0x21, 0x6d, 0x6d, 0xf4, 0x3d, 0xf4, 0x52, 0x82, 0x63, 0xc2, 0x8b, 0xa1, 0x3e, 0xd6,
726	0xa7, 0xc6, 0xf1, 0xa7, 0xb7, 0x01, 0xaa, 0x7a, 0xb3, 0x66, 0x55, 0xa5, 0x9b, 0x09, 0x7e, 0xe3,
727	0x37, 0x38, 0x08, 0x41, 0x67, 0xc1, 0xe2, 0x9b, 0x61, 0x67, 0xac, 0x4d, 0x07, 0xbe, 0xb2, 0xd1,
728	0x39, 0x18, 0x0c, 0x97, 0x22, 0x0d, 0x05, 0xbb, 0x26, 0xd9, 0xb0, 0x3b, 0xd6, 0xa6, 0xc6, 0xfe,
729	0x9e, 0xe7, 0x4e, 0x29, 0xd2, 0x40, 0x56, 0xcc, 0xee, 0xf8, 0xa0, 0x00, 0x94, 0x87, 0xbe, 0x01,
730	0x60, 0x34, 0x8e, 0x6a, 0xb4, 0x43, 0x85, 0xf6, 0xe1, 0x5e, 0x34, 0x1a, 0x47, 0x0d, 0x58, 0x9f,
731	0x35, 0xce, 0xe8, 0x31, 0x0c, 0xb6, 0xe7, 0x90, 0x84, 0x5f, 0x93, 0x9b, 0x86, 0xf0, 0x6b, 0x72,
732	0x83, 0xee, 0x41, 0x77, 0x8d, 0x97, 0x25, 0x51, 0x54, 0xf7, 0xfd, 0xca, 0x79, 0x7c, 0xf0, 0x99,
733	0x76, 0xf2, 0x36, 0xdc, 0x93, 0x4d, 0x31, 0x4e, 0x7f, 0x55, 0x3b, 0x0c, 0x2b, 0x0e, 0x26, 0xbf,
734	0xeb, 0x70, 0xd7, 0xc9, 0x73, 0x37, 0x4b, 0x68, 0x46, 0xb6, 0x96, 0xb9, 0xb3, 0x3a, 0xed, 0xb5,
735	0x56, 0xf7, 0x33, 0x20, 0x9c, 0xe7, 0x21, 0x51, 0x97, 0x84, 0x9c, 0x95, 0x82, 0x66, 0x89, 0xea,
736	0xd1, 0x38, 0xfe, 0x78, 0x1f, 0x66, 0xdb, 0x9d, 0x5f, 0xd5, 0xf9, 0x26, 0xde, 0x39, 0x41, 0x0f,
737	0x60, 0xc0, 0xc9, 0x12, 0x0b, 0xba, 0x26, 0xa1, 0x94, 0xa0, 0xae, 0xa6, 0x37, 0x9a, 0xb3, 0x2b,
738	0x4e, 0xd1, 0xf3, 0x8d, 0x7a, 0x3a, 0x4a, 0x3d, 0x4f, 0x6e, 0x7d, 0xef, 0xad, 0x65, 0xd4, 0xdd,
739	0xc8, 0xe8, 0x75, 0x76, 0x35, 0xf9, 0xed, 0x00, 0x06, 0x5e, 0xb9, 0x28, 0xca, 0x45, 0xbd, 0x8c,
740	0xaf, 0x00, 0x04, 0xcb, 0x69, 0x14, 0x66, 0x78, 0x45, 0x2a, 0x8c, 0x93, 0xf1, 0xdf, 0xce, 0xfb,
741	0x70, 0x3f, 0x57, 0x69, 0xf5, 0x28, 0x38, 0xa7, 0x85, 0x15, 0xb1, 0x95, 0x1d, 0xc8, 0x64, 0xbf,
742	0xaf, 0x6a, 0x2e, 0xf0, 0x8a, 0xc8, 0x0e, 0x63, 0x2c, 0xb0, 0x22, 0x66, 0xe0, 0x2b, 0x1b, 0xfd,
743	0x04, 0x80, 0x85, 0xe0, 0x74, 0x51, 0x0a, 0xd2, 0x90, 0xf2, 0xc5, 0x3e, 0x52, 0xb6, 0xdb, 0xb2,
744	0x9c, 0xb6, 0xbc, 0x22, 0x64, 0x0b, 0x6f, 0xf4, 0x25, 0xbc, 0xb9, 0x13, 0xfe, 0x4f, 0x14, 0xac,
745	0xc1, 0xdc, 0xdd, 0x3b, 0x1a, 0x42, 0xaf, 0x20, 0x7c, 0x4d, 0xa3, 0x9a, 0x02, 0xbf, 0x71, 0x65,
746	0x64, 0x4d, 0x78, 0x41, 0x59, 0x56, 0x23, 0x35, 0x2e, 0x1a, 0xc1, 0x11, 0xcd, 0x0a, 0x81, 0xb3,
747	0x88, 0xd4, 0xaa, 0x68, 0x7d, 0x49, 0x4a, 0xca, 0x0a, 0xa1, 0x5e, 0x7f, 0xdf, 0x57, 0xf6, 0xe4,
748	0x07, 0x80, 0xcd, 0x53, 0x46, 0xc7, 0xf0, 0x56, 0x7d, 0x45, 0x88, 0xa3, 0x88, 0x95, 0x99, 0x08,
749	0xc9, 0x0a, 0xd3, 0x65, 0x7d, 0xff, 0xdd, 0x3a, 0xe8, 0x54, 0x31, 0x57, 0x86, 0xe4, 0x4c, 0x45,
750	0xc4, 0xf2, 0x76, 0x26, 0xe5, 0x4c, 0x7e, 0x84, 0x7e, 0xfb, 0xa8, 0xff, 0x17, 0xec, 0x08, 0x8e,
751	0x70, 0x19, 0x53, 0x22, 0x07, 0xa9, 0x90, 0x5b, 0xff, 0x61, 0x51, 0xfd, 0x0d, 0xd7, 0x8f, 0xed,
752	0x3e, 0xbc, 0x33, 0x0b, 0x02, 0x2f, 0x3c, 0x77, 0x83, 0xd9, 0xfc, 0x34, 0xbc, 0xba, 0xb8, 0xf4,
753	0xdc, 0xa7, 0x67, 0x5f, 0x9f, 0xb9, 0xa7, 0xe6, 0x1d, 0x74, 0x04, 0x1d, 0x6f, 0x7e, 0x19, 0x98,
754	0x1a, 0xea, 0x81, 0xfe, 0xcc, 0x0d, 0xcc, 0x03, 0x79, 0x34, 0x73, 0x9d, 0x53, 0x53, 0x97, 0x47,
755	0xde, 0x55, 0x60, 0x76, 0x10, 0xc0, 0xe1, 0xa9, 0xfb, 0x9d, 0x1b, 0xb8, 0x66, 0x17, 0xf5, 0xa1,
756	0xeb, 0x39, 0xc1, 0xd3, 0x99, 0x79, 0x88, 0x0c, 0xe8, 0xcd, 0xbd, 0xe0, 0x6c, 0x7e, 0x71, 0x69,
757	0xf6, 0x4e, 0xfe, 0xd0, 0xfe, 0x72, 0x9e, 0xbc, 0x52, 0x80, 0xe8, 0x41, 0xce, 0xd9, 0x2f, 0x24,
758	0x12, 0x85, 0xfd, 0xa2, 0xb6, 0x5e, 0xda, 0x4a, 0x93, 0x85, 0xfd, 0x42, 0xfd, 0xbe, 0x84, 0x49,
759	0xc4, 0x56, 0x7b, 0x34, 0x77, 0x62, 0x54, 0x72, 0xf3, 0xe4, 0x37, 0xc7, 0xd3, 0x9e, 0x3f, 0xab,
760	0xd3, 0x13, 0xb6, 0xc4, 0x59, 0x62, 0x31, 0x9e, 0xd8, 0x09, 0xc9, 0xd4, 0x17, 0xc9, 0xde, 0xb4,
761	0xf1, 0x6f, 0x9f, 0xc6, 0xcf, 0xdb, 0x93, 0xc5, 0xa1, 0xaa, 0xf9, 0xe4, 0x9f, 0x00, 0x00, 0x00,
762	0xff, 0xff, 0x53, 0x2a, 0x3d, 0xd9, 0x4d, 0x07, 0x00, 0x00,
763}
764