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.
 
 
 

666 lines
28 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/cloud/tasks/v2beta2/target.proto
  3. package tasks // import "google.golang.org/genproto/googleapis/cloud/tasks/v2beta2"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "github.com/golang/protobuf/ptypes/duration"
  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 task.
  19. type HttpMethod int32
  20. const (
  21. // HTTP method unspecified
  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. )
  34. var HttpMethod_name = map[int32]string{
  35. 0: "HTTP_METHOD_UNSPECIFIED",
  36. 1: "POST",
  37. 2: "GET",
  38. 3: "HEAD",
  39. 4: "PUT",
  40. 5: "DELETE",
  41. }
  42. var HttpMethod_value = map[string]int32{
  43. "HTTP_METHOD_UNSPECIFIED": 0,
  44. "POST": 1,
  45. "GET": 2,
  46. "HEAD": 3,
  47. "PUT": 4,
  48. "DELETE": 5,
  49. }
  50. func (x HttpMethod) String() string {
  51. return proto.EnumName(HttpMethod_name, int32(x))
  52. }
  53. func (HttpMethod) EnumDescriptor() ([]byte, []int) {
  54. return fileDescriptor_target_85034d0cc39aee7f, []int{0}
  55. }
  56. // Pull target.
  57. type PullTarget struct {
  58. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  59. XXX_unrecognized []byte `json:"-"`
  60. XXX_sizecache int32 `json:"-"`
  61. }
  62. func (m *PullTarget) Reset() { *m = PullTarget{} }
  63. func (m *PullTarget) String() string { return proto.CompactTextString(m) }
  64. func (*PullTarget) ProtoMessage() {}
  65. func (*PullTarget) Descriptor() ([]byte, []int) {
  66. return fileDescriptor_target_85034d0cc39aee7f, []int{0}
  67. }
  68. func (m *PullTarget) XXX_Unmarshal(b []byte) error {
  69. return xxx_messageInfo_PullTarget.Unmarshal(m, b)
  70. }
  71. func (m *PullTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  72. return xxx_messageInfo_PullTarget.Marshal(b, m, deterministic)
  73. }
  74. func (dst *PullTarget) XXX_Merge(src proto.Message) {
  75. xxx_messageInfo_PullTarget.Merge(dst, src)
  76. }
  77. func (m *PullTarget) XXX_Size() int {
  78. return xxx_messageInfo_PullTarget.Size(m)
  79. }
  80. func (m *PullTarget) XXX_DiscardUnknown() {
  81. xxx_messageInfo_PullTarget.DiscardUnknown(m)
  82. }
  83. var xxx_messageInfo_PullTarget proto.InternalMessageInfo
  84. // The pull message contains data that can be used by the caller of
  85. // [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the
  86. // task.
  87. //
  88. // This proto can only be used for tasks in a queue which has
  89. // [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] set.
  90. type PullMessage struct {
  91. // A data payload consumed by the worker to execute the task.
  92. Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
  93. // The task's tag.
  94. //
  95. // Tags allow similar tasks to be processed in a batch. If you label
  96. // tasks with a tag, your worker can
  97. // [lease tasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] with the
  98. // same tag using
  99. // [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter]. For example,
  100. // if you want to aggregate the events associated with a specific user once a
  101. // day, you could tag tasks with the user ID.
  102. //
  103. // The task's tag can only be set when the
  104. // [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
  105. //
  106. // The tag must be less than 500 characters.
  107. //
  108. // SDK compatibility: Although the SDK allows tags to be either
  109. // string or
  110. // [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-),
  111. // only UTF-8 encoded tags can be used in Cloud Tasks. If a tag isn't UTF-8
  112. // encoded, the tag will be empty when the task is returned by Cloud Tasks.
  113. Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
  114. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  115. XXX_unrecognized []byte `json:"-"`
  116. XXX_sizecache int32 `json:"-"`
  117. }
  118. func (m *PullMessage) Reset() { *m = PullMessage{} }
  119. func (m *PullMessage) String() string { return proto.CompactTextString(m) }
  120. func (*PullMessage) ProtoMessage() {}
  121. func (*PullMessage) Descriptor() ([]byte, []int) {
  122. return fileDescriptor_target_85034d0cc39aee7f, []int{1}
  123. }
  124. func (m *PullMessage) XXX_Unmarshal(b []byte) error {
  125. return xxx_messageInfo_PullMessage.Unmarshal(m, b)
  126. }
  127. func (m *PullMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  128. return xxx_messageInfo_PullMessage.Marshal(b, m, deterministic)
  129. }
  130. func (dst *PullMessage) XXX_Merge(src proto.Message) {
  131. xxx_messageInfo_PullMessage.Merge(dst, src)
  132. }
  133. func (m *PullMessage) XXX_Size() int {
  134. return xxx_messageInfo_PullMessage.Size(m)
  135. }
  136. func (m *PullMessage) XXX_DiscardUnknown() {
  137. xxx_messageInfo_PullMessage.DiscardUnknown(m)
  138. }
  139. var xxx_messageInfo_PullMessage proto.InternalMessageInfo
  140. func (m *PullMessage) GetPayload() []byte {
  141. if m != nil {
  142. return m.Payload
  143. }
  144. return nil
  145. }
  146. func (m *PullMessage) GetTag() string {
  147. if m != nil {
  148. return m.Tag
  149. }
  150. return ""
  151. }
  152. // App Engine HTTP target.
  153. //
  154. // The task will be delivered to the App Engine application hostname
  155. // specified by its
  156. // [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget] and
  157. // [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]. The
  158. // documentation for
  159. // [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]
  160. // explains how the task's host URL is constructed.
  161. //
  162. // Using [AppEngineHttpTarget][google.cloud.tasks.v2beta2.AppEngineHttpTarget]
  163. // requires
  164. // [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
  165. // Google IAM permission for the project
  166. // and the following scope:
  167. //
  168. // `https://www.googleapis.com/auth/cloud-platform`
  169. type AppEngineHttpTarget struct {
  170. // Overrides for the
  171. // [task-level
  172. // app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
  173. //
  174. // If set, `app_engine_routing_override` is used for all tasks in
  175. // the queue, no matter what the setting is for the
  176. // [task-level
  177. // app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
  178. AppEngineRoutingOverride *AppEngineRouting `protobuf:"bytes,1,opt,name=app_engine_routing_override,json=appEngineRoutingOverride,proto3" json:"app_engine_routing_override,omitempty"`
  179. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  180. XXX_unrecognized []byte `json:"-"`
  181. XXX_sizecache int32 `json:"-"`
  182. }
  183. func (m *AppEngineHttpTarget) Reset() { *m = AppEngineHttpTarget{} }
  184. func (m *AppEngineHttpTarget) String() string { return proto.CompactTextString(m) }
  185. func (*AppEngineHttpTarget) ProtoMessage() {}
  186. func (*AppEngineHttpTarget) Descriptor() ([]byte, []int) {
  187. return fileDescriptor_target_85034d0cc39aee7f, []int{2}
  188. }
  189. func (m *AppEngineHttpTarget) XXX_Unmarshal(b []byte) error {
  190. return xxx_messageInfo_AppEngineHttpTarget.Unmarshal(m, b)
  191. }
  192. func (m *AppEngineHttpTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  193. return xxx_messageInfo_AppEngineHttpTarget.Marshal(b, m, deterministic)
  194. }
  195. func (dst *AppEngineHttpTarget) XXX_Merge(src proto.Message) {
  196. xxx_messageInfo_AppEngineHttpTarget.Merge(dst, src)
  197. }
  198. func (m *AppEngineHttpTarget) XXX_Size() int {
  199. return xxx_messageInfo_AppEngineHttpTarget.Size(m)
  200. }
  201. func (m *AppEngineHttpTarget) XXX_DiscardUnknown() {
  202. xxx_messageInfo_AppEngineHttpTarget.DiscardUnknown(m)
  203. }
  204. var xxx_messageInfo_AppEngineHttpTarget proto.InternalMessageInfo
  205. func (m *AppEngineHttpTarget) GetAppEngineRoutingOverride() *AppEngineRouting {
  206. if m != nil {
  207. return m.AppEngineRoutingOverride
  208. }
  209. return nil
  210. }
  211. // App Engine HTTP request.
  212. //
  213. // The message defines the HTTP request that is sent to an App Engine app when
  214. // the task is dispatched.
  215. //
  216. // This proto can only be used for tasks in a queue which has
  217. // [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target]
  218. // set.
  219. //
  220. // Using [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest]
  221. // requires
  222. // [`appengine.applications.get`](https://cloud.google.com/appengine/docs/admin-api/access-control)
  223. // Google IAM permission for the project
  224. // and the following scope:
  225. //
  226. // `https://www.googleapis.com/auth/cloud-platform`
  227. //
  228. // The task will be delivered to the App Engine app which belongs to the same
  229. // project as the queue. For more information, see
  230. // [How Requests are
  231. // Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
  232. // and how routing is affected by
  233. // [dispatch
  234. // files](https://cloud.google.com/appengine/docs/python/config/dispatchref).
  235. //
  236. // The [AppEngineRouting][google.cloud.tasks.v2beta2.AppEngineRouting] used to
  237. // construct the URL that the task is delivered to can be set at the queue-level
  238. // or task-level:
  239. //
  240. // * If set,
  241. // [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
  242. // is used for all tasks in the queue, no matter what the setting
  243. // is for the
  244. // [task-level
  245. // app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
  246. //
  247. //
  248. // The `url` that the task will be sent to is:
  249. //
  250. // * `url =` [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] `+`
  251. // [relative_url][google.cloud.tasks.v2beta2.AppEngineHttpRequest.relative_url]
  252. //
  253. // The task attempt has succeeded if the app's request handler returns
  254. // an HTTP response code in the range [`200` - `299`]. `503` is
  255. // considered an App Engine system error instead of an application
  256. // error. Requests returning error `503` will be retried regardless of
  257. // retry configuration and not counted against retry counts.
  258. // Any other response code or a failure to receive a response before the
  259. // deadline is a failed attempt.
  260. type AppEngineHttpRequest struct {
  261. // The HTTP method to use for the request. The default is POST.
  262. //
  263. // The app's request handler for the task's target URL must be able to handle
  264. // HTTP requests with this http_method, otherwise the task attempt will fail
  265. // with error code 405 (Method Not Allowed). See
  266. // [Writing a push task request
  267. // handler](https://cloud.google.com/appengine/docs/java/taskqueue/push/creating-handlers#writing_a_push_task_request_handler)
  268. // and the documentation for the request handlers in the language your app is
  269. // written in e.g.
  270. // [Python Request
  271. // Handler](https://cloud.google.com/appengine/docs/python/tools/webapp/requesthandlerclass).
  272. HttpMethod HttpMethod `protobuf:"varint,1,opt,name=http_method,json=httpMethod,proto3,enum=google.cloud.tasks.v2beta2.HttpMethod" json:"http_method,omitempty"`
  273. // Task-level setting for App Engine routing.
  274. //
  275. // If set,
  276. // [app_engine_routing_override][google.cloud.tasks.v2beta2.AppEngineHttpTarget.app_engine_routing_override]
  277. // is used for all tasks in the queue, no matter what the setting is for the
  278. // [task-level
  279. // app_engine_routing][google.cloud.tasks.v2beta2.AppEngineHttpRequest.app_engine_routing].
  280. AppEngineRouting *AppEngineRouting `protobuf:"bytes,2,opt,name=app_engine_routing,json=appEngineRouting,proto3" json:"app_engine_routing,omitempty"`
  281. // The relative URL.
  282. //
  283. // The relative URL must begin with "/" and must be a valid HTTP relative URL.
  284. // It can contain a path and query string arguments.
  285. // If the relative URL is empty, then the root path "/" will be used.
  286. // No spaces are allowed, and the maximum length allowed is 2083 characters.
  287. RelativeUrl string `protobuf:"bytes,3,opt,name=relative_url,json=relativeUrl,proto3" json:"relative_url,omitempty"`
  288. // HTTP request headers.
  289. //
  290. // This map contains the header field names and values.
  291. // Headers can be set when the
  292. // [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
  293. // Repeated headers are not supported but a header value can contain commas.
  294. //
  295. // Cloud Tasks sets some headers to default values:
  296. //
  297. // * `User-Agent`: By default, this header is
  298. // `"AppEngine-Google; (+http://code.google.com/appengine)"`.
  299. // This header can be modified, but Cloud Tasks will append
  300. // `"AppEngine-Google; (+http://code.google.com/appengine)"` to the
  301. // modified `User-Agent`.
  302. //
  303. // If the task has a
  304. // [payload][google.cloud.tasks.v2beta2.AppEngineHttpRequest.payload], Cloud
  305. // Tasks sets the following headers:
  306. //
  307. // * `Content-Type`: By default, the `Content-Type` header is set to
  308. // `"application/octet-stream"`. The default can be overridden by explicitly
  309. // setting `Content-Type` to a particular media type when the
  310. // [task is created][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
  311. // For example, `Content-Type` can be set to `"application/json"`.
  312. // * `Content-Length`: This is computed by Cloud Tasks. This value is
  313. // output only. It cannot be changed.
  314. //
  315. // The headers below cannot be set or overridden:
  316. //
  317. // * `Host`
  318. // * `X-Google-*`
  319. // * `X-AppEngine-*`
  320. //
  321. // In addition, Cloud Tasks sets some headers when the task is dispatched,
  322. // such as headers containing information about the task; see
  323. // [request
  324. // headers](https://cloud.google.com/appengine/docs/python/taskqueue/push/creating-handlers#reading_request_headers).
  325. // These headers are set only when the task is dispatched, so they are not
  326. // visible when the task is returned in a Cloud Tasks response.
  327. //
  328. // Although there is no specific limit for the maximum number of headers or
  329. // the size, there is a limit on the maximum size of the
  330. // [Task][google.cloud.tasks.v2beta2.Task]. For more information, see the
  331. // [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask]
  332. // documentation.
  333. 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"`
  334. // Payload.
  335. //
  336. // The payload will be sent as the HTTP message body. A message
  337. // body, and thus a payload, is allowed only if the HTTP method is
  338. // POST or PUT. It is an error to set a data payload on a task with
  339. // an incompatible [HttpMethod][google.cloud.tasks.v2beta2.HttpMethod].
  340. Payload []byte `protobuf:"bytes,5,opt,name=payload,proto3" json:"payload,omitempty"`
  341. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  342. XXX_unrecognized []byte `json:"-"`
  343. XXX_sizecache int32 `json:"-"`
  344. }
  345. func (m *AppEngineHttpRequest) Reset() { *m = AppEngineHttpRequest{} }
  346. func (m *AppEngineHttpRequest) String() string { return proto.CompactTextString(m) }
  347. func (*AppEngineHttpRequest) ProtoMessage() {}
  348. func (*AppEngineHttpRequest) Descriptor() ([]byte, []int) {
  349. return fileDescriptor_target_85034d0cc39aee7f, []int{3}
  350. }
  351. func (m *AppEngineHttpRequest) XXX_Unmarshal(b []byte) error {
  352. return xxx_messageInfo_AppEngineHttpRequest.Unmarshal(m, b)
  353. }
  354. func (m *AppEngineHttpRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  355. return xxx_messageInfo_AppEngineHttpRequest.Marshal(b, m, deterministic)
  356. }
  357. func (dst *AppEngineHttpRequest) XXX_Merge(src proto.Message) {
  358. xxx_messageInfo_AppEngineHttpRequest.Merge(dst, src)
  359. }
  360. func (m *AppEngineHttpRequest) XXX_Size() int {
  361. return xxx_messageInfo_AppEngineHttpRequest.Size(m)
  362. }
  363. func (m *AppEngineHttpRequest) XXX_DiscardUnknown() {
  364. xxx_messageInfo_AppEngineHttpRequest.DiscardUnknown(m)
  365. }
  366. var xxx_messageInfo_AppEngineHttpRequest proto.InternalMessageInfo
  367. func (m *AppEngineHttpRequest) GetHttpMethod() HttpMethod {
  368. if m != nil {
  369. return m.HttpMethod
  370. }
  371. return HttpMethod_HTTP_METHOD_UNSPECIFIED
  372. }
  373. func (m *AppEngineHttpRequest) GetAppEngineRouting() *AppEngineRouting {
  374. if m != nil {
  375. return m.AppEngineRouting
  376. }
  377. return nil
  378. }
  379. func (m *AppEngineHttpRequest) GetRelativeUrl() string {
  380. if m != nil {
  381. return m.RelativeUrl
  382. }
  383. return ""
  384. }
  385. func (m *AppEngineHttpRequest) GetHeaders() map[string]string {
  386. if m != nil {
  387. return m.Headers
  388. }
  389. return nil
  390. }
  391. func (m *AppEngineHttpRequest) GetPayload() []byte {
  392. if m != nil {
  393. return m.Payload
  394. }
  395. return nil
  396. }
  397. // App Engine Routing.
  398. //
  399. // For more information about services, versions, and instances see
  400. // [An Overview of App
  401. // Engine](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine),
  402. // [Microservices Architecture on Google App
  403. // Engine](https://cloud.google.com/appengine/docs/python/microservices-on-app-engine),
  404. // [App Engine Standard request
  405. // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed),
  406. // and [App Engine Flex request
  407. // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
  408. type AppEngineRouting struct {
  409. // App service.
  410. //
  411. // By default, the task is sent to the service which is the default
  412. // service when the task is attempted.
  413. //
  414. // For some queues or tasks which were created using the App Engine
  415. // Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
  416. // not parsable into
  417. // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
  418. // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
  419. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
  420. // example, some tasks which were created using the App Engine SDK use a
  421. // custom domain name; custom domains are not parsed by Cloud Tasks. If
  422. // [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
  423. // then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
  424. // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
  425. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
  426. // empty string.
  427. Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
  428. // App version.
  429. //
  430. // By default, the task is sent to the version which is the default
  431. // version when the task is attempted.
  432. //
  433. // For some queues or tasks which were created using the App Engine
  434. // Task Queue API, [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is
  435. // not parsable into
  436. // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
  437. // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
  438. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]. For
  439. // example, some tasks which were created using the App Engine SDK use a
  440. // custom domain name; custom domains are not parsed by Cloud Tasks. If
  441. // [host][google.cloud.tasks.v2beta2.AppEngineRouting.host] is not parsable,
  442. // then [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
  443. // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], and
  444. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] are the
  445. // empty string.
  446. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  447. // App instance.
  448. //
  449. // By default, the task is sent to an instance which is available when
  450. // the task is attempted.
  451. //
  452. // Requests can only be sent to a specific instance if
  453. // [manual scaling is used in App Engine
  454. // Standard](https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).
  455. // App Engine Flex does not support instances. For more information, see
  456. // [App Engine Standard request
  457. // routing](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed)
  458. // and [App Engine Flex request
  459. // routing](https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed).
  460. Instance string `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
  461. // Output only. The host that the task is sent to.
  462. //
  463. // For more information, see
  464. // [How Requests are
  465. // Routed](https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed).
  466. //
  467. // The host is constructed as:
  468. //
  469. //
  470. // * `host = [application_domain_name]`</br>
  471. // `| [service] + '.' + [application_domain_name]`</br>
  472. // `| [version] + '.' + [application_domain_name]`</br>
  473. // `| [version_dot_service]+ '.' + [application_domain_name]`</br>
  474. // `| [instance] + '.' + [application_domain_name]`</br>
  475. // `| [instance_dot_service] + '.' + [application_domain_name]`</br>
  476. // `| [instance_dot_version] + '.' + [application_domain_name]`</br>
  477. // `| [instance_dot_version_dot_service] + '.' + [application_domain_name]`
  478. //
  479. // * `application_domain_name` = The domain name of the app, for
  480. // example <app-id>.appspot.com, which is associated with the
  481. // queue's project ID. Some tasks which were created using the App Engine
  482. // SDK use a custom domain name.
  483. //
  484. // * `service =`
  485. // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
  486. //
  487. // * `version =`
  488. // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
  489. //
  490. // * `version_dot_service =`
  491. // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.' +`
  492. // [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
  493. //
  494. // * `instance =`
  495. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance]
  496. //
  497. // * `instance_dot_service =`
  498. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
  499. // +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
  500. //
  501. // * `instance_dot_version =`
  502. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
  503. // +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version]
  504. //
  505. // * `instance_dot_version_dot_service =`
  506. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] `+ '.'
  507. // +` [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] `+ '.'
  508. // +` [service][google.cloud.tasks.v2beta2.AppEngineRouting.service]
  509. //
  510. // If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service] is empty,
  511. // then the task will be sent to the service which is the default service when
  512. // the task is attempted.
  513. //
  514. // If [version][google.cloud.tasks.v2beta2.AppEngineRouting.version] is empty,
  515. // then the task will be sent to the version which is the default version when
  516. // the task is attempted.
  517. //
  518. // If [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
  519. // empty, then the task will be sent to an instance which is available when
  520. // the task is attempted.
  521. //
  522. // If [service][google.cloud.tasks.v2beta2.AppEngineRouting.service],
  523. // [version][google.cloud.tasks.v2beta2.AppEngineRouting.version], or
  524. // [instance][google.cloud.tasks.v2beta2.AppEngineRouting.instance] is
  525. // invalid, then the task will be sent to the default version of the default
  526. // service when the task is attempted.
  527. Host string `protobuf:"bytes,4,opt,name=host,proto3" json:"host,omitempty"`
  528. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  529. XXX_unrecognized []byte `json:"-"`
  530. XXX_sizecache int32 `json:"-"`
  531. }
  532. func (m *AppEngineRouting) Reset() { *m = AppEngineRouting{} }
  533. func (m *AppEngineRouting) String() string { return proto.CompactTextString(m) }
  534. func (*AppEngineRouting) ProtoMessage() {}
  535. func (*AppEngineRouting) Descriptor() ([]byte, []int) {
  536. return fileDescriptor_target_85034d0cc39aee7f, []int{4}
  537. }
  538. func (m *AppEngineRouting) XXX_Unmarshal(b []byte) error {
  539. return xxx_messageInfo_AppEngineRouting.Unmarshal(m, b)
  540. }
  541. func (m *AppEngineRouting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  542. return xxx_messageInfo_AppEngineRouting.Marshal(b, m, deterministic)
  543. }
  544. func (dst *AppEngineRouting) XXX_Merge(src proto.Message) {
  545. xxx_messageInfo_AppEngineRouting.Merge(dst, src)
  546. }
  547. func (m *AppEngineRouting) XXX_Size() int {
  548. return xxx_messageInfo_AppEngineRouting.Size(m)
  549. }
  550. func (m *AppEngineRouting) XXX_DiscardUnknown() {
  551. xxx_messageInfo_AppEngineRouting.DiscardUnknown(m)
  552. }
  553. var xxx_messageInfo_AppEngineRouting proto.InternalMessageInfo
  554. func (m *AppEngineRouting) GetService() string {
  555. if m != nil {
  556. return m.Service
  557. }
  558. return ""
  559. }
  560. func (m *AppEngineRouting) GetVersion() string {
  561. if m != nil {
  562. return m.Version
  563. }
  564. return ""
  565. }
  566. func (m *AppEngineRouting) GetInstance() string {
  567. if m != nil {
  568. return m.Instance
  569. }
  570. return ""
  571. }
  572. func (m *AppEngineRouting) GetHost() string {
  573. if m != nil {
  574. return m.Host
  575. }
  576. return ""
  577. }
  578. func init() {
  579. proto.RegisterType((*PullTarget)(nil), "google.cloud.tasks.v2beta2.PullTarget")
  580. proto.RegisterType((*PullMessage)(nil), "google.cloud.tasks.v2beta2.PullMessage")
  581. proto.RegisterType((*AppEngineHttpTarget)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpTarget")
  582. proto.RegisterType((*AppEngineHttpRequest)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpRequest")
  583. proto.RegisterMapType((map[string]string)(nil), "google.cloud.tasks.v2beta2.AppEngineHttpRequest.HeadersEntry")
  584. proto.RegisterType((*AppEngineRouting)(nil), "google.cloud.tasks.v2beta2.AppEngineRouting")
  585. proto.RegisterEnum("google.cloud.tasks.v2beta2.HttpMethod", HttpMethod_name, HttpMethod_value)
  586. }
  587. func init() {
  588. proto.RegisterFile("google/cloud/tasks/v2beta2/target.proto", fileDescriptor_target_85034d0cc39aee7f)
  589. }
  590. var fileDescriptor_target_85034d0cc39aee7f = []byte{
  591. // 557 bytes of a gzipped FileDescriptorProto
  592. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xcf, 0x6f, 0xd3, 0x4c,
  593. 0x10, 0xfd, 0x5c, 0xa7, 0xbf, 0xc6, 0xd1, 0x27, 0x6b, 0xa9, 0x84, 0x95, 0xa2, 0xaa, 0xe4, 0x00,
  594. 0x15, 0x42, 0xb6, 0x14, 0x2e, 0x50, 0x84, 0x50, 0x4b, 0x4c, 0x53, 0x89, 0x12, 0xcb, 0x75, 0x84,
  595. 0x54, 0x0e, 0xd6, 0x26, 0x19, 0x1c, 0x2b, 0xee, 0xae, 0xd9, 0x5d, 0x5b, 0xca, 0x95, 0x3b, 0xff,
  596. 0x33, 0xf2, 0xda, 0x09, 0x69, 0x80, 0x0a, 0x6e, 0xf3, 0x66, 0xde, 0xbc, 0xc9, 0xbc, 0xf1, 0x06,
  597. 0x9e, 0x26, 0x9c, 0x27, 0x19, 0x7a, 0x93, 0x8c, 0x17, 0x53, 0x4f, 0x51, 0x39, 0x97, 0x5e, 0xd9,
  598. 0x1b, 0xa3, 0xa2, 0x3d, 0x4f, 0x51, 0x91, 0xa0, 0x72, 0x73, 0xc1, 0x15, 0x27, 0x9d, 0x9a, 0xe8,
  599. 0x6a, 0xa2, 0xab, 0x89, 0x6e, 0x43, 0xec, 0x3c, 0x6a, 0x44, 0x68, 0x9e, 0x7a, 0x94, 0x31, 0xae,
  600. 0xa8, 0x4a, 0x39, 0x93, 0x75, 0x67, 0xe7, 0xa8, 0xa9, 0x6a, 0x34, 0x2e, 0xbe, 0x78, 0xd3, 0x42,
  601. 0x68, 0x42, 0x5d, 0xef, 0xb6, 0x01, 0x82, 0x22, 0xcb, 0x22, 0x3d, 0xad, 0xfb, 0x0a, 0xac, 0x0a,
  602. 0x5d, 0xa1, 0x94, 0x34, 0x41, 0xe2, 0xc0, 0x6e, 0x4e, 0x17, 0x19, 0xa7, 0x53, 0xc7, 0x38, 0x36,
  603. 0x4e, 0xda, 0xe1, 0x12, 0x12, 0x1b, 0x4c, 0x45, 0x13, 0x67, 0xeb, 0xd8, 0x38, 0xd9, 0x0f, 0xab,
  604. 0xb0, 0xfb, 0xcd, 0x80, 0x07, 0x67, 0x79, 0xee, 0xb3, 0x24, 0x65, 0x38, 0x50, 0x2a, 0xaf, 0x25,
  605. 0xc9, 0x1c, 0x0e, 0x69, 0x9e, 0xc7, 0xa8, 0xf3, 0xb1, 0xe0, 0x85, 0x4a, 0x59, 0x12, 0xf3, 0x12,
  606. 0x85, 0x48, 0xa7, 0xa8, 0x75, 0xad, 0xde, 0x73, 0xf7, 0xcf, 0x0b, 0xba, 0x2b, 0xd5, 0xb0, 0x6e,
  607. 0x0e, 0x1d, 0xba, 0x91, 0x19, 0x36, 0x6a, 0xdd, 0xef, 0x26, 0x1c, 0xdc, 0xf9, 0x11, 0x21, 0x7e,
  608. 0x2d, 0x50, 0x2a, 0x72, 0x01, 0xd6, 0x4c, 0xa9, 0x3c, 0xbe, 0x45, 0x35, 0xe3, 0xf5, 0x36, 0xff,
  609. 0xf7, 0x9e, 0xdc, 0x37, 0xb5, 0xea, 0xbe, 0xd2, 0xec, 0x10, 0x66, 0xab, 0x98, 0xdc, 0x00, 0xf9,
  610. 0x75, 0x1d, 0xed, 0xc3, 0xbf, 0x6e, 0x61, 0x6f, 0x6e, 0x41, 0x1e, 0x43, 0x5b, 0x60, 0x46, 0x55,
  611. 0x5a, 0x62, 0x5c, 0x88, 0xcc, 0x31, 0xb5, 0xbb, 0xd6, 0x32, 0x37, 0x12, 0x19, 0xf9, 0x04, 0xbb,
  612. 0x33, 0xa4, 0x53, 0x14, 0xd2, 0x69, 0x1d, 0x9b, 0x27, 0x56, 0xef, 0xcd, 0x5f, 0xcd, 0x5c, 0xb3,
  613. 0xc2, 0x1d, 0xd4, 0xfd, 0x3e, 0x53, 0x62, 0x11, 0x2e, 0xd5, 0xd6, 0x4f, 0xbd, 0x7d, 0xe7, 0xd4,
  614. 0x9d, 0x53, 0x68, 0xaf, 0xb7, 0x54, 0xa7, 0x9f, 0xe3, 0x42, 0x5b, 0xb8, 0x1f, 0x56, 0x21, 0x39,
  615. 0x80, 0xed, 0x92, 0x66, 0x05, 0x36, 0x9f, 0x43, 0x0d, 0x4e, 0xb7, 0x5e, 0x1a, 0xdd, 0x12, 0xec,
  616. 0xcd, 0xbd, 0xab, 0x49, 0x12, 0x45, 0x99, 0x4e, 0xb0, 0xd1, 0x58, 0xc2, 0xaa, 0x52, 0xa2, 0x90,
  617. 0x29, 0x67, 0x8d, 0xd2, 0x12, 0x92, 0x0e, 0xec, 0xa5, 0x4c, 0x2a, 0xca, 0x26, 0xd8, 0xb8, 0xb2,
  618. 0xc2, 0x84, 0x40, 0x6b, 0xc6, 0xa5, 0x72, 0x5a, 0x3a, 0xaf, 0xe3, 0x67, 0x9f, 0x01, 0x7e, 0xde,
  619. 0x8f, 0x1c, 0xc2, 0xc3, 0x41, 0x14, 0x05, 0xf1, 0x95, 0x1f, 0x0d, 0x86, 0xfd, 0x78, 0xf4, 0xf1,
  620. 0x3a, 0xf0, 0xdf, 0x5d, 0xbe, 0xbf, 0xf4, 0xfb, 0xf6, 0x7f, 0x64, 0x0f, 0x5a, 0xc1, 0xf0, 0x3a,
  621. 0xb2, 0x0d, 0xb2, 0x0b, 0xe6, 0x85, 0x1f, 0xd9, 0x5b, 0x55, 0x6a, 0xe0, 0x9f, 0xf5, 0x6d, 0xb3,
  622. 0x4a, 0x05, 0xa3, 0xc8, 0x6e, 0x11, 0x80, 0x9d, 0xbe, 0xff, 0xc1, 0x8f, 0x7c, 0x7b, 0xfb, 0x3c,
  623. 0x87, 0xa3, 0x09, 0xbf, 0xbd, 0xc7, 0xf7, 0x73, 0xab, 0xfe, 0xf6, 0x83, 0xea, 0x85, 0x05, 0xc6,
  624. 0xcd, 0xdb, 0x86, 0x9a, 0xf0, 0x8c, 0xb2, 0xc4, 0xe5, 0x22, 0xf1, 0x12, 0x64, 0xfa, 0xfd, 0x79,
  625. 0x75, 0x89, 0xe6, 0xa9, 0xfc, 0xdd, 0xbf, 0xc0, 0x6b, 0x8d, 0xc6, 0x3b, 0x9a, 0xfb, 0xe2, 0x47,
  626. 0x00, 0x00, 0x00, 0xff, 0xff, 0xbb, 0x5d, 0x40, 0x26, 0x30, 0x04, 0x00, 0x00,
  627. }