You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

575 lines
24 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/scheduler/v1/target.proto
  3. package scheduler // import "google.golang.org/genproto/googleapis/cloud/scheduler/v1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/golang/protobuf/ptypes/any"
  8. import _ "google.golang.org/genproto/googleapis/api/annotations"
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  18. // The HTTP method used to execute the job.
  19. type HttpMethod int32
  20. const (
  21. // HTTP method unspecified. Defaults to POST.
  22. HttpMethod_HTTP_METHOD_UNSPECIFIED HttpMethod = 0
  23. // HTTP POST
  24. HttpMethod_POST HttpMethod = 1
  25. // HTTP GET
  26. HttpMethod_GET HttpMethod = 2
  27. // HTTP HEAD
  28. HttpMethod_HEAD HttpMethod = 3
  29. // HTTP PUT
  30. HttpMethod_PUT HttpMethod = 4
  31. // HTTP DELETE
  32. HttpMethod_DELETE HttpMethod = 5
  33. // HTTP PATCH
  34. HttpMethod_PATCH HttpMethod = 6
  35. // HTTP OPTIONS
  36. HttpMethod_OPTIONS HttpMethod = 7
  37. )
  38. var HttpMethod_name = map[int32]string{
  39. 0: "HTTP_METHOD_UNSPECIFIED",
  40. 1: "POST",
  41. 2: "GET",
  42. 3: "HEAD",
  43. 4: "PUT",
  44. 5: "DELETE",
  45. 6: "PATCH",
  46. 7: "OPTIONS",
  47. }
  48. var HttpMethod_value = map[string]int32{
  49. "HTTP_METHOD_UNSPECIFIED": 0,
  50. "POST": 1,
  51. "GET": 2,
  52. "HEAD": 3,
  53. "PUT": 4,
  54. "DELETE": 5,
  55. "PATCH": 6,
  56. "OPTIONS": 7,
  57. }
  58. func (x HttpMethod) String() string {
  59. return proto.EnumName(HttpMethod_name, int32(x))
  60. }
  61. func (HttpMethod) EnumDescriptor() ([]byte, []int) {
  62. return fileDescriptor_target_9a78483e17c44eaa, []int{0}
  63. }
  64. // Http target. The job will be pushed to the job handler by means of
  65. // an HTTP request via an [http_method][google.cloud.scheduler.v1.HttpTarget.http_method] such as HTTP
  66. // POST, HTTP GET, etc. The job is acknowledged by means of an HTTP
  67. // response code in the range [200 - 299]. A failure to receive a response
  68. // constitutes a failed execution. For a redirected request, the response
  69. // returned by the redirected request is considered.
  70. type HttpTarget struct {
  71. // Required.
  72. //
  73. // The full URI path that the request will be sent to. This string
  74. // must begin with either "http://" or "https://". Some examples of
  75. // valid values for [uri][google.cloud.scheduler.v1.HttpTarget.uri] are:
  76. // `http://acme.com` and `https://acme.com/sales:8080`. Cloud Scheduler will
  77. // encode some characters for safety and compatibility. The maximum allowed
  78. // URL length is 2083 characters after encoding.
  79. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
  80. // Which HTTP method to use for the request.
  81. HttpMethod HttpMethod `protobuf:"varint,2,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.scheduler.v1.HttpMethod" json:"http_method,omitempty"`
  82. // The user can specify HTTP request headers to send with the job's
  83. // HTTP request. This map contains the header field names and
  84. // values. Repeated headers are not supported, but a header value can
  85. // contain commas. These headers represent a subset of the headers
  86. // that will accompany the job's HTTP request. Some HTTP request
  87. // headers will be ignored or replaced. A partial list of headers that
  88. // will be ignored or replaced is below:
  89. // - Host: This will be computed by Cloud Scheduler and derived from
  90. // [uri][google.cloud.scheduler.v1.HttpTarget.uri].
  91. // * `Content-Length`: This will be computed by Cloud Scheduler.
  92. // * `User-Agent`: This will be set to `"Google-Cloud-Scheduler"`.
  93. // * `X-Google-*`: Google internal use only.
  94. // * `X-AppEngine-*`: Google internal use only.
  95. //
  96. // The total size of headers must be less than 80KB.
  97. 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"`
  98. // HTTP request body. A request body is allowed only if the HTTP
  99. // method is POST, PUT, or PATCH. It is an error to set body on a job with an
  100. // incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
  101. Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
  102. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  103. XXX_unrecognized []byte `json:"-"`
  104. XXX_sizecache int32 `json:"-"`
  105. }
  106. func (m *HttpTarget) Reset() { *m = HttpTarget{} }
  107. func (m *HttpTarget) String() string { return proto.CompactTextString(m) }
  108. func (*HttpTarget) ProtoMessage() {}
  109. func (*HttpTarget) Descriptor() ([]byte, []int) {
  110. return fileDescriptor_target_9a78483e17c44eaa, []int{0}
  111. }
  112. func (m *HttpTarget) XXX_Unmarshal(b []byte) error {
  113. return xxx_messageInfo_HttpTarget.Unmarshal(m, b)
  114. }
  115. func (m *HttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  116. return xxx_messageInfo_HttpTarget.Marshal(b, m, deterministic)
  117. }
  118. func (dst *HttpTarget) XXX_Merge(src proto.Message) {
  119. xxx_messageInfo_HttpTarget.Merge(dst, src)
  120. }
  121. func (m *HttpTarget) XXX_Size() int {
  122. return xxx_messageInfo_HttpTarget.Size(m)
  123. }
  124. func (m *HttpTarget) XXX_DiscardUnknown() {
  125. xxx_messageInfo_HttpTarget.DiscardUnknown(m)
  126. }
  127. var xxx_messageInfo_HttpTarget proto.InternalMessageInfo
  128. func (m *HttpTarget) GetUri() string {
  129. if m != nil {
  130. return m.Uri
  131. }
  132. return ""
  133. }
  134. func (m *HttpTarget) GetHttpMethod() HttpMethod {
  135. if m != nil {
  136. return m.HttpMethod
  137. }
  138. return HttpMethod_HTTP_METHOD_UNSPECIFIED
  139. }
  140. func (m *HttpTarget) GetHeaders() map[string]string {
  141. if m != nil {
  142. return m.Headers
  143. }
  144. return nil
  145. }
  146. func (m *HttpTarget) GetBody() []byte {
  147. if m != nil {
  148. return m.Body
  149. }
  150. return nil
  151. }
  152. // App Engine target. The job will be pushed to a job handler by means
  153. // of an HTTP request via an [http_method][google.cloud.scheduler.v1.AppEngineHttpTarget.http_method] such
  154. // as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an
  155. // HTTP response code in the range [200 - 299]. Error 503 is
  156. // considered an App Engine system error instead of an application
  157. // error. Requests returning error 503 will be retried regardless of
  158. // retry configuration and not counted against retry counts. Any other
  159. // response code, or a failure to receive a response before the
  160. // deadline, constitutes a failed attempt.
  161. type AppEngineHttpTarget struct {
  162. // The HTTP method to use for the request. PATCH and OPTIONS are not
  163. // permitted.
  164. HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.scheduler.v1.HttpMethod" json:"http_method,omitempty"`
  165. // App Engine Routing setting for the job.
  166. AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"`
  167. // The relative URI.
  168. //
  169. // The relative URL must begin with "/" and must be a valid HTTP relative URL.
  170. // It can contain a path, query string arguments, and `#` fragments.
  171. // If the relative URL is empty, then the root path "/" will be used.
  172. // No spaces are allowed, and the maximum length allowed is 2083 characters.
  173. RelativeUri string `protobuf:"bytes,3,opt,name=relative_uri,json=relativeUri,proto3" json:"relative_uri,omitempty"`
  174. // HTTP request headers.
  175. //
  176. // This map contains the header field names and values. Headers can be set
  177. // when the job is created.
  178. //
  179. // Cloud Scheduler sets some headers to default values:
  180. //
  181. // * `User-Agent`: By default, this header is
  182. // `"AppEngine-Google; (+http://code.google.com/appengine)"`.
  183. // This header can be modified, but Cloud Scheduler will append
  184. // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
  185. // modified `User-Agent`.
  186. // * `X-CloudScheduler`: This header will be set to true.
  187. //
  188. // If the job has an [body][google.cloud.scheduler.v1.AppEngineHttpTarget.body], Cloud Scheduler sets
  189. // the following headers:
  190. //
  191. // * `Content-Type`: By default, the `Content-Type` header is set to
  192. // `"application/octet-stream"`. The default can be overridden by explictly
  193. // setting `Content-Type` to a particular media type when the job is
  194. // created.
  195. // For example, `Content-Type` can be set to `"application/json"`.
  196. // * `Content-Length`: This is computed by Cloud Scheduler. This value is
  197. // output only. It cannot be changed.
  198. //
  199. // The headers below are output only. They cannot be set or overridden:
  200. //
  201. // * `X-Google-*`: For Google internal use only.
  202. // * `X-AppEngine-*`: For Google internal use only.
  203. //
  204. // In addition, some App Engine headers, which contain
  205. // job-specific information, are also be sent to the job handler.
  206. 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"`
  207. // Body.
  208. //
  209. // HTTP request body. A request body is allowed only if the HTTP method is
  210. // POST or PUT. It will result in invalid argument error to set a body on a
  211. // job with an incompatible [HttpMethod][google.cloud.scheduler.v1.HttpMethod].
  212. Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
  213. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  214. XXX_unrecognized []byte `json:"-"`
  215. XXX_sizecache int32 `json:"-"`
  216. }
  217. func (m *AppEngineHttpTarget) Reset() { *m = AppEngineHttpTarget{} }
  218. func (m *AppEngineHttpTarget) String() string { return proto.CompactTextString(m) }
  219. func (*AppEngineHttpTarget) ProtoMessage() {}
  220. func (*AppEngineHttpTarget) Descriptor() ([]byte, []int) {
  221. return fileDescriptor_target_9a78483e17c44eaa, []int{1}
  222. }
  223. func (m *AppEngineHttpTarget) XXX_Unmarshal(b []byte) error {
  224. return xxx_messageInfo_AppEngineHttpTarget.Unmarshal(m, b)
  225. }
  226. func (m *AppEngineHttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  227. return xxx_messageInfo_AppEngineHttpTarget.Marshal(b, m, deterministic)
  228. }
  229. func (dst *AppEngineHttpTarget) XXX_Merge(src proto.Message) {
  230. xxx_messageInfo_AppEngineHttpTarget.Merge(dst, src)
  231. }
  232. func (m *AppEngineHttpTarget) XXX_Size() int {
  233. return xxx_messageInfo_AppEngineHttpTarget.Size(m)
  234. }
  235. func (m *AppEngineHttpTarget) XXX_DiscardUnknown() {
  236. xxx_messageInfo_AppEngineHttpTarget.DiscardUnknown(m)
  237. }
  238. var xxx_messageInfo_AppEngineHttpTarget proto.InternalMessageInfo
  239. func (m *AppEngineHttpTarget) GetHttpMethod() HttpMethod {
  240. if m != nil {
  241. return m.HttpMethod
  242. }
  243. return HttpMethod_HTTP_METHOD_UNSPECIFIED
  244. }
  245. func (m *AppEngineHttpTarget) GetAppEngineRouting() *AppEngineRouting {
  246. if m != nil {
  247. return m.AppEngineRouting
  248. }
  249. return nil
  250. }
  251. func (m *AppEngineHttpTarget) GetRelativeUri() string {
  252. if m != nil {
  253. return m.RelativeUri
  254. }
  255. return ""
  256. }
  257. func (m *AppEngineHttpTarget) GetHeaders() map[string]string {
  258. if m != nil {
  259. return m.Headers
  260. }
  261. return nil
  262. }
  263. func (m *AppEngineHttpTarget) GetBody() []byte {
  264. if m != nil {
  265. return m.Body
  266. }
  267. return nil
  268. }
  269. // Pub/Sub target. The job will be delivered by publishing a message to
  270. // the given Pub/Sub topic.
  271. type PubsubTarget struct {
  272. // Required.
  273. //
  274. // The name of the Cloud Pub/Sub topic to which messages will
  275. // be published when a job is delivered. The topic name must be in the
  276. // same format as required by PubSub's
  277. // [PublishRequest.name](https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest),
  278. // for example `projects/PROJECT_ID/topics/TOPIC_ID`.
  279. //
  280. // The topic must be in the same project as the Cloud Scheduler job.
  281. TopicName string `protobuf:"bytes,1,opt,name=topic_name,json=topicName,proto3" json:"topic_name,omitempty"`
  282. // The message payload for PubsubMessage.
  283. //
  284. // Pubsub message must contain either non-empty data, or at least one
  285. // attribute.
  286. Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
  287. // Attributes for PubsubMessage.
  288. //
  289. // Pubsub message must contain either non-empty data, or at least one
  290. // attribute.
  291. 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"`
  292. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  293. XXX_unrecognized []byte `json:"-"`
  294. XXX_sizecache int32 `json:"-"`
  295. }
  296. func (m *PubsubTarget) Reset() { *m = PubsubTarget{} }
  297. func (m *PubsubTarget) String() string { return proto.CompactTextString(m) }
  298. func (*PubsubTarget) ProtoMessage() {}
  299. func (*PubsubTarget) Descriptor() ([]byte, []int) {
  300. return fileDescriptor_target_9a78483e17c44eaa, []int{2}
  301. }
  302. func (m *PubsubTarget) XXX_Unmarshal(b []byte) error {
  303. return xxx_messageInfo_PubsubTarget.Unmarshal(m, b)
  304. }
  305. func (m *PubsubTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  306. return xxx_messageInfo_PubsubTarget.Marshal(b, m, deterministic)
  307. }
  308. func (dst *PubsubTarget) XXX_Merge(src proto.Message) {
  309. xxx_messageInfo_PubsubTarget.Merge(dst, src)
  310. }
  311. func (m *PubsubTarget) XXX_Size() int {
  312. return xxx_messageInfo_PubsubTarget.Size(m)
  313. }
  314. func (m *PubsubTarget) XXX_DiscardUnknown() {
  315. xxx_messageInfo_PubsubTarget.DiscardUnknown(m)
  316. }
  317. var xxx_messageInfo_PubsubTarget proto.InternalMessageInfo
  318. func (m *PubsubTarget) GetTopicName() string {
  319. if m != nil {
  320. return m.TopicName
  321. }
  322. return ""
  323. }
  324. func (m *PubsubTarget) GetData() []byte {
  325. if m != nil {
  326. return m.Data
  327. }
  328. return nil
  329. }
  330. func (m *PubsubTarget) GetAttributes() map[string]string {
  331. if m != nil {
  332. return m.Attributes
  333. }
  334. return nil
  335. }
  336. // App Engine Routing.
  337. //
  338. // For more information about services, versions, and instances see
  339. // [An Overview of App
  340. // Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
  341. // [Microservices Architecture on Google App
  342. // Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
  343. // [App Engine Standard request
  344. // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
  345. // and [App Engine Flex request
  346. // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
  347. type AppEngineRouting struct {
  348. // App service.
  349. //
  350. // By default, the job is sent to the service which is the default
  351. // service when the job is attempted.
  352. Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
  353. // App version.
  354. //
  355. // By default, the job is sent to the version which is the default
  356. // version when the job is attempted.
  357. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  358. // App instance.
  359. //
  360. // By default, the job is sent to an instance which is available when
  361. // the job is attempted.
  362. //
  363. // Requests can only be sent to a specific instance if
  364. // [manual scaling is used in App Engine
  365. // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
  366. // App Engine Flex does not support instances. For more information, see
  367. // [App Engine Standard request
  368. // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
  369. // and [App Engine Flex request
  370. // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
  371. Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
  372. // Output only. The host that the job is sent to.
  373. //
  374. // For more information about how App Engine requests are routed, see
  375. // [here](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
  376. //
  377. // The host is constructed as:
  378. //
  379. //
  380. // * `host = [application_domain_name]`</br>
  381. // `| [service] + '.' + [application_domain_name]`</br>
  382. // `| [version] + '.' + [application_domain_name]`</br>
  383. // `| [version_dot_service]+ '.' + [application_domain_name]`</br>
  384. // `| [instance] + '.' + [application_domain_name]`</br>
  385. // `| [instance_dot_service] + '.' + [application_domain_name]`</br>
  386. // `| [instance_dot_version] + '.' + [application_domain_name]`</br>
  387. // `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
  388. //
  389. // * `application_domain_name` = The domain name of the app, for
  390. // example <app-id>.appspot.com, which is associated with the
  391. // job's project ID.
  392. //
  393. // * `service =` [service][google.cloud.scheduler.v1.AppEngineRouting.service]
  394. //
  395. // * `version =` [version][google.cloud.scheduler.v1.AppEngineRouting.version]
  396. //
  397. // * `version_dot_service =`
  398. // [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
  399. // [service][google.cloud.scheduler.v1.AppEngineRouting.service]
  400. //
  401. // * `instance =` [instance][google.cloud.scheduler.v1.AppEngineRouting.instance]
  402. //
  403. // * `instance_dot_service =`
  404. // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
  405. // [service][google.cloud.scheduler.v1.AppEngineRouting.service]
  406. //
  407. // * `instance_dot_version =`
  408. // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
  409. // [version][google.cloud.scheduler.v1.AppEngineRouting.version]
  410. //
  411. // * `instance_dot_version_dot_service =`
  412. // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] `+ '.' +`
  413. // [version][google.cloud.scheduler.v1.AppEngineRouting.version] `+ '.' +`
  414. // [service][google.cloud.scheduler.v1.AppEngineRouting.service]
  415. //
  416. //
  417. // If [service][google.cloud.scheduler.v1.AppEngineRouting.service] is empty, then the job will be sent
  418. // to the service which is the default service when the job is attempted.
  419. //
  420. // If [version][google.cloud.scheduler.v1.AppEngineRouting.version] is empty, then the job will be sent
  421. // to the version which is the default version when the job is attempted.
  422. //
  423. // If [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is empty, then the job will be
  424. // sent to an instance which is available when the job is attempted.
  425. //
  426. // If [service][google.cloud.scheduler.v1.AppEngineRouting.service],
  427. // [version][google.cloud.scheduler.v1.AppEngineRouting.version], or
  428. // [instance][google.cloud.scheduler.v1.AppEngineRouting.instance] is invalid, then the job will be sent
  429. // to the default version of the default service when the job is attempted.
  430. Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
  431. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  432. XXX_unrecognized []byte `json:"-"`
  433. XXX_sizecache int32 `json:"-"`
  434. }
  435. func (m *AppEngineRouting) Reset() { *m = AppEngineRouting{} }
  436. func (m *AppEngineRouting) String() string { return proto.CompactTextString(m) }
  437. func (*AppEngineRouting) ProtoMessage() {}
  438. func (*AppEngineRouting) Descriptor() ([]byte, []int) {
  439. return fileDescriptor_target_9a78483e17c44eaa, []int{3}
  440. }
  441. func (m *AppEngineRouting) XXX_Unmarshal(b []byte) error {
  442. return xxx_messageInfo_AppEngineRouting.Unmarshal(m, b)
  443. }
  444. func (m *AppEngineRouting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  445. return xxx_messageInfo_AppEngineRouting.Marshal(b, m, deterministic)
  446. }
  447. func (dst *AppEngineRouting) XXX_Merge(src proto.Message) {
  448. xxx_messageInfo_AppEngineRouting.Merge(dst, src)
  449. }
  450. func (m *AppEngineRouting) XXX_Size() int {
  451. return xxx_messageInfo_AppEngineRouting.Size(m)
  452. }
  453. func (m *AppEngineRouting) XXX_DiscardUnknown() {
  454. xxx_messageInfo_AppEngineRouting.DiscardUnknown(m)
  455. }
  456. var xxx_messageInfo_AppEngineRouting proto.InternalMessageInfo
  457. func (m *AppEngineRouting) GetService() string {
  458. if m != nil {
  459. return m.Service
  460. }
  461. return ""
  462. }
  463. func (m *AppEngineRouting) GetVersion() string {
  464. if m != nil {
  465. return m.Version
  466. }
  467. return ""
  468. }
  469. func (m *AppEngineRouting) GetInstance() string {
  470. if m != nil {
  471. return m.Instance
  472. }
  473. return ""
  474. }
  475. func (m *AppEngineRouting) GetHost() string {
  476. if m != nil {
  477. return m.Host
  478. }
  479. return ""
  480. }
  481. func init() {
  482. proto.RegisterType((*HttpTarget)(nil), "google.cloud.scheduler.v1.HttpTarget")
  483. proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1.HttpTarget.HeadersEntry")
  484. proto.RegisterType((*AppEngineHttpTarget)(nil), "google.cloud.scheduler.v1.AppEngineHttpTarget")
  485. proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1.AppEngineHttpTarget.HeadersEntry")
  486. proto.RegisterType((*PubsubTarget)(nil), "google.cloud.scheduler.v1.PubsubTarget")
  487. proto.RegisterMapType((map[string]string)(nil), "google.cloud.scheduler.v1.PubsubTarget.AttributesEntry")
  488. proto.RegisterType((*AppEngineRouting)(nil), "google.cloud.scheduler.v1.AppEngineRouting")
  489. proto.RegisterEnum("google.cloud.scheduler.v1.HttpMethod", HttpMethod_name, HttpMethod_value)
  490. }
  491. func init() {
  492. proto.RegisterFile("google/cloud/scheduler/v1/target.proto", fileDescriptor_target_9a78483e17c44eaa)
  493. }
  494. var fileDescriptor_target_9a78483e17c44eaa = []byte{
  495. // 616 bytes of a gzipped FileDescriptorProto
  496. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x5d, 0x8b, 0xd3, 0x4c,
  497. 0x14, 0x7e, 0xd3, 0xb4, 0xdb, 0xed, 0x69, 0x79, 0x0d, 0xa3, 0x60, 0xad, 0x2e, 0xd4, 0x05, 0xa5,
  498. 0x28, 0x24, 0x6c, 0xbd, 0x50, 0x76, 0xf1, 0xa2, 0xbb, 0xcd, 0xda, 0x85, 0xdd, 0x6d, 0x48, 0x53,
  499. 0x44, 0x6f, 0xc2, 0xb4, 0x1d, 0xd3, 0x61, 0xdb, 0x99, 0x30, 0x99, 0x04, 0x7a, 0x2b, 0xfe, 0x49,
  500. 0xff, 0x8d, 0x64, 0xf2, 0x61, 0x29, 0xee, 0xba, 0x8a, 0x77, 0xe7, 0xf3, 0x39, 0xe7, 0x79, 0x4e,
  501. 0x32, 0xf0, 0x32, 0xe0, 0x3c, 0x58, 0x11, 0x6b, 0xbe, 0xe2, 0xf1, 0xc2, 0x8a, 0xe6, 0x4b, 0xb2,
  502. 0x88, 0x57, 0x44, 0x58, 0xc9, 0x91, 0x25, 0xb1, 0x08, 0x88, 0x34, 0x43, 0xc1, 0x25, 0x47, 0x4f,
  503. 0xb2, 0x3a, 0x53, 0xd5, 0x99, 0x65, 0x9d, 0x99, 0x1c, 0x75, 0x9e, 0xe5, 0x10, 0x38, 0xa4, 0x16,
  504. 0x66, 0x8c, 0x4b, 0x2c, 0x29, 0x67, 0x51, 0xd6, 0xd8, 0xc9, 0x1b, 0x2d, 0xe5, 0xcd, 0xe2, 0x2f,
  505. 0x16, 0x66, 0x9b, 0x2c, 0x75, 0xf8, 0xad, 0x02, 0x30, 0x92, 0x32, 0xf4, 0xd4, 0x20, 0x64, 0x80,
  506. 0x1e, 0x0b, 0xda, 0xd6, 0xba, 0x5a, 0xaf, 0xe1, 0xa6, 0x26, 0x3a, 0x87, 0xe6, 0x52, 0xca, 0xd0,
  507. 0x5f, 0x13, 0xb9, 0xe4, 0x8b, 0x76, 0xa5, 0xab, 0xf5, 0xfe, 0xef, 0xbf, 0x30, 0x6f, 0x5d, 0xc5,
  508. 0x4c, 0xd1, 0xae, 0x54, 0xb1, 0x0b, 0xcb, 0xd2, 0x46, 0x97, 0x50, 0x5f, 0x12, 0xbc, 0x20, 0x22,
  509. 0x6a, 0xeb, 0x5d, 0xbd, 0xd7, 0xec, 0xf7, 0x7f, 0x83, 0x91, 0x6d, 0x64, 0x8e, 0xb2, 0x26, 0x9b,
  510. 0x49, 0xb1, 0x71, 0x0b, 0x08, 0x84, 0xa0, 0x3a, 0xe3, 0x8b, 0x4d, 0xbb, 0xda, 0xd5, 0x7a, 0x2d,
  511. 0x57, 0xd9, 0x9d, 0x63, 0x68, 0x6d, 0x17, 0xa7, 0x5c, 0x6e, 0xc8, 0xa6, 0xe0, 0x72, 0x43, 0x36,
  512. 0xe8, 0x11, 0xd4, 0x12, 0xbc, 0x8a, 0x89, 0x62, 0xd1, 0x70, 0x33, 0xe7, 0xb8, 0xf2, 0x4e, 0x3b,
  513. 0xfc, 0xaa, 0xc3, 0xc3, 0x41, 0x18, 0xda, 0x2c, 0xa0, 0x8c, 0x6c, 0xe9, 0xb1, 0xc3, 0x5e, 0xfb,
  514. 0x5b, 0xf6, 0x9f, 0x00, 0xe1, 0x30, 0xf4, 0x89, 0xc2, 0xf7, 0x05, 0x8f, 0x25, 0x65, 0x81, 0x5a,
  515. 0xa3, 0xd9, 0x7f, 0x7d, 0x07, 0x5c, 0xb9, 0x93, 0x9b, 0xb5, 0xb8, 0x06, 0xde, 0x89, 0xa0, 0xe7,
  516. 0xd0, 0x12, 0x64, 0x85, 0x25, 0x4d, 0x88, 0x9f, 0xde, 0x4e, 0x57, 0xdc, 0x9a, 0x45, 0x6c, 0x2a,
  517. 0x28, 0x9a, 0xfe, 0xd4, 0xbe, 0xaa, 0xb4, 0x3f, 0xb9, 0xcf, 0xc8, 0x7b, 0x1f, 0xa1, 0xf6, 0x8f,
  518. 0x8e, 0xf0, 0x5d, 0x83, 0x96, 0x13, 0xcf, 0xa2, 0x78, 0x96, 0xab, 0x7f, 0x00, 0x20, 0x79, 0x48,
  519. 0xe7, 0x3e, 0xc3, 0x6b, 0x92, 0x63, 0x34, 0x54, 0xe4, 0x1a, 0xaf, 0x49, 0x3a, 0x7f, 0x81, 0x25,
  520. 0x56, 0x8c, 0x5b, 0xae, 0xb2, 0xd1, 0x47, 0x00, 0x2c, 0xa5, 0xa0, 0xb3, 0x58, 0x92, 0x82, 0xed,
  521. 0xdb, 0x3b, 0xd8, 0x6e, 0xcf, 0x33, 0x07, 0x65, 0x67, 0xc6, 0x74, 0x0b, 0xaa, 0xf3, 0x1e, 0x1e,
  522. 0xec, 0xa4, 0xff, 0x88, 0x5b, 0x02, 0xc6, 0xee, 0x2d, 0x51, 0x1b, 0xea, 0x11, 0x11, 0x09, 0x9d,
  523. 0x17, 0xdc, 0x0a, 0x37, 0xcd, 0x24, 0x44, 0x44, 0x94, 0xb3, 0x1c, 0xa9, 0x70, 0x51, 0x07, 0xf6,
  524. 0x29, 0x8b, 0x24, 0x66, 0x73, 0x92, 0x5f, 0xba, 0xf4, 0x53, 0x3d, 0x96, 0x3c, 0x92, 0xea, 0xa7,
  525. 0x68, 0xb8, 0xca, 0x7e, 0x15, 0x65, 0xbf, 0x77, 0xfe, 0x19, 0x3e, 0x85, 0xc7, 0x23, 0xcf, 0x73,
  526. 0xfc, 0x2b, 0xdb, 0x1b, 0x8d, 0x87, 0xfe, 0xf4, 0x7a, 0xe2, 0xd8, 0x67, 0x17, 0xe7, 0x17, 0xf6,
  527. 0xd0, 0xf8, 0x0f, 0xed, 0x43, 0xd5, 0x19, 0x4f, 0x3c, 0x43, 0x43, 0x75, 0xd0, 0x3f, 0xd8, 0x9e,
  528. 0x51, 0x49, 0x43, 0x23, 0x7b, 0x30, 0x34, 0xf4, 0x34, 0xe4, 0x4c, 0x3d, 0xa3, 0x8a, 0x00, 0xf6,
  529. 0x86, 0xf6, 0xa5, 0xed, 0xd9, 0x46, 0x0d, 0x35, 0xa0, 0xe6, 0x0c, 0xbc, 0xb3, 0x91, 0xb1, 0x87,
  530. 0x9a, 0x50, 0x1f, 0x3b, 0xde, 0xc5, 0xf8, 0x7a, 0x62, 0xd4, 0x4f, 0x05, 0x1c, 0xcc, 0xf9, 0xfa,
  531. 0x76, 0xd5, 0x4f, 0x9b, 0x99, 0xe0, 0x4e, 0xfa, 0x04, 0x39, 0xda, 0xe7, 0xd3, 0xbc, 0x32, 0xe0,
  532. 0x2b, 0xcc, 0x02, 0x93, 0x8b, 0xc0, 0x0a, 0x08, 0x53, 0x0f, 0x94, 0x95, 0xa5, 0x70, 0x48, 0xa3,
  533. 0x5f, 0xbc, 0x8f, 0x27, 0xa5, 0x33, 0xdb, 0x53, 0xe5, 0x6f, 0x7e, 0x04, 0x00, 0x00, 0xff, 0xff,
  534. 0xab, 0x76, 0x2f, 0xf4, 0x4d, 0x05, 0x00, 0x00,
  535. }