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