SubmitJobRequest.php 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\Dataproc;
  18. class SubmitJobRequest extends \Google\Model
  19. {
  20. protected $jobType = Job::class;
  21. protected $jobDataType = '';
  22. /**
  23. * Optional. A unique id used to identify the request. If the server receives
  24. * two SubmitJobRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
  25. * google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s with
  26. * the same id, then the second request will be ignored and the first Job
  27. * created and stored in the backend is returned.It is recommended to always
  28. * set this value to a UUID
  29. * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
  30. * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
  31. * hyphens (-). The maximum length is 40 characters.
  32. *
  33. * @var string
  34. */
  35. public $requestId;
  36. /**
  37. * Required. The job resource.
  38. *
  39. * @param Job $job
  40. */
  41. public function setJob(Job $job)
  42. {
  43. $this->job = $job;
  44. }
  45. /**
  46. * @return Job
  47. */
  48. public function getJob()
  49. {
  50. return $this->job;
  51. }
  52. /**
  53. * Optional. A unique id used to identify the request. If the server receives
  54. * two SubmitJobRequest (https://cloud.google.com/dataproc/docs/reference/rpc/
  55. * google.cloud.dataproc.v1#google.cloud.dataproc.v1.SubmitJobRequest)s with
  56. * the same id, then the second request will be ignored and the first Job
  57. * created and stored in the backend is returned.It is recommended to always
  58. * set this value to a UUID
  59. * (https://en.wikipedia.org/wiki/Universally_unique_identifier).The id must
  60. * contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and
  61. * hyphens (-). The maximum length is 40 characters.
  62. *
  63. * @param string $requestId
  64. */
  65. public function setRequestId($requestId)
  66. {
  67. $this->requestId = $requestId;
  68. }
  69. /**
  70. * @return string
  71. */
  72. public function getRequestId()
  73. {
  74. return $this->requestId;
  75. }
  76. }
  77. // Adding a class alias for backwards compatibility with the previous class name.
  78. class_alias(SubmitJobRequest::class, 'Google_Service_Dataproc_SubmitJobRequest');