From 5acfacc97335319bd5d413f4c22af7cf57667576 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 16 Oct 2023 23:17:44 +0000 Subject: [PATCH] feat: expose display_name to batch v1 API (#6720) PiperOrigin-RevId: 573914933 Source-Link: https://github.com/googleapis/googleapis/commit/ab87375e21aa0bfd996ed50c3e197d8e76406e15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0eabaacbf7ffa1de6a8518c904acc3a1c3bc75be Copy-Tag: eyJwIjoiQmF0Y2gvLk93bEJvdC55YW1sIiwiaCI6IjBlYWJhYWNiZjdmZmExZGU2YTg1MThjOTA0YWNjM2ExYzNiYzc1YmUifQ== --- Batch/metadata/V1/Task.php | Bin 3898 -> 3925 bytes Batch/src/V1/Runnable.php | 46 +++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/Batch/metadata/V1/Task.php b/Batch/metadata/V1/Task.php index b77ddc6e6ba3032890af23533ee8a557325a9949..170f94ff72b566df08c4174f0d33922b86172a5a 100644 GIT binary patch delta 57 zcmV-90LK5i9@QSO^a2Bv7z&X}A+s0*;sOErlluk38W{=string display_name = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $display_name = ''; /** * Normally, a non-zero exit status causes the Task to fail. This flag allows * execution of other Runnables to continue instead. @@ -76,6 +85,11 @@ class Runnable extends \Google\Protobuf\Internal\Message * Script runnable. * @type \Google\Cloud\Batch\V1\Runnable\Barrier $barrier * Barrier runnable. + * @type string $display_name + * Optional. DisplayName is an optional field that can be provided by the + * caller. If provided, it will be used in logs and other outputs to identify + * the script, making it easier for users to understand the logs. If not + * provided the index of the runnable will be used for outputs. * @type bool $ignore_exit_status * Normally, a non-zero exit status causes the Task to fail. This flag allows * execution of other Runnables to continue instead. @@ -198,6 +212,38 @@ public function setBarrier($var) return $this; } + /** + * Optional. DisplayName is an optional field that can be provided by the + * caller. If provided, it will be used in logs and other outputs to identify + * the script, making it easier for users to understand the logs. If not + * provided the index of the runnable will be used for outputs. + * + * Generated from protobuf field string display_name = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getDisplayName() + { + return $this->display_name; + } + + /** + * Optional. DisplayName is an optional field that can be provided by the + * caller. If provided, it will be used in logs and other outputs to identify + * the script, making it easier for users to understand the logs. If not + * provided the index of the runnable will be used for outputs. + * + * Generated from protobuf field string display_name = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + /** * Normally, a non-zero exit status causes the Task to fail. This flag allows * execution of other Runnables to continue instead.