diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml
deleted file mode 100644
index e68b565df..000000000
--- a/.buildkite/pipeline.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-steps:
- - label: ":php: check"
- agents:
- queue: "default"
- docker: "*"
- command: "make echo"
- plugins:
- - docker-compose#v3.1.0:
- run: build
- config: docker/buildkite/docker-compose.yml
-
diff --git a/.gitattributes b/.gitattributes
index 24642f03c..4bf018f2b 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,12 +1,11 @@
* text=auto
-.buildkite/ export-ignore
-.github/ export-ignore
-docker/ export-ignore
-proto/ export-ignore
-tests/ export-ignore
+/.* export-ignore
+/config/ export-ignore
+/resources/scripts/ export-ignore
+/runtime/ export-ignore
+/tests/ export-ignore
-.php_cs.dist export-ignore
-Makefile export-ignore
-phpunit.xml export-ignore
-psalm.xml export-ignore
+/*.xml export-ignore
+/*.xml.dist export-ignore
+Makefile export-ignore
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
new file mode 100644
index 000000000..b4d47c181
--- /dev/null
+++ b/.github/CODEOWNERS
@@ -0,0 +1,3 @@
+* @temporalio/sdk
+* @roxblnfk
+* @wolfy-j
diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml
deleted file mode 100644
index 971833139..000000000
--- a/.github/workflows/code-style.yml
+++ /dev/null
@@ -1,42 +0,0 @@
-name: Code Style
-
-on: [push, pull_request]
-
-jobs:
- psalm:
- name: Psalm Validation (PHP ${{ matrix.php }}, OS ${{ matrix.os }})
- runs-on: ${{ matrix.os }}
- continue-on-error: true
- strategy:
- fail-fast: false
- matrix:
- php: [8.2]
- os: [ubuntu-latest]
- steps:
- - name: Set up PHP ${{ matrix.php }}
- uses: shivammathur/setup-php@v2
- with:
- php-version: ${{ matrix.php }}
- extensions: dom
-
- - name: Check Out Code
- uses: actions/checkout@v2
- with:
- fetch-depth: 1
-
- - name: Get Composer Cache Directory
- id: composer-cache
- run: echo "::set-output name=dir::$(composer config cache-files-dir)"
-
- - name: Cache Dependencies
- uses: actions/cache@v3
- with:
- path: ${{ steps.composer-cache.outputs.dir }}
- key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
- restore-keys: php-${{ matrix.php }}-${{ runner.os }}-composer-
-
- - name: Install Composer Dependencies
- run: composer install --prefer-dist --no-interaction
-
- - name: Run Tests
- run: vendor/bin/psalm
diff --git a/.github/workflows/cs-fix.yml b/.github/workflows/cs-fix.yml
new file mode 100644
index 000000000..0395b27bd
--- /dev/null
+++ b/.github/workflows/cs-fix.yml
@@ -0,0 +1,12 @@
+on:
+ push:
+ branches:
+ - '*'
+
+name: Fix Code Style
+
+jobs:
+ cs-fix:
+ permissions:
+ contents: write
+ uses: spiral/gh-actions/.github/workflows/cs-fix.yml@master
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
new file mode 100644
index 000000000..83ac23fd8
--- /dev/null
+++ b/.github/workflows/docs.yml
@@ -0,0 +1,40 @@
+name: Generating API documentation
+
+on:
+ push:
+ branches:
+ - "master"
+
+jobs:
+ docs:
+ name: Generating API documentation
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: recursive
+
+ - uses: actions/setup-node@v1
+ with:
+ node-version: 20
+
+ - name: Create documentation directory
+ run: mkdir -p docs/api
+
+ - name: Cache phpDocumentor build files
+ id: phpdocumentor-cache
+ uses: actions/cache@v3
+ with:
+ path: .phpdoc/cache
+ key: ${{ runner.os }}-phpdocumentor-${{ github.sha }}
+ restore-keys: |
+ ${{ runner.os }}-phpdocumentor-
+
+ - name: Build with phpDocumentor
+ run: docker run --rm --volume "$(pwd):/data" phpdoc/phpdoc:3.4 -vv --template default
+
+ - name: Upload documentation
+ env:
+ VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
+ VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
+ run: npx vercel deploy docs/api -t ${{ secrets.VERCEL_TOKEN }} --prod --yes
diff --git a/.github/workflows/run-test-suite.yml b/.github/workflows/run-test-suite.yml
index f51372de8..f640feee1 100644
--- a/.github/workflows/run-test-suite.yml
+++ b/.github/workflows/run-test-suite.yml
@@ -3,7 +3,7 @@ name: Unit
on:
workflow_call:
inputs:
- test-suite:
+ test-command:
required: true
type: string
fail-fast:
@@ -13,11 +13,11 @@ on:
test-timeout:
required: false
type: number
- default: 10
- run-temporal-test-server:
+ default: 15
+ download-binaries:
required: false
type: boolean
- default: true
+ default: false
push:
branches:
- 'master'
@@ -40,78 +40,56 @@ on:
jobs:
test:
- name: (PHP ${{ matrix.php }}, OS ${{ matrix.os }}, with ${{ matrix.dependencies }} deps
+ name: PHP${{ matrix.php }}${{ matrix.extensions-suffix }}, ${{ matrix.os }}, ${{ matrix.dependencies }} deps
runs-on: ${{ matrix.os }}
timeout-minutes: ${{ inputs.test-timeout }}
- env: {GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'}
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: ${{ inputs.fail-fast }}
matrix:
- php: [ 8.1, 8.2 ]
- os: [ ubuntu-latest, windows-latest ]
+ php: [ 8.1, 8.2, 8.3, 8.4 ]
+ os: [ ubuntu-latest ]
+ extensions-suffix: [ '', ', protobuf' ]
dependencies: [ lowest , highest ]
- exclude:
+ include:
+ # Add Windows
- os: windows-latest
- php: 8.2
+ extensions-suffix: ', protobuf'
+ php: 8.1
+ dependencies: highest
steps:
- name: Set Git To Use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
+ - name: Check Out Code
+ uses: actions/checkout@v4
+
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- tools: composer:v2
- extensions: dom, sockets, grpc, curl
-
- - name: Check Out Code
- uses: actions/checkout@v2
- with:
- fetch-depth: 1
+ extensions: dom, sockets, grpc, curl ${{ matrix.extensions-suffix }}
- name: Validate composer.json and composer.lock
run: composer validate --strict
- - name: Get Composer Cache Directory
- id: composer-cache
- run: |
- echo "::set-output name=dir::$(composer config cache-files-dir)"
-
- - name: Cache Composer Dependencies
- uses: actions/cache@v3
+ - name: Install dependencies with composer
+ uses: ramsey/composer-install@v3
with:
- path: ${{ steps.composer-cache.outputs.dir }}
- key: php-${{ matrix.php }}-${{ matrix.os }}-composer-${{ hashFiles('**/composer.lock') }}
- restore-keys: |
- php-${{ matrix.php }}-${{ matrix.os }}-composer-
+ dependency-versions: ${{ matrix.dependencies }}
- - name: Install lowest dependencies from composer.json
- if: matrix.dependencies == 'lowest'
- run: composer update --no-interaction --no-progress --prefer-lowest
+ - name: Validate lowest dependencies
+ if: matrix.dependencies == 'lowest' && matrix.php == '8.1'
env:
COMPOSER_POOL_OPTIMIZER: 0
-
- - name: Validate lowest dependencies
- if: matrix.dependencies == 'lowest'
run: vendor/bin/validate-prefer-lowest
- - name: Install highest dependencies from composer.json
- if: matrix.dependencies == 'highest'
- run: composer update --no-interaction --no-progress
-
- - name: Download RoadRunner
- if: inputs.run-temporal-test-server == true
- run: |
- vendor/bin/rr get --no-interaction
-
- - name: Run tests with Temporal test server
- if: inputs.run-temporal-test-server == true
- run: vendor/bin/phpunit --testsuite=${{ inputs.test-suite }} --testdox --verbose --exclude skip-on-test-server
- env:
- RUN_TEMPORAL_TEST_SERVER: ${{ inputs.run-temporal-test-server }}
+ - name: Download binaries
+ if: inputs.download-binaries == true
+ run: composer get:binaries
- - name: Run tests without Temporal test server
- if: inputs.run-temporal-test-server == false
- run: vendor/bin/phpunit --testsuite=${{ inputs.test-suite }} --testdox --verbose
+ - name: Run tests
+ run: ${{ inputs.test-command }}
diff --git a/.github/workflows/security-check.yml b/.github/workflows/security-check.yml
index 0cc0f7d2d..9724c78d1 100644
--- a/.github/workflows/security-check.yml
+++ b/.github/workflows/security-check.yml
@@ -2,6 +2,10 @@ name: Security
on: [push, pull_request]
+concurrency:
+ cancel-in-progress: ${{ !contains(github.ref, 'release/')}}
+ group: tests-${{ github.workflow }}-${{ github.ref }}
+
jobs:
security:
name: Security Checks (PHP ${{ matrix.php }}, OS ${{ matrix.os }})
@@ -20,23 +24,12 @@ jobs:
extensions: dom, sockets, grpc, curl
- name: Check Out Code
- uses: actions/checkout@v2
- with:
- fetch-depth: 1
+ uses: actions/checkout@v4
- - name: Get Composer Cache Directory
- id: composer-cache
- run: echo "::set-output name=dir::$(composer config cache-files-dir)"
-
- - name: Cache Dependencies
- uses: actions/cache@v3
+ - name: Install dependencies with composer
+ uses: ramsey/composer-install@v3
with:
- path: ${{ steps.composer-cache.outputs.dir }}
- key: php-${{ matrix.php }}-${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
- restore-keys: php-${{ matrix.php }}-${{ runner.os }}-composer-
-
- - name: Install Composer Dependencies
- run: composer install --prefer-dist --no-interaction
+ dependency-versions: ${{ matrix.dependencies }}
- name: Verify
run: composer require --dev roave/security-advisories:dev-latest
diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml
deleted file mode 100644
index 44f6b99e4..000000000
--- a/.github/workflows/semgrep.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: Semgrep
-on:
- workflow_dispatch: {}
- pull_request: {}
- push:
- branches:
- - main
- - master
- paths:
- - .github/workflows/semgrep.yml
- schedule:
- # random HH:MM to avoid a load spike on GitHub Actions at 00:00
- - cron: '15 21 * * *'
-jobs:
- semgrep:
- name: semgrep/ci
- runs-on: ubuntu-20.04
- env:
- SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
- container:
- image: returntocorp/semgrep
- if: (github.actor != 'dependabot[bot]')
- steps:
- - uses: actions/checkout@v3
- - run: semgrep ci
diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml
new file mode 100644
index 000000000..f63ff1eb8
--- /dev/null
+++ b/.github/workflows/static-analysis.yml
@@ -0,0 +1,64 @@
+name: Static Analysis
+
+on: [push, pull_request]
+
+concurrency:
+ cancel-in-progress: ${{ !contains(github.ref, 'release/')}}
+ group: tests-${{ github.workflow }}-${{ github.ref }}
+
+jobs:
+ psalm:
+ name: Psalm Validation (PHP ${{ matrix.php }}, OS ${{ matrix.os }})
+ runs-on: ${{ matrix.os }}
+ continue-on-error: true
+ strategy:
+ fail-fast: false
+ matrix:
+ php: [8.3]
+ os: [ubuntu-latest]
+ steps:
+ - name: Set up PHP ${{ matrix.php }}
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ extensions: dom
+
+ - name: Check Out Code
+ uses: actions/checkout@v4
+
+ - name: Install dependencies with composer
+ uses: ramsey/composer-install@v3
+ with:
+ dependency-versions: ${{ matrix.dependencies }}
+
+ - name: 🔍 Run Tests
+ run: vendor/bin/psalm
+
+ arch:
+ name: Architecture tests
+ runs-on: ${{ matrix.os }}
+ continue-on-error: true
+ strategy:
+ fail-fast: false
+ matrix:
+ php: [8.3]
+ os: [ubuntu-latest]
+ steps:
+ - name: Set up PHP ${{ matrix.php }}
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php }}
+ extensions: dom
+
+ - name: Check Out Code
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
+
+ - name: Install dependencies with composer
+ uses: ramsey/composer-install@v3
+ with:
+ dependency-versions: ${{ matrix.dependencies }}
+
+ - name: 🔍 Run Tests
+ run: composer test:arch
diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml
index 3fdd35daf..caae9bdb0 100644
--- a/.github/workflows/testing.yml
+++ b/.github/workflows/testing.yml
@@ -2,26 +2,38 @@ name: Testing
on: [push, pull_request]
+concurrency:
+ cancel-in-progress: ${{ !contains(github.ref, 'release/')}}
+ group: tests-${{ github.workflow }}-${{ github.ref }}
+
jobs:
unit:
name: Unit Testing
uses: ./.github/workflows/run-test-suite.yml
with:
fail-fast: false
- test-suite: Unit
- run-temporal-test-server: false
+ test-command: composer test:unit
- feature:
- name: Feature Testing
- uses: ./.github/workflows/run-test-suite.yml
- with:
- fail-fast: true
- test-suite: Feature
- test-timeout: 20
+# feature:
+# name: Feature Testing
+# uses: ./.github/workflows/run-test-suite.yml
+# with:
+# fail-fast: true
+# test-command: composer test:feat
+# test-timeout: 20
functional:
name: Functional Testing
uses: ./.github/workflows/run-test-suite.yml
with:
fail-fast: false
- test-suite: Functional
+ test-command: composer test:func
+ download-binaries: true
+
+ acceptance:
+ name: Acceptance Testing
+ uses: ./.github/workflows/run-test-suite.yml
+ with:
+ fail-fast: false
+ test-command: composer test:accept
+ download-binaries: true
diff --git a/.gitignore b/.gitignore
index 023065a50..94fb259f8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,11 +12,12 @@ composer.phar
Thumbs.db
# Cache
-.phpunit.result.cache
.php_cs.cache
# Other
+/.rr.yaml
*.exe
rr
-.rr.yaml
temporal-test-server
+.ai
+.context
diff --git a/.gitmodules b/.gitmodules
deleted file mode 100644
index 7959abff5..000000000
--- a/.gitmodules
+++ /dev/null
@@ -1,3 +0,0 @@
-[submodule "proto"]
- path = proto
- url = git@github.com:temporalio/api.git
diff --git a/.idea/icon.svg b/.idea/icon.svg
new file mode 100644
index 000000000..cdce3a6bb
--- /dev/null
+++ b/.idea/icon.svg
@@ -0,0 +1,3 @@
+
diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php
new file mode 100644
index 000000000..825e527a0
--- /dev/null
+++ b/.php-cs-fixer.dist.php
@@ -0,0 +1,12 @@
+include(__DIR__ . '/src')
+ ->include(__DIR__ . '/testing/src')
+ ->include(__FILE__)
+ ->allowRisky(true)
+ ->build();
diff --git a/.php_cs.dist b/.php_cs.dist
deleted file mode 100644
index 1c1e254ee..000000000
--- a/.php_cs.dist
+++ /dev/null
@@ -1,37 +0,0 @@
-exclude('tests')
- ->in(__DIR__ . '/src')
-;
-
-return (new Config())
- ->setRiskyAllowed(true)
- ->setRules([
- '@PSR12' => true,
- '@PHP80Migration:risky' => true,
- 'list_syntax' => ['syntax' => 'short'],
- 'no_unused_imports' => true,
- 'declare_strict_types' => true,
- 'void_return' => true,
- 'ordered_class_elements' => true,
- 'linebreak_after_opening_tag' => true,
- 'single_quote' => true,
- 'no_blank_lines_after_phpdoc' => true,
- 'unary_operator_spaces' => true,
- 'no_useless_else' => true,
- 'no_useless_return' => true,
- 'trailing_comma_in_multiline_array' => true,
- ])
- ->setFinder($finder)
-;
diff --git a/README.md b/README.md
index 3d0614769..e33632efe 100644
--- a/README.md
+++ b/README.md
@@ -1,42 +1,170 @@
# Temporal PHP SDK
-[](https://github.com/temporalio/php-sdk/actions)
-[](https://packagist.org/packages/temporal/sdk)
-[](https://app.fossa.com/projects/git%2Bgithub.com%2Ftemporalio%2Fsdk-php?ref=badge_shield)
-
-## Introduction
-
Temporal is a distributed, scalable, durable, and highly available orchestration
engine used to execute asynchronous long-running business logic in a scalable
and resilient way.
-"Temporal PHP SDK" is the framework for authoring workflows and activities using
-PHP language.
+Temporal PHP SDK is the framework for authoring [Workflows](https://docs.temporal.io/workflows) and [Activities](https://docs.temporal.io/activities) using PHP language.
+
+**Table of contents:**
+- [Get starting](#get-starting)
+ - [Installation](#installation)
+ - [Usage](#usage)
+- [Testing](#testing)
+- [Dev environment](#dev-environment)
+ - [Temporal CLI](#temporal-cli)
+ - [Buggregator](#buggregator)
+- [Resources](#resources)
+- [License](#license)
-## Installation
+## Get starting
-SDK is available as composer package and can be installed using the
-following command in a root of your project:
+### Installation
+
+Install the SDK using Composer:
```bash
composer require temporal/sdk
```
-Make sure to install [RoadRunner](https://github.com/spiral/roadrunner) to enable workflow and activity consumption in your PHP workers.
+[](https://packagist.org/packages/temporal/sdk)
+[](https://packagist.org/packages/temporal/sdk)
+[](https://packagist.org/packages/temporal/sdk/stats)
+[](LICENSE.md)
+
+The SDK includes two main components: [Clients](https://docs.temporal.io/develop/php/temporal-clients) and Workers.
+The Clients component is used to start, schedule, and manage Workflows;
+the Workers component is used to execute Workflows and Activities.
+
+The Clients component requires the [`grpc`](https://pecl.php.net/package/grpc) extension,
+and the Workers component requires [RoadRunner](https://roadrunner.dev).
+It's recommended to use both components with the [`protobuf`](https://pecl.php.net/package/protobuf) extension
+in production to improve performance.
+
+| | Client | Worker |
+|--------------|-------------|-------------|
+| RoadRunner | — | required |
+| ext-grpc | required | — |
+| ext-protobuf | recommended | recommended |
+
+To download RoadRunner, you can use the following command:
+
+```bash
+./vendor/bin/rr get
+```
+
+### Usage
+
+If you are using [Spiral](https://github.com/spiral/framework),
+follow the [instructions in the documentation](https://spiral.dev/docs/temporal-configuration/).
+
+If you are using the SDK without integrations, the following sections of the documentation may be helpful:
+- [How to run Worker Processes](https://docs.temporal.io/develop/php/core-application#run-a-dev-worker)
+- [How to develop a basic Workflow](https://docs.temporal.io/develop/php/core-application#develop-workflows)
+- [How to connect a Temporal Client to a Temporal Service](https://docs.temporal.io/develop/php/temporal-clients#connect-to-a-dev-cluster)
+- [How to start a Workflow Execution](https://docs.temporal.io/develop/php/temporal-clients#start-workflow-execution)
-## Usage
+> [!NOTE]
+> Check out [the repository with examples](https://github.com/temporalio/samples-php) of using the PHP SDK.
-See [examples](https://github.com/temporalio/samples-php) to get started.
+> [!WARNING]
+> Since version [`2.11.0`](https://github.com/temporalio/sdk-php/releases/tag/v2.11.0),
+> [feature flags](https://github.com/temporalio/sdk-php/blob/master/src/Worker/FeatureFlags.php) were introduced
+> that change the behavior of the entire PHP worker.
+> It's recommended to disable deprecated behavior.
## Testing
-See [testing manual](testing/Readme.md) to get started.
+The PHP SDK includes a toolkit for testing Workflows.
+There is [documentation](https://docs.temporal.io/develop/php/testing-suite) and [dev guide](testing/Readme.md) on how to test a Workflow using Activity mocking.
+
+To ensure the determinism of a Workflow,
+you can also use the [Replay API in tests](https://docs.temporal.io/develop/php/testing-suite#replay).
+
+## Dev environment
+
+Some recommendations for setting up a development environment:
+
+### Temporal CLI
+
+The [Temporal CLI](https://docs.temporal.io/cli) provides direct access to a Temporal Service via the terminal.
+You can use it to start, stop, inspect and operate on Workflows and Activities,
+and perform administrative tasks such as Namespace, Schedule, and Task Queue management.
+The Temporal CLI also includes an embedded Temporal Service suitable for use in development and CI/CD.
+It includes the Temporal Server, SQLite persistence, and the Temporal Web UI.
+
+Run the following command to start the Temporal Service in development mode:
+
+```bash
+temporal server start-dev --log-level error
+```
+
+Experimental features:
+- Add flags `--dynamic-config-value frontend.enableUpdateWorkflowExecution=true --dynamic-config-value frontend.enableUpdateWorkflowExecutionAsyncAccepted=true`
+to enable the [Workflow Update feature](https://docs.temporal.io/encyclopedia/workflow-message-passing#sending-updates).
+- Add flag `--dynamic-config-value frontend.enableExecuteMultiOperation=true` to enable [`updateWithStart()` feature](https://php.temporal.io/classes/Temporal-Client-WorkflowClient.html#method_updateWithStart).
+- Add flag `--dynamic-config-value system.enableEagerWorkflowStart=true` to enable the [Eager Workflow Start feature](https://docs.temporal.io/develop/advanced-start-options#eager-start).
+
+### Buggregator
+
+During development, you might need to dump a variable, throw an error trace, or simply look at the call stack.
+Since Workflows and Activities run in RoadRunner workers, you cannot use `var_dump`,
+`print_r`, `echo`, and other functions that output data to STDOUT.
+
+Instead, use [Buggregator](https://buggregator.dev) along with [Trap](https://github.com/buggregator/trap).
+In this case, dumps, traces, and logs will be sent via socket to your local Buggregator server,
+where you can view them in a convenient web interface.
+
+> [!TIP]
+> Trap is a wrapper around `symfony/var-dumper`, providing additional debugging capabilities.
+> Moreover, Trap patches var-dumper for outputting protobuf structures, which is very handy when working with Temporal.
+
+To run Buggregator in Docker, execute the command below
+and follow the [instructions](https://docs.buggregator.dev/config/var-dumper.html#configuration):
+
+```bash
+docker run --rm -p 8000:8000 -p 1025:1025 -p 9912:9912 -p 9913:9913 ghcr.io/buggregator/server:latest
+```
+
+If you are not using Docker or running PHP code outside a container, you can use Trap as a compact server:
+
+```bash
+./vendor/bin/trap --ui=8000
+```
+
+Now use the `trap()`, `tr()`, or `dump()` functions to output data to Buggregator.
+Web UI will be available at `http://localhost:8000`.
+
+### IDE Plugin
+
+For advanced autocomplete while coding in PHPStorm, use [Meta Storm plugin](https://github.com/xepozz/meta-storm-idea-plugin).
+The plugin provides better autocomplete and links Workflow and Activity when writing and debugging code.
+
+## Resources
+
+Read the docs
+[](https://docs.temporal.io/)
+[](https://docs.temporal.io/develop/php)
+[](https://php.temporal.io/)
+
+Ask a question
+[](https://github.com/temporalio/sdk-php/issues)
+[](https://t.mp/slack)
+[](https://community.temporal.io/tag/php-sdk)
+[](https://discord.gg/FwmDtGQe55)
+
+Stay tuned
+[](https://temporal.io/blog)
+[](https://www.youtube.com/temporalio)
+[](https://x.com/temporalio)
+
+Additionally
+[](https://temporal.io/community)
+[](https://github.com/temporalio/awesome-temporal)
-## Documentation
-The documentation on how to use the Temporal PHP SDK and client is [here](https://docs.temporal.io/).
## License
-MIT License, please see [LICENSE](LICENSE.md) for details.
+Temporal PHP SDK is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
[](https://app.fossa.com/projects/git%2Bgithub.com%2Ftemporalio%2Fsdk-php?ref=badge_large)
diff --git a/api/v1/GPBMetadata/Dependencies/Gogoproto/Gogo.php b/api/v1/GPBMetadata/Dependencies/Gogoproto/Gogo.php
deleted file mode 100644
index 86c1bb147..000000000
--- a/api/v1/GPBMetadata/Dependencies/Gogoproto/Gogo.php
+++ /dev/null
@@ -1,26 +0,0 @@
-internalAddGeneratedFile(
- '
-~
-!dependencies/gogoproto/gogo.proto gogoproto google/protobuf/descriptor.protoB$Z"github.com/gogo/protobuf/gogoprotobproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Protocol.php b/api/v1/GPBMetadata/Protocol.php
deleted file mode 100644
index 9a3078f0f..000000000
--- a/api/v1/GPBMetadata/Protocol.php
+++ /dev/null
@@ -1,37 +0,0 @@
-internalAddGeneratedFile(
- '
-
-protocol.prototemporal.roadrunner.internal%temporal/api/failure/v1/message.proto"@
-Frame7
-messages (2%.temporal.roadrunner.internal.Message"
-Message
-
-id (
-command (
-options (1
-failure (2 .temporal.api.failure.v1.Failure2
-payloads (2 .temporal.api.common.v1.Payloadsbproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Batch/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Batch/V1/Message.php
deleted file mode 100644
index 3336a4ee7..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Batch/V1/Message.php
+++ /dev/null
@@ -1,56 +0,0 @@
-internalAddGeneratedFile(
- '
-
-#temporal/api/batch/v1/message.prototemporal.api.batch.v1google/protobuf/timestamp.proto$temporal/api/common/v1/message.proto+temporal/api/enums/v1/batch_operation.proto!temporal/api/enums/v1/reset.proto"
-BatchOperationInfo
-job_id ( 9
-state (2*.temporal.api.enums.v1.BatchOperationState4
-
-start_time (2.google.protobuf.TimestampB4
-
-close_time (2.google.protobuf.TimestampB"`
-BatchOperationTermination1
-details (2 .temporal.api.common.v1.Payloads
-identity ( "
-BatchOperationSignal
-signal ( /
-input (2 .temporal.api.common.v1.Payloads.
-header (2.temporal.api.common.v1.Header
-identity ( ".
-BatchOperationCancellation
-identity ( "*
-BatchOperationDeletion
-identity ( "
-BatchOperationReset4
-
-reset_type (2 .temporal.api.enums.v1.ResetTypeC
-reset_reapply_type (2\'.temporal.api.enums.v1.ResetReapplyType
-identity ( B
-io.temporal.api.batch.v1BMessageProtoPZ!go.temporal.io/api/batch/v1;batchTemporalio.Api.Batch.V1Temporalio::Api::Batch::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Command/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Command/V1/Message.php
deleted file mode 100644
index 6d3b637e5..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Command/V1/Message.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Common/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Common/V1/Message.php
deleted file mode 100644
index b974c61c2..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Common/V1/Message.php
+++ /dev/null
@@ -1,78 +0,0 @@
-internalAddGeneratedFile(
- '
-
-$temporal/api/common/v1/message.prototemporal.api.common.v1!dependencies/gogoproto/gogo.proto"temporal/api/enums/v1/common.proto"T
-DataBlob:
-
encoding_type (2#.temporal.api.enums.v1.EncodingType
-data ("=
-Payloads1
-payloads (2.temporal.api.common.v1.Payload"
-Payload?
-metadata (2-.temporal.api.common.v1.Payload.MetadataEntry
-data (/
-
MetadataEntry
-key (
-value (:8"
-SearchAttributesS
-indexed_fields (2;.temporal.api.common.v1.SearchAttributes.IndexedFieldsEntryU
-IndexedFieldsEntry
-key ( .
-value (2.temporal.api.common.v1.Payload:8"
-Memo8
-fields (2(.temporal.api.common.v1.Memo.FieldsEntryN
-FieldsEntry
-key ( .
-value (2.temporal.api.common.v1.Payload:8"
-Header:
-fields (2*.temporal.api.common.v1.Header.FieldsEntryN
-FieldsEntry
-key ( .
-value (2.temporal.api.common.v1.Payload:8"8
-WorkflowExecution
-workflow_id (
-run_id ( "
-WorkflowType
-name ( "
-ActivityType
-name ( "
-RetryPolicy9
-initial_interval (2.google.protobuf.DurationB
-backoff_coefficient (9
-maximum_interval (2.google.protobuf.DurationB
-maximum_attempts (!
-non_retryable_error_types ( "F
-MeteringMetadata2
-*nonfirst_local_activity_execution_attempts
(
"Q
-WorkerVersionStamp
-build_id (
- bundle_id (
-use_versioning ("E
-WorkerVersionCapabilities
-build_id (
-use_versioning (B
-io.temporal.api.common.v1BMessageProtoPZ#go.temporal.io/api/common/v1;commonTemporalio.Api.Common.V1Temporalio::Api::Common::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/BatchOperation.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/BatchOperation.php
deleted file mode 100644
index 072522b34..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/BatchOperation.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/CommandType.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/CommandType.php
deleted file mode 100644
index 236fb35c0..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/CommandType.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Common.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Common.php
deleted file mode 100644
index 56e760052..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Common.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/EventType.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/EventType.php
deleted file mode 100644
index be9a29df1..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/EventType.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/FailedCause.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/FailedCause.php
deleted file mode 100644
index fe62a8245..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/FailedCause.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/PBNamespace.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/PBNamespace.php
deleted file mode 100644
index 7b568340e..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/PBNamespace.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Query.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Query.php
deleted file mode 100644
index edf363d79..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Query.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Reset.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Reset.php
deleted file mode 100644
index ed3d310d0..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Reset.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Schedule.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Schedule.php
deleted file mode 100644
index 643c48368..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Schedule.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/TaskQueue.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/TaskQueue.php
deleted file mode 100644
index ad8c61de7..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/TaskQueue.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Update.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Update.php
deleted file mode 100644
index 80ed3c836..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Update.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Workflow.php b/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Workflow.php
deleted file mode 100644
index 819ad8547..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Enums/V1/Workflow.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Errordetails/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Errordetails/V1/Message.php
deleted file mode 100644
index 165c239db..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Errordetails/V1/Message.php
+++ /dev/null
@@ -1,66 +0,0 @@
-internalAddGeneratedFile(
- '
-
-*temporal/api/errordetails/v1/message.prototemporal.api.errordetails.v1(temporal/api/enums/v1/failed_cause.proto%temporal/api/enums/v1/namespace.proto"B
-NotFoundFailure
-current_cluster (
-active_cluster ( "R
-&WorkflowExecutionAlreadyStartedFailure
-start_request_id (
-run_id ( "_
-NamespaceNotActiveFailure
- namespace (
-current_cluster (
-active_cluster ( "
-NamespaceInvalidStateFailure
- namespace ( 4
-state (2%.temporal.api.enums.v1.NamespaceState=
-allowed_states (2%.temporal.api.enums.v1.NamespaceState"-
-NamespaceNotFoundFailure
- namespace ( "
-NamespaceAlreadyExistsFailure"k
- ClientVersionNotSupportedFailure
-client_version (
-client_name (
-supported_versions ( "d
- ServerVersionNotSupportedFailure
-server_version ( (
- client_supported_server_versions ( "%
-#CancellationAlreadyRequestedFailure"
-QueryFailedFailure")
-PermissionDeniedFailure
-reason ( "X
-ResourceExhaustedFailure<
-cause (2-.temporal.api.enums.v1.ResourceExhaustedCause"v
-SystemWorkflowFailureE
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-workflow_error ( "
-WorkflowNotReadyFailure"3
-NewerBuildExistsFailure
-default_build_id ( B
-io.temporal.api.errordetails.v1BMessageProtoPZ/go.temporal.io/api/errordetails/v1;errordetailsTemporalio.Api.ErrorDetails.V1!Temporalio::Api::ErrorDetails::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Failure/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Failure/V1/Message.php
deleted file mode 100644
index 5d6ef5d97..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Failure/V1/Message.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Filter/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Filter/V1/Message.php
deleted file mode 100644
index f76910d02..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Filter/V1/Message.php
+++ /dev/null
@@ -1,40 +0,0 @@
-internalAddGeneratedFile(
- '
-
-$temporal/api/filter/v1/message.prototemporal.api.filter.v1!dependencies/gogoproto/gogo.proto$temporal/api/enums/v1/workflow.proto">
-WorkflowExecutionFilter
-workflow_id (
-run_id ( ""
-WorkflowTypeFilter
-name ( "
-StartTimeFilter7
-
earliest_time (2.google.protobuf.TimestampB5
-latest_time (2.google.protobuf.TimestampB"N
-StatusFilter>
-status (2..temporal.api.enums.v1.WorkflowExecutionStatusB
-io.temporal.api.filter.v1BMessageProtoPZ#go.temporal.io/api/filter/v1;filterTemporalio.Api.Filter.V1Temporalio::Api::Filter::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/History/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/History/V1/Message.php
deleted file mode 100644
index b4ca39b29..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/History/V1/Message.php
+++ /dev/null
@@ -1,440 +0,0 @@
-internalAddGeneratedFile(
- '
-٢
-%temporal/api/history/v1/message.prototemporal.api.history.v1google/protobuf/timestamp.proto!dependencies/gogoproto/gogo.proto&temporal/api/enums/v1/event_type.proto(temporal/api/enums/v1/failed_cause.proto$temporal/api/enums/v1/workflow.proto$temporal/api/common/v1/message.proto%temporal/api/failure/v1/message.proto\'temporal/api/taskqueue/v1/message.proto$temporal/api/update/v1/message.proto&temporal/api/workflow/v1/message.proto0temporal/api/sdk/v1/task_complete_metadata.proto"
-\'WorkflowExecutionStartedEventAttributes;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType!
-parent_workflow_namespace ( $
-parent_workflow_namespace_id ( L
-parent_workflow_execution (2).temporal.api.common.v1.WorkflowExecution!
-parent_initiated_event_id (8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue/
-input (2 .temporal.api.common.v1.PayloadsC
-workflow_execution_timeout (2.google.protobuf.DurationB=
-workflow_run_timeout (2.google.protobuf.DurationB>
-workflow_task_timeout (2.google.protobuf.DurationB"
-continued_execution_run_id
- ( @
- initiator (2-.temporal.api.enums.v1.ContinueAsNewInitiator;
-continued_failure (2 .temporal.api.failure.v1.Failure@
-last_completion_result
(2 .temporal.api.common.v1.Payloads!
-original_execution_run_id (
-identity (
-first_execution_run_id ( 9
-retry_policy (2#.temporal.api.common.v1.RetryPolicy
-attempt (L
-"workflow_execution_expiration_time (2.google.protobuf.TimestampB
-
cron_schedule ( D
-first_workflow_task_backoff (2.google.protobuf.DurationB*
-memo (2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributesE
-prev_auto_reset_points (2%.temporal.api.workflow.v1.ResetPoints.
-header (2.temporal.api.common.v1.Header&
-parent_initiated_event_version (
-workflow_id ( H
-source_version_stamp (2*.temporal.api.common.v1.WorkerVersionStamp"
-)WorkflowExecutionCompletedEventAttributes0
-result (2 .temporal.api.common.v1.Payloads(
- workflow_task_completed_event_id (
-new_execution_run_id ( "
-&WorkflowExecutionFailedEventAttributes1
-failure (2 .temporal.api.failure.v1.Failure6
-retry_state (2!.temporal.api.enums.v1.RetryState(
- workflow_task_completed_event_id (
-new_execution_run_id ( "
-(WorkflowExecutionTimedOutEventAttributes6
-retry_state (2!.temporal.api.enums.v1.RetryState
-new_execution_run_id ( "
-.WorkflowExecutionContinuedAsNewEventAttributes
-new_execution_run_id ( ;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue/
-input (2 .temporal.api.common.v1.Payloads=
-workflow_run_timeout (2.google.protobuf.DurationB>
-workflow_task_timeout (2.google.protobuf.DurationB(
- workflow_task_completed_event_id (?
-backoff_start_interval (2.google.protobuf.DurationB@
- initiator (2-.temporal.api.enums.v1.ContinueAsNewInitiator1
-failure
- (2 .temporal.api.failure.v1.Failure@
-last_completion_result (2 .temporal.api.common.v1.Payloads.
-header (2.temporal.api.common.v1.Header*
-memo
(2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributes
-use_compatible_version ("
-$WorkflowTaskScheduledEventAttributes8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue?
-start_to_close_timeout (2.google.protobuf.DurationB
-attempt ("
-"WorkflowTaskStartedEventAttributes
-scheduled_event_id (
-identity (
-
-request_id (
-suggest_continue_as_new (
-history_size_bytes ("
-$WorkflowTaskCompletedEventAttributes
-scheduled_event_id (
-started_event_id (
-identity (
-binary_checksum ( B
-worker_version (2*.temporal.api.common.v1.WorkerVersionStampH
-sdk_metadata (22.temporal.api.sdk.v1.WorkflowTaskCompletedMetadataC
-metering_metadata
(2(.temporal.api.common.v1.MeteringMetadata"
-#WorkflowTaskTimedOutEventAttributes
-scheduled_event_id (
-started_event_id (8
-timeout_type (2".temporal.api.enums.v1.TimeoutType"
-!WorkflowTaskFailedEventAttributes
-scheduled_event_id (
-started_event_id (=
-cause (2..temporal.api.enums.v1.WorkflowTaskFailedCause1
-failure (2 .temporal.api.failure.v1.Failure
-identity (
-base_run_id (
-
-new_run_id (
-fork_event_version (
-binary_checksum ( B
-worker_version
- (2*.temporal.api.common.v1.WorkerVersionStamp"
-$ActivityTaskScheduledEventAttributes
-activity_id ( ;
-
activity_type (2$.temporal.api.common.v1.ActivityType8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue.
-header (2.temporal.api.common.v1.Header/
-input (2 .temporal.api.common.v1.PayloadsB
-schedule_to_close_timeout (2.google.protobuf.DurationBB
-schedule_to_start_timeout (2.google.protobuf.DurationB?
-start_to_close_timeout (2.google.protobuf.DurationB:
-heartbeat_timeout
- (2.google.protobuf.DurationB(
- workflow_task_completed_event_id (9
-retry_policy (2#.temporal.api.common.v1.RetryPolicy
-use_compatible_version
(J"
-"ActivityTaskStartedEventAttributes
-scheduled_event_id (
-identity (
-
-request_id (
-attempt (6
-last_failure (2 .temporal.api.failure.v1.Failure"
-$ActivityTaskCompletedEventAttributes0
-result (2 .temporal.api.common.v1.Payloads
-scheduled_event_id (
-started_event_id (
-identity ( B
-worker_version (2*.temporal.api.common.v1.WorkerVersionStamp"
-!ActivityTaskFailedEventAttributes1
-failure (2 .temporal.api.failure.v1.Failure
-scheduled_event_id (
-started_event_id (
-identity ( 6
-retry_state (2!.temporal.api.enums.v1.RetryStateB
-worker_version (2*.temporal.api.common.v1.WorkerVersionStamp"
-#ActivityTaskTimedOutEventAttributes1
-failure (2 .temporal.api.failure.v1.Failure
-scheduled_event_id (
-started_event_id (6
-retry_state (2!.temporal.api.enums.v1.RetryState"r
-*ActivityTaskCancelRequestedEventAttributes
-scheduled_event_id ((
- workflow_task_completed_event_id ("
-#ActivityTaskCanceledEventAttributes1
-details (2 .temporal.api.common.v1.Payloads(
- latest_cancel_requested_event_id (
-scheduled_event_id (
-started_event_id (
-identity ( B
-worker_version (2*.temporal.api.common.v1.WorkerVersionStamp"
-TimerStartedEventAttributes
-timer_id ( >
-start_to_fire_timeout (2.google.protobuf.DurationB(
- workflow_task_completed_event_id ("G
-TimerFiredEventAttributes
-timer_id (
-started_event_id ("
-TimerCanceledEventAttributes
-timer_id (
-started_event_id ((
- workflow_task_completed_event_id (
-identity ( "
-/WorkflowExecutionCancelRequestedEventAttributes
-cause ( #
-external_initiated_event_id (N
-external_workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-identity ( "
-(WorkflowExecutionCanceledEventAttributes(
- workflow_task_completed_event_id (1
-details (2 .temporal.api.common.v1.Payloads"
-MarkerRecordedEventAttributes
-marker_name ( T
-details (2C.temporal.api.history.v1.MarkerRecordedEventAttributes.DetailsEntry(
- workflow_task_completed_event_id (.
-header (2.temporal.api.common.v1.Header1
-failure (2 .temporal.api.failure.v1.FailureP
-DetailsEntry
-key ( /
-value (2 .temporal.api.common.v1.Payloads:8"
-(WorkflowExecutionSignaledEventAttributes
-signal_name ( /
-input (2 .temporal.api.common.v1.Payloads
-identity ( .
-header (2.temporal.api.common.v1.Header#
-skip_generate_workflow_task ("
-*WorkflowExecutionTerminatedEventAttributes
-reason ( 1
-details (2 .temporal.api.common.v1.Payloads
-identity ( "
->RequestCancelExternalWorkflowExecutionInitiatedEventAttributes(
- workflow_task_completed_event_id (
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-control (
-child_workflow_only (
-reason ( "
-;RequestCancelExternalWorkflowExecutionFailedEventAttributesP
-cause (2A.temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause(
- workflow_task_completed_event_id (
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-initiated_event_id (
-control ( "
-7ExternalWorkflowExecutionCancelRequestedEventAttributes
-initiated_event_id (
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution"
-7SignalExternalWorkflowExecutionInitiatedEventAttributes(
- workflow_task_completed_event_id (
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-signal_name ( /
-input (2 .temporal.api.common.v1.Payloads
-control (
-child_workflow_only (.
-header (2.temporal.api.common.v1.Header"
-4SignalExternalWorkflowExecutionFailedEventAttributesP
-cause (2A.temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause(
- workflow_task_completed_event_id (
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-initiated_event_id (
-control ( "
-0ExternalWorkflowExecutionSignaledEventAttributes
-initiated_event_id (
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-control ( "
--UpsertWorkflowSearchAttributesEventAttributes(
- workflow_task_completed_event_id (C
-search_attributes (2(.temporal.api.common.v1.SearchAttributes"
-)WorkflowPropertiesModifiedEventAttributes(
- workflow_task_completed_event_id (3
-
upserted_memo (2.temporal.api.common.v1.Memo"
-3StartChildWorkflowExecutionInitiatedEventAttributes
- namespace (
-namespace_id (
-workflow_id ( ;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue/
-input (2 .temporal.api.common.v1.PayloadsC
-workflow_execution_timeout (2.google.protobuf.DurationB=
-workflow_run_timeout (2.google.protobuf.DurationB>
-workflow_task_timeout (2.google.protobuf.DurationBE
-parent_close_policy (2(.temporal.api.enums.v1.ParentClosePolicy
-control
- ( (
- workflow_task_completed_event_id (N
-workflow_id_reuse_policy (2,.temporal.api.enums.v1.WorkflowIdReusePolicy9
-retry_policy
(2#.temporal.api.common.v1.RetryPolicy
-
cron_schedule ( .
-header (2.temporal.api.common.v1.Header*
-memo (2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributes
-use_compatible_version ("
-0StartChildWorkflowExecutionFailedEventAttributes
- namespace (
-namespace_id (
-workflow_id ( ;
-
workflow_type (2$.temporal.api.common.v1.WorkflowTypeL
-cause (2=.temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause
-control (
-initiated_event_id ((
- workflow_task_completed_event_id ("
-,ChildWorkflowExecutionStartedEventAttributes
- namespace (
-namespace_id (
-initiated_event_id (E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType.
-header (2.temporal.api.common.v1.Header"
-.ChildWorkflowExecutionCompletedEventAttributes0
-result (2 .temporal.api.common.v1.Payloads
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType
-initiated_event_id (
-started_event_id ("
-+ChildWorkflowExecutionFailedEventAttributes1
-failure (2 .temporal.api.failure.v1.Failure
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType
-initiated_event_id (
-started_event_id (6
-retry_state (2!.temporal.api.enums.v1.RetryState"
--ChildWorkflowExecutionCanceledEventAttributes1
-details (2 .temporal.api.common.v1.Payloads
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType
-initiated_event_id (
-started_event_id ("
--ChildWorkflowExecutionTimedOutEventAttributes
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType
-initiated_event_id (
-started_event_id (6
-retry_state (2!.temporal.api.enums.v1.RetryState"
-/ChildWorkflowExecutionTerminatedEventAttributes
- namespace (
-namespace_id ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType
-initiated_event_id (
-started_event_id ("
-3WorkflowPropertiesModifiedExternallyEventAttributes
-new_task_queue ( B
-new_workflow_task_timeout (2.google.protobuf.DurationBA
-new_workflow_run_timeout (2.google.protobuf.DurationBG
-new_workflow_execution_timeout (2.google.protobuf.DurationB3
-
upserted_memo (2.temporal.api.common.v1.Memo"
-3ActivityPropertiesModifiedExternallyEventAttributes
-scheduled_event_id (=
-new_retry_policy (2#.temporal.api.common.v1.RetryPolicy"
-.WorkflowExecutionUpdateAcceptedEventAttributes
-protocol_instance_id ( #
-accepted_request_message_id ( ,
-$accepted_request_sequencing_event_id (9
-accepted_request (2.temporal.api.update.v1.Request"
-/WorkflowExecutionUpdateCompletedEventAttributes*
-meta (2.temporal.api.update.v1.Meta
-accepted_event_id (0
-outcome (2.temporal.api.update.v1.Outcome"
-.WorkflowExecutionUpdateRejectedEventAttributes
-protocol_instance_id ( #
-rejected_request_message_id ( ,
-$rejected_request_sequencing_event_id (9
-rejected_request (2.temporal.api.update.v1.Request1
-failure (2 .temporal.api.failure.v1.Failure"/
-HistoryEvent
-event_id (4
-
-event_time (2.google.protobuf.TimestampB4
-
-event_type (2 .temporal.api.enums.v1.EventType
-version (
-task_id (
-worker_may_ignore (w
-+workflow_execution_started_event_attributes (2@.temporal.api.history.v1.WorkflowExecutionStartedEventAttributesH {
--workflow_execution_completed_event_attributes (2B.temporal.api.history.v1.WorkflowExecutionCompletedEventAttributesH u
-*workflow_execution_failed_event_attributes (2?.temporal.api.history.v1.WorkflowExecutionFailedEventAttributesH z
--workflow_execution_timed_out_event_attributes (2A.temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributesH q
-(workflow_task_scheduled_event_attributes
- (2=.temporal.api.history.v1.WorkflowTaskScheduledEventAttributesH m
-&workflow_task_started_event_attributes (2;.temporal.api.history.v1.WorkflowTaskStartedEventAttributesH q
-(workflow_task_completed_event_attributes (2=.temporal.api.history.v1.WorkflowTaskCompletedEventAttributesH p
-(workflow_task_timed_out_event_attributes
(2<.temporal.api.history.v1.WorkflowTaskTimedOutEventAttributesH k
-%workflow_task_failed_event_attributes (2:.temporal.api.history.v1.WorkflowTaskFailedEventAttributesH q
-(activity_task_scheduled_event_attributes (2=.temporal.api.history.v1.ActivityTaskScheduledEventAttributesH m
-&activity_task_started_event_attributes (2;.temporal.api.history.v1.ActivityTaskStartedEventAttributesH q
-(activity_task_completed_event_attributes (2=.temporal.api.history.v1.ActivityTaskCompletedEventAttributesH k
-%activity_task_failed_event_attributes (2:.temporal.api.history.v1.ActivityTaskFailedEventAttributesH p
-(activity_task_timed_out_event_attributes (2<.temporal.api.history.v1.ActivityTaskTimedOutEventAttributesH ^
-timer_started_event_attributes (24.temporal.api.history.v1.TimerStartedEventAttributesH Z
-timer_fired_event_attributes (22.temporal.api.history.v1.TimerFiredEventAttributesH ~
-/activity_task_cancel_requested_event_attributes (2C.temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributesH o
-\'activity_task_canceled_event_attributes (2<.temporal.api.history.v1.ActivityTaskCanceledEventAttributesH `
-timer_canceled_event_attributes (25.temporal.api.history.v1.TimerCanceledEventAttributesH b
- marker_recorded_event_attributes (26.temporal.api.history.v1.MarkerRecordedEventAttributesH y
-,workflow_execution_signaled_event_attributes (2A.temporal.api.history.v1.WorkflowExecutionSignaledEventAttributesH }
-.workflow_execution_terminated_event_attributes (2C.temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributesH
-4workflow_execution_cancel_requested_event_attributes (2H.temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributesH y
-,workflow_execution_canceled_event_attributes (2A.temporal.api.history.v1.WorkflowExecutionCanceledEventAttributesH
-Erequest_cancel_external_workflow_execution_initiated_event_attributes (2W.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributesH
-Brequest_cancel_external_workflow_execution_failed_event_attributes (2T.temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributesH
-=external_workflow_execution_cancel_requested_event_attributes (2P.temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributesH
-4workflow_execution_continued_as_new_event_attributes! (2G.temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributesH
-9start_child_workflow_execution_initiated_event_attributes" (2L.temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributesH
-6start_child_workflow_execution_failed_event_attributes# (2I.temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributesH
-1child_workflow_execution_started_event_attributes$ (2E.temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributesH
-3child_workflow_execution_completed_event_attributes% (2G.temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributesH
-0child_workflow_execution_failed_event_attributes& (2D.temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributesH
-2child_workflow_execution_canceled_event_attributes\' (2F.temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributesH
-3child_workflow_execution_timed_out_event_attributes( (2F.temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributesH
-4child_workflow_execution_terminated_event_attributes) (2H.temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributesH
-=signal_external_workflow_execution_initiated_event_attributes* (2P.temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributesH
-:signal_external_workflow_execution_failed_event_attributes+ (2M.temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributesH
-5external_workflow_execution_signaled_event_attributes, (2I.temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributesH
-2upsert_workflow_search_attributes_event_attributes- (2F.temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributesH
-3workflow_execution_update_accepted_event_attributes. (2G.temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributesH
-3workflow_execution_update_rejected_event_attributes/ (2G.temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributesH
-4workflow_execution_update_completed_event_attributes0 (2H.temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributesH
-8workflow_properties_modified_externally_event_attributes1 (2L.temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributesH
-8activity_properties_modified_externally_event_attributes2 (2L.temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributesH {
--workflow_properties_modified_event_attributes3 (2B.temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributesH B
-
-attributes"@
-History5
-events (2%.temporal.api.history.v1.HistoryEventB
-io.temporal.api.history.v1BMessageProtoPZ%go.temporal.io/api/history/v1;historyTemporalio.Api.History.V1Temporalio::Api::History::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Operatorservice/V1/RequestResponse.php b/api/v1/GPBMetadata/Temporal/Api/Operatorservice/V1/RequestResponse.php
deleted file mode 100644
index 535913ccc..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Operatorservice/V1/RequestResponse.php
+++ /dev/null
@@ -1,79 +0,0 @@
-internalAddGeneratedFile(
- '
-
-6temporal/api/operatorservice/v1/request_response.prototemporal.api.operatorservice.v1"
-AddSearchAttributesRequestl
-search_attributes (2Q.temporal.api.operatorservice.v1.AddSearchAttributesRequest.SearchAttributesEntry
- namespace ( `
-SearchAttributesEntry
-key ( 6
-value (2\'.temporal.api.enums.v1.IndexedValueType:8"
-AddSearchAttributesResponse"M
-RemoveSearchAttributesRequest
-search_attributes (
- namespace ( "
-RemoveSearchAttributesResponse"0
-ListSearchAttributesRequest
- namespace ( "
-ListSearchAttributesResponsen
-custom_attributes (2S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.CustomAttributesEntryn
-system_attributes (2S.temporal.api.operatorservice.v1.ListSearchAttributesResponse.SystemAttributesEntryh
-storage_schema (2P.temporal.api.operatorservice.v1.ListSearchAttributesResponse.StorageSchemaEntry`
-CustomAttributesEntry
-key ( 6
-value (2\'.temporal.api.enums.v1.IndexedValueType:8`
-SystemAttributesEntry
-key ( 6
-value (2\'.temporal.api.enums.v1.IndexedValueType:84
-StorageSchemaEntry
-key (
-value ( :8"+
-DeleteNamespaceRequest
- namespace ( "4
-DeleteNamespaceResponse
-deleted_namespace ( "e
-AddOrUpdateRemoteClusterRequest
-frontend_address ( (
- enable_remote_cluster_connection (""
- AddOrUpdateRemoteClusterResponse"2
-RemoveRemoteClusterRequest
-cluster_name ( "
-RemoveRemoteClusterResponse"A
-ListClustersRequest
- page_size (
-next_page_token ("s
-ListClustersResponseB
-clusters (20.temporal.api.operatorservice.v1.ClusterMetadata
-next_page_token ("
-ClusterMetadata
-cluster_name (
-
-cluster_id (
-address (
-initial_failover_version (
-history_shard_count (
-is_connection_enabled (B
-"io.temporal.api.operatorservice.v1BRequestResponseProtoPZ5go.temporal.io/api/operatorservice/v1;operatorservice!Temporalio.Api.OperatorService.V1$Temporalio::Api::OperatorService::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Operatorservice/V1/Service.php b/api/v1/GPBMetadata/Temporal/Api/Operatorservice/V1/Service.php
deleted file mode 100644
index d026e69b4..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Operatorservice/V1/Service.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/PBNamespace/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/PBNamespace/V1/Message.php
deleted file mode 100644
index c9ac90fab..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/PBNamespace/V1/Message.php
+++ /dev/null
@@ -1,73 +0,0 @@
-internalAddGeneratedFile(
- '
-
-\'temporal/api/namespace/v1/message.prototemporal.api.namespace.v1google/protobuf/timestamp.proto!dependencies/gogoproto/gogo.proto%temporal/api/enums/v1/namespace.proto"
-
NamespaceInfo
-name ( 4
-state (2%.temporal.api.enums.v1.NamespaceState
-description (
-owner_email ( @
-data (22.temporal.api.namespace.v1.NamespaceInfo.DataEntry
-
-id (
-supports_schedulesd (+
- DataEntry
-key (
-value ( :8"
-NamespaceConfigI
- workflow_execution_retention_ttl (2.google.protobuf.DurationB<
-bad_binaries (2&.temporal.api.namespace.v1.BadBinariesD
-history_archival_state (2$.temporal.api.enums.v1.ArchivalState
-history_archival_uri ( G
-visibility_archival_state (2$.temporal.api.enums.v1.ArchivalState
-visibility_archival_uri ( u
-custom_search_attribute_aliases (2L.temporal.api.namespace.v1.NamespaceConfig.CustomSearchAttributeAliasesEntryC
-!CustomSearchAttributeAliasesEntry
-key (
-value ( :8"
-BadBinariesF
-binaries (24.temporal.api.namespace.v1.BadBinaries.BinariesEntryY
-
BinariesEntry
-key ( 7
-value (2(.temporal.api.namespace.v1.BadBinaryInfo:8"h
-
BadBinaryInfo
-reason (
-operator ( 5
-create_time (2.google.protobuf.TimestampB"
-UpdateNamespaceInfo
-description (
-owner_email ( F
-data (28.temporal.api.namespace.v1.UpdateNamespaceInfo.DataEntry4
-state (2%.temporal.api.enums.v1.NamespaceState+
- DataEntry
-key (
-value ( :8"*
-NamespaceFilter
-include_deleted (B
-io.temporal.api.namespace.v1BMessageProtoPZ)go.temporal.io/api/namespace/v1;namespaceTemporalio.Api.Namespace.V1Temporalio::Api::Namespace::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Protocol/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Protocol/V1/Message.php
deleted file mode 100644
index dfab27c32..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Protocol/V1/Message.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Query/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Query/V1/Message.php
deleted file mode 100644
index 5f92850b0..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Query/V1/Message.php
+++ /dev/null
@@ -1,42 +0,0 @@
-internalAddGeneratedFile(
- '
-
-#temporal/api/query/v1/message.prototemporal.api.query.v1$temporal/api/enums/v1/workflow.proto$temporal/api/common/v1/message.proto"
-
WorkflowQuery
-
-query_type ( 4
-
-query_args (2 .temporal.api.common.v1.Payloads.
-header (2.temporal.api.common.v1.Header"
-WorkflowQueryResult;
-result_type (2&.temporal.api.enums.v1.QueryResultType0
-answer (2 .temporal.api.common.v1.Payloads
-
error_message ( "O
-
QueryRejected>
-status (2..temporal.api.enums.v1.WorkflowExecutionStatusB
-io.temporal.api.query.v1BMessageProtoPZ!go.temporal.io/api/query/v1;queryTemporalio.Api.Query.V1Temporalio::Api::Query::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Replication/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Replication/V1/Message.php
deleted file mode 100644
index ec55080db..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Replication/V1/Message.php
+++ /dev/null
@@ -1,39 +0,0 @@
-internalAddGeneratedFile(
- '
-
-)temporal/api/replication/v1/message.prototemporal.api.replication.v1!dependencies/gogoproto/gogo.proto%temporal/api/enums/v1/namespace.proto"0
-ClusterReplicationConfig
-cluster_name ( "
-NamespaceReplicationConfig
-active_cluster_name ( G
-clusters (25.temporal.api.replication.v1.ClusterReplicationConfig6
-state (2\'.temporal.api.enums.v1.ReplicationState"c
-FailoverStatus7
-
failover_time (2.google.protobuf.TimestampB
-failover_version (B
-io.temporal.api.replication.v1BMessageProtoPZ-go.temporal.io/api/replication/v1;replicationTemporalio.Api.Replication.V1 Temporalio::Api::Replication::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Schedule/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Schedule/V1/Message.php
deleted file mode 100644
index f391250c8..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Schedule/V1/Message.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Sdk/V1/TaskCompleteMetadata.php b/api/v1/GPBMetadata/Temporal/Api/Sdk/V1/TaskCompleteMetadata.php
deleted file mode 100644
index eb9559af3..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Sdk/V1/TaskCompleteMetadata.php
+++ /dev/null
@@ -1,30 +0,0 @@
-internalAddGeneratedFile(
- '
-
-0temporal/api/sdk/v1/task_complete_metadata.prototemporal.api.sdk.v1"Q
-WorkflowTaskCompletedMetadata
-core_used_flags (
-lang_used_flags (
B
-io.temporal.api.sdk.v1BTaskCompleteMetadataProtoPZgo.temporal.io/api/sdk/v1;sdkTemporalio.Api.Sdk.V1Temporalio::Api::Sdk::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Taskqueue/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Taskqueue/V1/Message.php
deleted file mode 100644
index b8af60ba9..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Taskqueue/V1/Message.php
+++ /dev/null
@@ -1,70 +0,0 @@
-internalAddGeneratedFile(
- '
-
-\'temporal/api/taskqueue/v1/message.prototemporal.api.taskqueue.v1google/protobuf/timestamp.protogoogle/protobuf/wrappers.proto!dependencies/gogoproto/gogo.proto&temporal/api/enums/v1/task_queue.proto$temporal/api/common/v1/message.proto"b
- TaskQueue
-name ( 2
-kind (2$.temporal.api.enums.v1.TaskQueueKind
-normal_name ( "O
-TaskQueueMetadata:
-max_tasks_per_second (2.google.protobuf.DoubleValue"
-TaskQueueStatus
-backlog_count_hint (
-
-read_level (
- ack_level (
-rate_per_second (=
-
task_id_block (2&.temporal.api.taskqueue.v1.TaskIdBlock"/
-TaskIdBlock
-start_id (
-end_id ("B
-TaskQueuePartitionMetadata
-key (
-owner_host_name ( "
-
-PollerInfo:
-last_access_time (2.google.protobuf.TimestampB
-identity (
-rate_per_second (V
-worker_version_capabilities (21.temporal.api.common.v1.WorkerVersionCapabilities"
-StickyExecutionAttributes?
-worker_task_queue (2$.temporal.api.taskqueue.v1.TaskQueueB
-schedule_to_start_timeout (2.google.protobuf.DurationB")
-CompatibleVersionSet
- build_ids ( "j
-TaskQueueReachability
-
-task_queue ( =
-reachability (2\'.temporal.api.enums.v1.TaskReachability"z
-BuildIdReachability
-build_id ( Q
-task_queue_reachability (20.temporal.api.taskqueue.v1.TaskQueueReachabilityB
-io.temporal.api.taskqueue.v1BMessageProtoPZ)go.temporal.io/api/taskqueue/v1;taskqueueTemporalio.Api.TaskQueue.V1Temporalio::Api::TaskQueue::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Update/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Update/V1/Message.php
deleted file mode 100644
index cc2048f99..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Update/V1/Message.php and /dev/null differ
diff --git a/api/v1/GPBMetadata/Temporal/Api/Version/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Version/V1/Message.php
deleted file mode 100644
index d28987899..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Version/V1/Message.php
+++ /dev/null
@@ -1,43 +0,0 @@
-internalAddGeneratedFile(
- '
-
-%temporal/api/version/v1/message.prototemporal.api.version.v1!dependencies/gogoproto/gogo.proto"temporal/api/enums/v1/common.proto"e
-ReleaseInfo
-version ( 6
-release_time (2.google.protobuf.TimestampB
-notes ( "K
-Alert
-message ( 1
-severity (2.temporal.api.enums.v1.Severity"
-VersionInfo5
-current (2$.temporal.api.version.v1.ReleaseInfo9
-recommended (2$.temporal.api.version.v1.ReleaseInfo
-instructions ( .
-alerts (2.temporal.api.version.v1.Alert:
-last_update_time (2.google.protobuf.TimestampBB
-io.temporal.api.version.v1BMessageProtoPZ%go.temporal.io/api/version/v1;versionTemporalio.Api.Version.V1Temporalio::Api::Version::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Workflow/V1/Message.php b/api/v1/GPBMetadata/Temporal/Api/Workflow/V1/Message.php
deleted file mode 100644
index 8d0d0b411..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Workflow/V1/Message.php
+++ /dev/null
@@ -1,113 +0,0 @@
-internalAddGeneratedFile(
- '
-
-&temporal/api/workflow/v1/message.prototemporal.api.workflow.v1google/protobuf/timestamp.proto!dependencies/gogoproto/gogo.proto$temporal/api/enums/v1/workflow.proto$temporal/api/common/v1/message.proto%temporal/api/failure/v1/message.proto\'temporal/api/taskqueue/v1/message.proto"
-WorkflowExecutionInfo<
- execution (2).temporal.api.common.v1.WorkflowExecution2
-type (2$.temporal.api.common.v1.WorkflowType4
-
-start_time (2.google.protobuf.TimestampB4
-
-close_time (2.google.protobuf.TimestampB>
-status (2..temporal.api.enums.v1.WorkflowExecutionStatus
-history_length (
-parent_namespace_id ( C
-parent_execution (2).temporal.api.common.v1.WorkflowExecution8
-execution_time (2.google.protobuf.TimestampB*
-memo
- (2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributes@
-auto_reset_points (2%.temporal.api.workflow.v1.ResetPoints
-
-task_queue
(
-state_transition_count (
-history_size_bytes (T
- most_recent_worker_version_stamp (2*.temporal.api.common.v1.WorkerVersionStamp"
-WorkflowExecutionConfig8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueueC
-workflow_execution_timeout (2.google.protobuf.DurationB=
-workflow_run_timeout (2.google.protobuf.DurationBF
-default_workflow_task_timeout (2.google.protobuf.DurationB"
-PendingActivityInfo
-activity_id ( ;
-
activity_type (2$.temporal.api.common.v1.ActivityType:
-state (2+.temporal.api.enums.v1.PendingActivityState;
-heartbeat_details (2 .temporal.api.common.v1.Payloads=
-last_heartbeat_time (2.google.protobuf.TimestampB;
-last_started_time (2.google.protobuf.TimestampB
-attempt (
-maximum_attempts (8
-scheduled_time (2.google.protobuf.TimestampB9
-expiration_time
- (2.google.protobuf.TimestampB6
-last_failure (2 .temporal.api.failure.v1.Failure
-last_worker_identity ( "
-PendingChildExecutionInfo
-workflow_id (
-run_id (
-workflow_type_name (
-initiated_id (E
-parent_close_policy (2(.temporal.api.enums.v1.ParentClosePolicy"
-PendingWorkflowTaskInfo>
-state (2/.temporal.api.enums.v1.PendingWorkflowTaskState8
-scheduled_time (2.google.protobuf.TimestampBA
-original_scheduled_time (2.google.protobuf.TimestampB6
-started_time (2.google.protobuf.TimestampB
-attempt ("G
-ResetPoints8
-points (2(.temporal.api.workflow.v1.ResetPointInfo"
-ResetPointInfo
-binary_checksum (
-run_id ( (
- first_workflow_task_completed_id (5
-create_time (2.google.protobuf.TimestampB5
-expire_time (2.google.protobuf.TimestampB
-
-resettable ("
-NewWorkflowExecutionInfo
-workflow_id ( ;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue/
-input (2 .temporal.api.common.v1.PayloadsC
-workflow_execution_timeout (2.google.protobuf.DurationB=
-workflow_run_timeout (2.google.protobuf.DurationB>
-workflow_task_timeout (2.google.protobuf.DurationBN
-workflow_id_reuse_policy (2,.temporal.api.enums.v1.WorkflowIdReusePolicy9
-retry_policy (2#.temporal.api.common.v1.RetryPolicy
-
cron_schedule
- ( *
-memo (2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributes.
-header
(2.temporal.api.common.v1.HeaderB
-io.temporal.api.workflow.v1BMessageProtoPZ\'go.temporal.io/api/workflow/v1;workflowTemporalio.Api.Workflow.V1Temporalio::Api::Workflow::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Workflowservice/V1/RequestResponse.php b/api/v1/GPBMetadata/Temporal/Api/Workflowservice/V1/RequestResponse.php
deleted file mode 100644
index 90b6d103e..000000000
--- a/api/v1/GPBMetadata/Temporal/Api/Workflowservice/V1/RequestResponse.php
+++ /dev/null
@@ -1,678 +0,0 @@
-internalAddGeneratedFile(
- '
-
-6temporal/api/workflowservice/v1/request_response.prototemporal.api.workflowservice.v1$temporal/api/enums/v1/workflow.proto%temporal/api/enums/v1/namespace.proto(temporal/api/enums/v1/failed_cause.proto"temporal/api/enums/v1/common.proto!temporal/api/enums/v1/query.proto!temporal/api/enums/v1/reset.proto&temporal/api/enums/v1/task_queue.proto$temporal/api/common/v1/message.proto%temporal/api/history/v1/message.proto&temporal/api/workflow/v1/message.proto%temporal/api/command/v1/message.proto%temporal/api/failure/v1/message.proto$temporal/api/filter/v1/message.proto&temporal/api/protocol/v1/message.proto\'temporal/api/namespace/v1/message.proto#temporal/api/query/v1/message.proto)temporal/api/replication/v1/message.proto&temporal/api/schedule/v1/message.proto\'temporal/api/taskqueue/v1/message.proto$temporal/api/update/v1/message.proto%temporal/api/version/v1/message.proto#temporal/api/batch/v1/message.proto0temporal/api/sdk/v1/task_complete_metadata.protogoogle/protobuf/duration.protogoogle/protobuf/timestamp.proto!dependencies/gogoproto/gogo.proto"
-RegisterNamespaceRequest
- namespace (
-description (
-owner_email ( L
-#workflow_execution_retention_period (2.google.protobuf.DurationBG
-clusters (25.temporal.api.replication.v1.ClusterReplicationConfig
-active_cluster_name ( Q
-data (2C.temporal.api.workflowservice.v1.RegisterNamespaceRequest.DataEntry
-security_token (
-is_global_namespace (D
-history_archival_state
- (2$.temporal.api.enums.v1.ArchivalState
-history_archival_uri ( G
-visibility_archival_state (2$.temporal.api.enums.v1.ArchivalState
-visibility_archival_uri
( +
- DataEntry
-key (
-value ( :8"
-RegisterNamespaceResponse"
-ListNamespacesRequest
- page_size (
-next_page_token (D
-namespace_filter (2*.temporal.api.namespace.v1.NamespaceFilter"
-ListNamespacesResponseN
-
-namespaces (2:.temporal.api.workflowservice.v1.DescribeNamespaceResponse
-next_page_token ("9
-DescribeNamespaceRequest
- namespace (
-
-id ( "
-DescribeNamespaceResponse@
-namespace_info (2(.temporal.api.namespace.v1.NamespaceInfo:
-config (2*.temporal.api.namespace.v1.NamespaceConfigS
-replication_config (27.temporal.api.replication.v1.NamespaceReplicationConfig
-failover_version (
-is_global_namespace (E
-failover_history (2+.temporal.api.replication.v1.FailoverStatus"
-UpdateNamespaceRequest
- namespace ( C
-update_info (2..temporal.api.namespace.v1.UpdateNamespaceInfo:
-config (2*.temporal.api.namespace.v1.NamespaceConfigS
-replication_config (27.temporal.api.replication.v1.NamespaceReplicationConfig
-security_token (
-delete_bad_binary (
-promote_namespace ("
-UpdateNamespaceResponse@
-namespace_info (2(.temporal.api.namespace.v1.NamespaceInfo:
-config (2*.temporal.api.namespace.v1.NamespaceConfigS
-replication_config (27.temporal.api.replication.v1.NamespaceReplicationConfig
-failover_version (
-is_global_namespace ("F
-DeprecateNamespaceRequest
- namespace (
-security_token ( "
-DeprecateNamespaceResponse"
-StartWorkflowExecutionRequest
- namespace (
-workflow_id ( ;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue/
-input (2 .temporal.api.common.v1.PayloadsC
-workflow_execution_timeout (2.google.protobuf.DurationB=
-workflow_run_timeout (2.google.protobuf.DurationB>
-workflow_task_timeout (2.google.protobuf.DurationB
-identity (
-
-request_id
- ( N
-workflow_id_reuse_policy (2,.temporal.api.enums.v1.WorkflowIdReusePolicy9
-retry_policy (2#.temporal.api.common.v1.RetryPolicy
-
cron_schedule
( *
-memo (2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributes.
-header (2.temporal.api.common.v1.Header
-request_eager_execution (;
-continued_failure (2 .temporal.api.failure.v1.Failure@
-last_completion_result (2 .temporal.api.common.v1.Payloads=
-workflow_start_delay (2.google.protobuf.DurationB"
-StartWorkflowExecutionResponse
-run_id ( [
-eager_workflow_task (2>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse"
-"GetWorkflowExecutionHistoryRequest
- namespace ( <
- execution (2).temporal.api.common.v1.WorkflowExecution
-maximum_page_size (
-next_page_token (
-wait_new_event (P
-history_event_filter_type (2-.temporal.api.enums.v1.HistoryEventFilterType
-
skip_archival ("
-#GetWorkflowExecutionHistoryResponse1
-history (2 .temporal.api.history.v1.History5
-raw_history (2 .temporal.api.common.v1.DataBlob
-next_page_token (
-archived ("
-)GetWorkflowExecutionHistoryReverseRequest
- namespace ( <
- execution (2).temporal.api.common.v1.WorkflowExecution
-maximum_page_size (
-next_page_token ("x
-*GetWorkflowExecutionHistoryReverseResponse1
-history (2 .temporal.api.history.v1.History
-next_page_token ("
-PollWorkflowTaskQueueRequest
- namespace ( 8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue
-identity (
-binary_checksum ( V
-worker_version_capabilities (21.temporal.api.common.v1.WorkerVersionCapabilities"
-PollWorkflowTaskQueueResponse
-
-task_token (E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType!
-previous_started_event_id (
-started_event_id (
-attempt (
-backlog_count_hint (1
-history (2 .temporal.api.history.v1.History
-next_page_token (3
-query
- (2$.temporal.api.query.v1.WorkflowQueryK
-workflow_execution_task_queue (2$.temporal.api.taskqueue.v1.TaskQueue8
-scheduled_time (2.google.protobuf.TimestampB6
-started_time
(2.google.protobuf.TimestampB\\
-queries (2K.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse.QueriesEntry3
-messages (2!.temporal.api.protocol.v1.MessageT
-QueriesEntry
-key ( 3
-value (2$.temporal.api.query.v1.WorkflowQuery:8"
-#RespondWorkflowTaskCompletedRequest
-
-task_token (2
-commands (2 .temporal.api.command.v1.Command
-identity ( O
-sticky_attributes (24.temporal.api.taskqueue.v1.StickyExecutionAttributes
-return_new_workflow_task (&
-force_create_new_workflow_task (
-binary_checksum ( m
-
query_results (2V.temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest.QueryResultsEntry
- namespace ( H
-worker_version_stamp
- (2*.temporal.api.common.v1.WorkerVersionStamp3
-messages (2!.temporal.api.protocol.v1.MessageH
-sdk_metadata (22.temporal.api.sdk.v1.WorkflowTaskCompletedMetadataC
-metering_metadata
(2(.temporal.api.common.v1.MeteringMetadata_
-QueryResultsEntry
-key ( 9
-value (2*.temporal.api.query.v1.WorkflowQueryResult:8"
-$RespondWorkflowTaskCompletedResponseU
-
workflow_task (2>.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponseV
-activity_tasks (2>.temporal.api.workflowservice.v1.PollActivityTaskQueueResponse
-reset_history_event_id ("
- RespondWorkflowTaskFailedRequest
-
-task_token (=
-cause (2..temporal.api.enums.v1.WorkflowTaskFailedCause1
-failure (2 .temporal.api.failure.v1.Failure
-identity (
-binary_checksum (
- namespace ( 3
-messages (2!.temporal.api.protocol.v1.MessageB
-worker_version (2*.temporal.api.common.v1.WorkerVersionStamp"#
-!RespondWorkflowTaskFailedResponse"
-PollActivityTaskQueueRequest
- namespace ( 8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue
-identity ( I
-task_queue_metadata (2,.temporal.api.taskqueue.v1.TaskQueueMetadataV
-worker_version_capabilities (21.temporal.api.common.v1.WorkerVersionCapabilities"
-PollActivityTaskQueueResponse
-
-task_token (
-workflow_namespace ( ;
-
workflow_type (2$.temporal.api.common.v1.WorkflowTypeE
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution;
-
activity_type (2$.temporal.api.common.v1.ActivityType
-activity_id ( .
-header (2.temporal.api.common.v1.Header/
-input (2 .temporal.api.common.v1.Payloads;
-heartbeat_details (2 .temporal.api.common.v1.Payloads8
-scheduled_time
- (2.google.protobuf.TimestampBH
-current_attempt_scheduled_time (2.google.protobuf.TimestampB6
-started_time (2.google.protobuf.TimestampB
-attempt
(B
-schedule_to_close_timeout (2.google.protobuf.DurationB?
-start_to_close_timeout (2.google.protobuf.DurationB:
-heartbeat_timeout (2.google.protobuf.DurationB9
-retry_policy (2#.temporal.api.common.v1.RetryPolicy"
-"RecordActivityTaskHeartbeatRequest
-
-task_token (1
-details (2 .temporal.api.common.v1.Payloads
-identity (
- namespace ( "?
-#RecordActivityTaskHeartbeatResponse
-cancel_requested ("
-&RecordActivityTaskHeartbeatByIdRequest
- namespace (
-workflow_id (
-run_id (
-activity_id ( 1
-details (2 .temporal.api.common.v1.Payloads
-identity ( "C
-\'RecordActivityTaskHeartbeatByIdResponse
-cancel_requested ("
-#RespondActivityTaskCompletedRequest
-
-task_token (0
-result (2 .temporal.api.common.v1.Payloads
-identity (
- namespace ( B
-worker_version (2*.temporal.api.common.v1.WorkerVersionStamp"&
-$RespondActivityTaskCompletedResponse"
-\'RespondActivityTaskCompletedByIdRequest
- namespace (
-workflow_id (
-run_id (
-activity_id ( 0
-result (2 .temporal.api.common.v1.Payloads
-identity ( "*
-(RespondActivityTaskCompletedByIdResponse"
- RespondActivityTaskFailedRequest
-
-task_token (1
-failure (2 .temporal.api.failure.v1.Failure
-identity (
- namespace ( @
-last_heartbeat_details (2 .temporal.api.common.v1.PayloadsB
-worker_version (2*.temporal.api.common.v1.WorkerVersionStamp"W
-!RespondActivityTaskFailedResponse2
-failures (2 .temporal.api.failure.v1.Failure"
-$RespondActivityTaskFailedByIdRequest
- namespace (
-workflow_id (
-run_id (
-activity_id ( 1
-failure (2 .temporal.api.failure.v1.Failure
-identity ( @
-last_heartbeat_details (2 .temporal.api.common.v1.Payloads"[
-%RespondActivityTaskFailedByIdResponse2
-failures (2 .temporal.api.failure.v1.Failure"
-"RespondActivityTaskCanceledRequest
-
-task_token (1
-details (2 .temporal.api.common.v1.Payloads
-identity (
- namespace ( B
-worker_version (2*.temporal.api.common.v1.WorkerVersionStamp"%
-#RespondActivityTaskCanceledResponse"
-&RespondActivityTaskCanceledByIdRequest
- namespace (
-workflow_id (
-run_id (
-activity_id ( 1
-details (2 .temporal.api.common.v1.Payloads
-identity ( ")
-\'RespondActivityTaskCanceledByIdResponse"
-%RequestCancelWorkflowExecutionRequest
- namespace ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-identity (
-
-request_id (
-first_execution_run_id (
-reason ( "(
-&RequestCancelWorkflowExecutionResponse"
-SignalWorkflowExecutionRequest
- namespace ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-signal_name ( /
-input (2 .temporal.api.common.v1.Payloads
-identity (
-
-request_id (
-control ( .
-header (2.temporal.api.common.v1.Header#
-skip_generate_workflow_task ("!
-SignalWorkflowExecutionResponse"
-\'SignalWithStartWorkflowExecutionRequest
- namespace (
-workflow_id ( ;
-
workflow_type (2$.temporal.api.common.v1.WorkflowType8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue/
-input (2 .temporal.api.common.v1.PayloadsC
-workflow_execution_timeout (2.google.protobuf.DurationB=
-workflow_run_timeout (2.google.protobuf.DurationB>
-workflow_task_timeout (2.google.protobuf.DurationB
-identity (
-
-request_id
- ( N
-workflow_id_reuse_policy (2,.temporal.api.enums.v1.WorkflowIdReusePolicy
-signal_name ( 6
-signal_input
(2 .temporal.api.common.v1.Payloads
-control ( 9
-retry_policy (2#.temporal.api.common.v1.RetryPolicy
-
cron_schedule ( *
-memo (2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributes.
-header (2.temporal.api.common.v1.Header=
-workflow_start_delay (2.google.protobuf.DurationB#
-skip_generate_workflow_task (":
-(SignalWithStartWorkflowExecutionResponse
-run_id ( "
-ResetWorkflowExecutionRequest
- namespace ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-reason ( %
-workflow_task_finish_event_id (
-
-request_id ( C
-reset_reapply_type (2\'.temporal.api.enums.v1.ResetReapplyType"0
-ResetWorkflowExecutionResponse
-run_id ( "
-!TerminateWorkflowExecutionRequest
- namespace ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-reason ( 1
-details (2 .temporal.api.common.v1.Payloads
-identity (
-first_execution_run_id ( "$
-"TerminateWorkflowExecutionResponse"z
-DeleteWorkflowExecutionRequest
- namespace ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution"!
-DeleteWorkflowExecutionResponse"
-!ListOpenWorkflowExecutionsRequest
- namespace (
-maximum_page_size (
-next_page_token (B
-start_time_filter (2\'.temporal.api.filter.v1.StartTimeFilterK
-execution_filter (2/.temporal.api.filter.v1.WorkflowExecutionFilterH A
-type_filter (2*.temporal.api.filter.v1.WorkflowTypeFilterH B
-filters"
-"ListOpenWorkflowExecutionsResponseC
-
-executions (2/.temporal.api.workflow.v1.WorkflowExecutionInfo
-next_page_token ("
-#ListClosedWorkflowExecutionsRequest
- namespace (
-maximum_page_size (
-next_page_token (B
-start_time_filter (2\'.temporal.api.filter.v1.StartTimeFilterK
-execution_filter (2/.temporal.api.filter.v1.WorkflowExecutionFilterH A
-type_filter (2*.temporal.api.filter.v1.WorkflowTypeFilterH =
-
status_filter (2$.temporal.api.filter.v1.StatusFilterH B
-filters"
-$ListClosedWorkflowExecutionsResponseC
-
-executions (2/.temporal.api.workflow.v1.WorkflowExecutionInfo
-next_page_token ("m
-ListWorkflowExecutionsRequest
- namespace (
- page_size (
-next_page_token (
-query ( "~
-ListWorkflowExecutionsResponseC
-
-executions (2/.temporal.api.workflow.v1.WorkflowExecutionInfo
-next_page_token ("u
-%ListArchivedWorkflowExecutionsRequest
- namespace (
- page_size (
-next_page_token (
-query ( "
-&ListArchivedWorkflowExecutionsResponseC
-
-executions (2/.temporal.api.workflow.v1.WorkflowExecutionInfo
-next_page_token ("m
-ScanWorkflowExecutionsRequest
- namespace (
- page_size (
-next_page_token (
-query ( "~
-ScanWorkflowExecutionsResponseC
-
-executions (2/.temporal.api.workflow.v1.WorkflowExecutionInfo
-next_page_token ("B
-CountWorkflowExecutionsRequest
- namespace (
-query ( "0
-CountWorkflowExecutionsResponse
-count ("
-GetSearchAttributesRequest"
-GetSearchAttributesResponseT
-keys (2F.temporal.api.workflowservice.v1.GetSearchAttributesResponse.KeysEntryT
- KeysEntry
-key ( 6
-value (2\'.temporal.api.enums.v1.IndexedValueType:8"
- RespondQueryTaskCompletedRequest
-
-task_token (>
-completed_type (2&.temporal.api.enums.v1.QueryResultType6
-query_result (2 .temporal.api.common.v1.Payloads
-
error_message (
- namespace ( J"#
-!RespondQueryTaskCompletedResponse"n
-ResetStickyTaskQueueRequest
- namespace ( <
- execution (2).temporal.api.common.v1.WorkflowExecution"
-ResetStickyTaskQueueResponse"
-QueryWorkflowRequest
- namespace ( <
- execution (2).temporal.api.common.v1.WorkflowExecution3
-query (2$.temporal.api.query.v1.WorkflowQueryK
-query_reject_condition (2+.temporal.api.enums.v1.QueryRejectCondition"
-QueryWorkflowResponse6
-query_result (2 .temporal.api.common.v1.Payloads<
-query_rejected (2$.temporal.api.query.v1.QueryRejected"s
- DescribeWorkflowExecutionRequest
- namespace ( <
- execution (2).temporal.api.common.v1.WorkflowExecution"
-!DescribeWorkflowExecutionResponseK
-execution_config (21.temporal.api.workflow.v1.WorkflowExecutionConfigP
-workflow_execution_info (2/.temporal.api.workflow.v1.WorkflowExecutionInfoI
-pending_activities (2-.temporal.api.workflow.v1.PendingActivityInfoM
-pending_children (23.temporal.api.workflow.v1.PendingChildExecutionInfoP
-pending_workflow_task (21.temporal.api.workflow.v1.PendingWorkflowTaskInfo"
-DescribeTaskQueueRequest
- namespace ( 8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue=
-task_queue_type (2$.temporal.api.enums.v1.TaskQueueType!
-include_task_queue_status ("
-DescribeTaskQueueResponse6
-pollers (2%.temporal.api.taskqueue.v1.PollerInfoE
-task_queue_status (2*.temporal.api.taskqueue.v1.TaskQueueStatus"
-GetClusterInfoRequest"
-GetClusterInfoResponseh
-supported_clients (2M.temporal.api.workflowservice.v1.GetClusterInfoResponse.SupportedClientsEntry
-server_version (
-
-cluster_id ( :
-version_info (2$.temporal.api.version.v1.VersionInfo
-cluster_name (
-history_shard_count (
-persistence_store (
-visibility_store ( 7
-SupportedClientsEntry
-key (
-value ( :8"
-GetSystemInfoRequest"
-GetSystemInfoResponse
-server_version ( Y
-capabilities (2C.temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities
-Capabilities
-signal_and_query_header (&
-internal_error_differentiation (*
-"activity_failure_include_heartbeat (
-supports_schedules ("
-encoded_failure_attributes (!
-build_id_based_versioning (
-upsert_memo (
-eager_workflow_start (
-sdk_metadata ("m
-ListTaskQueuePartitionsRequest
- namespace ( 8
-
-task_queue (2$.temporal.api.taskqueue.v1.TaskQueue"
-ListTaskQueuePartitionsResponse]
-activity_task_queue_partitions (25.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata]
-workflow_task_queue_partitions (25.temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"
-CreateScheduleRequest
- namespace (
-schedule_id ( 4
-schedule (2".temporal.api.schedule.v1.Schedule>
-
initial_patch (2\'.temporal.api.schedule.v1.SchedulePatch
-identity (
-
-request_id ( *
-memo (2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributes"0
-CreateScheduleResponse
-conflict_token ("A
-DescribeScheduleRequest
- namespace (
-schedule_id ( "
-DescribeScheduleResponse4
-schedule (2".temporal.api.schedule.v1.Schedule4
-info (2&.temporal.api.schedule.v1.ScheduleInfo*
-memo (2.temporal.api.common.v1.MemoC
-search_attributes (2(.temporal.api.common.v1.SearchAttributes
-conflict_token ("
-UpdateScheduleRequest
- namespace (
-schedule_id ( 4
-schedule (2".temporal.api.schedule.v1.Schedule
-conflict_token (
-identity (
-
-request_id ( "
-UpdateScheduleResponse"
-PatchScheduleRequest
- namespace (
-schedule_id ( 6
-patch (2\'.temporal.api.schedule.v1.SchedulePatch
-identity (
-
-request_id ( "
-PatchScheduleResponse"
- ListScheduleMatchingTimesRequest
- namespace (
-schedule_id ( 4
-
-start_time (2.google.protobuf.TimestampB2
-end_time (2.google.protobuf.TimestampB"Y
-!ListScheduleMatchingTimesResponse4
-
-start_time (2.google.protobuf.TimestampB"Q
-DeleteScheduleRequest
- namespace (
-schedule_id (
-identity ( "
-DeleteScheduleResponse"]
-ListSchedulesRequest
- namespace (
-maximum_page_size (
-next_page_token ("p
-ListSchedulesResponse>
- schedules (2+.temporal.api.schedule.v1.ScheduleListEntry
-next_page_token ("
-\'UpdateWorkerBuildIdCompatibilityRequest
- namespace (
-
-task_queue ( -
-#add_new_build_id_in_new_default_set ( H
-add_new_compatible_build_id (2`.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersionH !
-promote_set_by_build_id ( H %
-promote_build_id_within_set ( H h
-
-merge_sets (2R.temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSetsH o
-AddNewCompatibleVersion
-new_build_id ( $
-existing_compatible_build_id (
-make_set_default (I
- MergeSets
-primary_set_build_id (
-secondary_set_build_id ( B
- operation"B
-(UpdateWorkerBuildIdCompatibilityResponse
-version_set_id ( "_
-$GetWorkerBuildIdCompatibilityRequest
- namespace (
-
-task_queue (
-max_sets ("t
-%GetWorkerBuildIdCompatibilityResponseK
-major_version_sets (2/.temporal.api.taskqueue.v1.CompatibleVersionSet"
- GetWorkerTaskReachabilityRequest
- namespace (
- build_ids (
-task_queues ( =
-reachability (2\'.temporal.api.enums.v1.TaskReachability"r
-!GetWorkerTaskReachabilityResponseM
-build_id_reachability (2..temporal.api.taskqueue.v1.BuildIdReachability"
-UpdateWorkflowExecutionRequest
- namespace ( E
-workflow_execution (2).temporal.api.common.v1.WorkflowExecution
-first_execution_run_id ( 7
-wait_policy (2".temporal.api.update.v1.WaitPolicy0
-request (2.temporal.api.update.v1.Request"
-UpdateWorkflowExecutionResponse5
-
-update_ref (2!.temporal.api.update.v1.UpdateRef0
-outcome (2.temporal.api.update.v1.Outcome"
-StartBatchOperationRequest
- namespace (
-visibility_query (
-job_id (
-reason ( =
-
-executions (2).temporal.api.common.v1.WorkflowExecutionQ
-termination_operation
- (20.temporal.api.batch.v1.BatchOperationTerminationH G
-signal_operation (2+.temporal.api.batch.v1.BatchOperationSignalH S
-cancellation_operation (21.temporal.api.batch.v1.BatchOperationCancellationH K
-deletion_operation
(2-.temporal.api.batch.v1.BatchOperationDeletionH E
-reset_operation (2*.temporal.api.batch.v1.BatchOperationResetH B
- operation"
-StartBatchOperationResponse"`
-StopBatchOperationRequest
- namespace (
-job_id (
-reason (
-identity ( "
-StopBatchOperationResponse"B
-DescribeBatchOperationRequest
- namespace (
-job_id ( "
-DescribeBatchOperationResponseA
-operation_type (2).temporal.api.enums.v1.BatchOperationType
-job_id ( 9
-state (2*.temporal.api.enums.v1.BatchOperationState4
-
-start_time (2.google.protobuf.TimestampB4
-
-close_time (2.google.protobuf.TimestampB
-total_operation_count (
-complete_operation_count (
-failure_operation_count (
-identity (
-reason
- ( "[
-ListBatchOperationsRequest
- namespace (
- page_size (
-next_page_token ("y
-ListBatchOperationsResponseA
-operation_info (2).temporal.api.batch.v1.BatchOperationInfo
-next_page_token ("
-"PollWorkflowExecutionUpdateRequest
- namespace ( 5
-
-update_ref (2!.temporal.api.update.v1.UpdateRef
-identity ( 7
-wait_policy (2".temporal.api.update.v1.WaitPolicy"W
-#PollWorkflowExecutionUpdateResponse0
-outcome (2.temporal.api.update.v1.OutcomeB
-"io.temporal.api.workflowservice.v1BRequestResponseProtoPZ5go.temporal.io/api/workflowservice/v1;workflowservice!Temporalio.Api.WorkflowService.V1$Temporalio::Api::WorkflowService::V1bproto3'
- , true);
-
- static::$is_initialized = true;
- }
-}
-
diff --git a/api/v1/GPBMetadata/Temporal/Api/Workflowservice/V1/Service.php b/api/v1/GPBMetadata/Temporal/Api/Workflowservice/V1/Service.php
deleted file mode 100644
index 47d9b8246..000000000
Binary files a/api/v1/GPBMetadata/Temporal/Api/Workflowservice/V1/Service.php and /dev/null differ
diff --git a/api/v1/Temporal/Api/Batch/V1/BatchOperationCancellation.php b/api/v1/Temporal/Api/Batch/V1/BatchOperationCancellation.php
deleted file mode 100644
index ce5c400a3..000000000
--- a/api/v1/Temporal/Api/Batch/V1/BatchOperationCancellation.php
+++ /dev/null
@@ -1,69 +0,0 @@
-temporal.api.batch.v1.BatchOperationCancellation
- */
-class BatchOperationCancellation extends \Google\Protobuf\Internal\Message
-{
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 1;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $identity
- * The identity of the worker/client
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Batch\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 1;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 1;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Batch/V1/BatchOperationDeletion.php b/api/v1/Temporal/Api/Batch/V1/BatchOperationDeletion.php
deleted file mode 100644
index c3a9ad1e8..000000000
--- a/api/v1/Temporal/Api/Batch/V1/BatchOperationDeletion.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.batch.v1.BatchOperationDeletion
- */
-class BatchOperationDeletion extends \Google\Protobuf\Internal\Message
-{
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 1;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $identity
- * The identity of the worker/client
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Batch\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 1;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 1;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Batch/V1/BatchOperationInfo.php b/api/v1/Temporal/Api/Batch/V1/BatchOperationInfo.php
deleted file mode 100644
index 2436b067b..000000000
--- a/api/v1/Temporal/Api/Batch/V1/BatchOperationInfo.php
+++ /dev/null
@@ -1,187 +0,0 @@
-temporal.api.batch.v1.BatchOperationInfo
- */
-class BatchOperationInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Batch job ID
- *
- * Generated from protobuf field string job_id = 1;
- */
- protected $job_id = '';
- /**
- * Batch operation state
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationState state = 2;
- */
- protected $state = 0;
- /**
- * Batch operation start time
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- */
- protected $start_time = null;
- /**
- * Batch operation close time
- *
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 4 [(.gogoproto.stdtime) = true];
- */
- protected $close_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $job_id
- * Batch job ID
- * @type int $state
- * Batch operation state
- * @type \Google\Protobuf\Timestamp $start_time
- * Batch operation start time
- * @type \Google\Protobuf\Timestamp $close_time
- * Batch operation close time
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Batch\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Batch job ID
- *
- * Generated from protobuf field string job_id = 1;
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Batch job ID
- *
- * Generated from protobuf field string job_id = 1;
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
- /**
- * Batch operation state
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationState state = 2;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Batch operation state
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationState state = 2;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\BatchOperationState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Batch operation start time
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * Batch operation start time
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * Batch operation close time
- *
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 4 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCloseTime()
- {
- return $this->close_time;
- }
-
- public function hasCloseTime()
- {
- return isset($this->close_time);
- }
-
- public function clearCloseTime()
- {
- unset($this->close_time);
- }
-
- /**
- * Batch operation close time
- *
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 4 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCloseTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->close_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Batch/V1/BatchOperationReset.php b/api/v1/Temporal/Api/Batch/V1/BatchOperationReset.php
deleted file mode 100644
index 3464147da..000000000
--- a/api/v1/Temporal/Api/Batch/V1/BatchOperationReset.php
+++ /dev/null
@@ -1,136 +0,0 @@
-temporal.api.batch.v1.BatchOperationReset
- */
-class BatchOperationReset extends \Google\Protobuf\Internal\Message
-{
- /**
- * Reset type.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetType reset_type = 1;
- */
- protected $reset_type = 0;
- /**
- * History event reapply options.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2;
- */
- protected $reset_reapply_type = 0;
- /**
- * The identity of the worker/client.
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $reset_type
- * Reset type.
- * @type int $reset_reapply_type
- * History event reapply options.
- * @type string $identity
- * The identity of the worker/client.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Batch\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Reset type.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetType reset_type = 1;
- * @return int
- */
- public function getResetType()
- {
- return $this->reset_type;
- }
-
- /**
- * Reset type.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetType reset_type = 1;
- * @param int $var
- * @return $this
- */
- public function setResetType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ResetType::class);
- $this->reset_type = $var;
-
- return $this;
- }
-
- /**
- * History event reapply options.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2;
- * @return int
- */
- public function getResetReapplyType()
- {
- return $this->reset_reapply_type;
- }
-
- /**
- * History event reapply options.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 2;
- * @param int $var
- * @return $this
- */
- public function setResetReapplyType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ResetReapplyType::class);
- $this->reset_reapply_type = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client.
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client.
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Batch/V1/BatchOperationSignal.php b/api/v1/Temporal/Api/Batch/V1/BatchOperationSignal.php
deleted file mode 100644
index a5d90297c..000000000
--- a/api/v1/Temporal/Api/Batch/V1/BatchOperationSignal.php
+++ /dev/null
@@ -1,194 +0,0 @@
-temporal.api.batch.v1.BatchOperationSignal
- */
-class BatchOperationSignal extends \Google\Protobuf\Internal\Message
-{
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal = 1;
- */
- protected $signal = '';
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 2;
- */
- protected $input = null;
- /**
- * Headers that are passed with the signal to the processing workflow.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- */
- protected $header = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 4;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $signal
- * The workflow author-defined name of the signal to send to the workflow
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Serialized value(s) to provide with the signal
- * @type \Temporal\Api\Common\V1\Header $header
- * Headers that are passed with the signal to the processing workflow.
- * These can include things like auth or tracing tokens.
- * @type string $identity
- * The identity of the worker/client
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Batch\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal = 1;
- * @return string
- */
- public function getSignal()
- {
- return $this->signal;
- }
-
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal = 1;
- * @param string $var
- * @return $this
- */
- public function setSignal($var)
- {
- GPBUtil::checkString($var, True);
- $this->signal = $var;
-
- return $this;
- }
-
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Headers that are passed with the signal to the processing workflow.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Headers that are passed with the signal to the processing workflow.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 4;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 4;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Batch/V1/BatchOperationTermination.php b/api/v1/Temporal/Api/Batch/V1/BatchOperationTermination.php
deleted file mode 100644
index 6987fbe25..000000000
--- a/api/v1/Temporal/Api/Batch/V1/BatchOperationTermination.php
+++ /dev/null
@@ -1,113 +0,0 @@
-temporal.api.batch.v1.BatchOperationTermination
- */
-class BatchOperationTermination extends \Google\Protobuf\Internal\Message
-{
- /**
- * Serialized value(s) to provide to the termination event
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- */
- protected $details = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 2;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $details
- * Serialized value(s) to provide to the termination event
- * @type string $identity
- * The identity of the worker/client
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Batch\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Serialized value(s) to provide to the termination event
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Serialized value(s) to provide to the termination event
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 2;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 2;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/CancelTimerCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/CancelTimerCommandAttributes.php
deleted file mode 100644
index 912898ef8..000000000
--- a/api/v1/Temporal/Api/Command/V1/CancelTimerCommandAttributes.php
+++ /dev/null
@@ -1,65 +0,0 @@
-temporal.api.command.v1.CancelTimerCommandAttributes
- */
-class CancelTimerCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The same timer id from the start timer command
- *
- * Generated from protobuf field string timer_id = 1;
- */
- protected $timer_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $timer_id
- * The same timer id from the start timer command
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The same timer id from the start timer command
- *
- * Generated from protobuf field string timer_id = 1;
- * @return string
- */
- public function getTimerId()
- {
- return $this->timer_id;
- }
-
- /**
- * The same timer id from the start timer command
- *
- * Generated from protobuf field string timer_id = 1;
- * @param string $var
- * @return $this
- */
- public function setTimerId($var)
- {
- GPBUtil::checkString($var, True);
- $this->timer_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/CancelWorkflowExecutionCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/CancelWorkflowExecutionCommandAttributes.php
deleted file mode 100644
index 6deb13d84..000000000
--- a/api/v1/Temporal/Api/Command/V1/CancelWorkflowExecutionCommandAttributes.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.command.v1.CancelWorkflowExecutionCommandAttributes
- */
-class CancelWorkflowExecutionCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- */
- protected $details = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $details
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/Command.php b/api/v1/Temporal/Api/Command/V1/Command.php
deleted file mode 100644
index 775a2b1b0..000000000
--- a/api/v1/Temporal/Api/Command/V1/Command.php
+++ /dev/null
@@ -1,492 +0,0 @@
-temporal.api.command.v1.Command
- */
-class Command extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.CommandType command_type = 1;
- */
- protected $command_type = 0;
- protected $attributes;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $command_type
- * @type \Temporal\Api\Command\V1\ScheduleActivityTaskCommandAttributes $schedule_activity_task_command_attributes
- * @type \Temporal\Api\Command\V1\StartTimerCommandAttributes $start_timer_command_attributes
- * @type \Temporal\Api\Command\V1\CompleteWorkflowExecutionCommandAttributes $complete_workflow_execution_command_attributes
- * @type \Temporal\Api\Command\V1\FailWorkflowExecutionCommandAttributes $fail_workflow_execution_command_attributes
- * @type \Temporal\Api\Command\V1\RequestCancelActivityTaskCommandAttributes $request_cancel_activity_task_command_attributes
- * @type \Temporal\Api\Command\V1\CancelTimerCommandAttributes $cancel_timer_command_attributes
- * @type \Temporal\Api\Command\V1\CancelWorkflowExecutionCommandAttributes $cancel_workflow_execution_command_attributes
- * @type \Temporal\Api\Command\V1\RequestCancelExternalWorkflowExecutionCommandAttributes $request_cancel_external_workflow_execution_command_attributes
- * @type \Temporal\Api\Command\V1\RecordMarkerCommandAttributes $record_marker_command_attributes
- * @type \Temporal\Api\Command\V1\ContinueAsNewWorkflowExecutionCommandAttributes $continue_as_new_workflow_execution_command_attributes
- * @type \Temporal\Api\Command\V1\StartChildWorkflowExecutionCommandAttributes $start_child_workflow_execution_command_attributes
- * @type \Temporal\Api\Command\V1\SignalExternalWorkflowExecutionCommandAttributes $signal_external_workflow_execution_command_attributes
- * @type \Temporal\Api\Command\V1\UpsertWorkflowSearchAttributesCommandAttributes $upsert_workflow_search_attributes_command_attributes
- * @type \Temporal\Api\Command\V1\ProtocolMessageCommandAttributes $protocol_message_command_attributes
- * @type \Temporal\Api\Command\V1\ModifyWorkflowPropertiesCommandAttributes $modify_workflow_properties_command_attributes
- * 16 is available for use - it was used as part of a prototype that never made it into a release
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.CommandType command_type = 1;
- * @return int
- */
- public function getCommandType()
- {
- return $this->command_type;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.CommandType command_type = 1;
- * @param int $var
- * @return $this
- */
- public function setCommandType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\CommandType::class);
- $this->command_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.ScheduleActivityTaskCommandAttributes schedule_activity_task_command_attributes = 2;
- * @return \Temporal\Api\Command\V1\ScheduleActivityTaskCommandAttributes|null
- */
- public function getScheduleActivityTaskCommandAttributes()
- {
- return $this->readOneof(2);
- }
-
- public function hasScheduleActivityTaskCommandAttributes()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.ScheduleActivityTaskCommandAttributes schedule_activity_task_command_attributes = 2;
- * @param \Temporal\Api\Command\V1\ScheduleActivityTaskCommandAttributes $var
- * @return $this
- */
- public function setScheduleActivityTaskCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\ScheduleActivityTaskCommandAttributes::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.StartTimerCommandAttributes start_timer_command_attributes = 3;
- * @return \Temporal\Api\Command\V1\StartTimerCommandAttributes|null
- */
- public function getStartTimerCommandAttributes()
- {
- return $this->readOneof(3);
- }
-
- public function hasStartTimerCommandAttributes()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.StartTimerCommandAttributes start_timer_command_attributes = 3;
- * @param \Temporal\Api\Command\V1\StartTimerCommandAttributes $var
- * @return $this
- */
- public function setStartTimerCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\StartTimerCommandAttributes::class);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributes complete_workflow_execution_command_attributes = 4;
- * @return \Temporal\Api\Command\V1\CompleteWorkflowExecutionCommandAttributes|null
- */
- public function getCompleteWorkflowExecutionCommandAttributes()
- {
- return $this->readOneof(4);
- }
-
- public function hasCompleteWorkflowExecutionCommandAttributes()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributes complete_workflow_execution_command_attributes = 4;
- * @param \Temporal\Api\Command\V1\CompleteWorkflowExecutionCommandAttributes $var
- * @return $this
- */
- public function setCompleteWorkflowExecutionCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\CompleteWorkflowExecutionCommandAttributes::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.FailWorkflowExecutionCommandAttributes fail_workflow_execution_command_attributes = 5;
- * @return \Temporal\Api\Command\V1\FailWorkflowExecutionCommandAttributes|null
- */
- public function getFailWorkflowExecutionCommandAttributes()
- {
- return $this->readOneof(5);
- }
-
- public function hasFailWorkflowExecutionCommandAttributes()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.FailWorkflowExecutionCommandAttributes fail_workflow_execution_command_attributes = 5;
- * @param \Temporal\Api\Command\V1\FailWorkflowExecutionCommandAttributes $var
- * @return $this
- */
- public function setFailWorkflowExecutionCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\FailWorkflowExecutionCommandAttributes::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.RequestCancelActivityTaskCommandAttributes request_cancel_activity_task_command_attributes = 6;
- * @return \Temporal\Api\Command\V1\RequestCancelActivityTaskCommandAttributes|null
- */
- public function getRequestCancelActivityTaskCommandAttributes()
- {
- return $this->readOneof(6);
- }
-
- public function hasRequestCancelActivityTaskCommandAttributes()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.RequestCancelActivityTaskCommandAttributes request_cancel_activity_task_command_attributes = 6;
- * @param \Temporal\Api\Command\V1\RequestCancelActivityTaskCommandAttributes $var
- * @return $this
- */
- public function setRequestCancelActivityTaskCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\RequestCancelActivityTaskCommandAttributes::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.CancelTimerCommandAttributes cancel_timer_command_attributes = 7;
- * @return \Temporal\Api\Command\V1\CancelTimerCommandAttributes|null
- */
- public function getCancelTimerCommandAttributes()
- {
- return $this->readOneof(7);
- }
-
- public function hasCancelTimerCommandAttributes()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.CancelTimerCommandAttributes cancel_timer_command_attributes = 7;
- * @param \Temporal\Api\Command\V1\CancelTimerCommandAttributes $var
- * @return $this
- */
- public function setCancelTimerCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\CancelTimerCommandAttributes::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.CancelWorkflowExecutionCommandAttributes cancel_workflow_execution_command_attributes = 8;
- * @return \Temporal\Api\Command\V1\CancelWorkflowExecutionCommandAttributes|null
- */
- public function getCancelWorkflowExecutionCommandAttributes()
- {
- return $this->readOneof(8);
- }
-
- public function hasCancelWorkflowExecutionCommandAttributes()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.CancelWorkflowExecutionCommandAttributes cancel_workflow_execution_command_attributes = 8;
- * @param \Temporal\Api\Command\V1\CancelWorkflowExecutionCommandAttributes $var
- * @return $this
- */
- public function setCancelWorkflowExecutionCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\CancelWorkflowExecutionCommandAttributes::class);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes request_cancel_external_workflow_execution_command_attributes = 9;
- * @return \Temporal\Api\Command\V1\RequestCancelExternalWorkflowExecutionCommandAttributes|null
- */
- public function getRequestCancelExternalWorkflowExecutionCommandAttributes()
- {
- return $this->readOneof(9);
- }
-
- public function hasRequestCancelExternalWorkflowExecutionCommandAttributes()
- {
- return $this->hasOneof(9);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes request_cancel_external_workflow_execution_command_attributes = 9;
- * @param \Temporal\Api\Command\V1\RequestCancelExternalWorkflowExecutionCommandAttributes $var
- * @return $this
- */
- public function setRequestCancelExternalWorkflowExecutionCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\RequestCancelExternalWorkflowExecutionCommandAttributes::class);
- $this->writeOneof(9, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.RecordMarkerCommandAttributes record_marker_command_attributes = 10;
- * @return \Temporal\Api\Command\V1\RecordMarkerCommandAttributes|null
- */
- public function getRecordMarkerCommandAttributes()
- {
- return $this->readOneof(10);
- }
-
- public function hasRecordMarkerCommandAttributes()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.RecordMarkerCommandAttributes record_marker_command_attributes = 10;
- * @param \Temporal\Api\Command\V1\RecordMarkerCommandAttributes $var
- * @return $this
- */
- public function setRecordMarkerCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\RecordMarkerCommandAttributes::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes continue_as_new_workflow_execution_command_attributes = 11;
- * @return \Temporal\Api\Command\V1\ContinueAsNewWorkflowExecutionCommandAttributes|null
- */
- public function getContinueAsNewWorkflowExecutionCommandAttributes()
- {
- return $this->readOneof(11);
- }
-
- public function hasContinueAsNewWorkflowExecutionCommandAttributes()
- {
- return $this->hasOneof(11);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes continue_as_new_workflow_execution_command_attributes = 11;
- * @param \Temporal\Api\Command\V1\ContinueAsNewWorkflowExecutionCommandAttributes $var
- * @return $this
- */
- public function setContinueAsNewWorkflowExecutionCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\ContinueAsNewWorkflowExecutionCommandAttributes::class);
- $this->writeOneof(11, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes start_child_workflow_execution_command_attributes = 12;
- * @return \Temporal\Api\Command\V1\StartChildWorkflowExecutionCommandAttributes|null
- */
- public function getStartChildWorkflowExecutionCommandAttributes()
- {
- return $this->readOneof(12);
- }
-
- public function hasStartChildWorkflowExecutionCommandAttributes()
- {
- return $this->hasOneof(12);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes start_child_workflow_execution_command_attributes = 12;
- * @param \Temporal\Api\Command\V1\StartChildWorkflowExecutionCommandAttributes $var
- * @return $this
- */
- public function setStartChildWorkflowExecutionCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\StartChildWorkflowExecutionCommandAttributes::class);
- $this->writeOneof(12, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes signal_external_workflow_execution_command_attributes = 13;
- * @return \Temporal\Api\Command\V1\SignalExternalWorkflowExecutionCommandAttributes|null
- */
- public function getSignalExternalWorkflowExecutionCommandAttributes()
- {
- return $this->readOneof(13);
- }
-
- public function hasSignalExternalWorkflowExecutionCommandAttributes()
- {
- return $this->hasOneof(13);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes signal_external_workflow_execution_command_attributes = 13;
- * @param \Temporal\Api\Command\V1\SignalExternalWorkflowExecutionCommandAttributes $var
- * @return $this
- */
- public function setSignalExternalWorkflowExecutionCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\SignalExternalWorkflowExecutionCommandAttributes::class);
- $this->writeOneof(13, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes upsert_workflow_search_attributes_command_attributes = 14;
- * @return \Temporal\Api\Command\V1\UpsertWorkflowSearchAttributesCommandAttributes|null
- */
- public function getUpsertWorkflowSearchAttributesCommandAttributes()
- {
- return $this->readOneof(14);
- }
-
- public function hasUpsertWorkflowSearchAttributesCommandAttributes()
- {
- return $this->hasOneof(14);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes upsert_workflow_search_attributes_command_attributes = 14;
- * @param \Temporal\Api\Command\V1\UpsertWorkflowSearchAttributesCommandAttributes $var
- * @return $this
- */
- public function setUpsertWorkflowSearchAttributesCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\UpsertWorkflowSearchAttributesCommandAttributes::class);
- $this->writeOneof(14, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.ProtocolMessageCommandAttributes protocol_message_command_attributes = 15;
- * @return \Temporal\Api\Command\V1\ProtocolMessageCommandAttributes|null
- */
- public function getProtocolMessageCommandAttributes()
- {
- return $this->readOneof(15);
- }
-
- public function hasProtocolMessageCommandAttributes()
- {
- return $this->hasOneof(15);
- }
-
- /**
- * Generated from protobuf field .temporal.api.command.v1.ProtocolMessageCommandAttributes protocol_message_command_attributes = 15;
- * @param \Temporal\Api\Command\V1\ProtocolMessageCommandAttributes $var
- * @return $this
- */
- public function setProtocolMessageCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\ProtocolMessageCommandAttributes::class);
- $this->writeOneof(15, $var);
-
- return $this;
- }
-
- /**
- * 16 is available for use - it was used as part of a prototype that never made it into a release
- *
- * Generated from protobuf field .temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributes modify_workflow_properties_command_attributes = 17;
- * @return \Temporal\Api\Command\V1\ModifyWorkflowPropertiesCommandAttributes|null
- */
- public function getModifyWorkflowPropertiesCommandAttributes()
- {
- return $this->readOneof(17);
- }
-
- public function hasModifyWorkflowPropertiesCommandAttributes()
- {
- return $this->hasOneof(17);
- }
-
- /**
- * 16 is available for use - it was used as part of a prototype that never made it into a release
- *
- * Generated from protobuf field .temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributes modify_workflow_properties_command_attributes = 17;
- * @param \Temporal\Api\Command\V1\ModifyWorkflowPropertiesCommandAttributes $var
- * @return $this
- */
- public function setModifyWorkflowPropertiesCommandAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Command\V1\ModifyWorkflowPropertiesCommandAttributes::class);
- $this->writeOneof(17, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getAttributes()
- {
- return $this->whichOneof("attributes");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/CompleteWorkflowExecutionCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/CompleteWorkflowExecutionCommandAttributes.php
deleted file mode 100644
index 603fb7914..000000000
--- a/api/v1/Temporal/Api/Command/V1/CompleteWorkflowExecutionCommandAttributes.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.command.v1.CompleteWorkflowExecutionCommandAttributes
- */
-class CompleteWorkflowExecutionCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- */
- protected $result = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $result
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getResult()
- {
- return $this->result;
- }
-
- public function hasResult()
- {
- return isset($this->result);
- }
-
- public function clearResult()
- {
- unset($this->result);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->result = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/ContinueAsNewWorkflowExecutionCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/ContinueAsNewWorkflowExecutionCommandAttributes.php
deleted file mode 100644
index 3c1806e83..000000000
--- a/api/v1/Temporal/Api/Command/V1/ContinueAsNewWorkflowExecutionCommandAttributes.php
+++ /dev/null
@@ -1,616 +0,0 @@
-temporal.api.command.v1.ContinueAsNewWorkflowExecutionCommandAttributes
- */
-class ContinueAsNewWorkflowExecutionCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 1;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- */
- protected $task_queue = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 3;
- */
- protected $input = null;
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 4 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 5 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_task_timeout = null;
- /**
- * How long the workflow start will be delayed - not really a "backoff" in the traditional sense.
- *
- * Generated from protobuf field .google.protobuf.Duration backoff_start_interval = 6 [(.gogoproto.stdduration) = true];
- */
- protected $backoff_start_interval = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 7;
- */
- protected $retry_policy = null;
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 8;
- */
- protected $initiator = 0;
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 9;
- */
- protected $failure = null;
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 10;
- */
- protected $last_completion_result = null;
- /**
- * Should be removed. Not necessarily unused but unclear and not exposed by SDKs.
- *
- * Generated from protobuf field string cron_schedule = 11;
- */
- protected $cron_schedule = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 12;
- */
- protected $header = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 13;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 14;
- */
- protected $search_attributes = null;
- /**
- * If this is set, the workflow executing this command wishes to continue as new using a version
- * compatible with the version that this workflow most recently ran on.
- *
- * Generated from protobuf field bool use_compatible_version = 15;
- */
- protected $use_compatible_version = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Payloads $input
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * Timeout of a single workflow run.
- * @type \Google\Protobuf\Duration $workflow_task_timeout
- * Timeout of a single workflow task.
- * @type \Google\Protobuf\Duration $backoff_start_interval
- * How long the workflow start will be delayed - not really a "backoff" in the traditional sense.
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * @type int $initiator
- * Should be removed
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * Should be removed
- * @type \Temporal\Api\Common\V1\Payloads $last_completion_result
- * Should be removed
- * @type string $cron_schedule
- * Should be removed. Not necessarily unused but unclear and not exposed by SDKs.
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type bool $use_compatible_version
- * If this is set, the workflow executing this command wishes to continue as new using a version
- * compatible with the version that this workflow most recently ran on.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 1;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 1;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 3;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 3;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 4 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 4 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 5 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowTaskTimeout()
- {
- return $this->workflow_task_timeout;
- }
-
- public function hasWorkflowTaskTimeout()
- {
- return isset($this->workflow_task_timeout);
- }
-
- public function clearWorkflowTaskTimeout()
- {
- unset($this->workflow_task_timeout);
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 5 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * How long the workflow start will be delayed - not really a "backoff" in the traditional sense.
- *
- * Generated from protobuf field .google.protobuf.Duration backoff_start_interval = 6 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getBackoffStartInterval()
- {
- return $this->backoff_start_interval;
- }
-
- public function hasBackoffStartInterval()
- {
- return isset($this->backoff_start_interval);
- }
-
- public function clearBackoffStartInterval()
- {
- unset($this->backoff_start_interval);
- }
-
- /**
- * How long the workflow start will be delayed - not really a "backoff" in the traditional sense.
- *
- * Generated from protobuf field .google.protobuf.Duration backoff_start_interval = 6 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setBackoffStartInterval($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->backoff_start_interval = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 7;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 7;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 8;
- * @return int
- */
- public function getInitiator()
- {
- return $this->initiator;
- }
-
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 8;
- * @param int $var
- * @return $this
- */
- public function setInitiator($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ContinueAsNewInitiator::class);
- $this->initiator = $var;
-
- return $this;
- }
-
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 9;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 9;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 10;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getLastCompletionResult()
- {
- return $this->last_completion_result;
- }
-
- public function hasLastCompletionResult()
- {
- return isset($this->last_completion_result);
- }
-
- public function clearLastCompletionResult()
- {
- unset($this->last_completion_result);
- }
-
- /**
- * Should be removed
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 10;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setLastCompletionResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->last_completion_result = $var;
-
- return $this;
- }
-
- /**
- * Should be removed. Not necessarily unused but unclear and not exposed by SDKs.
- *
- * Generated from protobuf field string cron_schedule = 11;
- * @return string
- */
- public function getCronSchedule()
- {
- return $this->cron_schedule;
- }
-
- /**
- * Should be removed. Not necessarily unused but unclear and not exposed by SDKs.
- *
- * Generated from protobuf field string cron_schedule = 11;
- * @param string $var
- * @return $this
- */
- public function setCronSchedule($var)
- {
- GPBUtil::checkString($var, True);
- $this->cron_schedule = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 12;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 12;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 13;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 13;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 14;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 14;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to continue as new using a version
- * compatible with the version that this workflow most recently ran on.
- *
- * Generated from protobuf field bool use_compatible_version = 15;
- * @return bool
- */
- public function getUseCompatibleVersion()
- {
- return $this->use_compatible_version;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to continue as new using a version
- * compatible with the version that this workflow most recently ran on.
- *
- * Generated from protobuf field bool use_compatible_version = 15;
- * @param bool $var
- * @return $this
- */
- public function setUseCompatibleVersion($var)
- {
- GPBUtil::checkBool($var);
- $this->use_compatible_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/FailWorkflowExecutionCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/FailWorkflowExecutionCommandAttributes.php
deleted file mode 100644
index 32307a38d..000000000
--- a/api/v1/Temporal/Api/Command/V1/FailWorkflowExecutionCommandAttributes.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.command.v1.FailWorkflowExecutionCommandAttributes
- */
-class FailWorkflowExecutionCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- */
- protected $failure = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/ModifyWorkflowPropertiesCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/ModifyWorkflowPropertiesCommandAttributes.php
deleted file mode 100644
index f62238910..000000000
--- a/api/v1/Temporal/Api/Command/V1/ModifyWorkflowPropertiesCommandAttributes.php
+++ /dev/null
@@ -1,83 +0,0 @@
-temporal.api.command.v1.ModifyWorkflowPropertiesCommandAttributes
- */
-class ModifyWorkflowPropertiesCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 1;
- */
- protected $upserted_memo = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Memo $upserted_memo
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 1;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getUpsertedMemo()
- {
- return $this->upserted_memo;
- }
-
- public function hasUpsertedMemo()
- {
- return isset($this->upserted_memo);
- }
-
- public function clearUpsertedMemo()
- {
- unset($this->upserted_memo);
- }
-
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 1;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setUpsertedMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->upserted_memo = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/ProtocolMessageCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/ProtocolMessageCommandAttributes.php
deleted file mode 100644
index 8b0f9990b..000000000
--- a/api/v1/Temporal/Api/Command/V1/ProtocolMessageCommandAttributes.php
+++ /dev/null
@@ -1,65 +0,0 @@
-temporal.api.command.v1.ProtocolMessageCommandAttributes
- */
-class ProtocolMessageCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The message ID of the message to which this command is a pointer.
- *
- * Generated from protobuf field string message_id = 1;
- */
- protected $message_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message_id
- * The message ID of the message to which this command is a pointer.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The message ID of the message to which this command is a pointer.
- *
- * Generated from protobuf field string message_id = 1;
- * @return string
- */
- public function getMessageId()
- {
- return $this->message_id;
- }
-
- /**
- * The message ID of the message to which this command is a pointer.
- *
- * Generated from protobuf field string message_id = 1;
- * @param string $var
- * @return $this
- */
- public function setMessageId($var)
- {
- GPBUtil::checkString($var, True);
- $this->message_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/RecordMarkerCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/RecordMarkerCommandAttributes.php
deleted file mode 100644
index f486cc556..000000000
--- a/api/v1/Temporal/Api/Command/V1/RecordMarkerCommandAttributes.php
+++ /dev/null
@@ -1,159 +0,0 @@
-temporal.api.command.v1.RecordMarkerCommandAttributes
- */
-class RecordMarkerCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string marker_name = 1;
- */
- protected $marker_name = '';
- /**
- * Generated from protobuf field map details = 2;
- */
- private $details;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- */
- protected $header = null;
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- */
- protected $failure = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $marker_name
- * @type array|\Google\Protobuf\Internal\MapField $details
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string marker_name = 1;
- * @return string
- */
- public function getMarkerName()
- {
- return $this->marker_name;
- }
-
- /**
- * Generated from protobuf field string marker_name = 1;
- * @param string $var
- * @return $this
- */
- public function setMarkerName($var)
- {
- GPBUtil::checkString($var, True);
- $this->marker_name = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field map details = 2;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- /**
- * Generated from protobuf field map details = 2;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setDetails($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/RequestCancelActivityTaskCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/RequestCancelActivityTaskCommandAttributes.php
deleted file mode 100644
index 1352aece3..000000000
--- a/api/v1/Temporal/Api/Command/V1/RequestCancelActivityTaskCommandAttributes.php
+++ /dev/null
@@ -1,65 +0,0 @@
-temporal.api.command.v1.RequestCancelActivityTaskCommandAttributes
- */
-class RequestCancelActivityTaskCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled.
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled.
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The `ACTIVITY_TASK_SCHEDULED` event id for the activity being cancelled.
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/RequestCancelExternalWorkflowExecutionCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/RequestCancelExternalWorkflowExecutionCommandAttributes.php
deleted file mode 100644
index 5faf22dec..000000000
--- a/api/v1/Temporal/Api/Command/V1/RequestCancelExternalWorkflowExecutionCommandAttributes.php
+++ /dev/null
@@ -1,222 +0,0 @@
-temporal.api.command.v1.RequestCancelExternalWorkflowExecutionCommandAttributes
- */
-class RequestCancelExternalWorkflowExecutionCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field string run_id = 3;
- */
- protected $run_id = '';
- /**
- * Deprecated.
- *
- * Generated from protobuf field string control = 4;
- */
- protected $control = '';
- /**
- * Set this to true if the workflow being cancelled is a child of the workflow originating this
- * command. The request will be rejected if it is set to true and the target workflow is *not*
- * a child of the requesting workflow.
- *
- * Generated from protobuf field bool child_workflow_only = 5;
- */
- protected $child_workflow_only = false;
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- */
- protected $reason = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $workflow_id
- * @type string $run_id
- * @type string $control
- * Deprecated.
- * @type bool $child_workflow_only
- * Set this to true if the workflow being cancelled is a child of the workflow originating this
- * command. The request will be rejected if it is set to true and the target workflow is *not*
- * a child of the requesting workflow.
- * @type string $reason
- * Reason for requesting the cancellation
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string run_id = 3;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Generated from protobuf field string run_id = 3;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
- /**
- * Deprecated.
- *
- * Generated from protobuf field string control = 4;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated.
- *
- * Generated from protobuf field string control = 4;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * Set this to true if the workflow being cancelled is a child of the workflow originating this
- * command. The request will be rejected if it is set to true and the target workflow is *not*
- * a child of the requesting workflow.
- *
- * Generated from protobuf field bool child_workflow_only = 5;
- * @return bool
- */
- public function getChildWorkflowOnly()
- {
- return $this->child_workflow_only;
- }
-
- /**
- * Set this to true if the workflow being cancelled is a child of the workflow originating this
- * command. The request will be rejected if it is set to true and the target workflow is *not*
- * a child of the requesting workflow.
- *
- * Generated from protobuf field bool child_workflow_only = 5;
- * @param bool $var
- * @return $this
- */
- public function setChildWorkflowOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->child_workflow_only = $var;
-
- return $this;
- }
-
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/ScheduleActivityTaskCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/ScheduleActivityTaskCommandAttributes.php
deleted file mode 100644
index 7e60dff09..000000000
--- a/api/v1/Temporal/Api/Command/V1/ScheduleActivityTaskCommandAttributes.php
+++ /dev/null
@@ -1,578 +0,0 @@
-temporal.api.command.v1.ScheduleActivityTaskCommandAttributes
- */
-class ScheduleActivityTaskCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string activity_id = 1;
- */
- protected $activity_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- */
- protected $activity_type = null;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- */
- protected $task_queue = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- */
- protected $header = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- */
- protected $input = null;
- /**
- * Indicates how long the caller is willing to wait for activity completion. The "schedule" time
- * is when the activity is initially scheduled, not when the most recent retry is scheduled.
- * Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
- * specified. When not specified, defaults to the workflow execution timeout.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
- */
- protected $schedule_to_close_timeout = null;
- /**
- * Limits the time an activity task can stay in a task queue before a worker picks it up. The
- * "schedule" time is when the most recent retry is scheduled. This timeout should usually not
- * be set: it's useful in specific scenarios like worker-specific task queues. This timeout is
- * always non retryable, as all a retry would achieve is to put it back into the same queue.
- * Defaults to `schedule_to_close_timeout` or workflow execution timeout if that is not
- * specified. More info:
- * https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
- */
- protected $schedule_to_start_timeout = null;
- /**
- * Maximum time an activity is allowed to execute after being picked up by a worker. This
- * timeout is always retryable. Either this or `schedule_to_close_timeout` must be specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 9 [(.gogoproto.stdduration) = true];
- */
- protected $start_to_close_timeout = null;
- /**
- * Maximum permitted time between successful worker heartbeats.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
- */
- protected $heartbeat_timeout = null;
- /**
- * Activities are provided by a default retry policy which is controlled through the service's
- * dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
- * elapsed. To disable retries set retry_policy.maximum_attempts to 1.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 11;
- */
- protected $retry_policy = null;
- /**
- * Request to start the activity directly bypassing matching service and worker polling
- * The slot for executing the activity should be reserved when setting this field to true.
- *
- * Generated from protobuf field bool request_eager_execution = 12;
- */
- protected $request_eager_execution = false;
- /**
- * If this is set, the workflow executing this command wishes to start the activity using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 13;
- */
- protected $use_compatible_version = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $activity_id
- * @type \Temporal\Api\Common\V1\ActivityType $activity_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Temporal\Api\Common\V1\Payloads $input
- * @type \Google\Protobuf\Duration $schedule_to_close_timeout
- * Indicates how long the caller is willing to wait for activity completion. The "schedule" time
- * is when the activity is initially scheduled, not when the most recent retry is scheduled.
- * Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
- * specified. When not specified, defaults to the workflow execution timeout.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type \Google\Protobuf\Duration $schedule_to_start_timeout
- * Limits the time an activity task can stay in a task queue before a worker picks it up. The
- * "schedule" time is when the most recent retry is scheduled. This timeout should usually not
- * be set: it's useful in specific scenarios like worker-specific task queues. This timeout is
- * always non retryable, as all a retry would achieve is to put it back into the same queue.
- * Defaults to `schedule_to_close_timeout` or workflow execution timeout if that is not
- * specified. More info:
- * https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type \Google\Protobuf\Duration $start_to_close_timeout
- * Maximum time an activity is allowed to execute after being picked up by a worker. This
- * timeout is always retryable. Either this or `schedule_to_close_timeout` must be specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type \Google\Protobuf\Duration $heartbeat_timeout
- * Maximum permitted time between successful worker heartbeats.
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * Activities are provided by a default retry policy which is controlled through the service's
- * dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
- * elapsed. To disable retries set retry_policy.maximum_attempts to 1.
- * @type bool $request_eager_execution
- * Request to start the activity directly bypassing matching service and worker polling
- * The slot for executing the activity should be reserved when setting this field to true.
- * @type bool $use_compatible_version
- * If this is set, the workflow executing this command wishes to start the activity using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string activity_id = 1;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * Generated from protobuf field string activity_id = 1;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- * @return \Temporal\Api\Common\V1\ActivityType|null
- */
- public function getActivityType()
- {
- return $this->activity_type;
- }
-
- public function hasActivityType()
- {
- return isset($this->activity_type);
- }
-
- public function clearActivityType()
- {
- unset($this->activity_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- * @param \Temporal\Api\Common\V1\ActivityType $var
- * @return $this
- */
- public function setActivityType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\ActivityType::class);
- $this->activity_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Indicates how long the caller is willing to wait for activity completion. The "schedule" time
- * is when the activity is initially scheduled, not when the most recent retry is scheduled.
- * Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
- * specified. When not specified, defaults to the workflow execution timeout.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getScheduleToCloseTimeout()
- {
- return $this->schedule_to_close_timeout;
- }
-
- public function hasScheduleToCloseTimeout()
- {
- return isset($this->schedule_to_close_timeout);
- }
-
- public function clearScheduleToCloseTimeout()
- {
- unset($this->schedule_to_close_timeout);
- }
-
- /**
- * Indicates how long the caller is willing to wait for activity completion. The "schedule" time
- * is when the activity is initially scheduled, not when the most recent retry is scheduled.
- * Limits how long retries will be attempted. Either this or `start_to_close_timeout` must be
- * specified. When not specified, defaults to the workflow execution timeout.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setScheduleToCloseTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->schedule_to_close_timeout = $var;
-
- return $this;
- }
-
- /**
- * Limits the time an activity task can stay in a task queue before a worker picks it up. The
- * "schedule" time is when the most recent retry is scheduled. This timeout should usually not
- * be set: it's useful in specific scenarios like worker-specific task queues. This timeout is
- * always non retryable, as all a retry would achieve is to put it back into the same queue.
- * Defaults to `schedule_to_close_timeout` or workflow execution timeout if that is not
- * specified. More info:
- * https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getScheduleToStartTimeout()
- {
- return $this->schedule_to_start_timeout;
- }
-
- public function hasScheduleToStartTimeout()
- {
- return isset($this->schedule_to_start_timeout);
- }
-
- public function clearScheduleToStartTimeout()
- {
- unset($this->schedule_to_start_timeout);
- }
-
- /**
- * Limits the time an activity task can stay in a task queue before a worker picks it up. The
- * "schedule" time is when the most recent retry is scheduled. This timeout should usually not
- * be set: it's useful in specific scenarios like worker-specific task queues. This timeout is
- * always non retryable, as all a retry would achieve is to put it back into the same queue.
- * Defaults to `schedule_to_close_timeout` or workflow execution timeout if that is not
- * specified. More info:
- * https://docs.temporal.io/docs/content/what-is-a-schedule-to-start-timeout/
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setScheduleToStartTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->schedule_to_start_timeout = $var;
-
- return $this;
- }
-
- /**
- * Maximum time an activity is allowed to execute after being picked up by a worker. This
- * timeout is always retryable. Either this or `schedule_to_close_timeout` must be specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 9 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartToCloseTimeout()
- {
- return $this->start_to_close_timeout;
- }
-
- public function hasStartToCloseTimeout()
- {
- return isset($this->start_to_close_timeout);
- }
-
- public function clearStartToCloseTimeout()
- {
- unset($this->start_to_close_timeout);
- }
-
- /**
- * Maximum time an activity is allowed to execute after being picked up by a worker. This
- * timeout is always retryable. Either this or `schedule_to_close_timeout` must be specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 9 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartToCloseTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_to_close_timeout = $var;
-
- return $this;
- }
-
- /**
- * Maximum permitted time between successful worker heartbeats.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getHeartbeatTimeout()
- {
- return $this->heartbeat_timeout;
- }
-
- public function hasHeartbeatTimeout()
- {
- return isset($this->heartbeat_timeout);
- }
-
- public function clearHeartbeatTimeout()
- {
- unset($this->heartbeat_timeout);
- }
-
- /**
- * Maximum permitted time between successful worker heartbeats.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setHeartbeatTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->heartbeat_timeout = $var;
-
- return $this;
- }
-
- /**
- * Activities are provided by a default retry policy which is controlled through the service's
- * dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
- * elapsed. To disable retries set retry_policy.maximum_attempts to 1.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 11;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * Activities are provided by a default retry policy which is controlled through the service's
- * dynamic configuration. Retries will be attempted until `schedule_to_close_timeout` has
- * elapsed. To disable retries set retry_policy.maximum_attempts to 1.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 11;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * Request to start the activity directly bypassing matching service and worker polling
- * The slot for executing the activity should be reserved when setting this field to true.
- *
- * Generated from protobuf field bool request_eager_execution = 12;
- * @return bool
- */
- public function getRequestEagerExecution()
- {
- return $this->request_eager_execution;
- }
-
- /**
- * Request to start the activity directly bypassing matching service and worker polling
- * The slot for executing the activity should be reserved when setting this field to true.
- *
- * Generated from protobuf field bool request_eager_execution = 12;
- * @param bool $var
- * @return $this
- */
- public function setRequestEagerExecution($var)
- {
- GPBUtil::checkBool($var);
- $this->request_eager_execution = $var;
-
- return $this;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to start the activity using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 13;
- * @return bool
- */
- public function getUseCompatibleVersion()
- {
- return $this->use_compatible_version;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to start the activity using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 13;
- * @param bool $var
- * @return $this
- */
- public function setUseCompatibleVersion($var)
- {
- GPBUtil::checkBool($var);
- $this->use_compatible_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/SignalExternalWorkflowExecutionCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/SignalExternalWorkflowExecutionCommandAttributes.php
deleted file mode 100644
index e9d2f28db..000000000
--- a/api/v1/Temporal/Api/Command/V1/SignalExternalWorkflowExecutionCommandAttributes.php
+++ /dev/null
@@ -1,297 +0,0 @@
-temporal.api.command.v1.SignalExternalWorkflowExecutionCommandAttributes
- */
-class SignalExternalWorkflowExecutionCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- */
- protected $execution = null;
- /**
- * The workflow author-defined name of the signal to send to the workflow.
- *
- * Generated from protobuf field string signal_name = 3;
- */
- protected $signal_name = '';
- /**
- * Serialized value(s) to provide with the signal.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- */
- protected $input = null;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 5;
- */
- protected $control = '';
- /**
- * Set this to true if the workflow being cancelled is a child of the workflow originating this
- * command. The request will be rejected if it is set to true and the target workflow is *not*
- * a child of the requesting workflow.
- *
- * Generated from protobuf field bool child_workflow_only = 6;
- */
- protected $child_workflow_only = false;
- /**
- * Headers that are passed by the workflow that is sending a signal to the external
- * workflow that is receiving this signal.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 7;
- */
- protected $header = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $execution
- * @type string $signal_name
- * The workflow author-defined name of the signal to send to the workflow.
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Serialized value(s) to provide with the signal.
- * @type string $control
- * Deprecated
- * @type bool $child_workflow_only
- * Set this to true if the workflow being cancelled is a child of the workflow originating this
- * command. The request will be rejected if it is set to true and the target workflow is *not*
- * a child of the requesting workflow.
- * @type \Temporal\Api\Common\V1\Header $header
- * Headers that are passed by the workflow that is sending a signal to the external
- * workflow that is receiving this signal.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getExecution()
- {
- return $this->execution;
- }
-
- public function hasExecution()
- {
- return isset($this->execution);
- }
-
- public function clearExecution()
- {
- unset($this->execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->execution = $var;
-
- return $this;
- }
-
- /**
- * The workflow author-defined name of the signal to send to the workflow.
- *
- * Generated from protobuf field string signal_name = 3;
- * @return string
- */
- public function getSignalName()
- {
- return $this->signal_name;
- }
-
- /**
- * The workflow author-defined name of the signal to send to the workflow.
- *
- * Generated from protobuf field string signal_name = 3;
- * @param string $var
- * @return $this
- */
- public function setSignalName($var)
- {
- GPBUtil::checkString($var, True);
- $this->signal_name = $var;
-
- return $this;
- }
-
- /**
- * Serialized value(s) to provide with the signal.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Serialized value(s) to provide with the signal.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 5;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 5;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * Set this to true if the workflow being cancelled is a child of the workflow originating this
- * command. The request will be rejected if it is set to true and the target workflow is *not*
- * a child of the requesting workflow.
- *
- * Generated from protobuf field bool child_workflow_only = 6;
- * @return bool
- */
- public function getChildWorkflowOnly()
- {
- return $this->child_workflow_only;
- }
-
- /**
- * Set this to true if the workflow being cancelled is a child of the workflow originating this
- * command. The request will be rejected if it is set to true and the target workflow is *not*
- * a child of the requesting workflow.
- *
- * Generated from protobuf field bool child_workflow_only = 6;
- * @param bool $var
- * @return $this
- */
- public function setChildWorkflowOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->child_workflow_only = $var;
-
- return $this;
- }
-
- /**
- * Headers that are passed by the workflow that is sending a signal to the external
- * workflow that is receiving this signal.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 7;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Headers that are passed by the workflow that is sending a signal to the external
- * workflow that is receiving this signal.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 7;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/StartChildWorkflowExecutionCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/StartChildWorkflowExecutionCommandAttributes.php
deleted file mode 100644
index 2e51d253b..000000000
--- a/api/v1/Temporal/Api/Command/V1/StartChildWorkflowExecutionCommandAttributes.php
+++ /dev/null
@@ -1,647 +0,0 @@
-temporal.api.command.v1.StartChildWorkflowExecutionCommandAttributes
- */
-class StartChildWorkflowExecutionCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- */
- protected $task_queue = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- */
- protected $input = null;
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_timeout = null;
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_task_timeout = null;
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
- */
- protected $parent_close_policy = 0;
- /**
- * Generated from protobuf field string control = 10;
- */
- protected $control = '';
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- */
- protected $workflow_id_reuse_policy = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- */
- protected $retry_policy = null;
- /**
- * Establish a cron schedule for the child workflow.
- *
- * Generated from protobuf field string cron_schedule = 13;
- */
- protected $cron_schedule = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 14;
- */
- protected $header = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 15;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 16;
- */
- protected $search_attributes = null;
- /**
- * If this is set, the workflow executing this command wishes to start the child workflow using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 17;
- */
- protected $use_compatible_version = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $workflow_id
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Payloads $input
- * @type \Google\Protobuf\Duration $workflow_execution_timeout
- * Total workflow execution timeout including retries and continue as new.
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * Timeout of a single workflow run.
- * @type \Google\Protobuf\Duration $workflow_task_timeout
- * Timeout of a single workflow task.
- * @type int $parent_close_policy
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- * @type string $control
- * @type int $workflow_id_reuse_policy
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * @type string $cron_schedule
- * Establish a cron schedule for the child workflow.
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type bool $use_compatible_version
- * If this is set, the workflow executing this command wishes to start the child workflow using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionTimeout()
- {
- return $this->workflow_execution_timeout;
- }
-
- public function hasWorkflowExecutionTimeout()
- {
- return isset($this->workflow_execution_timeout);
- }
-
- public function clearWorkflowExecutionTimeout()
- {
- unset($this->workflow_execution_timeout);
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowTaskTimeout()
- {
- return $this->workflow_task_timeout;
- }
-
- public function hasWorkflowTaskTimeout()
- {
- return isset($this->workflow_task_timeout);
- }
-
- public function clearWorkflowTaskTimeout()
- {
- unset($this->workflow_task_timeout);
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
- * @return int
- */
- public function getParentClosePolicy()
- {
- return $this->parent_close_policy;
- }
-
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
- * @param int $var
- * @return $this
- */
- public function setParentClosePolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ParentClosePolicy::class);
- $this->parent_close_policy = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string control = 10;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Generated from protobuf field string control = 10;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- * @return int
- */
- public function getWorkflowIdReusePolicy()
- {
- return $this->workflow_id_reuse_policy;
- }
-
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- * @param int $var
- * @return $this
- */
- public function setWorkflowIdReusePolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowIdReusePolicy::class);
- $this->workflow_id_reuse_policy = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * Establish a cron schedule for the child workflow.
- *
- * Generated from protobuf field string cron_schedule = 13;
- * @return string
- */
- public function getCronSchedule()
- {
- return $this->cron_schedule;
- }
-
- /**
- * Establish a cron schedule for the child workflow.
- *
- * Generated from protobuf field string cron_schedule = 13;
- * @param string $var
- * @return $this
- */
- public function setCronSchedule($var)
- {
- GPBUtil::checkString($var, True);
- $this->cron_schedule = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 14;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 14;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 15;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 15;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 16;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 16;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to start the child workflow using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 17;
- * @return bool
- */
- public function getUseCompatibleVersion()
- {
- return $this->use_compatible_version;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to start the child workflow using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 17;
- * @param bool $var
- * @return $this
- */
- public function setUseCompatibleVersion($var)
- {
- GPBUtil::checkBool($var);
- $this->use_compatible_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/StartTimerCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/StartTimerCommandAttributes.php
deleted file mode 100644
index e56a51e86..000000000
--- a/api/v1/Temporal/Api/Command/V1/StartTimerCommandAttributes.php
+++ /dev/null
@@ -1,121 +0,0 @@
-temporal.api.command.v1.StartTimerCommandAttributes
- */
-class StartTimerCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * An id for the timer, currently live timers must have different ids. Typically autogenerated
- * by the SDK.
- *
- * Generated from protobuf field string timer_id = 1;
- */
- protected $timer_id = '';
- /**
- * How long until the timer fires, producing a `TIMER_FIRED` event.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_fire_timeout = 2 [(.gogoproto.stdduration) = true];
- */
- protected $start_to_fire_timeout = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $timer_id
- * An id for the timer, currently live timers must have different ids. Typically autogenerated
- * by the SDK.
- * @type \Google\Protobuf\Duration $start_to_fire_timeout
- * How long until the timer fires, producing a `TIMER_FIRED` event.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * An id for the timer, currently live timers must have different ids. Typically autogenerated
- * by the SDK.
- *
- * Generated from protobuf field string timer_id = 1;
- * @return string
- */
- public function getTimerId()
- {
- return $this->timer_id;
- }
-
- /**
- * An id for the timer, currently live timers must have different ids. Typically autogenerated
- * by the SDK.
- *
- * Generated from protobuf field string timer_id = 1;
- * @param string $var
- * @return $this
- */
- public function setTimerId($var)
- {
- GPBUtil::checkString($var, True);
- $this->timer_id = $var;
-
- return $this;
- }
-
- /**
- * How long until the timer fires, producing a `TIMER_FIRED` event.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_fire_timeout = 2 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartToFireTimeout()
- {
- return $this->start_to_fire_timeout;
- }
-
- public function hasStartToFireTimeout()
- {
- return isset($this->start_to_fire_timeout);
- }
-
- public function clearStartToFireTimeout()
- {
- unset($this->start_to_fire_timeout);
- }
-
- /**
- * How long until the timer fires, producing a `TIMER_FIRED` event.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_fire_timeout = 2 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartToFireTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_to_fire_timeout = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Command/V1/UpsertWorkflowSearchAttributesCommandAttributes.php b/api/v1/Temporal/Api/Command/V1/UpsertWorkflowSearchAttributesCommandAttributes.php
deleted file mode 100644
index b0a8391a6..000000000
--- a/api/v1/Temporal/Api/Command/V1/UpsertWorkflowSearchAttributesCommandAttributes.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.command.v1.UpsertWorkflowSearchAttributesCommandAttributes
- */
-class UpsertWorkflowSearchAttributesCommandAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 1;
- */
- protected $search_attributes = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Command\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 1;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 1;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/ActivityType.php b/api/v1/Temporal/Api/Common/V1/ActivityType.php
deleted file mode 100644
index 2a4c9d59c..000000000
--- a/api/v1/Temporal/Api/Common/V1/ActivityType.php
+++ /dev/null
@@ -1,61 +0,0 @@
-temporal.api.common.v1.ActivityType
- */
-class ActivityType extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/DataBlob.php b/api/v1/Temporal/Api/Common/V1/DataBlob.php
deleted file mode 100644
index 1b8fb8003..000000000
--- a/api/v1/Temporal/Api/Common/V1/DataBlob.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.common.v1.DataBlob
- */
-class DataBlob extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.EncodingType encoding_type = 1;
- */
- protected $encoding_type = 0;
- /**
- * Generated from protobuf field bytes data = 2;
- */
- protected $data = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $encoding_type
- * @type string $data
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.EncodingType encoding_type = 1;
- * @return int
- */
- public function getEncodingType()
- {
- return $this->encoding_type;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.EncodingType encoding_type = 1;
- * @param int $var
- * @return $this
- */
- public function setEncodingType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\EncodingType::class);
- $this->encoding_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes data = 2;
- * @return string
- */
- public function getData()
- {
- return $this->data;
- }
-
- /**
- * Generated from protobuf field bytes data = 2;
- * @param string $var
- * @return $this
- */
- public function setData($var)
- {
- GPBUtil::checkString($var, False);
- $this->data = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/Header.php b/api/v1/Temporal/Api/Common/V1/Header.php
deleted file mode 100644
index f8d1e5b7e..000000000
--- a/api/v1/Temporal/Api/Common/V1/Header.php
+++ /dev/null
@@ -1,61 +0,0 @@
-temporal.api.common.v1.Header
- */
-class Header extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field map fields = 1;
- */
- private $fields;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $fields
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field map fields = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getFields()
- {
- return $this->fields;
- }
-
- /**
- * Generated from protobuf field map fields = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setFields($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Payload::class);
- $this->fields = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/Memo.php b/api/v1/Temporal/Api/Common/V1/Memo.php
deleted file mode 100644
index ae3fc5a86..000000000
--- a/api/v1/Temporal/Api/Common/V1/Memo.php
+++ /dev/null
@@ -1,60 +0,0 @@
-temporal.api.common.v1.Memo
- */
-class Memo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field map fields = 1;
- */
- private $fields;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $fields
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field map fields = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getFields()
- {
- return $this->fields;
- }
-
- /**
- * Generated from protobuf field map fields = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setFields($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Payload::class);
- $this->fields = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/MeteringMetadata.php b/api/v1/Temporal/Api/Common/V1/MeteringMetadata.php
deleted file mode 100644
index 542f9ceaa..000000000
--- a/api/v1/Temporal/Api/Common/V1/MeteringMetadata.php
+++ /dev/null
@@ -1,83 +0,0 @@
-temporal.api.common.v1.MeteringMetadata
- */
-class MeteringMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Count of local activities which have begun an execution attempt during this workflow task,
- * and whose first attempt occurred in some previous task. This is used for metering
- * purposes, and does not affect workflow state.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: Negative values make no sense to represent. --)
- *
- * Generated from protobuf field uint32 nonfirst_local_activity_execution_attempts = 13;
- */
- protected $nonfirst_local_activity_execution_attempts = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $nonfirst_local_activity_execution_attempts
- * Count of local activities which have begun an execution attempt during this workflow task,
- * and whose first attempt occurred in some previous task. This is used for metering
- * purposes, and does not affect workflow state.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: Negative values make no sense to represent. --)
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Count of local activities which have begun an execution attempt during this workflow task,
- * and whose first attempt occurred in some previous task. This is used for metering
- * purposes, and does not affect workflow state.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: Negative values make no sense to represent. --)
- *
- * Generated from protobuf field uint32 nonfirst_local_activity_execution_attempts = 13;
- * @return int
- */
- public function getNonfirstLocalActivityExecutionAttempts()
- {
- return $this->nonfirst_local_activity_execution_attempts;
- }
-
- /**
- * Count of local activities which have begun an execution attempt during this workflow task,
- * and whose first attempt occurred in some previous task. This is used for metering
- * purposes, and does not affect workflow state.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: Negative values make no sense to represent. --)
- *
- * Generated from protobuf field uint32 nonfirst_local_activity_execution_attempts = 13;
- * @param int $var
- * @return $this
- */
- public function setNonfirstLocalActivityExecutionAttempts($var)
- {
- GPBUtil::checkUint32($var);
- $this->nonfirst_local_activity_execution_attempts = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/Payload.php b/api/v1/Temporal/Api/Common/V1/Payload.php
deleted file mode 100644
index 7d5ff148a..000000000
--- a/api/v1/Temporal/Api/Common/V1/Payload.php
+++ /dev/null
@@ -1,89 +0,0 @@
-temporal.api.common.v1.Payload
- */
-class Payload extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field map metadata = 1;
- */
- private $metadata;
- /**
- * Generated from protobuf field bytes data = 2;
- */
- protected $data = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $metadata
- * @type string $data
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field map metadata = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getMetadata()
- {
- return $this->metadata;
- }
-
- /**
- * Generated from protobuf field map metadata = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setMetadata($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::BYTES);
- $this->metadata = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes data = 2;
- * @return string
- */
- public function getData()
- {
- return $this->data;
- }
-
- /**
- * Generated from protobuf field bytes data = 2;
- * @param string $var
- * @return $this
- */
- public function setData($var)
- {
- GPBUtil::checkString($var, False);
- $this->data = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/Payloads.php b/api/v1/Temporal/Api/Common/V1/Payloads.php
deleted file mode 100644
index 41f07589a..000000000
--- a/api/v1/Temporal/Api/Common/V1/Payloads.php
+++ /dev/null
@@ -1,60 +0,0 @@
-temporal.api.common.v1.Payloads
- */
-class Payloads extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.common.v1.Payload payloads = 1;
- */
- private $payloads;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Common\V1\Payload>|\Google\Protobuf\Internal\RepeatedField $payloads
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.common.v1.Payload payloads = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPayloads()
- {
- return $this->payloads;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.common.v1.Payload payloads = 1;
- * @param array<\Temporal\Api\Common\V1\Payload>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPayloads($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Payload::class);
- $this->payloads = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/RetryPolicy.php b/api/v1/Temporal/Api/Common/V1/RetryPolicy.php
deleted file mode 100644
index 9b3062747..000000000
--- a/api/v1/Temporal/Api/Common/V1/RetryPolicy.php
+++ /dev/null
@@ -1,243 +0,0 @@
-temporal.api.common.v1.RetryPolicy
- */
-class RetryPolicy extends \Google\Protobuf\Internal\Message
-{
- /**
- * Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
- *
- * Generated from protobuf field .google.protobuf.Duration initial_interval = 1 [(.gogoproto.stdduration) = true];
- */
- protected $initial_interval = null;
- /**
- * Coefficient used to calculate the next retry interval.
- * The next retry interval is previous interval multiplied by the coefficient.
- * Must be 1 or larger.
- *
- * Generated from protobuf field double backoff_coefficient = 2;
- */
- protected $backoff_coefficient = 0.0;
- /**
- * Maximum interval between retries. Exponential backoff leads to interval increase.
- * This value is the cap of the increase. Default is 100x of the initial interval.
- *
- * Generated from protobuf field .google.protobuf.Duration maximum_interval = 3 [(.gogoproto.stdduration) = true];
- */
- protected $maximum_interval = null;
- /**
- * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
- * 1 disables retries. 0 means unlimited (up to the timeouts)
- *
- * Generated from protobuf field int32 maximum_attempts = 4;
- */
- protected $maximum_attempts = 0;
- /**
- * Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
- * this is not a substring match, the error *type* (not message) must match exactly.
- *
- * Generated from protobuf field repeated string non_retryable_error_types = 5;
- */
- private $non_retryable_error_types;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Duration $initial_interval
- * Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
- * @type float $backoff_coefficient
- * Coefficient used to calculate the next retry interval.
- * The next retry interval is previous interval multiplied by the coefficient.
- * Must be 1 or larger.
- * @type \Google\Protobuf\Duration $maximum_interval
- * Maximum interval between retries. Exponential backoff leads to interval increase.
- * This value is the cap of the increase. Default is 100x of the initial interval.
- * @type int $maximum_attempts
- * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
- * 1 disables retries. 0 means unlimited (up to the timeouts)
- * @type array|\Google\Protobuf\Internal\RepeatedField $non_retryable_error_types
- * Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
- * this is not a substring match, the error *type* (not message) must match exactly.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
- *
- * Generated from protobuf field .google.protobuf.Duration initial_interval = 1 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getInitialInterval()
- {
- return $this->initial_interval;
- }
-
- public function hasInitialInterval()
- {
- return isset($this->initial_interval);
- }
-
- public function clearInitialInterval()
- {
- unset($this->initial_interval);
- }
-
- /**
- * Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
- *
- * Generated from protobuf field .google.protobuf.Duration initial_interval = 1 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setInitialInterval($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->initial_interval = $var;
-
- return $this;
- }
-
- /**
- * Coefficient used to calculate the next retry interval.
- * The next retry interval is previous interval multiplied by the coefficient.
- * Must be 1 or larger.
- *
- * Generated from protobuf field double backoff_coefficient = 2;
- * @return float
- */
- public function getBackoffCoefficient()
- {
- return $this->backoff_coefficient;
- }
-
- /**
- * Coefficient used to calculate the next retry interval.
- * The next retry interval is previous interval multiplied by the coefficient.
- * Must be 1 or larger.
- *
- * Generated from protobuf field double backoff_coefficient = 2;
- * @param float $var
- * @return $this
- */
- public function setBackoffCoefficient($var)
- {
- GPBUtil::checkDouble($var);
- $this->backoff_coefficient = $var;
-
- return $this;
- }
-
- /**
- * Maximum interval between retries. Exponential backoff leads to interval increase.
- * This value is the cap of the increase. Default is 100x of the initial interval.
- *
- * Generated from protobuf field .google.protobuf.Duration maximum_interval = 3 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getMaximumInterval()
- {
- return $this->maximum_interval;
- }
-
- public function hasMaximumInterval()
- {
- return isset($this->maximum_interval);
- }
-
- public function clearMaximumInterval()
- {
- unset($this->maximum_interval);
- }
-
- /**
- * Maximum interval between retries. Exponential backoff leads to interval increase.
- * This value is the cap of the increase. Default is 100x of the initial interval.
- *
- * Generated from protobuf field .google.protobuf.Duration maximum_interval = 3 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setMaximumInterval($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->maximum_interval = $var;
-
- return $this;
- }
-
- /**
- * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
- * 1 disables retries. 0 means unlimited (up to the timeouts)
- *
- * Generated from protobuf field int32 maximum_attempts = 4;
- * @return int
- */
- public function getMaximumAttempts()
- {
- return $this->maximum_attempts;
- }
-
- /**
- * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
- * 1 disables retries. 0 means unlimited (up to the timeouts)
- *
- * Generated from protobuf field int32 maximum_attempts = 4;
- * @param int $var
- * @return $this
- */
- public function setMaximumAttempts($var)
- {
- GPBUtil::checkInt32($var);
- $this->maximum_attempts = $var;
-
- return $this;
- }
-
- /**
- * Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
- * this is not a substring match, the error *type* (not message) must match exactly.
- *
- * Generated from protobuf field repeated string non_retryable_error_types = 5;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNonRetryableErrorTypes()
- {
- return $this->non_retryable_error_types;
- }
-
- /**
- * Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
- * this is not a substring match, the error *type* (not message) must match exactly.
- *
- * Generated from protobuf field repeated string non_retryable_error_types = 5;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNonRetryableErrorTypes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->non_retryable_error_types = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/SearchAttributes.php b/api/v1/Temporal/Api/Common/V1/SearchAttributes.php
deleted file mode 100644
index 7782457d7..000000000
--- a/api/v1/Temporal/Api/Common/V1/SearchAttributes.php
+++ /dev/null
@@ -1,61 +0,0 @@
-temporal.api.common.v1.SearchAttributes
- */
-class SearchAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field map indexed_fields = 1;
- */
- private $indexed_fields;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $indexed_fields
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field map indexed_fields = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getIndexedFields()
- {
- return $this->indexed_fields;
- }
-
- /**
- * Generated from protobuf field map indexed_fields = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setIndexedFields($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Payload::class);
- $this->indexed_fields = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/WorkerVersionCapabilities.php b/api/v1/Temporal/Api/Common/V1/WorkerVersionCapabilities.php
deleted file mode 100644
index ed65b11e6..000000000
--- a/api/v1/Temporal/Api/Common/V1/WorkerVersionCapabilities.php
+++ /dev/null
@@ -1,107 +0,0 @@
-temporal.api.common.v1.WorkerVersionCapabilities
- */
-class WorkerVersionCapabilities extends \Google\Protobuf\Internal\Message
-{
- /**
- * An opaque whole-worker identifier
- *
- * Generated from protobuf field string build_id = 1;
- */
- protected $build_id = '';
- /**
- * If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
- * tasks.
- *
- * Generated from protobuf field bool use_versioning = 2;
- */
- protected $use_versioning = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $build_id
- * An opaque whole-worker identifier
- * @type bool $use_versioning
- * If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
- * tasks.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * An opaque whole-worker identifier
- *
- * Generated from protobuf field string build_id = 1;
- * @return string
- */
- public function getBuildId()
- {
- return $this->build_id;
- }
-
- /**
- * An opaque whole-worker identifier
- *
- * Generated from protobuf field string build_id = 1;
- * @param string $var
- * @return $this
- */
- public function setBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->build_id = $var;
-
- return $this;
- }
-
- /**
- * If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
- * tasks.
- *
- * Generated from protobuf field bool use_versioning = 2;
- * @return bool
- */
- public function getUseVersioning()
- {
- return $this->use_versioning;
- }
-
- /**
- * If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
- * tasks.
- *
- * Generated from protobuf field bool use_versioning = 2;
- * @param bool $var
- * @return $this
- */
- public function setUseVersioning($var)
- {
- GPBUtil::checkBool($var);
- $this->use_versioning = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/WorkerVersionStamp.php b/api/v1/Temporal/Api/Common/V1/WorkerVersionStamp.php
deleted file mode 100644
index 358cee9bc..000000000
--- a/api/v1/Temporal/Api/Common/V1/WorkerVersionStamp.php
+++ /dev/null
@@ -1,147 +0,0 @@
-temporal.api.common.v1.WorkerVersionStamp
- */
-class WorkerVersionStamp extends \Google\Protobuf\Internal\Message
-{
- /**
- * An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
- * message is included in requests which previously used that.
- *
- * Generated from protobuf field string build_id = 1;
- */
- protected $build_id = '';
- /**
- * Set if the worker used a dynamically loadable bundle to process
- * the task. The bundle could be a WASM blob, JS bundle, etc.
- *
- * Generated from protobuf field string bundle_id = 2;
- */
- protected $bundle_id = '';
- /**
- * If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
- * marker for workflow reset points and the BuildIDs search attribute.
- *
- * Generated from protobuf field bool use_versioning = 3;
- */
- protected $use_versioning = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $build_id
- * An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
- * message is included in requests which previously used that.
- * @type string $bundle_id
- * Set if the worker used a dynamically loadable bundle to process
- * the task. The bundle could be a WASM blob, JS bundle, etc.
- * @type bool $use_versioning
- * If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
- * marker for workflow reset points and the BuildIDs search attribute.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
- * message is included in requests which previously used that.
- *
- * Generated from protobuf field string build_id = 1;
- * @return string
- */
- public function getBuildId()
- {
- return $this->build_id;
- }
-
- /**
- * An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
- * message is included in requests which previously used that.
- *
- * Generated from protobuf field string build_id = 1;
- * @param string $var
- * @return $this
- */
- public function setBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->build_id = $var;
-
- return $this;
- }
-
- /**
- * Set if the worker used a dynamically loadable bundle to process
- * the task. The bundle could be a WASM blob, JS bundle, etc.
- *
- * Generated from protobuf field string bundle_id = 2;
- * @return string
- */
- public function getBundleId()
- {
- return $this->bundle_id;
- }
-
- /**
- * Set if the worker used a dynamically loadable bundle to process
- * the task. The bundle could be a WASM blob, JS bundle, etc.
- *
- * Generated from protobuf field string bundle_id = 2;
- * @param string $var
- * @return $this
- */
- public function setBundleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->bundle_id = $var;
-
- return $this;
- }
-
- /**
- * If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
- * marker for workflow reset points and the BuildIDs search attribute.
- *
- * Generated from protobuf field bool use_versioning = 3;
- * @return bool
- */
- public function getUseVersioning()
- {
- return $this->use_versioning;
- }
-
- /**
- * If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
- * marker for workflow reset points and the BuildIDs search attribute.
- *
- * Generated from protobuf field bool use_versioning = 3;
- * @param bool $var
- * @return $this
- */
- public function setUseVersioning($var)
- {
- GPBUtil::checkBool($var);
- $this->use_versioning = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/WorkflowExecution.php b/api/v1/Temporal/Api/Common/V1/WorkflowExecution.php
deleted file mode 100644
index 363368fe7..000000000
--- a/api/v1/Temporal/Api/Common/V1/WorkflowExecution.php
+++ /dev/null
@@ -1,89 +0,0 @@
-temporal.api.common.v1.WorkflowExecution
- */
-class WorkflowExecution extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string workflow_id = 1;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field string run_id = 2;
- */
- protected $run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $workflow_id
- * @type string $run_id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string workflow_id = 1;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 1;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string run_id = 2;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Generated from protobuf field string run_id = 2;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Common/V1/WorkflowType.php b/api/v1/Temporal/Api/Common/V1/WorkflowType.php
deleted file mode 100644
index a051bdef8..000000000
--- a/api/v1/Temporal/Api/Common/V1/WorkflowType.php
+++ /dev/null
@@ -1,61 +0,0 @@
-temporal.api.common.v1.WorkflowType
- */
-class WorkflowType extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Common\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/ArchivalState.php b/api/v1/Temporal/Api/Enums/V1/ArchivalState.php
deleted file mode 100644
index aaa414a3d..000000000
--- a/api/v1/Temporal/Api/Enums/V1/ArchivalState.php
+++ /dev/null
@@ -1,53 +0,0 @@
-temporal.api.enums.v1.ArchivalState
- */
-class ArchivalState
-{
- /**
- * Generated from protobuf enum ARCHIVAL_STATE_UNSPECIFIED = 0;
- */
- const ARCHIVAL_STATE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum ARCHIVAL_STATE_DISABLED = 1;
- */
- const ARCHIVAL_STATE_DISABLED = 1;
- /**
- * Generated from protobuf enum ARCHIVAL_STATE_ENABLED = 2;
- */
- const ARCHIVAL_STATE_ENABLED = 2;
-
- private static $valueToName = [
- self::ARCHIVAL_STATE_UNSPECIFIED => 'ARCHIVAL_STATE_UNSPECIFIED',
- self::ARCHIVAL_STATE_DISABLED => 'ARCHIVAL_STATE_DISABLED',
- self::ARCHIVAL_STATE_ENABLED => 'ARCHIVAL_STATE_ENABLED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/BatchOperationState.php b/api/v1/Temporal/Api/Enums/V1/BatchOperationState.php
deleted file mode 100644
index 268cf2626..000000000
--- a/api/v1/Temporal/Api/Enums/V1/BatchOperationState.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.enums.v1.BatchOperationState
- */
-class BatchOperationState
-{
- /**
- * Generated from protobuf enum BATCH_OPERATION_STATE_UNSPECIFIED = 0;
- */
- const BATCH_OPERATION_STATE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum BATCH_OPERATION_STATE_RUNNING = 1;
- */
- const BATCH_OPERATION_STATE_RUNNING = 1;
- /**
- * Generated from protobuf enum BATCH_OPERATION_STATE_COMPLETED = 2;
- */
- const BATCH_OPERATION_STATE_COMPLETED = 2;
- /**
- * Generated from protobuf enum BATCH_OPERATION_STATE_FAILED = 3;
- */
- const BATCH_OPERATION_STATE_FAILED = 3;
-
- private static $valueToName = [
- self::BATCH_OPERATION_STATE_UNSPECIFIED => 'BATCH_OPERATION_STATE_UNSPECIFIED',
- self::BATCH_OPERATION_STATE_RUNNING => 'BATCH_OPERATION_STATE_RUNNING',
- self::BATCH_OPERATION_STATE_COMPLETED => 'BATCH_OPERATION_STATE_COMPLETED',
- self::BATCH_OPERATION_STATE_FAILED => 'BATCH_OPERATION_STATE_FAILED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/BatchOperationType.php b/api/v1/Temporal/Api/Enums/V1/BatchOperationType.php
deleted file mode 100644
index 9335cf7bf..000000000
--- a/api/v1/Temporal/Api/Enums/V1/BatchOperationType.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.enums.v1.BatchOperationType
- */
-class BatchOperationType
-{
- /**
- * Generated from protobuf enum BATCH_OPERATION_TYPE_UNSPECIFIED = 0;
- */
- const BATCH_OPERATION_TYPE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum BATCH_OPERATION_TYPE_TERMINATE = 1;
- */
- const BATCH_OPERATION_TYPE_TERMINATE = 1;
- /**
- * Generated from protobuf enum BATCH_OPERATION_TYPE_CANCEL = 2;
- */
- const BATCH_OPERATION_TYPE_CANCEL = 2;
- /**
- * Generated from protobuf enum BATCH_OPERATION_TYPE_SIGNAL = 3;
- */
- const BATCH_OPERATION_TYPE_SIGNAL = 3;
- /**
- * Generated from protobuf enum BATCH_OPERATION_TYPE_DELETE = 4;
- */
- const BATCH_OPERATION_TYPE_DELETE = 4;
- /**
- * Generated from protobuf enum BATCH_OPERATION_TYPE_RESET = 5;
- */
- const BATCH_OPERATION_TYPE_RESET = 5;
-
- private static $valueToName = [
- self::BATCH_OPERATION_TYPE_UNSPECIFIED => 'BATCH_OPERATION_TYPE_UNSPECIFIED',
- self::BATCH_OPERATION_TYPE_TERMINATE => 'BATCH_OPERATION_TYPE_TERMINATE',
- self::BATCH_OPERATION_TYPE_CANCEL => 'BATCH_OPERATION_TYPE_CANCEL',
- self::BATCH_OPERATION_TYPE_SIGNAL => 'BATCH_OPERATION_TYPE_SIGNAL',
- self::BATCH_OPERATION_TYPE_DELETE => 'BATCH_OPERATION_TYPE_DELETE',
- self::BATCH_OPERATION_TYPE_RESET => 'BATCH_OPERATION_TYPE_RESET',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/CancelExternalWorkflowExecutionFailedCause.php b/api/v1/Temporal/Api/Enums/V1/CancelExternalWorkflowExecutionFailedCause.php
deleted file mode 100644
index 53612905d..000000000
--- a/api/v1/Temporal/Api/Enums/V1/CancelExternalWorkflowExecutionFailedCause.php
+++ /dev/null
@@ -1,53 +0,0 @@
-temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause
- */
-class CancelExternalWorkflowExecutionFailedCause
-{
- /**
- * Generated from protobuf enum CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0;
- */
- const CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = 1;
- */
- const CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = 1;
- /**
- * Generated from protobuf enum CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2;
- */
- const CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2;
-
- private static $valueToName = [
- self::CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED => 'CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED',
- self::CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND => 'CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND',
- self::CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND => 'CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/CommandType.php b/api/v1/Temporal/Api/Enums/V1/CommandType.php
deleted file mode 100644
index f491d9d72..000000000
--- a/api/v1/Temporal/Api/Enums/V1/CommandType.php
+++ /dev/null
@@ -1,120 +0,0 @@
-temporal.api.enums.v1.CommandType
- */
-class CommandType
-{
- /**
- * Generated from protobuf enum COMMAND_TYPE_UNSPECIFIED = 0;
- */
- const COMMAND_TYPE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK = 1;
- */
- const COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK = 1;
- /**
- * Generated from protobuf enum COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK = 2;
- */
- const COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK = 2;
- /**
- * Generated from protobuf enum COMMAND_TYPE_START_TIMER = 3;
- */
- const COMMAND_TYPE_START_TIMER = 3;
- /**
- * Generated from protobuf enum COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION = 4;
- */
- const COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION = 4;
- /**
- * Generated from protobuf enum COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION = 5;
- */
- const COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION = 5;
- /**
- * Generated from protobuf enum COMMAND_TYPE_CANCEL_TIMER = 6;
- */
- const COMMAND_TYPE_CANCEL_TIMER = 6;
- /**
- * Generated from protobuf enum COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION = 7;
- */
- const COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION = 7;
- /**
- * Generated from protobuf enum COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION = 8;
- */
- const COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION = 8;
- /**
- * Generated from protobuf enum COMMAND_TYPE_RECORD_MARKER = 9;
- */
- const COMMAND_TYPE_RECORD_MARKER = 9;
- /**
- * Generated from protobuf enum COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION = 10;
- */
- const COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION = 10;
- /**
- * Generated from protobuf enum COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION = 11;
- */
- const COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION = 11;
- /**
- * Generated from protobuf enum COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION = 12;
- */
- const COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION = 12;
- /**
- * Generated from protobuf enum COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES = 13;
- */
- const COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES = 13;
- /**
- * Generated from protobuf enum COMMAND_TYPE_PROTOCOL_MESSAGE = 14;
- */
- const COMMAND_TYPE_PROTOCOL_MESSAGE = 14;
- /**
- * Generated from protobuf enum COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES = 16;
- */
- const COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES = 16;
-
- private static $valueToName = [
- self::COMMAND_TYPE_UNSPECIFIED => 'COMMAND_TYPE_UNSPECIFIED',
- self::COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK => 'COMMAND_TYPE_SCHEDULE_ACTIVITY_TASK',
- self::COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK => 'COMMAND_TYPE_REQUEST_CANCEL_ACTIVITY_TASK',
- self::COMMAND_TYPE_START_TIMER => 'COMMAND_TYPE_START_TIMER',
- self::COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION => 'COMMAND_TYPE_COMPLETE_WORKFLOW_EXECUTION',
- self::COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION => 'COMMAND_TYPE_FAIL_WORKFLOW_EXECUTION',
- self::COMMAND_TYPE_CANCEL_TIMER => 'COMMAND_TYPE_CANCEL_TIMER',
- self::COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION => 'COMMAND_TYPE_CANCEL_WORKFLOW_EXECUTION',
- self::COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION => 'COMMAND_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION',
- self::COMMAND_TYPE_RECORD_MARKER => 'COMMAND_TYPE_RECORD_MARKER',
- self::COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION => 'COMMAND_TYPE_CONTINUE_AS_NEW_WORKFLOW_EXECUTION',
- self::COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION => 'COMMAND_TYPE_START_CHILD_WORKFLOW_EXECUTION',
- self::COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION => 'COMMAND_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION',
- self::COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES => 'COMMAND_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES',
- self::COMMAND_TYPE_PROTOCOL_MESSAGE => 'COMMAND_TYPE_PROTOCOL_MESSAGE',
- self::COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES => 'COMMAND_TYPE_MODIFY_WORKFLOW_PROPERTIES',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/ContinueAsNewInitiator.php b/api/v1/Temporal/Api/Enums/V1/ContinueAsNewInitiator.php
deleted file mode 100644
index 5c7238240..000000000
--- a/api/v1/Temporal/Api/Enums/V1/ContinueAsNewInitiator.php
+++ /dev/null
@@ -1,64 +0,0 @@
-temporal.api.enums.v1.ContinueAsNewInitiator
- */
-class ContinueAsNewInitiator
-{
- /**
- * Generated from protobuf enum CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED = 0;
- */
- const CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED = 0;
- /**
- * The workflow itself requested to continue as new
- *
- * Generated from protobuf enum CONTINUE_AS_NEW_INITIATOR_WORKFLOW = 1;
- */
- const CONTINUE_AS_NEW_INITIATOR_WORKFLOW = 1;
- /**
- * The workflow continued as new because it is retrying
- *
- * Generated from protobuf enum CONTINUE_AS_NEW_INITIATOR_RETRY = 2;
- */
- const CONTINUE_AS_NEW_INITIATOR_RETRY = 2;
- /**
- * The workflow continued as new because cron has triggered a new execution
- *
- * Generated from protobuf enum CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE = 3;
- */
- const CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE = 3;
-
- private static $valueToName = [
- self::CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED => 'CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED',
- self::CONTINUE_AS_NEW_INITIATOR_WORKFLOW => 'CONTINUE_AS_NEW_INITIATOR_WORKFLOW',
- self::CONTINUE_AS_NEW_INITIATOR_RETRY => 'CONTINUE_AS_NEW_INITIATOR_RETRY',
- self::CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE => 'CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/EncodingType.php b/api/v1/Temporal/Api/Enums/V1/EncodingType.php
deleted file mode 100644
index e2e9759ac..000000000
--- a/api/v1/Temporal/Api/Enums/V1/EncodingType.php
+++ /dev/null
@@ -1,53 +0,0 @@
-temporal.api.enums.v1.EncodingType
- */
-class EncodingType
-{
- /**
- * Generated from protobuf enum ENCODING_TYPE_UNSPECIFIED = 0;
- */
- const ENCODING_TYPE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum ENCODING_TYPE_PROTO3 = 1;
- */
- const ENCODING_TYPE_PROTO3 = 1;
- /**
- * Generated from protobuf enum ENCODING_TYPE_JSON = 2;
- */
- const ENCODING_TYPE_JSON = 2;
-
- private static $valueToName = [
- self::ENCODING_TYPE_UNSPECIFIED => 'ENCODING_TYPE_UNSPECIFIED',
- self::ENCODING_TYPE_PROTO3 => 'ENCODING_TYPE_PROTO3',
- self::ENCODING_TYPE_JSON => 'ENCODING_TYPE_JSON',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/EventType.php b/api/v1/Temporal/Api/Enums/V1/EventType.php
deleted file mode 100644
index ddf732983..000000000
--- a/api/v1/Temporal/Api/Enums/V1/EventType.php
+++ /dev/null
@@ -1,409 +0,0 @@
-temporal.api.enums.v1.EventType
- */
-class EventType
-{
- /**
- * Place holder and should never appear in a Workflow execution history
- *
- * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0;
- */
- const EVENT_TYPE_UNSPECIFIED = 0;
- /**
- * Workflow execution has been triggered/started
- * It contains Workflow execution inputs, as well as Workflow timeout configurations
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_STARTED = 1;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_STARTED = 1;
- /**
- * Workflow execution has successfully completed and contains Workflow execution results
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED = 2;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED = 2;
- /**
- * Workflow execution has unsuccessfully completed and contains the Workflow execution error
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_FAILED = 3;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_FAILED = 3;
- /**
- * Workflow execution has timed out by the Temporal Server
- * Usually due to the Workflow having not been completed within timeout settings
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT = 4;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT = 4;
- /**
- * Workflow Task has been scheduled and the SDK client should now be able to process any new history events
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_TASK_SCHEDULED = 5;
- */
- const EVENT_TYPE_WORKFLOW_TASK_SCHEDULED = 5;
- /**
- * Workflow Task has started and the SDK client has picked up the Workflow Task and is processing new history events
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_TASK_STARTED = 6;
- */
- const EVENT_TYPE_WORKFLOW_TASK_STARTED = 6;
- /**
- * Workflow Task has completed
- * The SDK client picked up the Workflow Task and processed new history events
- * SDK client may or may not ask the Temporal Server to do additional work, such as:
- * EVENT_TYPE_ACTIVITY_TASK_SCHEDULED
- * EVENT_TYPE_TIMER_STARTED
- * EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES
- * EVENT_TYPE_MARKER_RECORDED
- * EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED
- * EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED
- * EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED
- * EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED
- * EVENT_TYPE_WORKFLOW_EXECUTION_FAILED
- * EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED
- * EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_TASK_COMPLETED = 7;
- */
- const EVENT_TYPE_WORKFLOW_TASK_COMPLETED = 7;
- /**
- * Workflow Task encountered a timeout
- * Either an SDK client with a local cache was not available at the time, or it took too long for the SDK client to process the task
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT = 8;
- */
- const EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT = 8;
- /**
- * Workflow Task encountered a failure
- * Usually this means that the Workflow was non-deterministic
- * However, the Workflow reset functionality also uses this event
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_TASK_FAILED = 9;
- */
- const EVENT_TYPE_WORKFLOW_TASK_FAILED = 9;
- /**
- * Activity Task was scheduled
- * The SDK client should pick up this activity task and execute
- * This event type contains activity inputs, as well as activity timeout configurations
- *
- * Generated from protobuf enum EVENT_TYPE_ACTIVITY_TASK_SCHEDULED = 10;
- */
- const EVENT_TYPE_ACTIVITY_TASK_SCHEDULED = 10;
- /**
- * Activity Task has started executing
- * The SDK client has picked up the Activity Task and is processing the Activity invocation
- *
- * Generated from protobuf enum EVENT_TYPE_ACTIVITY_TASK_STARTED = 11;
- */
- const EVENT_TYPE_ACTIVITY_TASK_STARTED = 11;
- /**
- * Activity Task has finished successfully
- * The SDK client has picked up and successfully completed the Activity Task
- * This event type contains Activity execution results
- *
- * Generated from protobuf enum EVENT_TYPE_ACTIVITY_TASK_COMPLETED = 12;
- */
- const EVENT_TYPE_ACTIVITY_TASK_COMPLETED = 12;
- /**
- * Activity Task has finished unsuccessfully
- * The SDK picked up the Activity Task but unsuccessfully completed it
- * This event type contains Activity execution errors
- *
- * Generated from protobuf enum EVENT_TYPE_ACTIVITY_TASK_FAILED = 13;
- */
- const EVENT_TYPE_ACTIVITY_TASK_FAILED = 13;
- /**
- * Activity has timed out according to the Temporal Server
- * Activity did not complete within the timeout settings
- *
- * Generated from protobuf enum EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT = 14;
- */
- const EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT = 14;
- /**
- * A request to cancel the Activity has occurred
- * The SDK client will be able to confirm cancellation of an Activity during an Activity heartbeat
- *
- * Generated from protobuf enum EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED = 15;
- */
- const EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED = 15;
- /**
- * Activity has been cancelled
- *
- * Generated from protobuf enum EVENT_TYPE_ACTIVITY_TASK_CANCELED = 16;
- */
- const EVENT_TYPE_ACTIVITY_TASK_CANCELED = 16;
- /**
- * A timer has started
- *
- * Generated from protobuf enum EVENT_TYPE_TIMER_STARTED = 17;
- */
- const EVENT_TYPE_TIMER_STARTED = 17;
- /**
- * A timer has fired
- *
- * Generated from protobuf enum EVENT_TYPE_TIMER_FIRED = 18;
- */
- const EVENT_TYPE_TIMER_FIRED = 18;
- /**
- * A time has been cancelled
- *
- * Generated from protobuf enum EVENT_TYPE_TIMER_CANCELED = 19;
- */
- const EVENT_TYPE_TIMER_CANCELED = 19;
- /**
- * A request has been made to cancel the Workflow execution
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED = 20;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED = 20;
- /**
- * SDK client has confirmed the cancellation request and the Workflow execution has been cancelled
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED = 21;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED = 21;
- /**
- * Workflow has requested that the Temporal Server try to cancel another Workflow
- *
- * Generated from protobuf enum EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED = 22;
- */
- const EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED = 22;
- /**
- * Temporal Server could not cancel the targeted Workflow
- * This is usually because the target Workflow could not be found
- *
- * Generated from protobuf enum EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED = 23;
- */
- const EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED = 23;
- /**
- * Temporal Server has successfully requested the cancellation of the target Workflow
- *
- * Generated from protobuf enum EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED = 24;
- */
- const EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED = 24;
- /**
- * A marker has been recorded.
- * This event type is transparent to the Temporal Server
- * The Server will only store it and will not try to understand it.
- *
- * Generated from protobuf enum EVENT_TYPE_MARKER_RECORDED = 25;
- */
- const EVENT_TYPE_MARKER_RECORDED = 25;
- /**
- * Workflow has received a Signal event
- * The event type contains the Signal name, as well as a Signal payload
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED = 26;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED = 26;
- /**
- * Workflow execution has been forcefully terminated
- * This is usually because the terminate Workflow API was called
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED = 27;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED = 27;
- /**
- * Workflow has successfully completed and a new Workflow has been started within the same transaction
- * Contains last Workflow execution results as well as new Workflow execution inputs
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW = 28;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW = 28;
- /**
- * Temporal Server will try to start a child Workflow
- *
- * Generated from protobuf enum EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED = 29;
- */
- const EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED = 29;
- /**
- * Child Workflow execution cannot be started/triggered
- * Usually due to a child Workflow ID collision
- *
- * Generated from protobuf enum EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED = 30;
- */
- const EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED = 30;
- /**
- * Child Workflow execution has successfully started/triggered
- *
- * Generated from protobuf enum EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED = 31;
- */
- const EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED = 31;
- /**
- * Child Workflow execution has successfully completed
- *
- * Generated from protobuf enum EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED = 32;
- */
- const EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED = 32;
- /**
- * Child Workflow execution has unsuccessfully completed
- *
- * Generated from protobuf enum EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED = 33;
- */
- const EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED = 33;
- /**
- * Child Workflow execution has been cancelled
- *
- * Generated from protobuf enum EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED = 34;
- */
- const EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED = 34;
- /**
- * Child Workflow execution has timed out by the Temporal Server
- *
- * Generated from protobuf enum EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT = 35;
- */
- const EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT = 35;
- /**
- * Child Workflow execution has been terminated
- *
- * Generated from protobuf enum EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED = 36;
- */
- const EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED = 36;
- /**
- * Temporal Server will try to Signal the targeted Workflow
- * Contains the Signal name, as well as a Signal payload
- *
- * Generated from protobuf enum EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED = 37;
- */
- const EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED = 37;
- /**
- * Temporal Server cannot Signal the targeted Workflow
- * Usually because the Workflow could not be found
- *
- * Generated from protobuf enum EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED = 38;
- */
- const EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED = 38;
- /**
- * Temporal Server has successfully Signaled the targeted Workflow
- *
- * Generated from protobuf enum EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED = 39;
- */
- const EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED = 39;
- /**
- * Workflow search attributes should be updated and synchronized with the visibility store
- *
- * Generated from protobuf enum EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES = 40;
- */
- const EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES = 40;
- /**
- * An update was accepted (i.e. validated)
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED = 41;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED = 41;
- /**
- * An update was rejected (i.e. failed validation)
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED = 42;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED = 42;
- /**
- * An update completed
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED = 43;
- */
- const EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED = 43;
- /**
- * Some property or properties of the workflow as a whole have changed by non-workflow code.
- * The distinction of external vs. command-based modification is important so the SDK can
- * maintain determinism when using the command-based approach.
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY = 44;
- */
- const EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY = 44;
- /**
- * Some property or properties of an already-scheduled activity have changed by non-workflow code.
- * The distinction of external vs. command-based modification is important so the SDK can
- * maintain determinism when using the command-based approach.
- *
- * Generated from protobuf enum EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY = 45;
- */
- const EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY = 45;
- /**
- * Workflow properties modified by user workflow code
- *
- * Generated from protobuf enum EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED = 46;
- */
- const EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED = 46;
-
- private static $valueToName = [
- self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_STARTED => 'EVENT_TYPE_WORKFLOW_EXECUTION_STARTED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED => 'EVENT_TYPE_WORKFLOW_EXECUTION_COMPLETED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_FAILED => 'EVENT_TYPE_WORKFLOW_EXECUTION_FAILED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT => 'EVENT_TYPE_WORKFLOW_EXECUTION_TIMED_OUT',
- self::EVENT_TYPE_WORKFLOW_TASK_SCHEDULED => 'EVENT_TYPE_WORKFLOW_TASK_SCHEDULED',
- self::EVENT_TYPE_WORKFLOW_TASK_STARTED => 'EVENT_TYPE_WORKFLOW_TASK_STARTED',
- self::EVENT_TYPE_WORKFLOW_TASK_COMPLETED => 'EVENT_TYPE_WORKFLOW_TASK_COMPLETED',
- self::EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT => 'EVENT_TYPE_WORKFLOW_TASK_TIMED_OUT',
- self::EVENT_TYPE_WORKFLOW_TASK_FAILED => 'EVENT_TYPE_WORKFLOW_TASK_FAILED',
- self::EVENT_TYPE_ACTIVITY_TASK_SCHEDULED => 'EVENT_TYPE_ACTIVITY_TASK_SCHEDULED',
- self::EVENT_TYPE_ACTIVITY_TASK_STARTED => 'EVENT_TYPE_ACTIVITY_TASK_STARTED',
- self::EVENT_TYPE_ACTIVITY_TASK_COMPLETED => 'EVENT_TYPE_ACTIVITY_TASK_COMPLETED',
- self::EVENT_TYPE_ACTIVITY_TASK_FAILED => 'EVENT_TYPE_ACTIVITY_TASK_FAILED',
- self::EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT => 'EVENT_TYPE_ACTIVITY_TASK_TIMED_OUT',
- self::EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED => 'EVENT_TYPE_ACTIVITY_TASK_CANCEL_REQUESTED',
- self::EVENT_TYPE_ACTIVITY_TASK_CANCELED => 'EVENT_TYPE_ACTIVITY_TASK_CANCELED',
- self::EVENT_TYPE_TIMER_STARTED => 'EVENT_TYPE_TIMER_STARTED',
- self::EVENT_TYPE_TIMER_FIRED => 'EVENT_TYPE_TIMER_FIRED',
- self::EVENT_TYPE_TIMER_CANCELED => 'EVENT_TYPE_TIMER_CANCELED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED => 'EVENT_TYPE_WORKFLOW_EXECUTION_CANCEL_REQUESTED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED => 'EVENT_TYPE_WORKFLOW_EXECUTION_CANCELED',
- self::EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED => 'EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED',
- self::EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED => 'EVENT_TYPE_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_FAILED',
- self::EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED => 'EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_CANCEL_REQUESTED',
- self::EVENT_TYPE_MARKER_RECORDED => 'EVENT_TYPE_MARKER_RECORDED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED => 'EVENT_TYPE_WORKFLOW_EXECUTION_SIGNALED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED => 'EVENT_TYPE_WORKFLOW_EXECUTION_TERMINATED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW => 'EVENT_TYPE_WORKFLOW_EXECUTION_CONTINUED_AS_NEW',
- self::EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED => 'EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_INITIATED',
- self::EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED => 'EVENT_TYPE_START_CHILD_WORKFLOW_EXECUTION_FAILED',
- self::EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED => 'EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_STARTED',
- self::EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED => 'EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_COMPLETED',
- self::EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED => 'EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_FAILED',
- self::EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED => 'EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_CANCELED',
- self::EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT => 'EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TIMED_OUT',
- self::EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED => 'EVENT_TYPE_CHILD_WORKFLOW_EXECUTION_TERMINATED',
- self::EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED => 'EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED',
- self::EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED => 'EVENT_TYPE_SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED',
- self::EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED => 'EVENT_TYPE_EXTERNAL_WORKFLOW_EXECUTION_SIGNALED',
- self::EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES => 'EVENT_TYPE_UPSERT_WORKFLOW_SEARCH_ATTRIBUTES',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED => 'EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_ACCEPTED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED => 'EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_REJECTED',
- self::EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED => 'EVENT_TYPE_WORKFLOW_EXECUTION_UPDATE_COMPLETED',
- self::EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY => 'EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED_EXTERNALLY',
- self::EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY => 'EVENT_TYPE_ACTIVITY_PROPERTIES_MODIFIED_EXTERNALLY',
- self::EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED => 'EVENT_TYPE_WORKFLOW_PROPERTIES_MODIFIED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/HistoryEventFilterType.php b/api/v1/Temporal/Api/Enums/V1/HistoryEventFilterType.php
deleted file mode 100644
index d976c8401..000000000
--- a/api/v1/Temporal/Api/Enums/V1/HistoryEventFilterType.php
+++ /dev/null
@@ -1,53 +0,0 @@
-temporal.api.enums.v1.HistoryEventFilterType
- */
-class HistoryEventFilterType
-{
- /**
- * Generated from protobuf enum HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED = 0;
- */
- const HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum HISTORY_EVENT_FILTER_TYPE_ALL_EVENT = 1;
- */
- const HISTORY_EVENT_FILTER_TYPE_ALL_EVENT = 1;
- /**
- * Generated from protobuf enum HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT = 2;
- */
- const HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT = 2;
-
- private static $valueToName = [
- self::HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED => 'HISTORY_EVENT_FILTER_TYPE_UNSPECIFIED',
- self::HISTORY_EVENT_FILTER_TYPE_ALL_EVENT => 'HISTORY_EVENT_FILTER_TYPE_ALL_EVENT',
- self::HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT => 'HISTORY_EVENT_FILTER_TYPE_CLOSE_EVENT',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/IndexedValueType.php b/api/v1/Temporal/Api/Enums/V1/IndexedValueType.php
deleted file mode 100644
index 08589763f..000000000
--- a/api/v1/Temporal/Api/Enums/V1/IndexedValueType.php
+++ /dev/null
@@ -1,78 +0,0 @@
-temporal.api.enums.v1.IndexedValueType
- */
-class IndexedValueType
-{
- /**
- * Generated from protobuf enum INDEXED_VALUE_TYPE_UNSPECIFIED = 0;
- */
- const INDEXED_VALUE_TYPE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum INDEXED_VALUE_TYPE_TEXT = 1;
- */
- const INDEXED_VALUE_TYPE_TEXT = 1;
- /**
- * Generated from protobuf enum INDEXED_VALUE_TYPE_KEYWORD = 2;
- */
- const INDEXED_VALUE_TYPE_KEYWORD = 2;
- /**
- * Generated from protobuf enum INDEXED_VALUE_TYPE_INT = 3;
- */
- const INDEXED_VALUE_TYPE_INT = 3;
- /**
- * Generated from protobuf enum INDEXED_VALUE_TYPE_DOUBLE = 4;
- */
- const INDEXED_VALUE_TYPE_DOUBLE = 4;
- /**
- * Generated from protobuf enum INDEXED_VALUE_TYPE_BOOL = 5;
- */
- const INDEXED_VALUE_TYPE_BOOL = 5;
- /**
- * Generated from protobuf enum INDEXED_VALUE_TYPE_DATETIME = 6;
- */
- const INDEXED_VALUE_TYPE_DATETIME = 6;
- /**
- * Generated from protobuf enum INDEXED_VALUE_TYPE_KEYWORD_LIST = 7;
- */
- const INDEXED_VALUE_TYPE_KEYWORD_LIST = 7;
-
- private static $valueToName = [
- self::INDEXED_VALUE_TYPE_UNSPECIFIED => 'INDEXED_VALUE_TYPE_UNSPECIFIED',
- self::INDEXED_VALUE_TYPE_TEXT => 'INDEXED_VALUE_TYPE_TEXT',
- self::INDEXED_VALUE_TYPE_KEYWORD => 'INDEXED_VALUE_TYPE_KEYWORD',
- self::INDEXED_VALUE_TYPE_INT => 'INDEXED_VALUE_TYPE_INT',
- self::INDEXED_VALUE_TYPE_DOUBLE => 'INDEXED_VALUE_TYPE_DOUBLE',
- self::INDEXED_VALUE_TYPE_BOOL => 'INDEXED_VALUE_TYPE_BOOL',
- self::INDEXED_VALUE_TYPE_DATETIME => 'INDEXED_VALUE_TYPE_DATETIME',
- self::INDEXED_VALUE_TYPE_KEYWORD_LIST => 'INDEXED_VALUE_TYPE_KEYWORD_LIST',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/NamespaceState.php b/api/v1/Temporal/Api/Enums/V1/NamespaceState.php
deleted file mode 100644
index 19f3395da..000000000
--- a/api/v1/Temporal/Api/Enums/V1/NamespaceState.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.enums.v1.NamespaceState
- */
-class NamespaceState
-{
- /**
- * Generated from protobuf enum NAMESPACE_STATE_UNSPECIFIED = 0;
- */
- const NAMESPACE_STATE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum NAMESPACE_STATE_REGISTERED = 1;
- */
- const NAMESPACE_STATE_REGISTERED = 1;
- /**
- * Generated from protobuf enum NAMESPACE_STATE_DEPRECATED = 2;
- */
- const NAMESPACE_STATE_DEPRECATED = 2;
- /**
- * Generated from protobuf enum NAMESPACE_STATE_DELETED = 3;
- */
- const NAMESPACE_STATE_DELETED = 3;
-
- private static $valueToName = [
- self::NAMESPACE_STATE_UNSPECIFIED => 'NAMESPACE_STATE_UNSPECIFIED',
- self::NAMESPACE_STATE_REGISTERED => 'NAMESPACE_STATE_REGISTERED',
- self::NAMESPACE_STATE_DEPRECATED => 'NAMESPACE_STATE_DEPRECATED',
- self::NAMESPACE_STATE_DELETED => 'NAMESPACE_STATE_DELETED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/ParentClosePolicy.php b/api/v1/Temporal/Api/Enums/V1/ParentClosePolicy.php
deleted file mode 100644
index 00482cf4e..000000000
--- a/api/v1/Temporal/Api/Enums/V1/ParentClosePolicy.php
+++ /dev/null
@@ -1,66 +0,0 @@
-temporal.api.enums.v1.ParentClosePolicy
- */
-class ParentClosePolicy
-{
- /**
- * Generated from protobuf enum PARENT_CLOSE_POLICY_UNSPECIFIED = 0;
- */
- const PARENT_CLOSE_POLICY_UNSPECIFIED = 0;
- /**
- * The child workflow will also terminate
- *
- * Generated from protobuf enum PARENT_CLOSE_POLICY_TERMINATE = 1;
- */
- const PARENT_CLOSE_POLICY_TERMINATE = 1;
- /**
- * The child workflow will do nothing
- *
- * Generated from protobuf enum PARENT_CLOSE_POLICY_ABANDON = 2;
- */
- const PARENT_CLOSE_POLICY_ABANDON = 2;
- /**
- * Cancellation will be requested of the child workflow
- *
- * Generated from protobuf enum PARENT_CLOSE_POLICY_REQUEST_CANCEL = 3;
- */
- const PARENT_CLOSE_POLICY_REQUEST_CANCEL = 3;
-
- private static $valueToName = [
- self::PARENT_CLOSE_POLICY_UNSPECIFIED => 'PARENT_CLOSE_POLICY_UNSPECIFIED',
- self::PARENT_CLOSE_POLICY_TERMINATE => 'PARENT_CLOSE_POLICY_TERMINATE',
- self::PARENT_CLOSE_POLICY_ABANDON => 'PARENT_CLOSE_POLICY_ABANDON',
- self::PARENT_CLOSE_POLICY_REQUEST_CANCEL => 'PARENT_CLOSE_POLICY_REQUEST_CANCEL',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/PendingActivityState.php b/api/v1/Temporal/Api/Enums/V1/PendingActivityState.php
deleted file mode 100644
index 18eb91635..000000000
--- a/api/v1/Temporal/Api/Enums/V1/PendingActivityState.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.enums.v1.PendingActivityState
- */
-class PendingActivityState
-{
- /**
- * Generated from protobuf enum PENDING_ACTIVITY_STATE_UNSPECIFIED = 0;
- */
- const PENDING_ACTIVITY_STATE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum PENDING_ACTIVITY_STATE_SCHEDULED = 1;
- */
- const PENDING_ACTIVITY_STATE_SCHEDULED = 1;
- /**
- * Generated from protobuf enum PENDING_ACTIVITY_STATE_STARTED = 2;
- */
- const PENDING_ACTIVITY_STATE_STARTED = 2;
- /**
- * Generated from protobuf enum PENDING_ACTIVITY_STATE_CANCEL_REQUESTED = 3;
- */
- const PENDING_ACTIVITY_STATE_CANCEL_REQUESTED = 3;
-
- private static $valueToName = [
- self::PENDING_ACTIVITY_STATE_UNSPECIFIED => 'PENDING_ACTIVITY_STATE_UNSPECIFIED',
- self::PENDING_ACTIVITY_STATE_SCHEDULED => 'PENDING_ACTIVITY_STATE_SCHEDULED',
- self::PENDING_ACTIVITY_STATE_STARTED => 'PENDING_ACTIVITY_STATE_STARTED',
- self::PENDING_ACTIVITY_STATE_CANCEL_REQUESTED => 'PENDING_ACTIVITY_STATE_CANCEL_REQUESTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/PendingWorkflowTaskState.php b/api/v1/Temporal/Api/Enums/V1/PendingWorkflowTaskState.php
deleted file mode 100644
index 425f3cd27..000000000
--- a/api/v1/Temporal/Api/Enums/V1/PendingWorkflowTaskState.php
+++ /dev/null
@@ -1,53 +0,0 @@
-temporal.api.enums.v1.PendingWorkflowTaskState
- */
-class PendingWorkflowTaskState
-{
- /**
- * Generated from protobuf enum PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED = 0;
- */
- const PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum PENDING_WORKFLOW_TASK_STATE_SCHEDULED = 1;
- */
- const PENDING_WORKFLOW_TASK_STATE_SCHEDULED = 1;
- /**
- * Generated from protobuf enum PENDING_WORKFLOW_TASK_STATE_STARTED = 2;
- */
- const PENDING_WORKFLOW_TASK_STATE_STARTED = 2;
-
- private static $valueToName = [
- self::PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED => 'PENDING_WORKFLOW_TASK_STATE_UNSPECIFIED',
- self::PENDING_WORKFLOW_TASK_STATE_SCHEDULED => 'PENDING_WORKFLOW_TASK_STATE_SCHEDULED',
- self::PENDING_WORKFLOW_TASK_STATE_STARTED => 'PENDING_WORKFLOW_TASK_STATE_STARTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/QueryRejectCondition.php b/api/v1/Temporal/Api/Enums/V1/QueryRejectCondition.php
deleted file mode 100644
index 6c08bcf6c..000000000
--- a/api/v1/Temporal/Api/Enums/V1/QueryRejectCondition.php
+++ /dev/null
@@ -1,64 +0,0 @@
-temporal.api.enums.v1.QueryRejectCondition
- */
-class QueryRejectCondition
-{
- /**
- * Generated from protobuf enum QUERY_REJECT_CONDITION_UNSPECIFIED = 0;
- */
- const QUERY_REJECT_CONDITION_UNSPECIFIED = 0;
- /**
- * None indicates that query should not be rejected.
- *
- * Generated from protobuf enum QUERY_REJECT_CONDITION_NONE = 1;
- */
- const QUERY_REJECT_CONDITION_NONE = 1;
- /**
- * NotOpen indicates that query should be rejected if workflow is not open.
- *
- * Generated from protobuf enum QUERY_REJECT_CONDITION_NOT_OPEN = 2;
- */
- const QUERY_REJECT_CONDITION_NOT_OPEN = 2;
- /**
- * NotCompletedCleanly indicates that query should be rejected if workflow did not complete cleanly.
- *
- * Generated from protobuf enum QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY = 3;
- */
- const QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY = 3;
-
- private static $valueToName = [
- self::QUERY_REJECT_CONDITION_UNSPECIFIED => 'QUERY_REJECT_CONDITION_UNSPECIFIED',
- self::QUERY_REJECT_CONDITION_NONE => 'QUERY_REJECT_CONDITION_NONE',
- self::QUERY_REJECT_CONDITION_NOT_OPEN => 'QUERY_REJECT_CONDITION_NOT_OPEN',
- self::QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY => 'QUERY_REJECT_CONDITION_NOT_COMPLETED_CLEANLY',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/QueryResultType.php b/api/v1/Temporal/Api/Enums/V1/QueryResultType.php
deleted file mode 100644
index 6db86da56..000000000
--- a/api/v1/Temporal/Api/Enums/V1/QueryResultType.php
+++ /dev/null
@@ -1,53 +0,0 @@
-temporal.api.enums.v1.QueryResultType
- */
-class QueryResultType
-{
- /**
- * Generated from protobuf enum QUERY_RESULT_TYPE_UNSPECIFIED = 0;
- */
- const QUERY_RESULT_TYPE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum QUERY_RESULT_TYPE_ANSWERED = 1;
- */
- const QUERY_RESULT_TYPE_ANSWERED = 1;
- /**
- * Generated from protobuf enum QUERY_RESULT_TYPE_FAILED = 2;
- */
- const QUERY_RESULT_TYPE_FAILED = 2;
-
- private static $valueToName = [
- self::QUERY_RESULT_TYPE_UNSPECIFIED => 'QUERY_RESULT_TYPE_UNSPECIFIED',
- self::QUERY_RESULT_TYPE_ANSWERED => 'QUERY_RESULT_TYPE_ANSWERED',
- self::QUERY_RESULT_TYPE_FAILED => 'QUERY_RESULT_TYPE_FAILED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/ReplicationState.php b/api/v1/Temporal/Api/Enums/V1/ReplicationState.php
deleted file mode 100644
index a95971ce7..000000000
--- a/api/v1/Temporal/Api/Enums/V1/ReplicationState.php
+++ /dev/null
@@ -1,53 +0,0 @@
-temporal.api.enums.v1.ReplicationState
- */
-class ReplicationState
-{
- /**
- * Generated from protobuf enum REPLICATION_STATE_UNSPECIFIED = 0;
- */
- const REPLICATION_STATE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum REPLICATION_STATE_NORMAL = 1;
- */
- const REPLICATION_STATE_NORMAL = 1;
- /**
- * Generated from protobuf enum REPLICATION_STATE_HANDOVER = 2;
- */
- const REPLICATION_STATE_HANDOVER = 2;
-
- private static $valueToName = [
- self::REPLICATION_STATE_UNSPECIFIED => 'REPLICATION_STATE_UNSPECIFIED',
- self::REPLICATION_STATE_NORMAL => 'REPLICATION_STATE_NORMAL',
- self::REPLICATION_STATE_HANDOVER => 'REPLICATION_STATE_HANDOVER',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/ResetReapplyType.php b/api/v1/Temporal/Api/Enums/V1/ResetReapplyType.php
deleted file mode 100644
index c93479760..000000000
--- a/api/v1/Temporal/Api/Enums/V1/ResetReapplyType.php
+++ /dev/null
@@ -1,57 +0,0 @@
-temporal.api.enums.v1.ResetReapplyType
- */
-class ResetReapplyType
-{
- /**
- * Generated from protobuf enum RESET_REAPPLY_TYPE_UNSPECIFIED = 0;
- */
- const RESET_REAPPLY_TYPE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum RESET_REAPPLY_TYPE_SIGNAL = 1;
- */
- const RESET_REAPPLY_TYPE_SIGNAL = 1;
- /**
- * Generated from protobuf enum RESET_REAPPLY_TYPE_NONE = 2;
- */
- const RESET_REAPPLY_TYPE_NONE = 2;
-
- private static $valueToName = [
- self::RESET_REAPPLY_TYPE_UNSPECIFIED => 'RESET_REAPPLY_TYPE_UNSPECIFIED',
- self::RESET_REAPPLY_TYPE_SIGNAL => 'RESET_REAPPLY_TYPE_SIGNAL',
- self::RESET_REAPPLY_TYPE_NONE => 'RESET_REAPPLY_TYPE_NONE',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/ResetType.php b/api/v1/Temporal/Api/Enums/V1/ResetType.php
deleted file mode 100644
index fd026cd16..000000000
--- a/api/v1/Temporal/Api/Enums/V1/ResetType.php
+++ /dev/null
@@ -1,59 +0,0 @@
-temporal.api.enums.v1.ResetType
- */
-class ResetType
-{
- /**
- * Generated from protobuf enum RESET_TYPE_UNSPECIFIED = 0;
- */
- const RESET_TYPE_UNSPECIFIED = 0;
- /**
- * Resets to event of the first workflow task completed, or if it does not exist, the event after task scheduled.
- *
- * Generated from protobuf enum RESET_TYPE_FIRST_WORKFLOW_TASK = 1;
- */
- const RESET_TYPE_FIRST_WORKFLOW_TASK = 1;
- /**
- * Resets to event of the last workflow task completed, or if it does not exist, the event after task scheduled.
- *
- * Generated from protobuf enum RESET_TYPE_LAST_WORKFLOW_TASK = 2;
- */
- const RESET_TYPE_LAST_WORKFLOW_TASK = 2;
-
- private static $valueToName = [
- self::RESET_TYPE_UNSPECIFIED => 'RESET_TYPE_UNSPECIFIED',
- self::RESET_TYPE_FIRST_WORKFLOW_TASK => 'RESET_TYPE_FIRST_WORKFLOW_TASK',
- self::RESET_TYPE_LAST_WORKFLOW_TASK => 'RESET_TYPE_LAST_WORKFLOW_TASK',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/ResourceExhaustedCause.php b/api/v1/Temporal/Api/Enums/V1/ResourceExhaustedCause.php
deleted file mode 100644
index c3a93f7f1..000000000
--- a/api/v1/Temporal/Api/Enums/V1/ResourceExhaustedCause.php
+++ /dev/null
@@ -1,78 +0,0 @@
-temporal.api.enums.v1.ResourceExhaustedCause
- */
-class ResourceExhaustedCause
-{
- /**
- * Generated from protobuf enum RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED = 0;
- */
- const RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED = 0;
- /**
- * Caller exceeds request per second limit.
- *
- * Generated from protobuf enum RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT = 1;
- */
- const RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT = 1;
- /**
- * Caller exceeds max concurrent request limit.
- *
- * Generated from protobuf enum RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT = 2;
- */
- const RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT = 2;
- /**
- * System overloaded.
- *
- * Generated from protobuf enum RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED = 3;
- */
- const RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED = 3;
- /**
- * Namespace exceeds persistence rate limit.
- *
- * Generated from protobuf enum RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT = 4;
- */
- const RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT = 4;
- /**
- * Workflow is busy
- *
- * Generated from protobuf enum RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW = 5;
- */
- const RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW = 5;
-
- private static $valueToName = [
- self::RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED => 'RESOURCE_EXHAUSTED_CAUSE_UNSPECIFIED',
- self::RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT => 'RESOURCE_EXHAUSTED_CAUSE_RPS_LIMIT',
- self::RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT => 'RESOURCE_EXHAUSTED_CAUSE_CONCURRENT_LIMIT',
- self::RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED => 'RESOURCE_EXHAUSTED_CAUSE_SYSTEM_OVERLOADED',
- self::RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT => 'RESOURCE_EXHAUSTED_CAUSE_PERSISTENCE_LIMIT',
- self::RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW => 'RESOURCE_EXHAUSTED_CAUSE_BUSY_WORKFLOW',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/RetryState.php b/api/v1/Temporal/Api/Enums/V1/RetryState.php
deleted file mode 100644
index 5d5849e97..000000000
--- a/api/v1/Temporal/Api/Enums/V1/RetryState.php
+++ /dev/null
@@ -1,78 +0,0 @@
-temporal.api.enums.v1.RetryState
- */
-class RetryState
-{
- /**
- * Generated from protobuf enum RETRY_STATE_UNSPECIFIED = 0;
- */
- const RETRY_STATE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum RETRY_STATE_IN_PROGRESS = 1;
- */
- const RETRY_STATE_IN_PROGRESS = 1;
- /**
- * Generated from protobuf enum RETRY_STATE_NON_RETRYABLE_FAILURE = 2;
- */
- const RETRY_STATE_NON_RETRYABLE_FAILURE = 2;
- /**
- * Generated from protobuf enum RETRY_STATE_TIMEOUT = 3;
- */
- const RETRY_STATE_TIMEOUT = 3;
- /**
- * Generated from protobuf enum RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED = 4;
- */
- const RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED = 4;
- /**
- * Generated from protobuf enum RETRY_STATE_RETRY_POLICY_NOT_SET = 5;
- */
- const RETRY_STATE_RETRY_POLICY_NOT_SET = 5;
- /**
- * Generated from protobuf enum RETRY_STATE_INTERNAL_SERVER_ERROR = 6;
- */
- const RETRY_STATE_INTERNAL_SERVER_ERROR = 6;
- /**
- * Generated from protobuf enum RETRY_STATE_CANCEL_REQUESTED = 7;
- */
- const RETRY_STATE_CANCEL_REQUESTED = 7;
-
- private static $valueToName = [
- self::RETRY_STATE_UNSPECIFIED => 'RETRY_STATE_UNSPECIFIED',
- self::RETRY_STATE_IN_PROGRESS => 'RETRY_STATE_IN_PROGRESS',
- self::RETRY_STATE_NON_RETRYABLE_FAILURE => 'RETRY_STATE_NON_RETRYABLE_FAILURE',
- self::RETRY_STATE_TIMEOUT => 'RETRY_STATE_TIMEOUT',
- self::RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED => 'RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED',
- self::RETRY_STATE_RETRY_POLICY_NOT_SET => 'RETRY_STATE_RETRY_POLICY_NOT_SET',
- self::RETRY_STATE_INTERNAL_SERVER_ERROR => 'RETRY_STATE_INTERNAL_SERVER_ERROR',
- self::RETRY_STATE_CANCEL_REQUESTED => 'RETRY_STATE_CANCEL_REQUESTED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/ScheduleOverlapPolicy.php b/api/v1/Temporal/Api/Enums/V1/ScheduleOverlapPolicy.php
deleted file mode 100644
index 550741608..000000000
--- a/api/v1/Temporal/Api/Enums/V1/ScheduleOverlapPolicy.php
+++ /dev/null
@@ -1,97 +0,0 @@
-temporal.api.enums.v1.ScheduleOverlapPolicy
- */
-class ScheduleOverlapPolicy
-{
- /**
- * Generated from protobuf enum SCHEDULE_OVERLAP_POLICY_UNSPECIFIED = 0;
- */
- const SCHEDULE_OVERLAP_POLICY_UNSPECIFIED = 0;
- /**
- * SCHEDULE_OVERLAP_POLICY_SKIP (default) means don't start anything. When the
- * workflow completes, the next scheduled event after that time will be considered.
- *
- * Generated from protobuf enum SCHEDULE_OVERLAP_POLICY_SKIP = 1;
- */
- const SCHEDULE_OVERLAP_POLICY_SKIP = 1;
- /**
- * SCHEDULE_OVERLAP_POLICY_BUFFER_ONE means start the workflow again soon as the
- * current one completes, but only buffer one start in this way. If another start is
- * supposed to happen when the workflow is running, and one is already buffered, then
- * only the first one will be started after the running workflow finishes.
- *
- * Generated from protobuf enum SCHEDULE_OVERLAP_POLICY_BUFFER_ONE = 2;
- */
- const SCHEDULE_OVERLAP_POLICY_BUFFER_ONE = 2;
- /**
- * SCHEDULE_OVERLAP_POLICY_BUFFER_ALL means buffer up any number of starts to all
- * happen sequentially, immediately after the running workflow completes.
- *
- * Generated from protobuf enum SCHEDULE_OVERLAP_POLICY_BUFFER_ALL = 3;
- */
- const SCHEDULE_OVERLAP_POLICY_BUFFER_ALL = 3;
- /**
- * SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER means that if there is another workflow
- * running, cancel it, and start the new one after the old one completes cancellation.
- *
- * Generated from protobuf enum SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER = 4;
- */
- const SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER = 4;
- /**
- * SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER means that if there is another workflow
- * running, terminate it and start the new one immediately.
- *
- * Generated from protobuf enum SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER = 5;
- */
- const SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER = 5;
- /**
- * SCHEDULE_OVERLAP_POLICY_ALLOW_ALL means start any number of concurrent workflows.
- * Note that with this policy, last completion result and last failure will not be
- * available since workflows are not sequential.
- *
- * Generated from protobuf enum SCHEDULE_OVERLAP_POLICY_ALLOW_ALL = 6;
- */
- const SCHEDULE_OVERLAP_POLICY_ALLOW_ALL = 6;
-
- private static $valueToName = [
- self::SCHEDULE_OVERLAP_POLICY_UNSPECIFIED => 'SCHEDULE_OVERLAP_POLICY_UNSPECIFIED',
- self::SCHEDULE_OVERLAP_POLICY_SKIP => 'SCHEDULE_OVERLAP_POLICY_SKIP',
- self::SCHEDULE_OVERLAP_POLICY_BUFFER_ONE => 'SCHEDULE_OVERLAP_POLICY_BUFFER_ONE',
- self::SCHEDULE_OVERLAP_POLICY_BUFFER_ALL => 'SCHEDULE_OVERLAP_POLICY_BUFFER_ALL',
- self::SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER => 'SCHEDULE_OVERLAP_POLICY_CANCEL_OTHER',
- self::SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER => 'SCHEDULE_OVERLAP_POLICY_TERMINATE_OTHER',
- self::SCHEDULE_OVERLAP_POLICY_ALLOW_ALL => 'SCHEDULE_OVERLAP_POLICY_ALLOW_ALL',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/Severity.php b/api/v1/Temporal/Api/Enums/V1/Severity.php
deleted file mode 100644
index 3c3423f06..000000000
--- a/api/v1/Temporal/Api/Enums/V1/Severity.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.enums.v1.Severity
- */
-class Severity
-{
- /**
- * Generated from protobuf enum SEVERITY_UNSPECIFIED = 0;
- */
- const SEVERITY_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum SEVERITY_HIGH = 1;
- */
- const SEVERITY_HIGH = 1;
- /**
- * Generated from protobuf enum SEVERITY_MEDIUM = 2;
- */
- const SEVERITY_MEDIUM = 2;
- /**
- * Generated from protobuf enum SEVERITY_LOW = 3;
- */
- const SEVERITY_LOW = 3;
-
- private static $valueToName = [
- self::SEVERITY_UNSPECIFIED => 'SEVERITY_UNSPECIFIED',
- self::SEVERITY_HIGH => 'SEVERITY_HIGH',
- self::SEVERITY_MEDIUM => 'SEVERITY_MEDIUM',
- self::SEVERITY_LOW => 'SEVERITY_LOW',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/SignalExternalWorkflowExecutionFailedCause.php b/api/v1/Temporal/Api/Enums/V1/SignalExternalWorkflowExecutionFailedCause.php
deleted file mode 100644
index b4d8467d1..000000000
--- a/api/v1/Temporal/Api/Enums/V1/SignalExternalWorkflowExecutionFailedCause.php
+++ /dev/null
@@ -1,60 +0,0 @@
-temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause
- */
-class SignalExternalWorkflowExecutionFailedCause
-{
- /**
- * Generated from protobuf enum SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0;
- */
- const SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = 1;
- */
- const SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND = 1;
- /**
- * Generated from protobuf enum SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2;
- */
- const SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2;
- /**
- * Signal count limit is per workflow and controlled by server dynamic config "history.maximumSignalsPerExecution"
- *
- * Generated from protobuf enum SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED = 3;
- */
- const SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED = 3;
-
- private static $valueToName = [
- self::SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED => 'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED',
- self::SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND => 'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_EXTERNAL_WORKFLOW_EXECUTION_NOT_FOUND',
- self::SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND => 'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND',
- self::SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED => 'SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_FAILED_CAUSE_SIGNAL_COUNT_LIMIT_EXCEEDED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/StartChildWorkflowExecutionFailedCause.php b/api/v1/Temporal/Api/Enums/V1/StartChildWorkflowExecutionFailedCause.php
deleted file mode 100644
index d30f52c9e..000000000
--- a/api/v1/Temporal/Api/Enums/V1/StartChildWorkflowExecutionFailedCause.php
+++ /dev/null
@@ -1,53 +0,0 @@
-temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause
- */
-class StartChildWorkflowExecutionFailedCause
-{
- /**
- * Generated from protobuf enum START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0;
- */
- const START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS = 1;
- */
- const START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS = 1;
- /**
- * Generated from protobuf enum START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2;
- */
- const START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND = 2;
-
- private static $valueToName = [
- self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED => 'START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_UNSPECIFIED',
- self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS => 'START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_WORKFLOW_ALREADY_EXISTS',
- self::START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND => 'START_CHILD_WORKFLOW_EXECUTION_FAILED_CAUSE_NAMESPACE_NOT_FOUND',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/TaskQueueKind.php b/api/v1/Temporal/Api/Enums/V1/TaskQueueKind.php
deleted file mode 100644
index a0562ca30..000000000
--- a/api/v1/Temporal/Api/Enums/V1/TaskQueueKind.php
+++ /dev/null
@@ -1,65 +0,0 @@
-temporal.api.enums.v1.TaskQueueKind
- */
-class TaskQueueKind
-{
- /**
- * Generated from protobuf enum TASK_QUEUE_KIND_UNSPECIFIED = 0;
- */
- const TASK_QUEUE_KIND_UNSPECIFIED = 0;
- /**
- * Tasks from a normal workflow task queue always include complete workflow history
- * The task queue specified by the user is always a normal task queue. There can be as many
- * workers as desired for a single normal task queue. All those workers may pick up tasks from
- * that queue.
- *
- * Generated from protobuf enum TASK_QUEUE_KIND_NORMAL = 1;
- */
- const TASK_QUEUE_KIND_NORMAL = 1;
- /**
- * A sticky queue only includes new history since the last workflow task, and they are
- * per-worker.
- * Sticky queues are created dynamically by each worker during their start up. They only exist
- * for the lifetime of the worker process. Tasks in a sticky task queue are only available to
- * the worker that created the sticky queue.
- * Sticky queues are only for workflow tasks. There are no sticky task queues for activities.
- *
- * Generated from protobuf enum TASK_QUEUE_KIND_STICKY = 2;
- */
- const TASK_QUEUE_KIND_STICKY = 2;
-
- private static $valueToName = [
- self::TASK_QUEUE_KIND_UNSPECIFIED => 'TASK_QUEUE_KIND_UNSPECIFIED',
- self::TASK_QUEUE_KIND_NORMAL => 'TASK_QUEUE_KIND_NORMAL',
- self::TASK_QUEUE_KIND_STICKY => 'TASK_QUEUE_KIND_STICKY',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/TaskQueueType.php b/api/v1/Temporal/Api/Enums/V1/TaskQueueType.php
deleted file mode 100644
index 3368c99dc..000000000
--- a/api/v1/Temporal/Api/Enums/V1/TaskQueueType.php
+++ /dev/null
@@ -1,57 +0,0 @@
-temporal.api.enums.v1.TaskQueueType
- */
-class TaskQueueType
-{
- /**
- * Generated from protobuf enum TASK_QUEUE_TYPE_UNSPECIFIED = 0;
- */
- const TASK_QUEUE_TYPE_UNSPECIFIED = 0;
- /**
- * Workflow type of task queue.
- *
- * Generated from protobuf enum TASK_QUEUE_TYPE_WORKFLOW = 1;
- */
- const TASK_QUEUE_TYPE_WORKFLOW = 1;
- /**
- * Activity type of task queue.
- *
- * Generated from protobuf enum TASK_QUEUE_TYPE_ACTIVITY = 2;
- */
- const TASK_QUEUE_TYPE_ACTIVITY = 2;
-
- private static $valueToName = [
- self::TASK_QUEUE_TYPE_UNSPECIFIED => 'TASK_QUEUE_TYPE_UNSPECIFIED',
- self::TASK_QUEUE_TYPE_WORKFLOW => 'TASK_QUEUE_TYPE_WORKFLOW',
- self::TASK_QUEUE_TYPE_ACTIVITY => 'TASK_QUEUE_TYPE_ACTIVITY',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/TaskReachability.php b/api/v1/Temporal/Api/Enums/V1/TaskReachability.php
deleted file mode 100644
index 0a0230ed3..000000000
--- a/api/v1/Temporal/Api/Enums/V1/TaskReachability.php
+++ /dev/null
@@ -1,78 +0,0 @@
-temporal.api.enums.v1.TaskReachability
- */
-class TaskReachability
-{
- /**
- * Generated from protobuf enum TASK_REACHABILITY_UNSPECIFIED = 0;
- */
- const TASK_REACHABILITY_UNSPECIFIED = 0;
- /**
- * There's a possiblity for a worker to receive new workflow tasks. Workers should *not* be retired.
- *
- * Generated from protobuf enum TASK_REACHABILITY_NEW_WORKFLOWS = 1;
- */
- const TASK_REACHABILITY_NEW_WORKFLOWS = 1;
- /**
- * There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows. Workers
- * should *not* be retired.
- * This enum value does not distinguish between open and closed workflows.
- *
- * Generated from protobuf enum TASK_REACHABILITY_EXISTING_WORKFLOWS = 2;
- */
- const TASK_REACHABILITY_EXISTING_WORKFLOWS = 2;
- /**
- * There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows. Workers
- * should *not* be retired.
- *
- * Generated from protobuf enum TASK_REACHABILITY_OPEN_WORKFLOWS = 3;
- */
- const TASK_REACHABILITY_OPEN_WORKFLOWS = 3;
- /**
- * There's a possiblity for a worker to receive existing workflow tasks from closed workflows. Workers may be
- * retired dependending on application requirements. For example, if there's no need to query closed workflows.
- *
- * Generated from protobuf enum TASK_REACHABILITY_CLOSED_WORKFLOWS = 4;
- */
- const TASK_REACHABILITY_CLOSED_WORKFLOWS = 4;
-
- private static $valueToName = [
- self::TASK_REACHABILITY_UNSPECIFIED => 'TASK_REACHABILITY_UNSPECIFIED',
- self::TASK_REACHABILITY_NEW_WORKFLOWS => 'TASK_REACHABILITY_NEW_WORKFLOWS',
- self::TASK_REACHABILITY_EXISTING_WORKFLOWS => 'TASK_REACHABILITY_EXISTING_WORKFLOWS',
- self::TASK_REACHABILITY_OPEN_WORKFLOWS => 'TASK_REACHABILITY_OPEN_WORKFLOWS',
- self::TASK_REACHABILITY_CLOSED_WORKFLOWS => 'TASK_REACHABILITY_CLOSED_WORKFLOWS',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/TimeoutType.php b/api/v1/Temporal/Api/Enums/V1/TimeoutType.php
deleted file mode 100644
index bb7a8e593..000000000
--- a/api/v1/Temporal/Api/Enums/V1/TimeoutType.php
+++ /dev/null
@@ -1,63 +0,0 @@
-temporal.api.enums.v1.TimeoutType
- */
-class TimeoutType
-{
- /**
- * Generated from protobuf enum TIMEOUT_TYPE_UNSPECIFIED = 0;
- */
- const TIMEOUT_TYPE_UNSPECIFIED = 0;
- /**
- * Generated from protobuf enum TIMEOUT_TYPE_START_TO_CLOSE = 1;
- */
- const TIMEOUT_TYPE_START_TO_CLOSE = 1;
- /**
- * Generated from protobuf enum TIMEOUT_TYPE_SCHEDULE_TO_START = 2;
- */
- const TIMEOUT_TYPE_SCHEDULE_TO_START = 2;
- /**
- * Generated from protobuf enum TIMEOUT_TYPE_SCHEDULE_TO_CLOSE = 3;
- */
- const TIMEOUT_TYPE_SCHEDULE_TO_CLOSE = 3;
- /**
- * Generated from protobuf enum TIMEOUT_TYPE_HEARTBEAT = 4;
- */
- const TIMEOUT_TYPE_HEARTBEAT = 4;
-
- private static $valueToName = [
- self::TIMEOUT_TYPE_UNSPECIFIED => 'TIMEOUT_TYPE_UNSPECIFIED',
- self::TIMEOUT_TYPE_START_TO_CLOSE => 'TIMEOUT_TYPE_START_TO_CLOSE',
- self::TIMEOUT_TYPE_SCHEDULE_TO_START => 'TIMEOUT_TYPE_SCHEDULE_TO_START',
- self::TIMEOUT_TYPE_SCHEDULE_TO_CLOSE => 'TIMEOUT_TYPE_SCHEDULE_TO_CLOSE',
- self::TIMEOUT_TYPE_HEARTBEAT => 'TIMEOUT_TYPE_HEARTBEAT',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/UpdateWorkflowExecutionLifecycleStage.php b/api/v1/Temporal/Api/Enums/V1/UpdateWorkflowExecutionLifecycleStage.php
deleted file mode 100644
index 936143134..000000000
--- a/api/v1/Temporal/Api/Enums/V1/UpdateWorkflowExecutionLifecycleStage.php
+++ /dev/null
@@ -1,80 +0,0 @@
-temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage
- */
-class UpdateWorkflowExecutionLifecycleStage
-{
- /**
- * An unspecified vale for this enum.
- *
- * Generated from protobuf enum UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED = 0;
- */
- const UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED = 0;
- /**
- * The gRPC call will not return until the update request has been admitted
- * by the server - it may be the case that due to a considerations like load
- * or resource limits that an update is made to wait before the server will
- * indicate that it has been received and will be processed. This value
- * does not wait for any sort of acknowledgement from a worker.
- *
- * Generated from protobuf enum UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED = 1;
- */
- const UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED = 1;
- /**
- * The gRPC call will not return until the update has passed validation on
- * a worker.
- *
- * Generated from protobuf enum UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED = 2;
- */
- const UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED = 2;
- /**
- * The gRPC call will not return until the update has executed to completion
- * on a worker and has either been rejected or returned a value or an error.
- *
- * Generated from protobuf enum UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED = 3;
- */
- const UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED = 3;
-
- private static $valueToName = [
- self::UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED => 'UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED',
- self::UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED => 'UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED',
- self::UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED => 'UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED',
- self::UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED => 'UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/WorkflowExecutionStatus.php b/api/v1/Temporal/Api/Enums/V1/WorkflowExecutionStatus.php
deleted file mode 100644
index 4c9b29807..000000000
--- a/api/v1/Temporal/Api/Enums/V1/WorkflowExecutionStatus.php
+++ /dev/null
@@ -1,83 +0,0 @@
-temporal.api.enums.v1.WorkflowExecutionStatus
- */
-class WorkflowExecutionStatus
-{
- /**
- * Generated from protobuf enum WORKFLOW_EXECUTION_STATUS_UNSPECIFIED = 0;
- */
- const WORKFLOW_EXECUTION_STATUS_UNSPECIFIED = 0;
- /**
- * Value 1 is hardcoded in SQL persistence.
- *
- * Generated from protobuf enum WORKFLOW_EXECUTION_STATUS_RUNNING = 1;
- */
- const WORKFLOW_EXECUTION_STATUS_RUNNING = 1;
- /**
- * Generated from protobuf enum WORKFLOW_EXECUTION_STATUS_COMPLETED = 2;
- */
- const WORKFLOW_EXECUTION_STATUS_COMPLETED = 2;
- /**
- * Generated from protobuf enum WORKFLOW_EXECUTION_STATUS_FAILED = 3;
- */
- const WORKFLOW_EXECUTION_STATUS_FAILED = 3;
- /**
- * Generated from protobuf enum WORKFLOW_EXECUTION_STATUS_CANCELED = 4;
- */
- const WORKFLOW_EXECUTION_STATUS_CANCELED = 4;
- /**
- * Generated from protobuf enum WORKFLOW_EXECUTION_STATUS_TERMINATED = 5;
- */
- const WORKFLOW_EXECUTION_STATUS_TERMINATED = 5;
- /**
- * Generated from protobuf enum WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW = 6;
- */
- const WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW = 6;
- /**
- * Generated from protobuf enum WORKFLOW_EXECUTION_STATUS_TIMED_OUT = 7;
- */
- const WORKFLOW_EXECUTION_STATUS_TIMED_OUT = 7;
-
- private static $valueToName = [
- self::WORKFLOW_EXECUTION_STATUS_UNSPECIFIED => 'WORKFLOW_EXECUTION_STATUS_UNSPECIFIED',
- self::WORKFLOW_EXECUTION_STATUS_RUNNING => 'WORKFLOW_EXECUTION_STATUS_RUNNING',
- self::WORKFLOW_EXECUTION_STATUS_COMPLETED => 'WORKFLOW_EXECUTION_STATUS_COMPLETED',
- self::WORKFLOW_EXECUTION_STATUS_FAILED => 'WORKFLOW_EXECUTION_STATUS_FAILED',
- self::WORKFLOW_EXECUTION_STATUS_CANCELED => 'WORKFLOW_EXECUTION_STATUS_CANCELED',
- self::WORKFLOW_EXECUTION_STATUS_TERMINATED => 'WORKFLOW_EXECUTION_STATUS_TERMINATED',
- self::WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW => 'WORKFLOW_EXECUTION_STATUS_CONTINUED_AS_NEW',
- self::WORKFLOW_EXECUTION_STATUS_TIMED_OUT => 'WORKFLOW_EXECUTION_STATUS_TIMED_OUT',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/WorkflowIdReusePolicy.php b/api/v1/Temporal/Api/Enums/V1/WorkflowIdReusePolicy.php
deleted file mode 100644
index 136c754d0..000000000
--- a/api/v1/Temporal/Api/Enums/V1/WorkflowIdReusePolicy.php
+++ /dev/null
@@ -1,77 +0,0 @@
-temporal.api.enums.v1.WorkflowIdReusePolicy
- */
-class WorkflowIdReusePolicy
-{
- /**
- * Generated from protobuf enum WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED = 0;
- */
- const WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED = 0;
- /**
- * Allow starting a workflow execution using the same workflow id.
- *
- * Generated from protobuf enum WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1;
- */
- const WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1;
- /**
- * Allow starting a workflow execution using the same workflow id, only when the last
- * execution's final state is one of [terminated, cancelled, timed out, failed].
- *
- * Generated from protobuf enum WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2;
- */
- const WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2;
- /**
- * Do not permit re-use of the workflow id for this workflow. Future start workflow requests
- * could potentially change the policy, allowing re-use of the workflow id.
- *
- * Generated from protobuf enum WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE = 3;
- */
- const WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE = 3;
- /**
- * If a workflow is running using the same workflow ID, terminate it and start a new one.
- * If no running workflow, then the behavior is the same as ALLOW_DUPLICATE
- *
- * Generated from protobuf enum WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING = 4;
- */
- const WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING = 4;
-
- private static $valueToName = [
- self::WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED => 'WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED',
- self::WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE => 'WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE',
- self::WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY => 'WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY',
- self::WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE => 'WORKFLOW_ID_REUSE_POLICY_REJECT_DUPLICATE',
- self::WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING => 'WORKFLOW_ID_REUSE_POLICY_TERMINATE_IF_RUNNING',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Enums/V1/WorkflowTaskFailedCause.php b/api/v1/Temporal/Api/Enums/V1/WorkflowTaskFailedCause.php
deleted file mode 100644
index bbdf5875e..000000000
--- a/api/v1/Temporal/Api/Enums/V1/WorkflowTaskFailedCause.php
+++ /dev/null
@@ -1,232 +0,0 @@
-temporal.api.enums.v1.WorkflowTaskFailedCause
- */
-class WorkflowTaskFailedCause
-{
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED = 0;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED = 0;
- /**
- * Between starting and completing the workflow task (with a workflow completion command), some
- * new command (like a signal) was processed into workflow history. The outstanding task will be
- * failed with this reason, and a worker must pick up a new task.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND = 1;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND = 1;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES = 2;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES = 2;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES = 3;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES = 3;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES = 4;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES = 4;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES = 5;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES = 5;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES = 6;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES = 6;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES = 7;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES = 7;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES = 8;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES = 8;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES = 9;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES = 9;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 10;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 10;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES = 11;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES = 11;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID = 12;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID = 12;
- /**
- * The worker wishes to fail the task and have the next one be generated on a normal, not sticky
- * queue. Generally workers should prefer to use the explicit `ResetStickyTaskQueue` RPC call.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE = 13;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE = 13;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE = 14;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE = 14;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 15;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES = 15;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES = 16;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES = 16;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND = 17;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND = 17;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND = 18;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND = 18;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE = 19;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE = 19;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW = 20;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW = 20;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY = 21;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY = 21;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID = 22;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID = 22;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES = 23;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES = 23;
- /**
- * The worker encountered a mismatch while replaying history between what was expected, and
- * what the workflow code actually did.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR = 24;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR = 24;
- /**
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES = 25;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES = 25;
- /**
- * We send the below error codes to users when their requests would violate a size constraint
- * of their workflow. We do this to ensure that the state of their workflow does not become too
- * large because that can cause severe performance degradation. You can modify the thresholds for
- * each of these errors within your dynamic config.
- * Spawning a new child workflow would cause this workflow to exceed its limit of pending child
- * workflows.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED = 26;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED = 26;
- /**
- * Starting a new activity would cause this workflow to exceed its limit of pending activities
- * that we track.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED = 27;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED = 27;
- /**
- * A workflow has a buffer of signals that have not yet reached their destination. We return this
- * error when sending a new signal would exceed the capacity of this buffer.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED = 28;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED = 28;
- /**
- * Similarly, we have a buffer of pending requests to cancel other workflows. We return this error
- * when our capacity for pending cancel requests is already reached.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED = 29;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED = 29;
- /**
- * Workflow execution update message (update.Acceptance, update.Rejection, or update.Response)
- * has wrong format, or missing required fields.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE = 30;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE = 30;
- /**
- * Similar to WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND, but for updates.
- *
- * Generated from protobuf enum WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE = 31;
- */
- const WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE = 31;
-
- private static $valueToName = [
- self::WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED => 'WORKFLOW_TASK_FAILED_CAUSE_UNSPECIFIED',
- self::WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND => 'WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_COMMAND',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_SCHEDULE_ACTIVITY_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_ACTIVITY_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_START_TIMER_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_TIMER_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_RECORD_MARKER_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_COMPLETE_WORKFLOW_EXECUTION_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_FAIL_WORKFLOW_EXECUTION_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_CANCEL_WORKFLOW_EXECUTION_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_CONTINUE_AS_NEW_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID => 'WORKFLOW_TASK_FAILED_CAUSE_START_TIMER_DUPLICATE_ID',
- self::WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE => 'WORKFLOW_TASK_FAILED_CAUSE_RESET_STICKY_TASK_QUEUE',
- self::WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE => 'WORKFLOW_TASK_FAILED_CAUSE_WORKFLOW_WORKER_UNHANDLED_FAILURE',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_WORKFLOW_EXECUTION_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_START_CHILD_EXECUTION_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND => 'WORKFLOW_TASK_FAILED_CAUSE_FORCE_CLOSE_COMMAND',
- self::WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND => 'WORKFLOW_TASK_FAILED_CAUSE_FAILOVER_CLOSE_COMMAND',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_SIGNAL_INPUT_SIZE',
- self::WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW => 'WORKFLOW_TASK_FAILED_CAUSE_RESET_WORKFLOW',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_BINARY',
- self::WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID => 'WORKFLOW_TASK_FAILED_CAUSE_SCHEDULE_ACTIVITY_DUPLICATE_ID',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_SEARCH_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR => 'WORKFLOW_TASK_FAILED_CAUSE_NON_DETERMINISTIC_ERROR',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_MODIFY_WORKFLOW_PROPERTIES_ATTRIBUTES',
- self::WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED => 'WORKFLOW_TASK_FAILED_CAUSE_PENDING_CHILD_WORKFLOWS_LIMIT_EXCEEDED',
- self::WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED => 'WORKFLOW_TASK_FAILED_CAUSE_PENDING_ACTIVITIES_LIMIT_EXCEEDED',
- self::WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED => 'WORKFLOW_TASK_FAILED_CAUSE_PENDING_SIGNALS_LIMIT_EXCEEDED',
- self::WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED => 'WORKFLOW_TASK_FAILED_CAUSE_PENDING_REQUEST_CANCEL_LIMIT_EXCEEDED',
- self::WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE => 'WORKFLOW_TASK_FAILED_CAUSE_BAD_UPDATE_WORKFLOW_EXECUTION_MESSAGE',
- self::WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE => 'WORKFLOW_TASK_FAILED_CAUSE_UNHANDLED_UPDATE',
- ];
-
- public static function name($value)
- {
- if (!isset(self::$valueToName[$value])) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no name defined for value %s', __CLASS__, $value));
- }
- return self::$valueToName[$value];
- }
-
-
- public static function value($name)
- {
- $const = __CLASS__ . '::' . strtoupper($name);
- if (!defined($const)) {
- throw new UnexpectedValueException(sprintf(
- 'Enum %s has no value defined for name %s', __CLASS__, $name));
- }
- return constant($const);
- }
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/CancellationAlreadyRequestedFailure.php b/api/v1/Temporal/Api/Errordetails/V1/CancellationAlreadyRequestedFailure.php
deleted file mode 100644
index e3967bf5b..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/CancellationAlreadyRequestedFailure.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.errordetails.v1.CancellationAlreadyRequestedFailure
- */
-class CancellationAlreadyRequestedFailure extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/ClientVersionNotSupportedFailure.php b/api/v1/Temporal/Api/Errordetails/V1/ClientVersionNotSupportedFailure.php
deleted file mode 100644
index c9a7a5d36..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/ClientVersionNotSupportedFailure.php
+++ /dev/null
@@ -1,112 +0,0 @@
-temporal.api.errordetails.v1.ClientVersionNotSupportedFailure
- */
-class ClientVersionNotSupportedFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string client_version = 1;
- */
- protected $client_version = '';
- /**
- * Generated from protobuf field string client_name = 2;
- */
- protected $client_name = '';
- /**
- * Generated from protobuf field string supported_versions = 3;
- */
- protected $supported_versions = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $client_version
- * @type string $client_name
- * @type string $supported_versions
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string client_version = 1;
- * @return string
- */
- public function getClientVersion()
- {
- return $this->client_version;
- }
-
- /**
- * Generated from protobuf field string client_version = 1;
- * @param string $var
- * @return $this
- */
- public function setClientVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->client_version = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string client_name = 2;
- * @return string
- */
- public function getClientName()
- {
- return $this->client_name;
- }
-
- /**
- * Generated from protobuf field string client_name = 2;
- * @param string $var
- * @return $this
- */
- public function setClientName($var)
- {
- GPBUtil::checkString($var, True);
- $this->client_name = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string supported_versions = 3;
- * @return string
- */
- public function getSupportedVersions()
- {
- return $this->supported_versions;
- }
-
- /**
- * Generated from protobuf field string supported_versions = 3;
- * @param string $var
- * @return $this
- */
- public function setSupportedVersions($var)
- {
- GPBUtil::checkString($var, True);
- $this->supported_versions = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/NamespaceAlreadyExistsFailure.php b/api/v1/Temporal/Api/Errordetails/V1/NamespaceAlreadyExistsFailure.php
deleted file mode 100644
index cf3fa60ec..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/NamespaceAlreadyExistsFailure.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.errordetails.v1.NamespaceAlreadyExistsFailure
- */
-class NamespaceAlreadyExistsFailure extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/NamespaceInvalidStateFailure.php b/api/v1/Temporal/Api/Errordetails/V1/NamespaceInvalidStateFailure.php
deleted file mode 100644
index 3f634bb77..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/NamespaceInvalidStateFailure.php
+++ /dev/null
@@ -1,130 +0,0 @@
-temporal.api.errordetails.v1.NamespaceInvalidStateFailure
- */
-class NamespaceInvalidStateFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Current state of the requested namespace.
- *
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 2;
- */
- protected $state = 0;
- /**
- * Allowed namespace states for requested operation.
- * For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
- *
- * Generated from protobuf field repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
- */
- private $allowed_states;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type int $state
- * Current state of the requested namespace.
- * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_states
- * Allowed namespace states for requested operation.
- * For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Current state of the requested namespace.
- *
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 2;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Current state of the requested namespace.
- *
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 2;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\NamespaceState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Allowed namespace states for requested operation.
- * For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
- *
- * Generated from protobuf field repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAllowedStates()
- {
- return $this->allowed_states;
- }
-
- /**
- * Allowed namespace states for requested operation.
- * For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
- *
- * Generated from protobuf field repeated .temporal.api.enums.v1.NamespaceState allowed_states = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAllowedStates($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Temporal\Api\Enums\V1\NamespaceState::class);
- $this->allowed_states = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/NamespaceNotActiveFailure.php b/api/v1/Temporal/Api/Errordetails/V1/NamespaceNotActiveFailure.php
deleted file mode 100644
index 1b0689cb4..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/NamespaceNotActiveFailure.php
+++ /dev/null
@@ -1,112 +0,0 @@
-temporal.api.errordetails.v1.NamespaceNotActiveFailure
- */
-class NamespaceNotActiveFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string current_cluster = 2;
- */
- protected $current_cluster = '';
- /**
- * Generated from protobuf field string active_cluster = 3;
- */
- protected $active_cluster = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $current_cluster
- * @type string $active_cluster
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string current_cluster = 2;
- * @return string
- */
- public function getCurrentCluster()
- {
- return $this->current_cluster;
- }
-
- /**
- * Generated from protobuf field string current_cluster = 2;
- * @param string $var
- * @return $this
- */
- public function setCurrentCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->current_cluster = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string active_cluster = 3;
- * @return string
- */
- public function getActiveCluster()
- {
- return $this->active_cluster;
- }
-
- /**
- * Generated from protobuf field string active_cluster = 3;
- * @param string $var
- * @return $this
- */
- public function setActiveCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->active_cluster = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/NamespaceNotFoundFailure.php b/api/v1/Temporal/Api/Errordetails/V1/NamespaceNotFoundFailure.php
deleted file mode 100644
index d5fe2e099..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/NamespaceNotFoundFailure.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.errordetails.v1.NamespaceNotFoundFailure
- */
-class NamespaceNotFoundFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/NewerBuildExistsFailure.php b/api/v1/Temporal/Api/Errordetails/V1/NewerBuildExistsFailure.php
deleted file mode 100644
index 6fafa61bb..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/NewerBuildExistsFailure.php
+++ /dev/null
@@ -1,65 +0,0 @@
-temporal.api.errordetails.v1.NewerBuildExistsFailure
- */
-class NewerBuildExistsFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * The current default compatible build ID which will receive tasks
- *
- * Generated from protobuf field string default_build_id = 1;
- */
- protected $default_build_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $default_build_id
- * The current default compatible build ID which will receive tasks
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The current default compatible build ID which will receive tasks
- *
- * Generated from protobuf field string default_build_id = 1;
- * @return string
- */
- public function getDefaultBuildId()
- {
- return $this->default_build_id;
- }
-
- /**
- * The current default compatible build ID which will receive tasks
- *
- * Generated from protobuf field string default_build_id = 1;
- * @param string $var
- * @return $this
- */
- public function setDefaultBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->default_build_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/NotFoundFailure.php b/api/v1/Temporal/Api/Errordetails/V1/NotFoundFailure.php
deleted file mode 100644
index d7cd9e34d..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/NotFoundFailure.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.errordetails.v1.NotFoundFailure
- */
-class NotFoundFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string current_cluster = 1;
- */
- protected $current_cluster = '';
- /**
- * Generated from protobuf field string active_cluster = 2;
- */
- protected $active_cluster = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $current_cluster
- * @type string $active_cluster
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string current_cluster = 1;
- * @return string
- */
- public function getCurrentCluster()
- {
- return $this->current_cluster;
- }
-
- /**
- * Generated from protobuf field string current_cluster = 1;
- * @param string $var
- * @return $this
- */
- public function setCurrentCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->current_cluster = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string active_cluster = 2;
- * @return string
- */
- public function getActiveCluster()
- {
- return $this->active_cluster;
- }
-
- /**
- * Generated from protobuf field string active_cluster = 2;
- * @param string $var
- * @return $this
- */
- public function setActiveCluster($var)
- {
- GPBUtil::checkString($var, True);
- $this->active_cluster = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/PermissionDeniedFailure.php b/api/v1/Temporal/Api/Errordetails/V1/PermissionDeniedFailure.php
deleted file mode 100644
index 10f899d00..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/PermissionDeniedFailure.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.errordetails.v1.PermissionDeniedFailure
- */
-class PermissionDeniedFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string reason = 1;
- */
- protected $reason = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $reason
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string reason = 1;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Generated from protobuf field string reason = 1;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/QueryFailedFailure.php b/api/v1/Temporal/Api/Errordetails/V1/QueryFailedFailure.php
deleted file mode 100644
index 6d947459b..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/QueryFailedFailure.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.errordetails.v1.QueryFailedFailure
- */
-class QueryFailedFailure extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/ResourceExhaustedFailure.php b/api/v1/Temporal/Api/Errordetails/V1/ResourceExhaustedFailure.php
deleted file mode 100644
index c333d80ce..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/ResourceExhaustedFailure.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.errordetails.v1.ResourceExhaustedFailure
- */
-class ResourceExhaustedFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ResourceExhaustedCause cause = 1;
- */
- protected $cause = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $cause
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ResourceExhaustedCause cause = 1;
- * @return int
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ResourceExhaustedCause cause = 1;
- * @param int $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ResourceExhaustedCause::class);
- $this->cause = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/ServerVersionNotSupportedFailure.php b/api/v1/Temporal/Api/Errordetails/V1/ServerVersionNotSupportedFailure.php
deleted file mode 100644
index 91912b151..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/ServerVersionNotSupportedFailure.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.errordetails.v1.ServerVersionNotSupportedFailure
- */
-class ServerVersionNotSupportedFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string server_version = 1;
- */
- protected $server_version = '';
- /**
- * Generated from protobuf field string client_supported_server_versions = 2;
- */
- protected $client_supported_server_versions = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $server_version
- * @type string $client_supported_server_versions
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string server_version = 1;
- * @return string
- */
- public function getServerVersion()
- {
- return $this->server_version;
- }
-
- /**
- * Generated from protobuf field string server_version = 1;
- * @param string $var
- * @return $this
- */
- public function setServerVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->server_version = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string client_supported_server_versions = 2;
- * @return string
- */
- public function getClientSupportedServerVersions()
- {
- return $this->client_supported_server_versions;
- }
-
- /**
- * Generated from protobuf field string client_supported_server_versions = 2;
- * @param string $var
- * @return $this
- */
- public function setClientSupportedServerVersions($var)
- {
- GPBUtil::checkString($var, True);
- $this->client_supported_server_versions = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/SystemWorkflowFailure.php b/api/v1/Temporal/Api/Errordetails/V1/SystemWorkflowFailure.php
deleted file mode 100644
index 8478c5d61..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/SystemWorkflowFailure.php
+++ /dev/null
@@ -1,113 +0,0 @@
-temporal.api.errordetails.v1.SystemWorkflowFailure
- */
-class SystemWorkflowFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * WorkflowId and RunId of the Temporal system workflow performing the underlying operation.
- * Looking up the info of the system workflow run may help identify the issue causing the failure.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 1;
- */
- protected $workflow_execution = null;
- /**
- * Serialized error returned by the system workflow performing the underlying operation.
- *
- * Generated from protobuf field string workflow_error = 2;
- */
- protected $workflow_error = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * WorkflowId and RunId of the Temporal system workflow performing the underlying operation.
- * Looking up the info of the system workflow run may help identify the issue causing the failure.
- * @type string $workflow_error
- * Serialized error returned by the system workflow performing the underlying operation.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * WorkflowId and RunId of the Temporal system workflow performing the underlying operation.
- * Looking up the info of the system workflow run may help identify the issue causing the failure.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 1;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * WorkflowId and RunId of the Temporal system workflow performing the underlying operation.
- * Looking up the info of the system workflow run may help identify the issue causing the failure.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 1;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Serialized error returned by the system workflow performing the underlying operation.
- *
- * Generated from protobuf field string workflow_error = 2;
- * @return string
- */
- public function getWorkflowError()
- {
- return $this->workflow_error;
- }
-
- /**
- * Serialized error returned by the system workflow performing the underlying operation.
- *
- * Generated from protobuf field string workflow_error = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowError($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_error = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/WorkflowExecutionAlreadyStartedFailure.php b/api/v1/Temporal/Api/Errordetails/V1/WorkflowExecutionAlreadyStartedFailure.php
deleted file mode 100644
index 2f0320ee8..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/WorkflowExecutionAlreadyStartedFailure.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure
- */
-class WorkflowExecutionAlreadyStartedFailure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string start_request_id = 1;
- */
- protected $start_request_id = '';
- /**
- * Generated from protobuf field string run_id = 2;
- */
- protected $run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $start_request_id
- * @type string $run_id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string start_request_id = 1;
- * @return string
- */
- public function getStartRequestId()
- {
- return $this->start_request_id;
- }
-
- /**
- * Generated from protobuf field string start_request_id = 1;
- * @param string $var
- * @return $this
- */
- public function setStartRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->start_request_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string run_id = 2;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Generated from protobuf field string run_id = 2;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Errordetails/V1/WorkflowNotReadyFailure.php b/api/v1/Temporal/Api/Errordetails/V1/WorkflowNotReadyFailure.php
deleted file mode 100644
index 9fe4908ee..000000000
--- a/api/v1/Temporal/Api/Errordetails/V1/WorkflowNotReadyFailure.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.errordetails.v1.WorkflowNotReadyFailure
- */
-class WorkflowNotReadyFailure extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Errordetails\V1\Message::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/ActivityFailureInfo.php b/api/v1/Temporal/Api/Failure/V1/ActivityFailureInfo.php
deleted file mode 100644
index c3c860292..000000000
--- a/api/v1/Temporal/Api/Failure/V1/ActivityFailureInfo.php
+++ /dev/null
@@ -1,203 +0,0 @@
-temporal.api.failure.v1.ActivityFailureInfo
- */
-class ActivityFailureInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
- /**
- * Generated from protobuf field int64 started_event_id = 2;
- */
- protected $started_event_id = 0;
- /**
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 4;
- */
- protected $activity_type = null;
- /**
- * Generated from protobuf field string activity_id = 5;
- */
- protected $activity_id = '';
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- */
- protected $retry_state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * @type int|string $started_event_id
- * @type string $identity
- * @type \Temporal\Api\Common\V1\ActivityType $activity_type
- * @type string $activity_id
- * @type int $retry_state
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 started_event_id = 2;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * Generated from protobuf field int64 started_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 4;
- * @return \Temporal\Api\Common\V1\ActivityType|null
- */
- public function getActivityType()
- {
- return $this->activity_type;
- }
-
- public function hasActivityType()
- {
- return isset($this->activity_type);
- }
-
- public function clearActivityType()
- {
- unset($this->activity_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 4;
- * @param \Temporal\Api\Common\V1\ActivityType $var
- * @return $this
- */
- public function setActivityType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\ActivityType::class);
- $this->activity_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string activity_id = 5;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * Generated from protobuf field string activity_id = 5;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- * @return int
- */
- public function getRetryState()
- {
- return $this->retry_state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- * @param int $var
- * @return $this
- */
- public function setRetryState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\RetryState::class);
- $this->retry_state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/ApplicationFailureInfo.php b/api/v1/Temporal/Api/Failure/V1/ApplicationFailureInfo.php
deleted file mode 100644
index 50dd7c879..000000000
--- a/api/v1/Temporal/Api/Failure/V1/ApplicationFailureInfo.php
+++ /dev/null
@@ -1,122 +0,0 @@
-temporal.api.failure.v1.ApplicationFailureInfo
- */
-class ApplicationFailureInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string type = 1;
- */
- protected $type = '';
- /**
- * Generated from protobuf field bool non_retryable = 2;
- */
- protected $non_retryable = false;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 3;
- */
- protected $details = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $type
- * @type bool $non_retryable
- * @type \Temporal\Api\Common\V1\Payloads $details
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string type = 1;
- * @return string
- */
- public function getType()
- {
- return $this->type;
- }
-
- /**
- * Generated from protobuf field string type = 1;
- * @param string $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkString($var, True);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bool non_retryable = 2;
- * @return bool
- */
- public function getNonRetryable()
- {
- return $this->non_retryable;
- }
-
- /**
- * Generated from protobuf field bool non_retryable = 2;
- * @param bool $var
- * @return $this
- */
- public function setNonRetryable($var)
- {
- GPBUtil::checkBool($var);
- $this->non_retryable = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 3;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 3;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/CanceledFailureInfo.php b/api/v1/Temporal/Api/Failure/V1/CanceledFailureInfo.php
deleted file mode 100644
index 8e8296d8e..000000000
--- a/api/v1/Temporal/Api/Failure/V1/CanceledFailureInfo.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.failure.v1.CanceledFailureInfo
- */
-class CanceledFailureInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- */
- protected $details = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $details
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/ChildWorkflowExecutionFailureInfo.php b/api/v1/Temporal/Api/Failure/V1/ChildWorkflowExecutionFailureInfo.php
deleted file mode 100644
index d15d2f2bd..000000000
--- a/api/v1/Temporal/Api/Failure/V1/ChildWorkflowExecutionFailureInfo.php
+++ /dev/null
@@ -1,213 +0,0 @@
-temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo
- */
-class ChildWorkflowExecutionFailureInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field int64 initiated_event_id = 4;
- */
- protected $initiated_event_id = 0;
- /**
- * Generated from protobuf field int64 started_event_id = 5;
- */
- protected $started_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- */
- protected $retry_state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type int|string $initiated_event_id
- * @type int|string $started_event_id
- * @type int $retry_state
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 initiated_event_id = 4;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Generated from protobuf field int64 initiated_event_id = 4;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 started_event_id = 5;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * Generated from protobuf field int64 started_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- * @return int
- */
- public function getRetryState()
- {
- return $this->retry_state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- * @param int $var
- * @return $this
- */
- public function setRetryState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\RetryState::class);
- $this->retry_state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/Failure.php b/api/v1/Temporal/Api/Failure/V1/Failure.php
deleted file mode 100644
index 0c07455df..000000000
--- a/api/v1/Temporal/Api/Failure/V1/Failure.php
+++ /dev/null
@@ -1,485 +0,0 @@
-temporal.api.failure.v1.Failure
- */
-class Failure extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
- * In some SDKs this is used to rehydrate the stack trace into an exception object.
- *
- * Generated from protobuf field string source = 2;
- */
- protected $source = '';
- /**
- * Generated from protobuf field string stack_trace = 3;
- */
- protected $stack_trace = '';
- /**
- * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
- * errors originating in user code which might contain sensitive information.
- * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
- * message.
- * SDK authors:
- * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
- * - Uses a JSON object to represent `{ message, stack_trace }`.
- * - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
- * - Overwrites the original stack_trace with an empty string.
- * - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
- * by the user-provided PayloadCodec
- * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
- * (-- api-linter: core::0203::optional=disabled --)
- *
- * Generated from protobuf field .temporal.api.common.v1.Payload encoded_attributes = 20;
- */
- protected $encoded_attributes = null;
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure cause = 4;
- */
- protected $cause = null;
- protected $failure_info;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * @type string $source
- * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
- * In some SDKs this is used to rehydrate the stack trace into an exception object.
- * @type string $stack_trace
- * @type \Temporal\Api\Common\V1\Payload $encoded_attributes
- * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
- * errors originating in user code which might contain sensitive information.
- * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
- * message.
- * SDK authors:
- * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
- * - Uses a JSON object to represent `{ message, stack_trace }`.
- * - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
- * - Overwrites the original stack_trace with an empty string.
- * - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
- * by the user-provided PayloadCodec
- * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
- * (-- api-linter: core::0203::optional=disabled --)
- * @type \Temporal\Api\Failure\V1\Failure $cause
- * @type \Temporal\Api\Failure\V1\ApplicationFailureInfo $application_failure_info
- * @type \Temporal\Api\Failure\V1\TimeoutFailureInfo $timeout_failure_info
- * @type \Temporal\Api\Failure\V1\CanceledFailureInfo $canceled_failure_info
- * @type \Temporal\Api\Failure\V1\TerminatedFailureInfo $terminated_failure_info
- * @type \Temporal\Api\Failure\V1\ServerFailureInfo $server_failure_info
- * @type \Temporal\Api\Failure\V1\ResetWorkflowFailureInfo $reset_workflow_failure_info
- * @type \Temporal\Api\Failure\V1\ActivityFailureInfo $activity_failure_info
- * @type \Temporal\Api\Failure\V1\ChildWorkflowExecutionFailureInfo $child_workflow_execution_failure_info
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
- * In some SDKs this is used to rehydrate the stack trace into an exception object.
- *
- * Generated from protobuf field string source = 2;
- * @return string
- */
- public function getSource()
- {
- return $this->source;
- }
-
- /**
- * The source this Failure originated in, e.g. TypeScriptSDK / JavaSDK
- * In some SDKs this is used to rehydrate the stack trace into an exception object.
- *
- * Generated from protobuf field string source = 2;
- * @param string $var
- * @return $this
- */
- public function setSource($var)
- {
- GPBUtil::checkString($var, True);
- $this->source = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string stack_trace = 3;
- * @return string
- */
- public function getStackTrace()
- {
- return $this->stack_trace;
- }
-
- /**
- * Generated from protobuf field string stack_trace = 3;
- * @param string $var
- * @return $this
- */
- public function setStackTrace($var)
- {
- GPBUtil::checkString($var, True);
- $this->stack_trace = $var;
-
- return $this;
- }
-
- /**
- * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
- * errors originating in user code which might contain sensitive information.
- * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
- * message.
- * SDK authors:
- * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
- * - Uses a JSON object to represent `{ message, stack_trace }`.
- * - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
- * - Overwrites the original stack_trace with an empty string.
- * - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
- * by the user-provided PayloadCodec
- * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
- * (-- api-linter: core::0203::optional=disabled --)
- *
- * Generated from protobuf field .temporal.api.common.v1.Payload encoded_attributes = 20;
- * @return \Temporal\Api\Common\V1\Payload|null
- */
- public function getEncodedAttributes()
- {
- return $this->encoded_attributes;
- }
-
- public function hasEncodedAttributes()
- {
- return isset($this->encoded_attributes);
- }
-
- public function clearEncodedAttributes()
- {
- unset($this->encoded_attributes);
- }
-
- /**
- * Alternative way to supply `message` and `stack_trace` and possibly other attributes, used for encryption of
- * errors originating in user code which might contain sensitive information.
- * The `encoded_attributes` Payload could represent any serializable object, e.g. JSON object or a `Failure` proto
- * message.
- * SDK authors:
- * - The SDK should provide a default `encodeFailureAttributes` and `decodeFailureAttributes` implementation that:
- * - Uses a JSON object to represent `{ message, stack_trace }`.
- * - Overwrites the original message with "Encoded failure" to indicate that more information could be extracted.
- * - Overwrites the original stack_trace with an empty string.
- * - The resulting JSON object is converted to Payload using the default PayloadConverter and should be processed
- * by the user-provided PayloadCodec
- * - If there's demand, we could allow overriding the default SDK implementation to encode other opaque Failure attributes.
- * (-- api-linter: core::0203::optional=disabled --)
- *
- * Generated from protobuf field .temporal.api.common.v1.Payload encoded_attributes = 20;
- * @param \Temporal\Api\Common\V1\Payload $var
- * @return $this
- */
- public function setEncodedAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payload::class);
- $this->encoded_attributes = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure cause = 4;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- public function hasCause()
- {
- return isset($this->cause);
- }
-
- public function clearCause()
- {
- unset($this->cause);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure cause = 4;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->cause = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5;
- * @return \Temporal\Api\Failure\V1\ApplicationFailureInfo|null
- */
- public function getApplicationFailureInfo()
- {
- return $this->readOneof(5);
- }
-
- public function hasApplicationFailureInfo()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ApplicationFailureInfo application_failure_info = 5;
- * @param \Temporal\Api\Failure\V1\ApplicationFailureInfo $var
- * @return $this
- */
- public function setApplicationFailureInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\ApplicationFailureInfo::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6;
- * @return \Temporal\Api\Failure\V1\TimeoutFailureInfo|null
- */
- public function getTimeoutFailureInfo()
- {
- return $this->readOneof(6);
- }
-
- public function hasTimeoutFailureInfo()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.TimeoutFailureInfo timeout_failure_info = 6;
- * @param \Temporal\Api\Failure\V1\TimeoutFailureInfo $var
- * @return $this
- */
- public function setTimeoutFailureInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\TimeoutFailureInfo::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7;
- * @return \Temporal\Api\Failure\V1\CanceledFailureInfo|null
- */
- public function getCanceledFailureInfo()
- {
- return $this->readOneof(7);
- }
-
- public function hasCanceledFailureInfo()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.CanceledFailureInfo canceled_failure_info = 7;
- * @param \Temporal\Api\Failure\V1\CanceledFailureInfo $var
- * @return $this
- */
- public function setCanceledFailureInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\CanceledFailureInfo::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8;
- * @return \Temporal\Api\Failure\V1\TerminatedFailureInfo|null
- */
- public function getTerminatedFailureInfo()
- {
- return $this->readOneof(8);
- }
-
- public function hasTerminatedFailureInfo()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.TerminatedFailureInfo terminated_failure_info = 8;
- * @param \Temporal\Api\Failure\V1\TerminatedFailureInfo $var
- * @return $this
- */
- public function setTerminatedFailureInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\TerminatedFailureInfo::class);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9;
- * @return \Temporal\Api\Failure\V1\ServerFailureInfo|null
- */
- public function getServerFailureInfo()
- {
- return $this->readOneof(9);
- }
-
- public function hasServerFailureInfo()
- {
- return $this->hasOneof(9);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ServerFailureInfo server_failure_info = 9;
- * @param \Temporal\Api\Failure\V1\ServerFailureInfo $var
- * @return $this
- */
- public function setServerFailureInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\ServerFailureInfo::class);
- $this->writeOneof(9, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10;
- * @return \Temporal\Api\Failure\V1\ResetWorkflowFailureInfo|null
- */
- public function getResetWorkflowFailureInfo()
- {
- return $this->readOneof(10);
- }
-
- public function hasResetWorkflowFailureInfo()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ResetWorkflowFailureInfo reset_workflow_failure_info = 10;
- * @param \Temporal\Api\Failure\V1\ResetWorkflowFailureInfo $var
- * @return $this
- */
- public function setResetWorkflowFailureInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\ResetWorkflowFailureInfo::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11;
- * @return \Temporal\Api\Failure\V1\ActivityFailureInfo|null
- */
- public function getActivityFailureInfo()
- {
- return $this->readOneof(11);
- }
-
- public function hasActivityFailureInfo()
- {
- return $this->hasOneof(11);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ActivityFailureInfo activity_failure_info = 11;
- * @param \Temporal\Api\Failure\V1\ActivityFailureInfo $var
- * @return $this
- */
- public function setActivityFailureInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\ActivityFailureInfo::class);
- $this->writeOneof(11, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12;
- * @return \Temporal\Api\Failure\V1\ChildWorkflowExecutionFailureInfo|null
- */
- public function getChildWorkflowExecutionFailureInfo()
- {
- return $this->readOneof(12);
- }
-
- public function hasChildWorkflowExecutionFailureInfo()
- {
- return $this->hasOneof(12);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.ChildWorkflowExecutionFailureInfo child_workflow_execution_failure_info = 12;
- * @param \Temporal\Api\Failure\V1\ChildWorkflowExecutionFailureInfo $var
- * @return $this
- */
- public function setChildWorkflowExecutionFailureInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\ChildWorkflowExecutionFailureInfo::class);
- $this->writeOneof(12, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getFailureInfo()
- {
- return $this->whichOneof("failure_info");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/ResetWorkflowFailureInfo.php b/api/v1/Temporal/Api/Failure/V1/ResetWorkflowFailureInfo.php
deleted file mode 100644
index ccb030183..000000000
--- a/api/v1/Temporal/Api/Failure/V1/ResetWorkflowFailureInfo.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.failure.v1.ResetWorkflowFailureInfo
- */
-class ResetWorkflowFailureInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 1;
- */
- protected $last_heartbeat_details = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $last_heartbeat_details
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getLastHeartbeatDetails()
- {
- return $this->last_heartbeat_details;
- }
-
- public function hasLastHeartbeatDetails()
- {
- return isset($this->last_heartbeat_details);
- }
-
- public function clearLastHeartbeatDetails()
- {
- unset($this->last_heartbeat_details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setLastHeartbeatDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->last_heartbeat_details = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/ServerFailureInfo.php b/api/v1/Temporal/Api/Failure/V1/ServerFailureInfo.php
deleted file mode 100644
index da5a8a202..000000000
--- a/api/v1/Temporal/Api/Failure/V1/ServerFailureInfo.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.failure.v1.ServerFailureInfo
- */
-class ServerFailureInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field bool non_retryable = 1;
- */
- protected $non_retryable = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $non_retryable
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field bool non_retryable = 1;
- * @return bool
- */
- public function getNonRetryable()
- {
- return $this->non_retryable;
- }
-
- /**
- * Generated from protobuf field bool non_retryable = 1;
- * @param bool $var
- * @return $this
- */
- public function setNonRetryable($var)
- {
- GPBUtil::checkBool($var);
- $this->non_retryable = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/TerminatedFailureInfo.php b/api/v1/Temporal/Api/Failure/V1/TerminatedFailureInfo.php
deleted file mode 100644
index 146c8c019..000000000
--- a/api/v1/Temporal/Api/Failure/V1/TerminatedFailureInfo.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.failure.v1.TerminatedFailureInfo
- */
-class TerminatedFailureInfo extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Failure/V1/TimeoutFailureInfo.php b/api/v1/Temporal/Api/Failure/V1/TimeoutFailureInfo.php
deleted file mode 100644
index 65f726d03..000000000
--- a/api/v1/Temporal/Api/Failure/V1/TimeoutFailureInfo.php
+++ /dev/null
@@ -1,95 +0,0 @@
-temporal.api.failure.v1.TimeoutFailureInfo
- */
-class TimeoutFailureInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TimeoutType timeout_type = 1;
- */
- protected $timeout_type = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 2;
- */
- protected $last_heartbeat_details = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $timeout_type
- * @type \Temporal\Api\Common\V1\Payloads $last_heartbeat_details
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Failure\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TimeoutType timeout_type = 1;
- * @return int
- */
- public function getTimeoutType()
- {
- return $this->timeout_type;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TimeoutType timeout_type = 1;
- * @param int $var
- * @return $this
- */
- public function setTimeoutType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\TimeoutType::class);
- $this->timeout_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getLastHeartbeatDetails()
- {
- return $this->last_heartbeat_details;
- }
-
- public function hasLastHeartbeatDetails()
- {
- return isset($this->last_heartbeat_details);
- }
-
- public function clearLastHeartbeatDetails()
- {
- unset($this->last_heartbeat_details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setLastHeartbeatDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->last_heartbeat_details = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Filter/V1/StartTimeFilter.php b/api/v1/Temporal/Api/Filter/V1/StartTimeFilter.php
deleted file mode 100644
index 02d39b366..000000000
--- a/api/v1/Temporal/Api/Filter/V1/StartTimeFilter.php
+++ /dev/null
@@ -1,105 +0,0 @@
-temporal.api.filter.v1.StartTimeFilter
- */
-class StartTimeFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .google.protobuf.Timestamp earliest_time = 1 [(.gogoproto.stdtime) = true];
- */
- protected $earliest_time = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp latest_time = 2 [(.gogoproto.stdtime) = true];
- */
- protected $latest_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $earliest_time
- * @type \Google\Protobuf\Timestamp $latest_time
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Filter\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp earliest_time = 1 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEarliestTime()
- {
- return $this->earliest_time;
- }
-
- public function hasEarliestTime()
- {
- return isset($this->earliest_time);
- }
-
- public function clearEarliestTime()
- {
- unset($this->earliest_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp earliest_time = 1 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEarliestTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->earliest_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp latest_time = 2 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getLatestTime()
- {
- return $this->latest_time;
- }
-
- public function hasLatestTime()
- {
- return isset($this->latest_time);
- }
-
- public function clearLatestTime()
- {
- unset($this->latest_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp latest_time = 2 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setLatestTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->latest_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Filter/V1/StatusFilter.php b/api/v1/Temporal/Api/Filter/V1/StatusFilter.php
deleted file mode 100644
index 4215e57ed..000000000
--- a/api/v1/Temporal/Api/Filter/V1/StatusFilter.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.filter.v1.StatusFilter
- */
-class StatusFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 1;
- */
- protected $status = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $status
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Filter\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 1;
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 1;
- * @param int $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowExecutionStatus::class);
- $this->status = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Filter/V1/WorkflowExecutionFilter.php b/api/v1/Temporal/Api/Filter/V1/WorkflowExecutionFilter.php
deleted file mode 100644
index 4db1a2cf4..000000000
--- a/api/v1/Temporal/Api/Filter/V1/WorkflowExecutionFilter.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.filter.v1.WorkflowExecutionFilter
- */
-class WorkflowExecutionFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string workflow_id = 1;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field string run_id = 2;
- */
- protected $run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $workflow_id
- * @type string $run_id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Filter\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string workflow_id = 1;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 1;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string run_id = 2;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Generated from protobuf field string run_id = 2;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Filter/V1/WorkflowTypeFilter.php b/api/v1/Temporal/Api/Filter/V1/WorkflowTypeFilter.php
deleted file mode 100644
index 99a4aec4a..000000000
--- a/api/v1/Temporal/Api/Filter/V1/WorkflowTypeFilter.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.filter.v1.WorkflowTypeFilter
- */
-class WorkflowTypeFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Filter\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ActivityPropertiesModifiedExternallyEventAttributes.php b/api/v1/Temporal/Api/History/V1/ActivityPropertiesModifiedExternallyEventAttributes.php
deleted file mode 100644
index 92f986cf0..000000000
--- a/api/v1/Temporal/Api/History/V1/ActivityPropertiesModifiedExternallyEventAttributes.php
+++ /dev/null
@@ -1,113 +0,0 @@
-temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes
- */
-class ActivityPropertiesModifiedExternallyEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to.
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
- /**
- * If set, update the retry policy of the activity, replacing it with the specified one.
- * The number of attempts at the activity is preserved.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy new_retry_policy = 2;
- */
- protected $new_retry_policy = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to.
- * @type \Temporal\Api\Common\V1\RetryPolicy $new_retry_policy
- * If set, update the retry policy of the activity, replacing it with the specified one.
- * The number of attempts at the activity is preserved.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to.
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this modification corresponds to.
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * If set, update the retry policy of the activity, replacing it with the specified one.
- * The number of attempts at the activity is preserved.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy new_retry_policy = 2;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getNewRetryPolicy()
- {
- return $this->new_retry_policy;
- }
-
- public function hasNewRetryPolicy()
- {
- return isset($this->new_retry_policy);
- }
-
- public function clearNewRetryPolicy()
- {
- unset($this->new_retry_policy);
- }
-
- /**
- * If set, update the retry policy of the activity, replacing it with the specified one.
- * The number of attempts at the activity is preserved.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy new_retry_policy = 2;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setNewRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->new_retry_policy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ActivityTaskCancelRequestedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ActivityTaskCancelRequestedEventAttributes.php
deleted file mode 100644
index cf368d0d9..000000000
--- a/api/v1/Temporal/Api/History/V1/ActivityTaskCancelRequestedEventAttributes.php
+++ /dev/null
@@ -1,99 +0,0 @@
-temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes
- */
-class ActivityTaskCancelRequestedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- */
- protected $workflow_task_completed_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel request corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ActivityTaskCanceledEventAttributes.php b/api/v1/Temporal/Api/History/V1/ActivityTaskCanceledEventAttributes.php
deleted file mode 100644
index 84139246d..000000000
--- a/api/v1/Temporal/Api/History/V1/ActivityTaskCanceledEventAttributes.php
+++ /dev/null
@@ -1,259 +0,0 @@
-temporal.api.history.v1.ActivityTaskCanceledEventAttributes
- */
-class ActivityTaskCanceledEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Additional information that the activity reported upon confirming cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- */
- protected $details = null;
- /**
- * id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same
- * activity
- *
- * Generated from protobuf field int64 latest_cancel_requested_event_id = 2;
- */
- protected $latest_cancel_requested_event_id = 0;
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 3;
- */
- protected $scheduled_event_id = 0;
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 4;
- */
- protected $started_event_id = 0;
- /**
- * id of the worker who canceled this activity
- *
- * Generated from protobuf field string identity = 5;
- */
- protected $identity = '';
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- */
- protected $worker_version = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $details
- * Additional information that the activity reported upon confirming cancellation
- * @type int|string $latest_cancel_requested_event_id
- * id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same
- * activity
- * @type int|string $scheduled_event_id
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to
- * @type int|string $started_event_id
- * The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to
- * @type string $identity
- * id of the worker who canceled this activity
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this workflow task.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Additional information that the activity reported upon confirming cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Additional information that the activity reported upon confirming cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same
- * activity
- *
- * Generated from protobuf field int64 latest_cancel_requested_event_id = 2;
- * @return int|string
- */
- public function getLatestCancelRequestedEventId()
- {
- return $this->latest_cancel_requested_event_id;
- }
-
- /**
- * id of the most recent `ACTIVITY_TASK_CANCEL_REQUESTED` event which refers to the same
- * activity
- *
- * Generated from protobuf field int64 latest_cancel_requested_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setLatestCancelRequestedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->latest_cancel_requested_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 3;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this cancel confirmation corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 4;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this cancel confirmation corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 4;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * id of the worker who canceled this activity
- *
- * Generated from protobuf field string identity = 5;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * id of the worker who canceled this activity
- *
- * Generated from protobuf field string identity = 5;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ActivityTaskCompletedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ActivityTaskCompletedEventAttributes.php
deleted file mode 100644
index 415ad9e42..000000000
--- a/api/v1/Temporal/Api/History/V1/ActivityTaskCompletedEventAttributes.php
+++ /dev/null
@@ -1,221 +0,0 @@
-temporal.api.history.v1.ActivityTaskCompletedEventAttributes
- */
-class ActivityTaskCompletedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Serialized results of the activity. IE: The return value of the activity function
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- */
- protected $result = null;
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- */
- protected $scheduled_event_id = 0;
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- */
- protected $started_event_id = 0;
- /**
- * id of the worker that completed this task
- *
- * Generated from protobuf field string identity = 4;
- */
- protected $identity = '';
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- */
- protected $worker_version = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $result
- * Serialized results of the activity. IE: The return value of the activity function
- * @type int|string $scheduled_event_id
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to
- * @type int|string $started_event_id
- * The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to
- * @type string $identity
- * id of the worker that completed this task
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this workflow task.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Serialized results of the activity. IE: The return value of the activity function
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getResult()
- {
- return $this->result;
- }
-
- public function hasResult()
- {
- return isset($this->result);
- }
-
- public function clearResult()
- {
- unset($this->result);
- }
-
- /**
- * Serialized results of the activity. IE: The return value of the activity function
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->result = $var;
-
- return $this;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this completion corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this completion corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * id of the worker that completed this task
- *
- * Generated from protobuf field string identity = 4;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * id of the worker that completed this task
- *
- * Generated from protobuf field string identity = 4;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ActivityTaskFailedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ActivityTaskFailedEventAttributes.php
deleted file mode 100644
index 95ce06478..000000000
--- a/api/v1/Temporal/Api/History/V1/ActivityTaskFailedEventAttributes.php
+++ /dev/null
@@ -1,248 +0,0 @@
-temporal.api.history.v1.ActivityTaskFailedEventAttributes
- */
-class ActivityTaskFailedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- */
- protected $failure = null;
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- */
- protected $scheduled_event_id = 0;
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- */
- protected $started_event_id = 0;
- /**
- * id of the worker that failed this task
- *
- * Generated from protobuf field string identity = 4;
- */
- protected $identity = '';
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 5;
- */
- protected $retry_state = 0;
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- */
- protected $worker_version = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * Failure details
- * @type int|string $scheduled_event_id
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to
- * @type int|string $started_event_id
- * The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to
- * @type string $identity
- * id of the worker that failed this task
- * @type int $retry_state
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this workflow task.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this failure corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this failure corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * id of the worker that failed this task
- *
- * Generated from protobuf field string identity = 4;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * id of the worker that failed this task
- *
- * Generated from protobuf field string identity = 4;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 5;
- * @return int
- */
- public function getRetryState()
- {
- return $this->retry_state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 5;
- * @param int $var
- * @return $this
- */
- public function setRetryState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\RetryState::class);
- $this->retry_state = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ActivityTaskScheduledEventAttributes.php b/api/v1/Temporal/Api/History/V1/ActivityTaskScheduledEventAttributes.php
deleted file mode 100644
index 0a4155c40..000000000
--- a/api/v1/Temporal/Api/History/V1/ActivityTaskScheduledEventAttributes.php
+++ /dev/null
@@ -1,565 +0,0 @@
-temporal.api.history.v1.ActivityTaskScheduledEventAttributes
- */
-class ActivityTaskScheduledEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The worker/user assigned identifier for the activity
- *
- * Generated from protobuf field string activity_id = 1;
- */
- protected $activity_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- */
- protected $activity_type = null;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- */
- protected $task_queue = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- */
- protected $header = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- */
- protected $input = null;
- /**
- * Indicates how long the caller is willing to wait for an activity completion. Limits how long
- * retries will be attempted. Either this or `start_to_close_timeout` must be specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
- */
- protected $schedule_to_close_timeout = null;
- /**
- * Limits time an activity task can stay in a task queue before a worker picks it up. This
- * timeout is always non retryable, as all a retry would achieve is to put it back into the same
- * queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
- * specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
- */
- protected $schedule_to_start_timeout = null;
- /**
- * Maximum time an activity is allowed to execute after being picked up by a worker. This
- * timeout is always retryable. Either this or `schedule_to_close_timeout` must be
- * specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 9 [(.gogoproto.stdduration) = true];
- */
- protected $start_to_close_timeout = null;
- /**
- * Maximum permitted time between successful worker heartbeats.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
- */
- protected $heartbeat_timeout = null;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 11;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * Activities are assigned a default retry policy controlled by the service's dynamic
- * configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set
- * retry_policy.maximum_attempts to 1.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- */
- protected $retry_policy = null;
- /**
- * If this is set, the workflow executing this command wishes to start the activity using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 13;
- */
- protected $use_compatible_version = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $activity_id
- * The worker/user assigned identifier for the activity
- * @type \Temporal\Api\Common\V1\ActivityType $activity_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Temporal\Api\Common\V1\Payloads $input
- * @type \Google\Protobuf\Duration $schedule_to_close_timeout
- * Indicates how long the caller is willing to wait for an activity completion. Limits how long
- * retries will be attempted. Either this or `start_to_close_timeout` must be specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type \Google\Protobuf\Duration $schedule_to_start_timeout
- * Limits time an activity task can stay in a task queue before a worker picks it up. This
- * timeout is always non retryable, as all a retry would achieve is to put it back into the same
- * queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
- * specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type \Google\Protobuf\Duration $start_to_close_timeout
- * Maximum time an activity is allowed to execute after being picked up by a worker. This
- * timeout is always retryable. Either this or `schedule_to_close_timeout` must be
- * specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type \Google\Protobuf\Duration $heartbeat_timeout
- * Maximum permitted time between successful worker heartbeats.
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * Activities are assigned a default retry policy controlled by the service's dynamic
- * configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set
- * retry_policy.maximum_attempts to 1.
- * @type bool $use_compatible_version
- * If this is set, the workflow executing this command wishes to start the activity using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The worker/user assigned identifier for the activity
- *
- * Generated from protobuf field string activity_id = 1;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * The worker/user assigned identifier for the activity
- *
- * Generated from protobuf field string activity_id = 1;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- * @return \Temporal\Api\Common\V1\ActivityType|null
- */
- public function getActivityType()
- {
- return $this->activity_type;
- }
-
- public function hasActivityType()
- {
- return isset($this->activity_type);
- }
-
- public function clearActivityType()
- {
- unset($this->activity_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- * @param \Temporal\Api\Common\V1\ActivityType $var
- * @return $this
- */
- public function setActivityType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\ActivityType::class);
- $this->activity_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Indicates how long the caller is willing to wait for an activity completion. Limits how long
- * retries will be attempted. Either this or `start_to_close_timeout` must be specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getScheduleToCloseTimeout()
- {
- return $this->schedule_to_close_timeout;
- }
-
- public function hasScheduleToCloseTimeout()
- {
- return isset($this->schedule_to_close_timeout);
- }
-
- public function clearScheduleToCloseTimeout()
- {
- unset($this->schedule_to_close_timeout);
- }
-
- /**
- * Indicates how long the caller is willing to wait for an activity completion. Limits how long
- * retries will be attempted. Either this or `start_to_close_timeout` must be specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 7 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setScheduleToCloseTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->schedule_to_close_timeout = $var;
-
- return $this;
- }
-
- /**
- * Limits time an activity task can stay in a task queue before a worker picks it up. This
- * timeout is always non retryable, as all a retry would achieve is to put it back into the same
- * queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
- * specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getScheduleToStartTimeout()
- {
- return $this->schedule_to_start_timeout;
- }
-
- public function hasScheduleToStartTimeout()
- {
- return isset($this->schedule_to_start_timeout);
- }
-
- public function clearScheduleToStartTimeout()
- {
- unset($this->schedule_to_start_timeout);
- }
-
- /**
- * Limits time an activity task can stay in a task queue before a worker picks it up. This
- * timeout is always non retryable, as all a retry would achieve is to put it back into the same
- * queue. Defaults to `schedule_to_close_timeout` or workflow execution timeout if not
- * specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 8 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setScheduleToStartTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->schedule_to_start_timeout = $var;
-
- return $this;
- }
-
- /**
- * Maximum time an activity is allowed to execute after being picked up by a worker. This
- * timeout is always retryable. Either this or `schedule_to_close_timeout` must be
- * specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 9 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartToCloseTimeout()
- {
- return $this->start_to_close_timeout;
- }
-
- public function hasStartToCloseTimeout()
- {
- return isset($this->start_to_close_timeout);
- }
-
- public function clearStartToCloseTimeout()
- {
- unset($this->start_to_close_timeout);
- }
-
- /**
- * Maximum time an activity is allowed to execute after being picked up by a worker. This
- * timeout is always retryable. Either this or `schedule_to_close_timeout` must be
- * specified.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 9 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartToCloseTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_to_close_timeout = $var;
-
- return $this;
- }
-
- /**
- * Maximum permitted time between successful worker heartbeats.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getHeartbeatTimeout()
- {
- return $this->heartbeat_timeout;
- }
-
- public function hasHeartbeatTimeout()
- {
- return isset($this->heartbeat_timeout);
- }
-
- public function clearHeartbeatTimeout()
- {
- unset($this->heartbeat_timeout);
- }
-
- /**
- * Maximum permitted time between successful worker heartbeats.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 10 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setHeartbeatTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->heartbeat_timeout = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 11;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 11;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * Activities are assigned a default retry policy controlled by the service's dynamic
- * configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set
- * retry_policy.maximum_attempts to 1.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * Activities are assigned a default retry policy controlled by the service's dynamic
- * configuration. Retries will happen up to `schedule_to_close_timeout`. To disable retries set
- * retry_policy.maximum_attempts to 1.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to start the activity using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 13;
- * @return bool
- */
- public function getUseCompatibleVersion()
- {
- return $this->use_compatible_version;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to start the activity using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 13;
- * @param bool $var
- * @return $this
- */
- public function setUseCompatibleVersion($var)
- {
- GPBUtil::checkBool($var);
- $this->use_compatible_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ActivityTaskStartedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ActivityTaskStartedEventAttributes.php
deleted file mode 100644
index e2f491dfa..000000000
--- a/api/v1/Temporal/Api/History/V1/ActivityTaskStartedEventAttributes.php
+++ /dev/null
@@ -1,215 +0,0 @@
-temporal.api.history.v1.ActivityTaskStartedEventAttributes
- */
-class ActivityTaskStartedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
- /**
- * id of the worker that picked up this task
- *
- * Generated from protobuf field string identity = 2;
- */
- protected $identity = '';
- /**
- * TODO ??
- *
- * Generated from protobuf field string request_id = 3;
- */
- protected $request_id = '';
- /**
- * Starting at 1, the number of times this task has been attempted
- *
- * Generated from protobuf field int32 attempt = 4;
- */
- protected $attempt = 0;
- /**
- * Will be set to the most recent failure details, if this task has previously failed and then
- * been retried.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure last_failure = 5;
- */
- protected $last_failure = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
- * @type string $identity
- * id of the worker that picked up this task
- * @type string $request_id
- * TODO ??
- * @type int $attempt
- * Starting at 1, the number of times this task has been attempted
- * @type \Temporal\Api\Failure\V1\Failure $last_failure
- * Will be set to the most recent failure details, if this task has previously failed and then
- * been retried.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * id of the worker that picked up this task
- *
- * Generated from protobuf field string identity = 2;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * id of the worker that picked up this task
- *
- * Generated from protobuf field string identity = 2;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * TODO ??
- *
- * Generated from protobuf field string request_id = 3;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * TODO ??
- *
- * Generated from protobuf field string request_id = 3;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Starting at 1, the number of times this task has been attempted
- *
- * Generated from protobuf field int32 attempt = 4;
- * @return int
- */
- public function getAttempt()
- {
- return $this->attempt;
- }
-
- /**
- * Starting at 1, the number of times this task has been attempted
- *
- * Generated from protobuf field int32 attempt = 4;
- * @param int $var
- * @return $this
- */
- public function setAttempt($var)
- {
- GPBUtil::checkInt32($var);
- $this->attempt = $var;
-
- return $this;
- }
-
- /**
- * Will be set to the most recent failure details, if this task has previously failed and then
- * been retried.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure last_failure = 5;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getLastFailure()
- {
- return $this->last_failure;
- }
-
- public function hasLastFailure()
- {
- return isset($this->last_failure);
- }
-
- public function clearLastFailure()
- {
- unset($this->last_failure);
- }
-
- /**
- * Will be set to the most recent failure details, if this task has previously failed and then
- * been retried.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure last_failure = 5;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setLastFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->last_failure = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ActivityTaskTimedOutEventAttributes.php b/api/v1/Temporal/Api/History/V1/ActivityTaskTimedOutEventAttributes.php
deleted file mode 100644
index 35a8e76c0..000000000
--- a/api/v1/Temporal/Api/History/V1/ActivityTaskTimedOutEventAttributes.php
+++ /dev/null
@@ -1,174 +0,0 @@
-temporal.api.history.v1.ActivityTaskTimedOutEventAttributes
- */
-class ActivityTaskTimedOutEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * If this activity had failed, was retried, and then timed out, that failure is stored as the
- * `cause` in here.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- */
- protected $failure = null;
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- */
- protected $scheduled_event_id = 0;
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- */
- protected $started_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 4;
- */
- protected $retry_state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * If this activity had failed, was retried, and then timed out, that failure is stored as the
- * `cause` in here.
- * @type int|string $scheduled_event_id
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to
- * @type int|string $started_event_id
- * The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to
- * @type int $retry_state
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * If this activity had failed, was retried, and then timed out, that failure is stored as the
- * `cause` in here.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * If this activity had failed, was retried, and then timed out, that failure is stored as the
- * `cause` in here.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_SCHEDULED` event this timeout corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `ACTIVITY_TASK_STARTED` event this timeout corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 4;
- * @return int
- */
- public function getRetryState()
- {
- return $this->retry_state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 4;
- * @param int $var
- * @return $this
- */
- public function setRetryState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\RetryState::class);
- $this->retry_state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionCanceledEventAttributes.php b/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionCanceledEventAttributes.php
deleted file mode 100644
index e76e5d3e1..000000000
--- a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionCanceledEventAttributes.php
+++ /dev/null
@@ -1,275 +0,0 @@
-temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes
- */
-class ChildWorkflowExecutionCanceledEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- */
- protected $details = null;
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 7;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- */
- protected $workflow_type = null;
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- */
- protected $initiated_event_id = 0;
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- */
- protected $started_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $details
- * @type string $namespace
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type int|string $initiated_event_id
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- * @type int|string $started_event_id
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionCompletedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionCompletedEventAttributes.php
deleted file mode 100644
index 7fd2da965..000000000
--- a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionCompletedEventAttributes.php
+++ /dev/null
@@ -1,275 +0,0 @@
-temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes
- */
-class ChildWorkflowExecutionCompletedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- */
- protected $result = null;
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 7;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- */
- protected $workflow_type = null;
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- */
- protected $initiated_event_id = 0;
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- */
- protected $started_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $result
- * @type string $namespace
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type int|string $initiated_event_id
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- * @type int|string $started_event_id
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getResult()
- {
- return $this->result;
- }
-
- public function hasResult()
- {
- return isset($this->result);
- }
-
- public function clearResult()
- {
- unset($this->result);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->result = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionFailedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionFailedEventAttributes.php
deleted file mode 100644
index c5afd3b1e..000000000
--- a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionFailedEventAttributes.php
+++ /dev/null
@@ -1,302 +0,0 @@
-temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes
- */
-class ChildWorkflowExecutionFailedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- */
- protected $failure = null;
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 8;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- */
- protected $workflow_type = null;
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- */
- protected $initiated_event_id = 0;
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- */
- protected $started_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 7;
- */
- protected $retry_state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * @type string $namespace
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type int|string $initiated_event_id
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- * @type int|string $started_event_id
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- * @type int $retry_state
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 8;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 8;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 6;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 7;
- * @return int
- */
- public function getRetryState()
- {
- return $this->retry_state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 7;
- * @param int $var
- * @return $this
- */
- public function setRetryState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\RetryState::class);
- $this->retry_state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionStartedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionStartedEventAttributes.php
deleted file mode 100644
index 927233892..000000000
--- a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionStartedEventAttributes.php
+++ /dev/null
@@ -1,241 +0,0 @@
-temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes
- */
-class ChildWorkflowExecutionStartedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 6;
- */
- protected $namespace_id = '';
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 2;
- */
- protected $initiated_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- */
- protected $header = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type int|string $initiated_event_id
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type \Temporal\Api\Common\V1\Header $header
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 6;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 6;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 2;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 4;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 5;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionTerminatedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionTerminatedEventAttributes.php
deleted file mode 100644
index ebf78925f..000000000
--- a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionTerminatedEventAttributes.php
+++ /dev/null
@@ -1,238 +0,0 @@
-temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes
- */
-class ChildWorkflowExecutionTerminatedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 6;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 4;
- */
- protected $initiated_event_id = 0;
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 5;
- */
- protected $started_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type int|string $initiated_event_id
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- * @type int|string $started_event_id
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 6;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 6;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 4;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 4;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 5;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionTimedOutEventAttributes.php b/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionTimedOutEventAttributes.php
deleted file mode 100644
index a297d6a36..000000000
--- a/api/v1/Temporal/Api/History/V1/ChildWorkflowExecutionTimedOutEventAttributes.php
+++ /dev/null
@@ -1,265 +0,0 @@
-temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes
- */
-class ChildWorkflowExecutionTimedOutEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 7;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 4;
- */
- protected $initiated_event_id = 0;
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 5;
- */
- protected $started_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- */
- protected $retry_state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type int|string $initiated_event_id
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- * @type int|string $started_event_id
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- * @type int $retry_state
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 4;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 4;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 5;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * Id of the `CHILD_WORKFLOW_EXECUTION_STARTED` event which this event corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- * @return int
- */
- public function getRetryState()
- {
- return $this->retry_state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 6;
- * @param int $var
- * @return $this
- */
- public function setRetryState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\RetryState::class);
- $this->retry_state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ExternalWorkflowExecutionCancelRequestedEventAttributes.php b/api/v1/Temporal/Api/History/V1/ExternalWorkflowExecutionCancelRequestedEventAttributes.php
deleted file mode 100644
index 2be805009..000000000
--- a/api/v1/Temporal/Api/History/V1/ExternalWorkflowExecutionCancelRequestedEventAttributes.php
+++ /dev/null
@@ -1,171 +0,0 @@
-temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes
- */
-class ExternalWorkflowExecutionCancelRequestedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds
- * to
- *
- * Generated from protobuf field int64 initiated_event_id = 1;
- */
- protected $initiated_event_id = 0;
- /**
- * Namespace of the to-be-cancelled workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 4;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- */
- protected $workflow_execution = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $initiated_event_id
- * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds
- * to
- * @type string $namespace
- * Namespace of the to-be-cancelled workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds
- * to
- *
- * Generated from protobuf field int64 initiated_event_id = 1;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds
- * to
- *
- * Generated from protobuf field int64 initiated_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the to-be-cancelled workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the to-be-cancelled workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 4;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 4;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/ExternalWorkflowExecutionSignaledEventAttributes.php b/api/v1/Temporal/Api/History/V1/ExternalWorkflowExecutionSignaledEventAttributes.php
deleted file mode 100644
index 0602409fb..000000000
--- a/api/v1/Temporal/Api/History/V1/ExternalWorkflowExecutionSignaledEventAttributes.php
+++ /dev/null
@@ -1,201 +0,0 @@
-temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes
- */
-class ExternalWorkflowExecutionSignaledEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 1;
- */
- protected $initiated_event_id = 0;
- /**
- * Namespace of the workflow which was signaled.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 5;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- */
- protected $workflow_execution = null;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 4;
- */
- protected $control = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $initiated_event_id
- * id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to
- * @type string $namespace
- * Namespace of the workflow which was signaled.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type string $control
- * Deprecated
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 1;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * id of the `SIGNAL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the workflow which was signaled.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the workflow which was signaled.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 5;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 5;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 4;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 4;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/History.php b/api/v1/Temporal/Api/History/V1/History.php
deleted file mode 100644
index 614afdd7c..000000000
--- a/api/v1/Temporal/Api/History/V1/History.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.history.v1.History
- */
-class History extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.history.v1.HistoryEvent events = 1;
- */
- private $events;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\History\V1\HistoryEvent>|\Google\Protobuf\Internal\RepeatedField $events
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.history.v1.HistoryEvent events = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getEvents()
- {
- return $this->events;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.history.v1.HistoryEvent events = 1;
- * @param array<\Temporal\Api\History\V1\HistoryEvent>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setEvents($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\History\V1\HistoryEvent::class);
- $this->events = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/HistoryEvent.php b/api/v1/Temporal/Api/History/V1/HistoryEvent.php
deleted file mode 100644
index 7290eff6c..000000000
--- a/api/v1/Temporal/Api/History/V1/HistoryEvent.php
+++ /dev/null
@@ -1,1543 +0,0 @@
-temporal.api.history.v1.HistoryEvent
- */
-class HistoryEvent extends \Google\Protobuf\Internal\Message
-{
- /**
- * Monotonically increasing event number, starts at 1.
- *
- * Generated from protobuf field int64 event_id = 1;
- */
- protected $event_id = 0;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp event_time = 2 [(.gogoproto.stdtime) = true];
- */
- protected $event_time = null;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.EventType event_type = 3;
- */
- protected $event_type = 0;
- /**
- * TODO: What is this? Appears unused by SDKs
- *
- * Generated from protobuf field int64 version = 4;
- */
- protected $version = 0;
- /**
- * TODO: What is this? Appears unused by SDKs
- *
- * Generated from protobuf field int64 task_id = 5;
- */
- protected $task_id = 0;
- /**
- * Set to true when the SDK may ignore the event as it does not impact workflow state or
- * information in any way that the SDK need be concerned with. If an SDK encounters an event
- * type which it does not understand, it must error unless this is true. If it is true, it's
- * acceptable for the event type and/or attributes to be uninterpretable.
- *
- * Generated from protobuf field bool worker_may_ignore = 300;
- */
- protected $worker_may_ignore = false;
- protected $attributes;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $event_id
- * Monotonically increasing event number, starts at 1.
- * @type \Google\Protobuf\Timestamp $event_time
- * @type int $event_type
- * @type int|string $version
- * TODO: What is this? Appears unused by SDKs
- * @type int|string $task_id
- * TODO: What is this? Appears unused by SDKs
- * @type bool $worker_may_ignore
- * Set to true when the SDK may ignore the event as it does not impact workflow state or
- * information in any way that the SDK need be concerned with. If an SDK encounters an event
- * type which it does not understand, it must error unless this is true. If it is true, it's
- * acceptable for the event type and/or attributes to be uninterpretable.
- * @type \Temporal\Api\History\V1\WorkflowExecutionStartedEventAttributes $workflow_execution_started_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionCompletedEventAttributes $workflow_execution_completed_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionFailedEventAttributes $workflow_execution_failed_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionTimedOutEventAttributes $workflow_execution_timed_out_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowTaskScheduledEventAttributes $workflow_task_scheduled_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowTaskStartedEventAttributes $workflow_task_started_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowTaskCompletedEventAttributes $workflow_task_completed_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowTaskTimedOutEventAttributes $workflow_task_timed_out_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowTaskFailedEventAttributes $workflow_task_failed_event_attributes
- * @type \Temporal\Api\History\V1\ActivityTaskScheduledEventAttributes $activity_task_scheduled_event_attributes
- * @type \Temporal\Api\History\V1\ActivityTaskStartedEventAttributes $activity_task_started_event_attributes
- * @type \Temporal\Api\History\V1\ActivityTaskCompletedEventAttributes $activity_task_completed_event_attributes
- * @type \Temporal\Api\History\V1\ActivityTaskFailedEventAttributes $activity_task_failed_event_attributes
- * @type \Temporal\Api\History\V1\ActivityTaskTimedOutEventAttributes $activity_task_timed_out_event_attributes
- * @type \Temporal\Api\History\V1\TimerStartedEventAttributes $timer_started_event_attributes
- * @type \Temporal\Api\History\V1\TimerFiredEventAttributes $timer_fired_event_attributes
- * @type \Temporal\Api\History\V1\ActivityTaskCancelRequestedEventAttributes $activity_task_cancel_requested_event_attributes
- * @type \Temporal\Api\History\V1\ActivityTaskCanceledEventAttributes $activity_task_canceled_event_attributes
- * @type \Temporal\Api\History\V1\TimerCanceledEventAttributes $timer_canceled_event_attributes
- * @type \Temporal\Api\History\V1\MarkerRecordedEventAttributes $marker_recorded_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionSignaledEventAttributes $workflow_execution_signaled_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionTerminatedEventAttributes $workflow_execution_terminated_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionCancelRequestedEventAttributes $workflow_execution_cancel_requested_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionCanceledEventAttributes $workflow_execution_canceled_event_attributes
- * @type \Temporal\Api\History\V1\RequestCancelExternalWorkflowExecutionInitiatedEventAttributes $request_cancel_external_workflow_execution_initiated_event_attributes
- * @type \Temporal\Api\History\V1\RequestCancelExternalWorkflowExecutionFailedEventAttributes $request_cancel_external_workflow_execution_failed_event_attributes
- * @type \Temporal\Api\History\V1\ExternalWorkflowExecutionCancelRequestedEventAttributes $external_workflow_execution_cancel_requested_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionContinuedAsNewEventAttributes $workflow_execution_continued_as_new_event_attributes
- * @type \Temporal\Api\History\V1\StartChildWorkflowExecutionInitiatedEventAttributes $start_child_workflow_execution_initiated_event_attributes
- * @type \Temporal\Api\History\V1\StartChildWorkflowExecutionFailedEventAttributes $start_child_workflow_execution_failed_event_attributes
- * @type \Temporal\Api\History\V1\ChildWorkflowExecutionStartedEventAttributes $child_workflow_execution_started_event_attributes
- * @type \Temporal\Api\History\V1\ChildWorkflowExecutionCompletedEventAttributes $child_workflow_execution_completed_event_attributes
- * @type \Temporal\Api\History\V1\ChildWorkflowExecutionFailedEventAttributes $child_workflow_execution_failed_event_attributes
- * @type \Temporal\Api\History\V1\ChildWorkflowExecutionCanceledEventAttributes $child_workflow_execution_canceled_event_attributes
- * @type \Temporal\Api\History\V1\ChildWorkflowExecutionTimedOutEventAttributes $child_workflow_execution_timed_out_event_attributes
- * @type \Temporal\Api\History\V1\ChildWorkflowExecutionTerminatedEventAttributes $child_workflow_execution_terminated_event_attributes
- * @type \Temporal\Api\History\V1\SignalExternalWorkflowExecutionInitiatedEventAttributes $signal_external_workflow_execution_initiated_event_attributes
- * @type \Temporal\Api\History\V1\SignalExternalWorkflowExecutionFailedEventAttributes $signal_external_workflow_execution_failed_event_attributes
- * @type \Temporal\Api\History\V1\ExternalWorkflowExecutionSignaledEventAttributes $external_workflow_execution_signaled_event_attributes
- * @type \Temporal\Api\History\V1\UpsertWorkflowSearchAttributesEventAttributes $upsert_workflow_search_attributes_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionUpdateAcceptedEventAttributes $workflow_execution_update_accepted_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionUpdateRejectedEventAttributes $workflow_execution_update_rejected_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowExecutionUpdateCompletedEventAttributes $workflow_execution_update_completed_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowPropertiesModifiedExternallyEventAttributes $workflow_properties_modified_externally_event_attributes
- * @type \Temporal\Api\History\V1\ActivityPropertiesModifiedExternallyEventAttributes $activity_properties_modified_externally_event_attributes
- * @type \Temporal\Api\History\V1\WorkflowPropertiesModifiedEventAttributes $workflow_properties_modified_event_attributes
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Monotonically increasing event number, starts at 1.
- *
- * Generated from protobuf field int64 event_id = 1;
- * @return int|string
- */
- public function getEventId()
- {
- return $this->event_id;
- }
-
- /**
- * Monotonically increasing event number, starts at 1.
- *
- * Generated from protobuf field int64 event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp event_time = 2 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEventTime()
- {
- return $this->event_time;
- }
-
- public function hasEventTime()
- {
- return isset($this->event_time);
- }
-
- public function clearEventTime()
- {
- unset($this->event_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp event_time = 2 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEventTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->event_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.EventType event_type = 3;
- * @return int
- */
- public function getEventType()
- {
- return $this->event_type;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.EventType event_type = 3;
- * @param int $var
- * @return $this
- */
- public function setEventType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\EventType::class);
- $this->event_type = $var;
-
- return $this;
- }
-
- /**
- * TODO: What is this? Appears unused by SDKs
- *
- * Generated from protobuf field int64 version = 4;
- * @return int|string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * TODO: What is this? Appears unused by SDKs
- *
- * Generated from protobuf field int64 version = 4;
- * @param int|string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkInt64($var);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * TODO: What is this? Appears unused by SDKs
- *
- * Generated from protobuf field int64 task_id = 5;
- * @return int|string
- */
- public function getTaskId()
- {
- return $this->task_id;
- }
-
- /**
- * TODO: What is this? Appears unused by SDKs
- *
- * Generated from protobuf field int64 task_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setTaskId($var)
- {
- GPBUtil::checkInt64($var);
- $this->task_id = $var;
-
- return $this;
- }
-
- /**
- * Set to true when the SDK may ignore the event as it does not impact workflow state or
- * information in any way that the SDK need be concerned with. If an SDK encounters an event
- * type which it does not understand, it must error unless this is true. If it is true, it's
- * acceptable for the event type and/or attributes to be uninterpretable.
- *
- * Generated from protobuf field bool worker_may_ignore = 300;
- * @return bool
- */
- public function getWorkerMayIgnore()
- {
- return $this->worker_may_ignore;
- }
-
- /**
- * Set to true when the SDK may ignore the event as it does not impact workflow state or
- * information in any way that the SDK need be concerned with. If an SDK encounters an event
- * type which it does not understand, it must error unless this is true. If it is true, it's
- * acceptable for the event type and/or attributes to be uninterpretable.
- *
- * Generated from protobuf field bool worker_may_ignore = 300;
- * @param bool $var
- * @return $this
- */
- public function setWorkerMayIgnore($var)
- {
- GPBUtil::checkBool($var);
- $this->worker_may_ignore = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionStartedEventAttributes workflow_execution_started_event_attributes = 6;
- * @return \Temporal\Api\History\V1\WorkflowExecutionStartedEventAttributes|null
- */
- public function getWorkflowExecutionStartedEventAttributes()
- {
- return $this->readOneof(6);
- }
-
- public function hasWorkflowExecutionStartedEventAttributes()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionStartedEventAttributes workflow_execution_started_event_attributes = 6;
- * @param \Temporal\Api\History\V1\WorkflowExecutionStartedEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionStartedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionStartedEventAttributes::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes workflow_execution_completed_event_attributes = 7;
- * @return \Temporal\Api\History\V1\WorkflowExecutionCompletedEventAttributes|null
- */
- public function getWorkflowExecutionCompletedEventAttributes()
- {
- return $this->readOneof(7);
- }
-
- public function hasWorkflowExecutionCompletedEventAttributes()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes workflow_execution_completed_event_attributes = 7;
- * @param \Temporal\Api\History\V1\WorkflowExecutionCompletedEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionCompletedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionCompletedEventAttributes::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionFailedEventAttributes workflow_execution_failed_event_attributes = 8;
- * @return \Temporal\Api\History\V1\WorkflowExecutionFailedEventAttributes|null
- */
- public function getWorkflowExecutionFailedEventAttributes()
- {
- return $this->readOneof(8);
- }
-
- public function hasWorkflowExecutionFailedEventAttributes()
- {
- return $this->hasOneof(8);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionFailedEventAttributes workflow_execution_failed_event_attributes = 8;
- * @param \Temporal\Api\History\V1\WorkflowExecutionFailedEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionFailedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionFailedEventAttributes::class);
- $this->writeOneof(8, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes workflow_execution_timed_out_event_attributes = 9;
- * @return \Temporal\Api\History\V1\WorkflowExecutionTimedOutEventAttributes|null
- */
- public function getWorkflowExecutionTimedOutEventAttributes()
- {
- return $this->readOneof(9);
- }
-
- public function hasWorkflowExecutionTimedOutEventAttributes()
- {
- return $this->hasOneof(9);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes workflow_execution_timed_out_event_attributes = 9;
- * @param \Temporal\Api\History\V1\WorkflowExecutionTimedOutEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionTimedOutEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionTimedOutEventAttributes::class);
- $this->writeOneof(9, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskScheduledEventAttributes workflow_task_scheduled_event_attributes = 10;
- * @return \Temporal\Api\History\V1\WorkflowTaskScheduledEventAttributes|null
- */
- public function getWorkflowTaskScheduledEventAttributes()
- {
- return $this->readOneof(10);
- }
-
- public function hasWorkflowTaskScheduledEventAttributes()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskScheduledEventAttributes workflow_task_scheduled_event_attributes = 10;
- * @param \Temporal\Api\History\V1\WorkflowTaskScheduledEventAttributes $var
- * @return $this
- */
- public function setWorkflowTaskScheduledEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowTaskScheduledEventAttributes::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskStartedEventAttributes workflow_task_started_event_attributes = 11;
- * @return \Temporal\Api\History\V1\WorkflowTaskStartedEventAttributes|null
- */
- public function getWorkflowTaskStartedEventAttributes()
- {
- return $this->readOneof(11);
- }
-
- public function hasWorkflowTaskStartedEventAttributes()
- {
- return $this->hasOneof(11);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskStartedEventAttributes workflow_task_started_event_attributes = 11;
- * @param \Temporal\Api\History\V1\WorkflowTaskStartedEventAttributes $var
- * @return $this
- */
- public function setWorkflowTaskStartedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowTaskStartedEventAttributes::class);
- $this->writeOneof(11, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskCompletedEventAttributes workflow_task_completed_event_attributes = 12;
- * @return \Temporal\Api\History\V1\WorkflowTaskCompletedEventAttributes|null
- */
- public function getWorkflowTaskCompletedEventAttributes()
- {
- return $this->readOneof(12);
- }
-
- public function hasWorkflowTaskCompletedEventAttributes()
- {
- return $this->hasOneof(12);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskCompletedEventAttributes workflow_task_completed_event_attributes = 12;
- * @param \Temporal\Api\History\V1\WorkflowTaskCompletedEventAttributes $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowTaskCompletedEventAttributes::class);
- $this->writeOneof(12, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes workflow_task_timed_out_event_attributes = 13;
- * @return \Temporal\Api\History\V1\WorkflowTaskTimedOutEventAttributes|null
- */
- public function getWorkflowTaskTimedOutEventAttributes()
- {
- return $this->readOneof(13);
- }
-
- public function hasWorkflowTaskTimedOutEventAttributes()
- {
- return $this->hasOneof(13);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes workflow_task_timed_out_event_attributes = 13;
- * @param \Temporal\Api\History\V1\WorkflowTaskTimedOutEventAttributes $var
- * @return $this
- */
- public function setWorkflowTaskTimedOutEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowTaskTimedOutEventAttributes::class);
- $this->writeOneof(13, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskFailedEventAttributes workflow_task_failed_event_attributes = 14;
- * @return \Temporal\Api\History\V1\WorkflowTaskFailedEventAttributes|null
- */
- public function getWorkflowTaskFailedEventAttributes()
- {
- return $this->readOneof(14);
- }
-
- public function hasWorkflowTaskFailedEventAttributes()
- {
- return $this->hasOneof(14);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowTaskFailedEventAttributes workflow_task_failed_event_attributes = 14;
- * @param \Temporal\Api\History\V1\WorkflowTaskFailedEventAttributes $var
- * @return $this
- */
- public function setWorkflowTaskFailedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowTaskFailedEventAttributes::class);
- $this->writeOneof(14, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskScheduledEventAttributes activity_task_scheduled_event_attributes = 15;
- * @return \Temporal\Api\History\V1\ActivityTaskScheduledEventAttributes|null
- */
- public function getActivityTaskScheduledEventAttributes()
- {
- return $this->readOneof(15);
- }
-
- public function hasActivityTaskScheduledEventAttributes()
- {
- return $this->hasOneof(15);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskScheduledEventAttributes activity_task_scheduled_event_attributes = 15;
- * @param \Temporal\Api\History\V1\ActivityTaskScheduledEventAttributes $var
- * @return $this
- */
- public function setActivityTaskScheduledEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ActivityTaskScheduledEventAttributes::class);
- $this->writeOneof(15, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskStartedEventAttributes activity_task_started_event_attributes = 16;
- * @return \Temporal\Api\History\V1\ActivityTaskStartedEventAttributes|null
- */
- public function getActivityTaskStartedEventAttributes()
- {
- return $this->readOneof(16);
- }
-
- public function hasActivityTaskStartedEventAttributes()
- {
- return $this->hasOneof(16);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskStartedEventAttributes activity_task_started_event_attributes = 16;
- * @param \Temporal\Api\History\V1\ActivityTaskStartedEventAttributes $var
- * @return $this
- */
- public function setActivityTaskStartedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ActivityTaskStartedEventAttributes::class);
- $this->writeOneof(16, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskCompletedEventAttributes activity_task_completed_event_attributes = 17;
- * @return \Temporal\Api\History\V1\ActivityTaskCompletedEventAttributes|null
- */
- public function getActivityTaskCompletedEventAttributes()
- {
- return $this->readOneof(17);
- }
-
- public function hasActivityTaskCompletedEventAttributes()
- {
- return $this->hasOneof(17);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskCompletedEventAttributes activity_task_completed_event_attributes = 17;
- * @param \Temporal\Api\History\V1\ActivityTaskCompletedEventAttributes $var
- * @return $this
- */
- public function setActivityTaskCompletedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ActivityTaskCompletedEventAttributes::class);
- $this->writeOneof(17, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskFailedEventAttributes activity_task_failed_event_attributes = 18;
- * @return \Temporal\Api\History\V1\ActivityTaskFailedEventAttributes|null
- */
- public function getActivityTaskFailedEventAttributes()
- {
- return $this->readOneof(18);
- }
-
- public function hasActivityTaskFailedEventAttributes()
- {
- return $this->hasOneof(18);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskFailedEventAttributes activity_task_failed_event_attributes = 18;
- * @param \Temporal\Api\History\V1\ActivityTaskFailedEventAttributes $var
- * @return $this
- */
- public function setActivityTaskFailedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ActivityTaskFailedEventAttributes::class);
- $this->writeOneof(18, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskTimedOutEventAttributes activity_task_timed_out_event_attributes = 19;
- * @return \Temporal\Api\History\V1\ActivityTaskTimedOutEventAttributes|null
- */
- public function getActivityTaskTimedOutEventAttributes()
- {
- return $this->readOneof(19);
- }
-
- public function hasActivityTaskTimedOutEventAttributes()
- {
- return $this->hasOneof(19);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskTimedOutEventAttributes activity_task_timed_out_event_attributes = 19;
- * @param \Temporal\Api\History\V1\ActivityTaskTimedOutEventAttributes $var
- * @return $this
- */
- public function setActivityTaskTimedOutEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ActivityTaskTimedOutEventAttributes::class);
- $this->writeOneof(19, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.TimerStartedEventAttributes timer_started_event_attributes = 20;
- * @return \Temporal\Api\History\V1\TimerStartedEventAttributes|null
- */
- public function getTimerStartedEventAttributes()
- {
- return $this->readOneof(20);
- }
-
- public function hasTimerStartedEventAttributes()
- {
- return $this->hasOneof(20);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.TimerStartedEventAttributes timer_started_event_attributes = 20;
- * @param \Temporal\Api\History\V1\TimerStartedEventAttributes $var
- * @return $this
- */
- public function setTimerStartedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\TimerStartedEventAttributes::class);
- $this->writeOneof(20, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.TimerFiredEventAttributes timer_fired_event_attributes = 21;
- * @return \Temporal\Api\History\V1\TimerFiredEventAttributes|null
- */
- public function getTimerFiredEventAttributes()
- {
- return $this->readOneof(21);
- }
-
- public function hasTimerFiredEventAttributes()
- {
- return $this->hasOneof(21);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.TimerFiredEventAttributes timer_fired_event_attributes = 21;
- * @param \Temporal\Api\History\V1\TimerFiredEventAttributes $var
- * @return $this
- */
- public function setTimerFiredEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\TimerFiredEventAttributes::class);
- $this->writeOneof(21, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes activity_task_cancel_requested_event_attributes = 22;
- * @return \Temporal\Api\History\V1\ActivityTaskCancelRequestedEventAttributes|null
- */
- public function getActivityTaskCancelRequestedEventAttributes()
- {
- return $this->readOneof(22);
- }
-
- public function hasActivityTaskCancelRequestedEventAttributes()
- {
- return $this->hasOneof(22);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskCancelRequestedEventAttributes activity_task_cancel_requested_event_attributes = 22;
- * @param \Temporal\Api\History\V1\ActivityTaskCancelRequestedEventAttributes $var
- * @return $this
- */
- public function setActivityTaskCancelRequestedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ActivityTaskCancelRequestedEventAttributes::class);
- $this->writeOneof(22, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskCanceledEventAttributes activity_task_canceled_event_attributes = 23;
- * @return \Temporal\Api\History\V1\ActivityTaskCanceledEventAttributes|null
- */
- public function getActivityTaskCanceledEventAttributes()
- {
- return $this->readOneof(23);
- }
-
- public function hasActivityTaskCanceledEventAttributes()
- {
- return $this->hasOneof(23);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityTaskCanceledEventAttributes activity_task_canceled_event_attributes = 23;
- * @param \Temporal\Api\History\V1\ActivityTaskCanceledEventAttributes $var
- * @return $this
- */
- public function setActivityTaskCanceledEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ActivityTaskCanceledEventAttributes::class);
- $this->writeOneof(23, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.TimerCanceledEventAttributes timer_canceled_event_attributes = 24;
- * @return \Temporal\Api\History\V1\TimerCanceledEventAttributes|null
- */
- public function getTimerCanceledEventAttributes()
- {
- return $this->readOneof(24);
- }
-
- public function hasTimerCanceledEventAttributes()
- {
- return $this->hasOneof(24);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.TimerCanceledEventAttributes timer_canceled_event_attributes = 24;
- * @param \Temporal\Api\History\V1\TimerCanceledEventAttributes $var
- * @return $this
- */
- public function setTimerCanceledEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\TimerCanceledEventAttributes::class);
- $this->writeOneof(24, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.MarkerRecordedEventAttributes marker_recorded_event_attributes = 25;
- * @return \Temporal\Api\History\V1\MarkerRecordedEventAttributes|null
- */
- public function getMarkerRecordedEventAttributes()
- {
- return $this->readOneof(25);
- }
-
- public function hasMarkerRecordedEventAttributes()
- {
- return $this->hasOneof(25);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.MarkerRecordedEventAttributes marker_recorded_event_attributes = 25;
- * @param \Temporal\Api\History\V1\MarkerRecordedEventAttributes $var
- * @return $this
- */
- public function setMarkerRecordedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\MarkerRecordedEventAttributes::class);
- $this->writeOneof(25, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes workflow_execution_signaled_event_attributes = 26;
- * @return \Temporal\Api\History\V1\WorkflowExecutionSignaledEventAttributes|null
- */
- public function getWorkflowExecutionSignaledEventAttributes()
- {
- return $this->readOneof(26);
- }
-
- public function hasWorkflowExecutionSignaledEventAttributes()
- {
- return $this->hasOneof(26);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes workflow_execution_signaled_event_attributes = 26;
- * @param \Temporal\Api\History\V1\WorkflowExecutionSignaledEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionSignaledEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionSignaledEventAttributes::class);
- $this->writeOneof(26, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes workflow_execution_terminated_event_attributes = 27;
- * @return \Temporal\Api\History\V1\WorkflowExecutionTerminatedEventAttributes|null
- */
- public function getWorkflowExecutionTerminatedEventAttributes()
- {
- return $this->readOneof(27);
- }
-
- public function hasWorkflowExecutionTerminatedEventAttributes()
- {
- return $this->hasOneof(27);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes workflow_execution_terminated_event_attributes = 27;
- * @param \Temporal\Api\History\V1\WorkflowExecutionTerminatedEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionTerminatedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionTerminatedEventAttributes::class);
- $this->writeOneof(27, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes workflow_execution_cancel_requested_event_attributes = 28;
- * @return \Temporal\Api\History\V1\WorkflowExecutionCancelRequestedEventAttributes|null
- */
- public function getWorkflowExecutionCancelRequestedEventAttributes()
- {
- return $this->readOneof(28);
- }
-
- public function hasWorkflowExecutionCancelRequestedEventAttributes()
- {
- return $this->hasOneof(28);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes workflow_execution_cancel_requested_event_attributes = 28;
- * @param \Temporal\Api\History\V1\WorkflowExecutionCancelRequestedEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionCancelRequestedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionCancelRequestedEventAttributes::class);
- $this->writeOneof(28, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes workflow_execution_canceled_event_attributes = 29;
- * @return \Temporal\Api\History\V1\WorkflowExecutionCanceledEventAttributes|null
- */
- public function getWorkflowExecutionCanceledEventAttributes()
- {
- return $this->readOneof(29);
- }
-
- public function hasWorkflowExecutionCanceledEventAttributes()
- {
- return $this->hasOneof(29);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes workflow_execution_canceled_event_attributes = 29;
- * @param \Temporal\Api\History\V1\WorkflowExecutionCanceledEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionCanceledEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionCanceledEventAttributes::class);
- $this->writeOneof(29, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes request_cancel_external_workflow_execution_initiated_event_attributes = 30;
- * @return \Temporal\Api\History\V1\RequestCancelExternalWorkflowExecutionInitiatedEventAttributes|null
- */
- public function getRequestCancelExternalWorkflowExecutionInitiatedEventAttributes()
- {
- return $this->readOneof(30);
- }
-
- public function hasRequestCancelExternalWorkflowExecutionInitiatedEventAttributes()
- {
- return $this->hasOneof(30);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes request_cancel_external_workflow_execution_initiated_event_attributes = 30;
- * @param \Temporal\Api\History\V1\RequestCancelExternalWorkflowExecutionInitiatedEventAttributes $var
- * @return $this
- */
- public function setRequestCancelExternalWorkflowExecutionInitiatedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\RequestCancelExternalWorkflowExecutionInitiatedEventAttributes::class);
- $this->writeOneof(30, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes request_cancel_external_workflow_execution_failed_event_attributes = 31;
- * @return \Temporal\Api\History\V1\RequestCancelExternalWorkflowExecutionFailedEventAttributes|null
- */
- public function getRequestCancelExternalWorkflowExecutionFailedEventAttributes()
- {
- return $this->readOneof(31);
- }
-
- public function hasRequestCancelExternalWorkflowExecutionFailedEventAttributes()
- {
- return $this->hasOneof(31);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes request_cancel_external_workflow_execution_failed_event_attributes = 31;
- * @param \Temporal\Api\History\V1\RequestCancelExternalWorkflowExecutionFailedEventAttributes $var
- * @return $this
- */
- public function setRequestCancelExternalWorkflowExecutionFailedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\RequestCancelExternalWorkflowExecutionFailedEventAttributes::class);
- $this->writeOneof(31, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes external_workflow_execution_cancel_requested_event_attributes = 32;
- * @return \Temporal\Api\History\V1\ExternalWorkflowExecutionCancelRequestedEventAttributes|null
- */
- public function getExternalWorkflowExecutionCancelRequestedEventAttributes()
- {
- return $this->readOneof(32);
- }
-
- public function hasExternalWorkflowExecutionCancelRequestedEventAttributes()
- {
- return $this->hasOneof(32);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ExternalWorkflowExecutionCancelRequestedEventAttributes external_workflow_execution_cancel_requested_event_attributes = 32;
- * @param \Temporal\Api\History\V1\ExternalWorkflowExecutionCancelRequestedEventAttributes $var
- * @return $this
- */
- public function setExternalWorkflowExecutionCancelRequestedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ExternalWorkflowExecutionCancelRequestedEventAttributes::class);
- $this->writeOneof(32, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes workflow_execution_continued_as_new_event_attributes = 33;
- * @return \Temporal\Api\History\V1\WorkflowExecutionContinuedAsNewEventAttributes|null
- */
- public function getWorkflowExecutionContinuedAsNewEventAttributes()
- {
- return $this->readOneof(33);
- }
-
- public function hasWorkflowExecutionContinuedAsNewEventAttributes()
- {
- return $this->hasOneof(33);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes workflow_execution_continued_as_new_event_attributes = 33;
- * @param \Temporal\Api\History\V1\WorkflowExecutionContinuedAsNewEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionContinuedAsNewEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionContinuedAsNewEventAttributes::class);
- $this->writeOneof(33, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes start_child_workflow_execution_initiated_event_attributes = 34;
- * @return \Temporal\Api\History\V1\StartChildWorkflowExecutionInitiatedEventAttributes|null
- */
- public function getStartChildWorkflowExecutionInitiatedEventAttributes()
- {
- return $this->readOneof(34);
- }
-
- public function hasStartChildWorkflowExecutionInitiatedEventAttributes()
- {
- return $this->hasOneof(34);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes start_child_workflow_execution_initiated_event_attributes = 34;
- * @param \Temporal\Api\History\V1\StartChildWorkflowExecutionInitiatedEventAttributes $var
- * @return $this
- */
- public function setStartChildWorkflowExecutionInitiatedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\StartChildWorkflowExecutionInitiatedEventAttributes::class);
- $this->writeOneof(34, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes start_child_workflow_execution_failed_event_attributes = 35;
- * @return \Temporal\Api\History\V1\StartChildWorkflowExecutionFailedEventAttributes|null
- */
- public function getStartChildWorkflowExecutionFailedEventAttributes()
- {
- return $this->readOneof(35);
- }
-
- public function hasStartChildWorkflowExecutionFailedEventAttributes()
- {
- return $this->hasOneof(35);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes start_child_workflow_execution_failed_event_attributes = 35;
- * @param \Temporal\Api\History\V1\StartChildWorkflowExecutionFailedEventAttributes $var
- * @return $this
- */
- public function setStartChildWorkflowExecutionFailedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\StartChildWorkflowExecutionFailedEventAttributes::class);
- $this->writeOneof(35, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes child_workflow_execution_started_event_attributes = 36;
- * @return \Temporal\Api\History\V1\ChildWorkflowExecutionStartedEventAttributes|null
- */
- public function getChildWorkflowExecutionStartedEventAttributes()
- {
- return $this->readOneof(36);
- }
-
- public function hasChildWorkflowExecutionStartedEventAttributes()
- {
- return $this->hasOneof(36);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionStartedEventAttributes child_workflow_execution_started_event_attributes = 36;
- * @param \Temporal\Api\History\V1\ChildWorkflowExecutionStartedEventAttributes $var
- * @return $this
- */
- public function setChildWorkflowExecutionStartedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ChildWorkflowExecutionStartedEventAttributes::class);
- $this->writeOneof(36, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes child_workflow_execution_completed_event_attributes = 37;
- * @return \Temporal\Api\History\V1\ChildWorkflowExecutionCompletedEventAttributes|null
- */
- public function getChildWorkflowExecutionCompletedEventAttributes()
- {
- return $this->readOneof(37);
- }
-
- public function hasChildWorkflowExecutionCompletedEventAttributes()
- {
- return $this->hasOneof(37);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionCompletedEventAttributes child_workflow_execution_completed_event_attributes = 37;
- * @param \Temporal\Api\History\V1\ChildWorkflowExecutionCompletedEventAttributes $var
- * @return $this
- */
- public function setChildWorkflowExecutionCompletedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ChildWorkflowExecutionCompletedEventAttributes::class);
- $this->writeOneof(37, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes child_workflow_execution_failed_event_attributes = 38;
- * @return \Temporal\Api\History\V1\ChildWorkflowExecutionFailedEventAttributes|null
- */
- public function getChildWorkflowExecutionFailedEventAttributes()
- {
- return $this->readOneof(38);
- }
-
- public function hasChildWorkflowExecutionFailedEventAttributes()
- {
- return $this->hasOneof(38);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionFailedEventAttributes child_workflow_execution_failed_event_attributes = 38;
- * @param \Temporal\Api\History\V1\ChildWorkflowExecutionFailedEventAttributes $var
- * @return $this
- */
- public function setChildWorkflowExecutionFailedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ChildWorkflowExecutionFailedEventAttributes::class);
- $this->writeOneof(38, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes child_workflow_execution_canceled_event_attributes = 39;
- * @return \Temporal\Api\History\V1\ChildWorkflowExecutionCanceledEventAttributes|null
- */
- public function getChildWorkflowExecutionCanceledEventAttributes()
- {
- return $this->readOneof(39);
- }
-
- public function hasChildWorkflowExecutionCanceledEventAttributes()
- {
- return $this->hasOneof(39);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionCanceledEventAttributes child_workflow_execution_canceled_event_attributes = 39;
- * @param \Temporal\Api\History\V1\ChildWorkflowExecutionCanceledEventAttributes $var
- * @return $this
- */
- public function setChildWorkflowExecutionCanceledEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ChildWorkflowExecutionCanceledEventAttributes::class);
- $this->writeOneof(39, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes child_workflow_execution_timed_out_event_attributes = 40;
- * @return \Temporal\Api\History\V1\ChildWorkflowExecutionTimedOutEventAttributes|null
- */
- public function getChildWorkflowExecutionTimedOutEventAttributes()
- {
- return $this->readOneof(40);
- }
-
- public function hasChildWorkflowExecutionTimedOutEventAttributes()
- {
- return $this->hasOneof(40);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionTimedOutEventAttributes child_workflow_execution_timed_out_event_attributes = 40;
- * @param \Temporal\Api\History\V1\ChildWorkflowExecutionTimedOutEventAttributes $var
- * @return $this
- */
- public function setChildWorkflowExecutionTimedOutEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ChildWorkflowExecutionTimedOutEventAttributes::class);
- $this->writeOneof(40, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes child_workflow_execution_terminated_event_attributes = 41;
- * @return \Temporal\Api\History\V1\ChildWorkflowExecutionTerminatedEventAttributes|null
- */
- public function getChildWorkflowExecutionTerminatedEventAttributes()
- {
- return $this->readOneof(41);
- }
-
- public function hasChildWorkflowExecutionTerminatedEventAttributes()
- {
- return $this->hasOneof(41);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ChildWorkflowExecutionTerminatedEventAttributes child_workflow_execution_terminated_event_attributes = 41;
- * @param \Temporal\Api\History\V1\ChildWorkflowExecutionTerminatedEventAttributes $var
- * @return $this
- */
- public function setChildWorkflowExecutionTerminatedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ChildWorkflowExecutionTerminatedEventAttributes::class);
- $this->writeOneof(41, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes signal_external_workflow_execution_initiated_event_attributes = 42;
- * @return \Temporal\Api\History\V1\SignalExternalWorkflowExecutionInitiatedEventAttributes|null
- */
- public function getSignalExternalWorkflowExecutionInitiatedEventAttributes()
- {
- return $this->readOneof(42);
- }
-
- public function hasSignalExternalWorkflowExecutionInitiatedEventAttributes()
- {
- return $this->hasOneof(42);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes signal_external_workflow_execution_initiated_event_attributes = 42;
- * @param \Temporal\Api\History\V1\SignalExternalWorkflowExecutionInitiatedEventAttributes $var
- * @return $this
- */
- public function setSignalExternalWorkflowExecutionInitiatedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\SignalExternalWorkflowExecutionInitiatedEventAttributes::class);
- $this->writeOneof(42, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes signal_external_workflow_execution_failed_event_attributes = 43;
- * @return \Temporal\Api\History\V1\SignalExternalWorkflowExecutionFailedEventAttributes|null
- */
- public function getSignalExternalWorkflowExecutionFailedEventAttributes()
- {
- return $this->readOneof(43);
- }
-
- public function hasSignalExternalWorkflowExecutionFailedEventAttributes()
- {
- return $this->hasOneof(43);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes signal_external_workflow_execution_failed_event_attributes = 43;
- * @param \Temporal\Api\History\V1\SignalExternalWorkflowExecutionFailedEventAttributes $var
- * @return $this
- */
- public function setSignalExternalWorkflowExecutionFailedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\SignalExternalWorkflowExecutionFailedEventAttributes::class);
- $this->writeOneof(43, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes external_workflow_execution_signaled_event_attributes = 44;
- * @return \Temporal\Api\History\V1\ExternalWorkflowExecutionSignaledEventAttributes|null
- */
- public function getExternalWorkflowExecutionSignaledEventAttributes()
- {
- return $this->readOneof(44);
- }
-
- public function hasExternalWorkflowExecutionSignaledEventAttributes()
- {
- return $this->hasOneof(44);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ExternalWorkflowExecutionSignaledEventAttributes external_workflow_execution_signaled_event_attributes = 44;
- * @param \Temporal\Api\History\V1\ExternalWorkflowExecutionSignaledEventAttributes $var
- * @return $this
- */
- public function setExternalWorkflowExecutionSignaledEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ExternalWorkflowExecutionSignaledEventAttributes::class);
- $this->writeOneof(44, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes upsert_workflow_search_attributes_event_attributes = 45;
- * @return \Temporal\Api\History\V1\UpsertWorkflowSearchAttributesEventAttributes|null
- */
- public function getUpsertWorkflowSearchAttributesEventAttributes()
- {
- return $this->readOneof(45);
- }
-
- public function hasUpsertWorkflowSearchAttributesEventAttributes()
- {
- return $this->hasOneof(45);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes upsert_workflow_search_attributes_event_attributes = 45;
- * @param \Temporal\Api\History\V1\UpsertWorkflowSearchAttributesEventAttributes $var
- * @return $this
- */
- public function setUpsertWorkflowSearchAttributesEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\UpsertWorkflowSearchAttributesEventAttributes::class);
- $this->writeOneof(45, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes workflow_execution_update_accepted_event_attributes = 46;
- * @return \Temporal\Api\History\V1\WorkflowExecutionUpdateAcceptedEventAttributes|null
- */
- public function getWorkflowExecutionUpdateAcceptedEventAttributes()
- {
- return $this->readOneof(46);
- }
-
- public function hasWorkflowExecutionUpdateAcceptedEventAttributes()
- {
- return $this->hasOneof(46);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes workflow_execution_update_accepted_event_attributes = 46;
- * @param \Temporal\Api\History\V1\WorkflowExecutionUpdateAcceptedEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionUpdateAcceptedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionUpdateAcceptedEventAttributes::class);
- $this->writeOneof(46, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes workflow_execution_update_rejected_event_attributes = 47;
- * @return \Temporal\Api\History\V1\WorkflowExecutionUpdateRejectedEventAttributes|null
- */
- public function getWorkflowExecutionUpdateRejectedEventAttributes()
- {
- return $this->readOneof(47);
- }
-
- public function hasWorkflowExecutionUpdateRejectedEventAttributes()
- {
- return $this->hasOneof(47);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes workflow_execution_update_rejected_event_attributes = 47;
- * @param \Temporal\Api\History\V1\WorkflowExecutionUpdateRejectedEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionUpdateRejectedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionUpdateRejectedEventAttributes::class);
- $this->writeOneof(47, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes workflow_execution_update_completed_event_attributes = 48;
- * @return \Temporal\Api\History\V1\WorkflowExecutionUpdateCompletedEventAttributes|null
- */
- public function getWorkflowExecutionUpdateCompletedEventAttributes()
- {
- return $this->readOneof(48);
- }
-
- public function hasWorkflowExecutionUpdateCompletedEventAttributes()
- {
- return $this->hasOneof(48);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes workflow_execution_update_completed_event_attributes = 48;
- * @param \Temporal\Api\History\V1\WorkflowExecutionUpdateCompletedEventAttributes $var
- * @return $this
- */
- public function setWorkflowExecutionUpdateCompletedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowExecutionUpdateCompletedEventAttributes::class);
- $this->writeOneof(48, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes workflow_properties_modified_externally_event_attributes = 49;
- * @return \Temporal\Api\History\V1\WorkflowPropertiesModifiedExternallyEventAttributes|null
- */
- public function getWorkflowPropertiesModifiedExternallyEventAttributes()
- {
- return $this->readOneof(49);
- }
-
- public function hasWorkflowPropertiesModifiedExternallyEventAttributes()
- {
- return $this->hasOneof(49);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes workflow_properties_modified_externally_event_attributes = 49;
- * @param \Temporal\Api\History\V1\WorkflowPropertiesModifiedExternallyEventAttributes $var
- * @return $this
- */
- public function setWorkflowPropertiesModifiedExternallyEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowPropertiesModifiedExternallyEventAttributes::class);
- $this->writeOneof(49, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes activity_properties_modified_externally_event_attributes = 50;
- * @return \Temporal\Api\History\V1\ActivityPropertiesModifiedExternallyEventAttributes|null
- */
- public function getActivityPropertiesModifiedExternallyEventAttributes()
- {
- return $this->readOneof(50);
- }
-
- public function hasActivityPropertiesModifiedExternallyEventAttributes()
- {
- return $this->hasOneof(50);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.ActivityPropertiesModifiedExternallyEventAttributes activity_properties_modified_externally_event_attributes = 50;
- * @param \Temporal\Api\History\V1\ActivityPropertiesModifiedExternallyEventAttributes $var
- * @return $this
- */
- public function setActivityPropertiesModifiedExternallyEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\ActivityPropertiesModifiedExternallyEventAttributes::class);
- $this->writeOneof(50, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes workflow_properties_modified_event_attributes = 51;
- * @return \Temporal\Api\History\V1\WorkflowPropertiesModifiedEventAttributes|null
- */
- public function getWorkflowPropertiesModifiedEventAttributes()
- {
- return $this->readOneof(51);
- }
-
- public function hasWorkflowPropertiesModifiedEventAttributes()
- {
- return $this->hasOneof(51);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes workflow_properties_modified_event_attributes = 51;
- * @param \Temporal\Api\History\V1\WorkflowPropertiesModifiedEventAttributes $var
- * @return $this
- */
- public function setWorkflowPropertiesModifiedEventAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\WorkflowPropertiesModifiedEventAttributes::class);
- $this->writeOneof(51, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getAttributes()
- {
- return $this->whichOneof("attributes");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/MarkerRecordedEventAttributes.php b/api/v1/Temporal/Api/History/V1/MarkerRecordedEventAttributes.php
deleted file mode 100644
index 5c135bbb4..000000000
--- a/api/v1/Temporal/Api/History/V1/MarkerRecordedEventAttributes.php
+++ /dev/null
@@ -1,214 +0,0 @@
-temporal.api.history.v1.MarkerRecordedEventAttributes
- */
-class MarkerRecordedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Workers use this to identify the "types" of various markers. Ex: Local activity, side effect.
- *
- * Generated from protobuf field string marker_name = 1;
- */
- protected $marker_name = '';
- /**
- * Serialized information recorded in the marker
- *
- * Generated from protobuf field map details = 2;
- */
- private $details;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 4;
- */
- protected $header = null;
- /**
- * Some uses of markers, like a local activity, could "fail". If they did that is recorded here.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- */
- protected $failure = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $marker_name
- * Workers use this to identify the "types" of various markers. Ex: Local activity, side effect.
- * @type array|\Google\Protobuf\Internal\MapField $details
- * Serialized information recorded in the marker
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * Some uses of markers, like a local activity, could "fail". If they did that is recorded here.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Workers use this to identify the "types" of various markers. Ex: Local activity, side effect.
- *
- * Generated from protobuf field string marker_name = 1;
- * @return string
- */
- public function getMarkerName()
- {
- return $this->marker_name;
- }
-
- /**
- * Workers use this to identify the "types" of various markers. Ex: Local activity, side effect.
- *
- * Generated from protobuf field string marker_name = 1;
- * @param string $var
- * @return $this
- */
- public function setMarkerName($var)
- {
- GPBUtil::checkString($var, True);
- $this->marker_name = $var;
-
- return $this;
- }
-
- /**
- * Serialized information recorded in the marker
- *
- * Generated from protobuf field map details = 2;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- /**
- * Serialized information recorded in the marker
- *
- * Generated from protobuf field map details = 2;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setDetails($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $arr;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 4;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 4;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Some uses of markers, like a local activity, could "fail". If they did that is recorded here.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Some uses of markers, like a local activity, could "fail". If they did that is recorded here.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/RequestCancelExternalWorkflowExecutionFailedEventAttributes.php b/api/v1/Temporal/Api/History/V1/RequestCancelExternalWorkflowExecutionFailedEventAttributes.php
deleted file mode 100644
index 6ec80137a..000000000
--- a/api/v1/Temporal/Api/History/V1/RequestCancelExternalWorkflowExecutionFailedEventAttributes.php
+++ /dev/null
@@ -1,266 +0,0 @@
-temporal.api.history.v1.RequestCancelExternalWorkflowExecutionFailedEventAttributes
- */
-class RequestCancelExternalWorkflowExecutionFailedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;
- */
- protected $cause = 0;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * Namespace of the workflow which failed to cancel.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 3;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 7;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- */
- protected $workflow_execution = null;
- /**
- * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure
- * corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- */
- protected $initiated_event_id = 0;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- */
- protected $control = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $cause
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type string $namespace
- * Namespace of the workflow which failed to cancel.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type int|string $initiated_event_id
- * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure
- * corresponds to
- * @type string $control
- * Deprecated
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;
- * @return int
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.CancelExternalWorkflowExecutionFailedCause cause = 1;
- * @param int $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\CancelExternalWorkflowExecutionFailedCause::class);
- $this->cause = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the workflow which failed to cancel.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 3;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the workflow which failed to cancel.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 3;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure
- * corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * id of the `REQUEST_CANCEL_EXTERNAL_WORKFLOW_EXECUTION_INITIATED` event this failure
- * corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.php b/api/v1/Temporal/Api/History/V1/RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.php
deleted file mode 100644
index 365553757..000000000
--- a/api/v1/Temporal/Api/History/V1/RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.php
+++ /dev/null
@@ -1,273 +0,0 @@
-temporal.api.history.v1.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
- */
-class RequestCancelExternalWorkflowExecutionInitiatedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * The namespace the workflow to be cancelled lives in.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 7;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- */
- protected $workflow_execution = null;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 4;
- */
- protected $control = '';
- /**
- * Workers are expected to set this to true if the workflow they are requesting to cancel is
- * a child of the workflow which issued the request
- *
- * Generated from protobuf field bool child_workflow_only = 5;
- */
- protected $child_workflow_only = false;
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- */
- protected $reason = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type string $namespace
- * The namespace the workflow to be cancelled lives in.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type string $control
- * Deprecated
- * @type bool $child_workflow_only
- * Workers are expected to set this to true if the workflow they are requesting to cancel is
- * a child of the workflow which issued the request
- * @type string $reason
- * Reason for requesting the cancellation
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * The namespace the workflow to be cancelled lives in.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace the workflow to be cancelled lives in.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 4;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 4;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * Workers are expected to set this to true if the workflow they are requesting to cancel is
- * a child of the workflow which issued the request
- *
- * Generated from protobuf field bool child_workflow_only = 5;
- * @return bool
- */
- public function getChildWorkflowOnly()
- {
- return $this->child_workflow_only;
- }
-
- /**
- * Workers are expected to set this to true if the workflow they are requesting to cancel is
- * a child of the workflow which issued the request
- *
- * Generated from protobuf field bool child_workflow_only = 5;
- * @param bool $var
- * @return $this
- */
- public function setChildWorkflowOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->child_workflow_only = $var;
-
- return $this;
- }
-
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/SignalExternalWorkflowExecutionFailedEventAttributes.php b/api/v1/Temporal/Api/History/V1/SignalExternalWorkflowExecutionFailedEventAttributes.php
deleted file mode 100644
index bef49c53f..000000000
--- a/api/v1/Temporal/Api/History/V1/SignalExternalWorkflowExecutionFailedEventAttributes.php
+++ /dev/null
@@ -1,255 +0,0 @@
-temporal.api.history.v1.SignalExternalWorkflowExecutionFailedEventAttributes
- */
-class SignalExternalWorkflowExecutionFailedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause cause = 1;
- */
- protected $cause = 0;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * Namespace of the workflow which failed the signal.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 3;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 7;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field int64 initiated_event_id = 5;
- */
- protected $initiated_event_id = 0;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- */
- protected $control = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $cause
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type string $namespace
- * Namespace of the workflow which failed the signal.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type int|string $initiated_event_id
- * @type string $control
- * Deprecated
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause cause = 1;
- * @return int
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.SignalExternalWorkflowExecutionFailedCause cause = 1;
- * @param int $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\SignalExternalWorkflowExecutionFailedCause::class);
- $this->cause = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the workflow which failed the signal.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 3;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the workflow which failed the signal.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 3;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 7;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Generated from protobuf field int64 initiated_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/SignalExternalWorkflowExecutionInitiatedEventAttributes.php b/api/v1/Temporal/Api/History/V1/SignalExternalWorkflowExecutionInitiatedEventAttributes.php
deleted file mode 100644
index fa264c62a..000000000
--- a/api/v1/Temporal/Api/History/V1/SignalExternalWorkflowExecutionInitiatedEventAttributes.php
+++ /dev/null
@@ -1,354 +0,0 @@
-temporal.api.history.v1.SignalExternalWorkflowExecutionInitiatedEventAttributes
- */
-class SignalExternalWorkflowExecutionInitiatedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * Namespace of the to-be-signalled workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 9;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- */
- protected $workflow_execution = null;
- /**
- * name/type of the signal to fire in the external workflow
- *
- * Generated from protobuf field string signal_name = 4;
- */
- protected $signal_name = '';
- /**
- * Serialized arguments to provide to the signal handler
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- */
- protected $input = null;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- */
- protected $control = '';
- /**
- * Workers are expected to set this to true if the workflow they are requesting to cancel is
- * a child of the workflow which issued the request
- *
- * Generated from protobuf field bool child_workflow_only = 7;
- */
- protected $child_workflow_only = false;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 8;
- */
- protected $header = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type string $namespace
- * Namespace of the to-be-signalled workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type string $signal_name
- * name/type of the signal to fire in the external workflow
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Serialized arguments to provide to the signal handler
- * @type string $control
- * Deprecated
- * @type bool $child_workflow_only
- * Workers are expected to set this to true if the workflow they are requesting to cancel is
- * a child of the workflow which issued the request
- * @type \Temporal\Api\Common\V1\Header $header
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * Namespace of the to-be-signalled workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the to-be-signalled workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 9;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 9;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * name/type of the signal to fire in the external workflow
- *
- * Generated from protobuf field string signal_name = 4;
- * @return string
- */
- public function getSignalName()
- {
- return $this->signal_name;
- }
-
- /**
- * name/type of the signal to fire in the external workflow
- *
- * Generated from protobuf field string signal_name = 4;
- * @param string $var
- * @return $this
- */
- public function setSignalName($var)
- {
- GPBUtil::checkString($var, True);
- $this->signal_name = $var;
-
- return $this;
- }
-
- /**
- * Serialized arguments to provide to the signal handler
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Serialized arguments to provide to the signal handler
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 6;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * Workers are expected to set this to true if the workflow they are requesting to cancel is
- * a child of the workflow which issued the request
- *
- * Generated from protobuf field bool child_workflow_only = 7;
- * @return bool
- */
- public function getChildWorkflowOnly()
- {
- return $this->child_workflow_only;
- }
-
- /**
- * Workers are expected to set this to true if the workflow they are requesting to cancel is
- * a child of the workflow which issued the request
- *
- * Generated from protobuf field bool child_workflow_only = 7;
- * @param bool $var
- * @return $this
- */
- public function setChildWorkflowOnly($var)
- {
- GPBUtil::checkBool($var);
- $this->child_workflow_only = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 8;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 8;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/StartChildWorkflowExecutionFailedEventAttributes.php b/api/v1/Temporal/Api/History/V1/StartChildWorkflowExecutionFailedEventAttributes.php
deleted file mode 100644
index d007b6886..000000000
--- a/api/v1/Temporal/Api/History/V1/StartChildWorkflowExecutionFailedEventAttributes.php
+++ /dev/null
@@ -1,289 +0,0 @@
-temporal.api.history.v1.StartChildWorkflowExecutionFailedEventAttributes
- */
-class StartChildWorkflowExecutionFailedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 8;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause cause = 4;
- */
- protected $cause = 0;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 5;
- */
- protected $control = '';
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 6;
- */
- protected $initiated_event_id = 0;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 7;
- */
- protected $workflow_task_completed_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type string $workflow_id
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type int $cause
- * @type string $control
- * Deprecated
- * @type int|string $initiated_event_id
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 8;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 8;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause cause = 4;
- * @return int
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.StartChildWorkflowExecutionFailedCause cause = 4;
- * @param int $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\StartChildWorkflowExecutionFailedCause::class);
- $this->cause = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 5;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 5;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 6;
- * @return int|string
- */
- public function getInitiatedEventId()
- {
- return $this->initiated_event_id;
- }
-
- /**
- * Id of the `START_CHILD_WORKFLOW_EXECUTION_INITIATED` event which this event corresponds to
- *
- * Generated from protobuf field int64 initiated_event_id = 6;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 7;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 7;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/StartChildWorkflowExecutionInitiatedEventAttributes.php b/api/v1/Temporal/Api/History/V1/StartChildWorkflowExecutionInitiatedEventAttributes.php
deleted file mode 100644
index 916b45380..000000000
--- a/api/v1/Temporal/Api/History/V1/StartChildWorkflowExecutionInitiatedEventAttributes.php
+++ /dev/null
@@ -1,726 +0,0 @@
-temporal.api.history.v1.StartChildWorkflowExecutionInitiatedEventAttributes
- */
-class StartChildWorkflowExecutionInitiatedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string namespace_id = 18;
- */
- protected $namespace_id = '';
- /**
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- */
- protected $task_queue = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- */
- protected $input = null;
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_timeout = null;
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_task_timeout = null;
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
- */
- protected $parent_close_policy = 0;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 10;
- */
- protected $control = '';
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 11;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 12;
- */
- protected $workflow_id_reuse_policy = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 13;
- */
- protected $retry_policy = null;
- /**
- * If this child runs on a cron schedule, it will appear here
- *
- * Generated from protobuf field string cron_schedule = 14;
- */
- protected $cron_schedule = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 15;
- */
- protected $header = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 16;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 17;
- */
- protected $search_attributes = null;
- /**
- * If this is set, the workflow executing this command wishes to start the child workflow using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 19;
- */
- protected $use_compatible_version = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- * @type string $namespace_id
- * @type string $workflow_id
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Payloads $input
- * @type \Google\Protobuf\Duration $workflow_execution_timeout
- * Total workflow execution timeout including retries and continue as new.
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * Timeout of a single workflow run.
- * @type \Google\Protobuf\Duration $workflow_task_timeout
- * Timeout of a single workflow task.
- * @type int $parent_close_policy
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- * @type string $control
- * Deprecated
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type int $workflow_id_reuse_policy
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * @type string $cron_schedule
- * If this child runs on a cron schedule, it will appear here
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type bool $use_compatible_version
- * If this is set, the workflow executing this command wishes to start the child workflow using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the child workflow.
- * SDKs and UI tools should use `namespace` field but server must use `namespace_id` only.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 18;
- * @return string
- */
- public function getNamespaceId()
- {
- return $this->namespace_id;
- }
-
- /**
- * Generated from protobuf field string namespace_id = 18;
- * @param string $var
- * @return $this
- */
- public function setNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionTimeout()
- {
- return $this->workflow_execution_timeout;
- }
-
- public function hasWorkflowExecutionTimeout()
- {
- return isset($this->workflow_execution_timeout);
- }
-
- public function clearWorkflowExecutionTimeout()
- {
- unset($this->workflow_execution_timeout);
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowTaskTimeout()
- {
- return $this->workflow_task_timeout;
- }
-
- public function hasWorkflowTaskTimeout()
- {
- return isset($this->workflow_task_timeout);
- }
-
- public function clearWorkflowTaskTimeout()
- {
- unset($this->workflow_task_timeout);
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
- * @return int
- */
- public function getParentClosePolicy()
- {
- return $this->parent_close_policy;
- }
-
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 9;
- * @param int $var
- * @return $this
- */
- public function setParentClosePolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ParentClosePolicy::class);
- $this->parent_close_policy = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 10;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 10;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 11;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 11;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 12;
- * @return int
- */
- public function getWorkflowIdReusePolicy()
- {
- return $this->workflow_id_reuse_policy;
- }
-
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 12;
- * @param int $var
- * @return $this
- */
- public function setWorkflowIdReusePolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowIdReusePolicy::class);
- $this->workflow_id_reuse_policy = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 13;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 13;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * If this child runs on a cron schedule, it will appear here
- *
- * Generated from protobuf field string cron_schedule = 14;
- * @return string
- */
- public function getCronSchedule()
- {
- return $this->cron_schedule;
- }
-
- /**
- * If this child runs on a cron schedule, it will appear here
- *
- * Generated from protobuf field string cron_schedule = 14;
- * @param string $var
- * @return $this
- */
- public function setCronSchedule($var)
- {
- GPBUtil::checkString($var, True);
- $this->cron_schedule = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 15;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 15;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 16;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 16;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 17;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 17;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to start the child workflow using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 19;
- * @return bool
- */
- public function getUseCompatibleVersion()
- {
- return $this->use_compatible_version;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to start the child workflow using
- * a version compatible with the version that this workflow most recently ran on, if such
- * behavior is possible.
- *
- * Generated from protobuf field bool use_compatible_version = 19;
- * @param bool $var
- * @return $this
- */
- public function setUseCompatibleVersion($var)
- {
- GPBUtil::checkBool($var);
- $this->use_compatible_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/TimerCanceledEventAttributes.php b/api/v1/Temporal/Api/History/V1/TimerCanceledEventAttributes.php
deleted file mode 100644
index 1f9418ae5..000000000
--- a/api/v1/Temporal/Api/History/V1/TimerCanceledEventAttributes.php
+++ /dev/null
@@ -1,167 +0,0 @@
-temporal.api.history.v1.TimerCanceledEventAttributes
- */
-class TimerCanceledEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Will match the `timer_id` from `TIMER_STARTED` event for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- */
- protected $timer_id = '';
- /**
- * The id of the `TIMER_STARTED` event itself
- *
- * Generated from protobuf field int64 started_event_id = 2;
- */
- protected $started_event_id = 0;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * The id of the worker who requested this cancel
- *
- * Generated from protobuf field string identity = 4;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $timer_id
- * Will match the `timer_id` from `TIMER_STARTED` event for this timer
- * @type int|string $started_event_id
- * The id of the `TIMER_STARTED` event itself
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type string $identity
- * The id of the worker who requested this cancel
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Will match the `timer_id` from `TIMER_STARTED` event for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- * @return string
- */
- public function getTimerId()
- {
- return $this->timer_id;
- }
-
- /**
- * Will match the `timer_id` from `TIMER_STARTED` event for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- * @param string $var
- * @return $this
- */
- public function setTimerId($var)
- {
- GPBUtil::checkString($var, True);
- $this->timer_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `TIMER_STARTED` event itself
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `TIMER_STARTED` event itself
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the worker who requested this cancel
- *
- * Generated from protobuf field string identity = 4;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The id of the worker who requested this cancel
- *
- * Generated from protobuf field string identity = 4;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/TimerFiredEventAttributes.php b/api/v1/Temporal/Api/History/V1/TimerFiredEventAttributes.php
deleted file mode 100644
index 37f56ba18..000000000
--- a/api/v1/Temporal/Api/History/V1/TimerFiredEventAttributes.php
+++ /dev/null
@@ -1,99 +0,0 @@
-temporal.api.history.v1.TimerFiredEventAttributes
- */
-class TimerFiredEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Will match the `timer_id` from `TIMER_STARTED` event for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- */
- protected $timer_id = '';
- /**
- * The id of the `TIMER_STARTED` event itself
- *
- * Generated from protobuf field int64 started_event_id = 2;
- */
- protected $started_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $timer_id
- * Will match the `timer_id` from `TIMER_STARTED` event for this timer
- * @type int|string $started_event_id
- * The id of the `TIMER_STARTED` event itself
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Will match the `timer_id` from `TIMER_STARTED` event for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- * @return string
- */
- public function getTimerId()
- {
- return $this->timer_id;
- }
-
- /**
- * Will match the `timer_id` from `TIMER_STARTED` event for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- * @param string $var
- * @return $this
- */
- public function setTimerId($var)
- {
- GPBUtil::checkString($var, True);
- $this->timer_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `TIMER_STARTED` event itself
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `TIMER_STARTED` event itself
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/TimerStartedEventAttributes.php b/api/v1/Temporal/Api/History/V1/TimerStartedEventAttributes.php
deleted file mode 100644
index 9f014f5e4..000000000
--- a/api/v1/Temporal/Api/History/V1/TimerStartedEventAttributes.php
+++ /dev/null
@@ -1,151 +0,0 @@
-temporal.api.history.v1.TimerStartedEventAttributes
- */
-class TimerStartedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The worker/user assigned id for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- */
- protected $timer_id = '';
- /**
- * How long until this timer fires
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_fire_timeout = 2 [(.gogoproto.stdduration) = true];
- */
- protected $start_to_fire_timeout = null;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- */
- protected $workflow_task_completed_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $timer_id
- * The worker/user assigned id for this timer
- * @type \Google\Protobuf\Duration $start_to_fire_timeout
- * How long until this timer fires
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The worker/user assigned id for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- * @return string
- */
- public function getTimerId()
- {
- return $this->timer_id;
- }
-
- /**
- * The worker/user assigned id for this timer
- *
- * Generated from protobuf field string timer_id = 1;
- * @param string $var
- * @return $this
- */
- public function setTimerId($var)
- {
- GPBUtil::checkString($var, True);
- $this->timer_id = $var;
-
- return $this;
- }
-
- /**
- * How long until this timer fires
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_fire_timeout = 2 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartToFireTimeout()
- {
- return $this->start_to_fire_timeout;
- }
-
- public function hasStartToFireTimeout()
- {
- return isset($this->start_to_fire_timeout);
- }
-
- public function clearStartToFireTimeout()
- {
- unset($this->start_to_fire_timeout);
- }
-
- /**
- * How long until this timer fires
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_fire_timeout = 2 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartToFireTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_to_fire_timeout = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/UpsertWorkflowSearchAttributesEventAttributes.php b/api/v1/Temporal/Api/History/V1/UpsertWorkflowSearchAttributesEventAttributes.php
deleted file mode 100644
index 97756bc01..000000000
--- a/api/v1/Temporal/Api/History/V1/UpsertWorkflowSearchAttributesEventAttributes.php
+++ /dev/null
@@ -1,102 +0,0 @@
-temporal.api.history.v1.UpsertWorkflowSearchAttributesEventAttributes
- */
-class UpsertWorkflowSearchAttributesEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 2;
- */
- protected $search_attributes = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 2;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 2;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionCancelRequestedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionCancelRequestedEventAttributes.php
deleted file mode 100644
index 971067861..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionCancelRequestedEventAttributes.php
+++ /dev/null
@@ -1,174 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionCancelRequestedEventAttributes
- */
-class WorkflowExecutionCancelRequestedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * User provided reason for requesting cancellation
- * TODO: shall we create a new field with name "reason" and deprecate this one?
- *
- * Generated from protobuf field string cause = 1;
- */
- protected $cause = '';
- /**
- * TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?
- *
- * Generated from protobuf field int64 external_initiated_event_id = 2;
- */
- protected $external_initiated_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;
- */
- protected $external_workflow_execution = null;
- /**
- * id of the worker or client who requested this cancel
- *
- * Generated from protobuf field string identity = 4;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $cause
- * User provided reason for requesting cancellation
- * TODO: shall we create a new field with name "reason" and deprecate this one?
- * @type int|string $external_initiated_event_id
- * TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?
- * @type \Temporal\Api\Common\V1\WorkflowExecution $external_workflow_execution
- * @type string $identity
- * id of the worker or client who requested this cancel
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * User provided reason for requesting cancellation
- * TODO: shall we create a new field with name "reason" and deprecate this one?
- *
- * Generated from protobuf field string cause = 1;
- * @return string
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- /**
- * User provided reason for requesting cancellation
- * TODO: shall we create a new field with name "reason" and deprecate this one?
- *
- * Generated from protobuf field string cause = 1;
- * @param string $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkString($var, True);
- $this->cause = $var;
-
- return $this;
- }
-
- /**
- * TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?
- *
- * Generated from protobuf field int64 external_initiated_event_id = 2;
- * @return int|string
- */
- public function getExternalInitiatedEventId()
- {
- return $this->external_initiated_event_id;
- }
-
- /**
- * TODO: Is this the ID of the event in the workflow which initiated this cancel, if there was one?
- *
- * Generated from protobuf field int64 external_initiated_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setExternalInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->external_initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getExternalWorkflowExecution()
- {
- return $this->external_workflow_execution;
- }
-
- public function hasExternalWorkflowExecution()
- {
- return isset($this->external_workflow_execution);
- }
-
- public function clearExternalWorkflowExecution()
- {
- unset($this->external_workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution external_workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setExternalWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->external_workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * id of the worker or client who requested this cancel
- *
- * Generated from protobuf field string identity = 4;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * id of the worker or client who requested this cancel
- *
- * Generated from protobuf field string identity = 4;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionCanceledEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionCanceledEventAttributes.php
deleted file mode 100644
index 237684d36..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionCanceledEventAttributes.php
+++ /dev/null
@@ -1,102 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionCanceledEventAttributes
- */
-class WorkflowExecutionCanceledEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- */
- protected $details = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type \Temporal\Api\Common\V1\Payloads $details
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionCompletedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionCompletedEventAttributes.php
deleted file mode 100644
index 82994c689..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionCompletedEventAttributes.php
+++ /dev/null
@@ -1,143 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionCompletedEventAttributes
- */
-class WorkflowExecutionCompletedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Serialized result of workflow completion (ie: The return value of the workflow function)
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- */
- protected $result = null;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * If another run is started by cron, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 3;
- */
- protected $new_execution_run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $result
- * Serialized result of workflow completion (ie: The return value of the workflow function)
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type string $new_execution_run_id
- * If another run is started by cron, this contains the new run id.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Serialized result of workflow completion (ie: The return value of the workflow function)
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getResult()
- {
- return $this->result;
- }
-
- public function hasResult()
- {
- return isset($this->result);
- }
-
- public function clearResult()
- {
- unset($this->result);
- }
-
- /**
- * Serialized result of workflow completion (ie: The return value of the workflow function)
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->result = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * If another run is started by cron, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 3;
- * @return string
- */
- public function getNewExecutionRunId()
- {
- return $this->new_execution_run_id;
- }
-
- /**
- * If another run is started by cron, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 3;
- * @param string $var
- * @return $this
- */
- public function setNewExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->new_execution_run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionContinuedAsNewEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionContinuedAsNewEventAttributes.php
deleted file mode 100644
index be77805b4..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionContinuedAsNewEventAttributes.php
+++ /dev/null
@@ -1,618 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionContinuedAsNewEventAttributes
- */
-class WorkflowExecutionContinuedAsNewEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The run ID of the new workflow started by this continue-as-new
- *
- * Generated from protobuf field string new_execution_run_id = 1;
- */
- protected $new_execution_run_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 3;
- */
- protected $task_queue = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- */
- protected $input = null;
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 5 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 6 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_task_timeout = null;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 7;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * TODO: How and is this used?
- *
- * Generated from protobuf field .google.protobuf.Duration backoff_start_interval = 8 [(.gogoproto.stdduration) = true];
- */
- protected $backoff_start_interval = null;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 9;
- */
- protected $initiator = 0;
- /**
- * TODO: David are these right?
- * Deprecated. If a workflow's retry policy would cause a new run to start when the current one
- * has failed, this field would be populated with that failure. Now (when supported by server
- * and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 10;
- */
- protected $failure = null;
- /**
- * TODO: Is this the result of *this* workflow as it continued-as-new?
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 11;
- */
- protected $last_completion_result = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 12;
- */
- protected $header = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 13;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 14;
- */
- protected $search_attributes = null;
- /**
- * If this is set, the workflow executing this command wishes to continue as new using a version
- * compatible with the version that this workflow most recently ran on.
- *
- * Generated from protobuf field bool use_compatible_version = 15;
- */
- protected $use_compatible_version = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $new_execution_run_id
- * The run ID of the new workflow started by this continue-as-new
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Payloads $input
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * Timeout of a single workflow run.
- * @type \Google\Protobuf\Duration $workflow_task_timeout
- * Timeout of a single workflow task.
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type \Google\Protobuf\Duration $backoff_start_interval
- * TODO: How and is this used?
- * @type int $initiator
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * TODO: David are these right?
- * Deprecated. If a workflow's retry policy would cause a new run to start when the current one
- * has failed, this field would be populated with that failure. Now (when supported by server
- * and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set.
- * @type \Temporal\Api\Common\V1\Payloads $last_completion_result
- * TODO: Is this the result of *this* workflow as it continued-as-new?
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type bool $use_compatible_version
- * If this is set, the workflow executing this command wishes to continue as new using a version
- * compatible with the version that this workflow most recently ran on.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The run ID of the new workflow started by this continue-as-new
- *
- * Generated from protobuf field string new_execution_run_id = 1;
- * @return string
- */
- public function getNewExecutionRunId()
- {
- return $this->new_execution_run_id;
- }
-
- /**
- * The run ID of the new workflow started by this continue-as-new
- *
- * Generated from protobuf field string new_execution_run_id = 1;
- * @param string $var
- * @return $this
- */
- public function setNewExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->new_execution_run_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 3;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 3;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 5 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 5 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 6 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowTaskTimeout()
- {
- return $this->workflow_task_timeout;
- }
-
- public function hasWorkflowTaskTimeout()
- {
- return isset($this->workflow_task_timeout);
- }
-
- public function clearWorkflowTaskTimeout()
- {
- unset($this->workflow_task_timeout);
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 6 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 7;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 7;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * TODO: How and is this used?
- *
- * Generated from protobuf field .google.protobuf.Duration backoff_start_interval = 8 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getBackoffStartInterval()
- {
- return $this->backoff_start_interval;
- }
-
- public function hasBackoffStartInterval()
- {
- return isset($this->backoff_start_interval);
- }
-
- public function clearBackoffStartInterval()
- {
- unset($this->backoff_start_interval);
- }
-
- /**
- * TODO: How and is this used?
- *
- * Generated from protobuf field .google.protobuf.Duration backoff_start_interval = 8 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setBackoffStartInterval($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->backoff_start_interval = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 9;
- * @return int
- */
- public function getInitiator()
- {
- return $this->initiator;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 9;
- * @param int $var
- * @return $this
- */
- public function setInitiator($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ContinueAsNewInitiator::class);
- $this->initiator = $var;
-
- return $this;
- }
-
- /**
- * TODO: David are these right?
- * Deprecated. If a workflow's retry policy would cause a new run to start when the current one
- * has failed, this field would be populated with that failure. Now (when supported by server
- * and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 10;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * TODO: David are these right?
- * Deprecated. If a workflow's retry policy would cause a new run to start when the current one
- * has failed, this field would be populated with that failure. Now (when supported by server
- * and sdk) the final event will be `WORKFLOW_EXECUTION_FAILED` with `new_execution_run_id` set.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 10;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * TODO: Is this the result of *this* workflow as it continued-as-new?
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 11;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getLastCompletionResult()
- {
- return $this->last_completion_result;
- }
-
- public function hasLastCompletionResult()
- {
- return isset($this->last_completion_result);
- }
-
- public function clearLastCompletionResult()
- {
- unset($this->last_completion_result);
- }
-
- /**
- * TODO: Is this the result of *this* workflow as it continued-as-new?
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 11;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setLastCompletionResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->last_completion_result = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 12;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 12;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 13;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 13;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 14;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 14;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to continue as new using a version
- * compatible with the version that this workflow most recently ran on.
- *
- * Generated from protobuf field bool use_compatible_version = 15;
- * @return bool
- */
- public function getUseCompatibleVersion()
- {
- return $this->use_compatible_version;
- }
-
- /**
- * If this is set, the workflow executing this command wishes to continue as new using a version
- * compatible with the version that this workflow most recently ran on.
- *
- * Generated from protobuf field bool use_compatible_version = 15;
- * @param bool $var
- * @return $this
- */
- public function setUseCompatibleVersion($var)
- {
- GPBUtil::checkBool($var);
- $this->use_compatible_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionFailedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionFailedEventAttributes.php
deleted file mode 100644
index 2cfd4272e..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionFailedEventAttributes.php
+++ /dev/null
@@ -1,170 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionFailedEventAttributes
- */
-class WorkflowExecutionFailedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Serialized result of workflow failure (ex: An exception thrown, or error returned)
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- */
- protected $failure = null;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 2;
- */
- protected $retry_state = 0;
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * If another run is started by cron or retry, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 4;
- */
- protected $new_execution_run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * Serialized result of workflow failure (ex: An exception thrown, or error returned)
- * @type int $retry_state
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type string $new_execution_run_id
- * If another run is started by cron or retry, this contains the new run id.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Serialized result of workflow failure (ex: An exception thrown, or error returned)
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Serialized result of workflow failure (ex: An exception thrown, or error returned)
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 1;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 2;
- * @return int
- */
- public function getRetryState()
- {
- return $this->retry_state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 2;
- * @param int $var
- * @return $this
- */
- public function setRetryState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\RetryState::class);
- $this->retry_state = $var;
-
- return $this;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * If another run is started by cron or retry, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 4;
- * @return string
- */
- public function getNewExecutionRunId()
- {
- return $this->new_execution_run_id;
- }
-
- /**
- * If another run is started by cron or retry, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 4;
- * @param string $var
- * @return $this
- */
- public function setNewExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->new_execution_run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionSignaledEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionSignaledEventAttributes.php
deleted file mode 100644
index a9330811e..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionSignaledEventAttributes.php
+++ /dev/null
@@ -1,225 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionSignaledEventAttributes
- */
-class WorkflowExecutionSignaledEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The name/type of the signal to fire
- *
- * Generated from protobuf field string signal_name = 1;
- */
- protected $signal_name = '';
- /**
- * Will be deserialized and provided as argument(s) to the signal handler
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 2;
- */
- protected $input = null;
- /**
- * id of the worker/client who sent this signal
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Headers that were passed by the sender of the signal and copied by temporal
- * server into the workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 4;
- */
- protected $header = null;
- /**
- * Indicates the signal did not generate a new workflow task when received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 5;
- */
- protected $skip_generate_workflow_task = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $signal_name
- * The name/type of the signal to fire
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Will be deserialized and provided as argument(s) to the signal handler
- * @type string $identity
- * id of the worker/client who sent this signal
- * @type \Temporal\Api\Common\V1\Header $header
- * Headers that were passed by the sender of the signal and copied by temporal
- * server into the workflow task.
- * @type bool $skip_generate_workflow_task
- * Indicates the signal did not generate a new workflow task when received.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The name/type of the signal to fire
- *
- * Generated from protobuf field string signal_name = 1;
- * @return string
- */
- public function getSignalName()
- {
- return $this->signal_name;
- }
-
- /**
- * The name/type of the signal to fire
- *
- * Generated from protobuf field string signal_name = 1;
- * @param string $var
- * @return $this
- */
- public function setSignalName($var)
- {
- GPBUtil::checkString($var, True);
- $this->signal_name = $var;
-
- return $this;
- }
-
- /**
- * Will be deserialized and provided as argument(s) to the signal handler
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Will be deserialized and provided as argument(s) to the signal handler
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * id of the worker/client who sent this signal
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * id of the worker/client who sent this signal
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Headers that were passed by the sender of the signal and copied by temporal
- * server into the workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 4;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Headers that were passed by the sender of the signal and copied by temporal
- * server into the workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 4;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Indicates the signal did not generate a new workflow task when received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 5;
- * @return bool
- */
- public function getSkipGenerateWorkflowTask()
- {
- return $this->skip_generate_workflow_task;
- }
-
- /**
- * Indicates the signal did not generate a new workflow task when received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 5;
- * @param bool $var
- * @return $this
- */
- public function setSkipGenerateWorkflowTask($var)
- {
- GPBUtil::checkBool($var);
- $this->skip_generate_workflow_task = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionStartedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionStartedEventAttributes.php
deleted file mode 100644
index 2cf00c8a9..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionStartedEventAttributes.php
+++ /dev/null
@@ -1,1152 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionStartedEventAttributes
- */
-class WorkflowExecutionStartedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 1;
- */
- protected $workflow_type = null;
- /**
- * If this workflow is a child, the namespace our parent lives in.
- * SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
- *
- * Generated from protobuf field string parent_workflow_namespace = 2;
- */
- protected $parent_workflow_namespace = '';
- /**
- * Generated from protobuf field string parent_workflow_namespace_id = 27;
- */
- protected $parent_workflow_namespace_id = '';
- /**
- * Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
- * If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
- */
- protected $parent_workflow_execution = null;
- /**
- * EventID of the child execution initiated event in parent workflow
- *
- * Generated from protobuf field int64 parent_initiated_event_id = 4;
- */
- protected $parent_initiated_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 5;
- */
- protected $task_queue = null;
- /**
- * SDK will deserialize this and provide it as arguments to the workflow function
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- */
- protected $input = null;
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 7 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_timeout = null;
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 8 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 9 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_task_timeout = null;
- /**
- * Run id of the previous workflow which continued-as-new or retired or cron executed into this
- * workflow.
- *
- * Generated from protobuf field string continued_execution_run_id = 10;
- */
- protected $continued_execution_run_id = '';
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 11;
- */
- protected $initiator = 0;
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure continued_failure = 12;
- */
- protected $continued_failure = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 13;
- */
- protected $last_completion_result = null;
- /**
- * This is the run id when the WorkflowExecutionStarted event was written.
- * A workflow reset changes the execution run_id, but preserves this field.
- *
- * Generated from protobuf field string original_execution_run_id = 14;
- */
- protected $original_execution_run_id = '';
- /**
- * Identity of the client who requested this execution
- *
- * Generated from protobuf field string identity = 15;
- */
- protected $identity = '';
- /**
- * This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
- * Used to identify a chain.
- *
- * Generated from protobuf field string first_execution_run_id = 16;
- */
- protected $first_execution_run_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 17;
- */
- protected $retry_policy = null;
- /**
- * Starting at 1, the number of times we have tried to execute this workflow
- *
- * Generated from protobuf field int32 attempt = 18;
- */
- protected $attempt = 0;
- /**
- * The absolute time at which the workflow will be timed out.
- * This is passed without change to the next run/retry of a workflow.
- *
- * Generated from protobuf field .google.protobuf.Timestamp workflow_execution_expiration_time = 19 [(.gogoproto.stdtime) = true];
- */
- protected $workflow_execution_expiration_time = null;
- /**
- * If this workflow runs on a cron schedule, it will appear here
- *
- * Generated from protobuf field string cron_schedule = 20;
- */
- protected $cron_schedule = '';
- /**
- * For a cron workflow, this contains the amount of time between when this iteration of
- * the cron workflow was scheduled and when it should run next per its cron_schedule.
- *
- * Generated from protobuf field .google.protobuf.Duration first_workflow_task_backoff = 21 [(.gogoproto.stdduration) = true];
- */
- protected $first_workflow_task_backoff = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 22;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 23;
- */
- protected $search_attributes = null;
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.ResetPoints prev_auto_reset_points = 24;
- */
- protected $prev_auto_reset_points = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 25;
- */
- protected $header = null;
- /**
- * Version of the child execution initiated event in parent workflow
- * It should be used together with parent_initiated_event_id to identify
- * a child initiated event for global namespace
- *
- * Generated from protobuf field int64 parent_initiated_event_version = 26;
- */
- protected $parent_initiated_event_version = 0;
- /**
- * This field is new in 1.21.
- *
- * Generated from protobuf field string workflow_id = 28;
- */
- protected $workflow_id = '';
- /**
- * If this workflow intends to use anything other than the current overall default version for
- * the queue, then we include it here.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
- */
- protected $source_version_stamp = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type string $parent_workflow_namespace
- * If this workflow is a child, the namespace our parent lives in.
- * SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
- * @type string $parent_workflow_namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $parent_workflow_execution
- * Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
- * If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
- * @type int|string $parent_initiated_event_id
- * EventID of the child execution initiated event in parent workflow
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Payloads $input
- * SDK will deserialize this and provide it as arguments to the workflow function
- * @type \Google\Protobuf\Duration $workflow_execution_timeout
- * Total workflow execution timeout including retries and continue as new.
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * Timeout of a single workflow run.
- * @type \Google\Protobuf\Duration $workflow_task_timeout
- * Timeout of a single workflow task.
- * @type string $continued_execution_run_id
- * Run id of the previous workflow which continued-as-new or retired or cron executed into this
- * workflow.
- * @type int $initiator
- * @type \Temporal\Api\Failure\V1\Failure $continued_failure
- * @type \Temporal\Api\Common\V1\Payloads $last_completion_result
- * @type string $original_execution_run_id
- * This is the run id when the WorkflowExecutionStarted event was written.
- * A workflow reset changes the execution run_id, but preserves this field.
- * @type string $identity
- * Identity of the client who requested this execution
- * @type string $first_execution_run_id
- * This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
- * Used to identify a chain.
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * @type int $attempt
- * Starting at 1, the number of times we have tried to execute this workflow
- * @type \Google\Protobuf\Timestamp $workflow_execution_expiration_time
- * The absolute time at which the workflow will be timed out.
- * This is passed without change to the next run/retry of a workflow.
- * @type string $cron_schedule
- * If this workflow runs on a cron schedule, it will appear here
- * @type \Google\Protobuf\Duration $first_workflow_task_backoff
- * For a cron workflow, this contains the amount of time between when this iteration of
- * the cron workflow was scheduled and when it should run next per its cron_schedule.
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type \Temporal\Api\Workflow\V1\ResetPoints $prev_auto_reset_points
- * @type \Temporal\Api\Common\V1\Header $header
- * @type int|string $parent_initiated_event_version
- * Version of the child execution initiated event in parent workflow
- * It should be used together with parent_initiated_event_id to identify
- * a child initiated event for global namespace
- * @type string $workflow_id
- * This field is new in 1.21.
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $source_version_stamp
- * If this workflow intends to use anything other than the current overall default version for
- * the queue, then we include it here.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 1;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 1;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * If this workflow is a child, the namespace our parent lives in.
- * SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
- *
- * Generated from protobuf field string parent_workflow_namespace = 2;
- * @return string
- */
- public function getParentWorkflowNamespace()
- {
- return $this->parent_workflow_namespace;
- }
-
- /**
- * If this workflow is a child, the namespace our parent lives in.
- * SDKs and UI tools should use `parent_workflow_namespace` field but server must use `parent_workflow_namespace_id` only.
- *
- * Generated from protobuf field string parent_workflow_namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setParentWorkflowNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent_workflow_namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string parent_workflow_namespace_id = 27;
- * @return string
- */
- public function getParentWorkflowNamespaceId()
- {
- return $this->parent_workflow_namespace_id;
- }
-
- /**
- * Generated from protobuf field string parent_workflow_namespace_id = 27;
- * @param string $var
- * @return $this
- */
- public function setParentWorkflowNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent_workflow_namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
- * If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getParentWorkflowExecution()
- {
- return $this->parent_workflow_execution;
- }
-
- public function hasParentWorkflowExecution()
- {
- return isset($this->parent_workflow_execution);
- }
-
- public function clearParentWorkflowExecution()
- {
- unset($this->parent_workflow_execution);
- }
-
- /**
- * Contains information about parent workflow execution that initiated the child workflow these attributes belong to.
- * If the workflow these attributes belong to is not a child workflow of any other execution, this field will not be populated.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution parent_workflow_execution = 3;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setParentWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->parent_workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * EventID of the child execution initiated event in parent workflow
- *
- * Generated from protobuf field int64 parent_initiated_event_id = 4;
- * @return int|string
- */
- public function getParentInitiatedEventId()
- {
- return $this->parent_initiated_event_id;
- }
-
- /**
- * EventID of the child execution initiated event in parent workflow
- *
- * Generated from protobuf field int64 parent_initiated_event_id = 4;
- * @param int|string $var
- * @return $this
- */
- public function setParentInitiatedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->parent_initiated_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 5;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 5;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * SDK will deserialize this and provide it as arguments to the workflow function
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * SDK will deserialize this and provide it as arguments to the workflow function
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 6;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 7 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionTimeout()
- {
- return $this->workflow_execution_timeout;
- }
-
- public function hasWorkflowExecutionTimeout()
- {
- return isset($this->workflow_execution_timeout);
- }
-
- public function clearWorkflowExecutionTimeout()
- {
- unset($this->workflow_execution_timeout);
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 7 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 8 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 8 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 9 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowTaskTimeout()
- {
- return $this->workflow_task_timeout;
- }
-
- public function hasWorkflowTaskTimeout()
- {
- return isset($this->workflow_task_timeout);
- }
-
- public function clearWorkflowTaskTimeout()
- {
- unset($this->workflow_task_timeout);
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 9 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * Run id of the previous workflow which continued-as-new or retired or cron executed into this
- * workflow.
- *
- * Generated from protobuf field string continued_execution_run_id = 10;
- * @return string
- */
- public function getContinuedExecutionRunId()
- {
- return $this->continued_execution_run_id;
- }
-
- /**
- * Run id of the previous workflow which continued-as-new or retired or cron executed into this
- * workflow.
- *
- * Generated from protobuf field string continued_execution_run_id = 10;
- * @param string $var
- * @return $this
- */
- public function setContinuedExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->continued_execution_run_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 11;
- * @return int
- */
- public function getInitiator()
- {
- return $this->initiator;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ContinueAsNewInitiator initiator = 11;
- * @param int $var
- * @return $this
- */
- public function setInitiator($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ContinueAsNewInitiator::class);
- $this->initiator = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure continued_failure = 12;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getContinuedFailure()
- {
- return $this->continued_failure;
- }
-
- public function hasContinuedFailure()
- {
- return isset($this->continued_failure);
- }
-
- public function clearContinuedFailure()
- {
- unset($this->continued_failure);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure continued_failure = 12;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setContinuedFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->continued_failure = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 13;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getLastCompletionResult()
- {
- return $this->last_completion_result;
- }
-
- public function hasLastCompletionResult()
- {
- return isset($this->last_completion_result);
- }
-
- public function clearLastCompletionResult()
- {
- unset($this->last_completion_result);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 13;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setLastCompletionResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->last_completion_result = $var;
-
- return $this;
- }
-
- /**
- * This is the run id when the WorkflowExecutionStarted event was written.
- * A workflow reset changes the execution run_id, but preserves this field.
- *
- * Generated from protobuf field string original_execution_run_id = 14;
- * @return string
- */
- public function getOriginalExecutionRunId()
- {
- return $this->original_execution_run_id;
- }
-
- /**
- * This is the run id when the WorkflowExecutionStarted event was written.
- * A workflow reset changes the execution run_id, but preserves this field.
- *
- * Generated from protobuf field string original_execution_run_id = 14;
- * @param string $var
- * @return $this
- */
- public function setOriginalExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->original_execution_run_id = $var;
-
- return $this;
- }
-
- /**
- * Identity of the client who requested this execution
- *
- * Generated from protobuf field string identity = 15;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * Identity of the client who requested this execution
- *
- * Generated from protobuf field string identity = 15;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
- * Used to identify a chain.
- *
- * Generated from protobuf field string first_execution_run_id = 16;
- * @return string
- */
- public function getFirstExecutionRunId()
- {
- return $this->first_execution_run_id;
- }
-
- /**
- * This is the very first runId along the chain of ContinueAsNew, Retry, Cron and Reset.
- * Used to identify a chain.
- *
- * Generated from protobuf field string first_execution_run_id = 16;
- * @param string $var
- * @return $this
- */
- public function setFirstExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->first_execution_run_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 17;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 17;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * Starting at 1, the number of times we have tried to execute this workflow
- *
- * Generated from protobuf field int32 attempt = 18;
- * @return int
- */
- public function getAttempt()
- {
- return $this->attempt;
- }
-
- /**
- * Starting at 1, the number of times we have tried to execute this workflow
- *
- * Generated from protobuf field int32 attempt = 18;
- * @param int $var
- * @return $this
- */
- public function setAttempt($var)
- {
- GPBUtil::checkInt32($var);
- $this->attempt = $var;
-
- return $this;
- }
-
- /**
- * The absolute time at which the workflow will be timed out.
- * This is passed without change to the next run/retry of a workflow.
- *
- * Generated from protobuf field .google.protobuf.Timestamp workflow_execution_expiration_time = 19 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getWorkflowExecutionExpirationTime()
- {
- return $this->workflow_execution_expiration_time;
- }
-
- public function hasWorkflowExecutionExpirationTime()
- {
- return isset($this->workflow_execution_expiration_time);
- }
-
- public function clearWorkflowExecutionExpirationTime()
- {
- unset($this->workflow_execution_expiration_time);
- }
-
- /**
- * The absolute time at which the workflow will be timed out.
- * This is passed without change to the next run/retry of a workflow.
- *
- * Generated from protobuf field .google.protobuf.Timestamp workflow_execution_expiration_time = 19 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setWorkflowExecutionExpirationTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->workflow_execution_expiration_time = $var;
-
- return $this;
- }
-
- /**
- * If this workflow runs on a cron schedule, it will appear here
- *
- * Generated from protobuf field string cron_schedule = 20;
- * @return string
- */
- public function getCronSchedule()
- {
- return $this->cron_schedule;
- }
-
- /**
- * If this workflow runs on a cron schedule, it will appear here
- *
- * Generated from protobuf field string cron_schedule = 20;
- * @param string $var
- * @return $this
- */
- public function setCronSchedule($var)
- {
- GPBUtil::checkString($var, True);
- $this->cron_schedule = $var;
-
- return $this;
- }
-
- /**
- * For a cron workflow, this contains the amount of time between when this iteration of
- * the cron workflow was scheduled and when it should run next per its cron_schedule.
- *
- * Generated from protobuf field .google.protobuf.Duration first_workflow_task_backoff = 21 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getFirstWorkflowTaskBackoff()
- {
- return $this->first_workflow_task_backoff;
- }
-
- public function hasFirstWorkflowTaskBackoff()
- {
- return isset($this->first_workflow_task_backoff);
- }
-
- public function clearFirstWorkflowTaskBackoff()
- {
- unset($this->first_workflow_task_backoff);
- }
-
- /**
- * For a cron workflow, this contains the amount of time between when this iteration of
- * the cron workflow was scheduled and when it should run next per its cron_schedule.
- *
- * Generated from protobuf field .google.protobuf.Duration first_workflow_task_backoff = 21 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setFirstWorkflowTaskBackoff($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->first_workflow_task_backoff = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 22;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 22;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 23;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 23;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.ResetPoints prev_auto_reset_points = 24;
- * @return \Temporal\Api\Workflow\V1\ResetPoints|null
- */
- public function getPrevAutoResetPoints()
- {
- return $this->prev_auto_reset_points;
- }
-
- public function hasPrevAutoResetPoints()
- {
- return isset($this->prev_auto_reset_points);
- }
-
- public function clearPrevAutoResetPoints()
- {
- unset($this->prev_auto_reset_points);
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.ResetPoints prev_auto_reset_points = 24;
- * @param \Temporal\Api\Workflow\V1\ResetPoints $var
- * @return $this
- */
- public function setPrevAutoResetPoints($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\ResetPoints::class);
- $this->prev_auto_reset_points = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 25;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 25;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Version of the child execution initiated event in parent workflow
- * It should be used together with parent_initiated_event_id to identify
- * a child initiated event for global namespace
- *
- * Generated from protobuf field int64 parent_initiated_event_version = 26;
- * @return int|string
- */
- public function getParentInitiatedEventVersion()
- {
- return $this->parent_initiated_event_version;
- }
-
- /**
- * Version of the child execution initiated event in parent workflow
- * It should be used together with parent_initiated_event_id to identify
- * a child initiated event for global namespace
- *
- * Generated from protobuf field int64 parent_initiated_event_version = 26;
- * @param int|string $var
- * @return $this
- */
- public function setParentInitiatedEventVersion($var)
- {
- GPBUtil::checkInt64($var);
- $this->parent_initiated_event_version = $var;
-
- return $this;
- }
-
- /**
- * This field is new in 1.21.
- *
- * Generated from protobuf field string workflow_id = 28;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * This field is new in 1.21.
- *
- * Generated from protobuf field string workflow_id = 28;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * If this workflow intends to use anything other than the current overall default version for
- * the queue, then we include it here.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getSourceVersionStamp()
- {
- return $this->source_version_stamp;
- }
-
- public function hasSourceVersionStamp()
- {
- return isset($this->source_version_stamp);
- }
-
- public function clearSourceVersionStamp()
- {
- unset($this->source_version_stamp);
- }
-
- /**
- * If this workflow intends to use anything other than the current overall default version for
- * the queue, then we include it here.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp source_version_stamp = 29;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setSourceVersionStamp($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->source_version_stamp = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionTerminatedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionTerminatedEventAttributes.php
deleted file mode 100644
index 43a79fff9..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionTerminatedEventAttributes.php
+++ /dev/null
@@ -1,136 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionTerminatedEventAttributes
- */
-class WorkflowExecutionTerminatedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * User/client provided reason for termination
- *
- * Generated from protobuf field string reason = 1;
- */
- protected $reason = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- */
- protected $details = null;
- /**
- * id of the client who requested termination
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $reason
- * User/client provided reason for termination
- * @type \Temporal\Api\Common\V1\Payloads $details
- * @type string $identity
- * id of the client who requested termination
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * User/client provided reason for termination
- *
- * Generated from protobuf field string reason = 1;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * User/client provided reason for termination
- *
- * Generated from protobuf field string reason = 1;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * id of the client who requested termination
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * id of the client who requested termination
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionTimedOutEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionTimedOutEventAttributes.php
deleted file mode 100644
index 879830c98..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionTimedOutEventAttributes.php
+++ /dev/null
@@ -1,92 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionTimedOutEventAttributes
- */
-class WorkflowExecutionTimedOutEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 1;
- */
- protected $retry_state = 0;
- /**
- * If another run is started by cron or retry, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 2;
- */
- protected $new_execution_run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $retry_state
- * @type string $new_execution_run_id
- * If another run is started by cron or retry, this contains the new run id.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 1;
- * @return int
- */
- public function getRetryState()
- {
- return $this->retry_state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.RetryState retry_state = 1;
- * @param int $var
- * @return $this
- */
- public function setRetryState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\RetryState::class);
- $this->retry_state = $var;
-
- return $this;
- }
-
- /**
- * If another run is started by cron or retry, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 2;
- * @return string
- */
- public function getNewExecutionRunId()
- {
- return $this->new_execution_run_id;
- }
-
- /**
- * If another run is started by cron or retry, this contains the new run id.
- *
- * Generated from protobuf field string new_execution_run_id = 2;
- * @param string $var
- * @return $this
- */
- public function setNewExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->new_execution_run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateAcceptedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateAcceptedEventAttributes.php
deleted file mode 100644
index e10334a24..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateAcceptedEventAttributes.php
+++ /dev/null
@@ -1,189 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionUpdateAcceptedEventAttributes
- */
-class WorkflowExecutionUpdateAcceptedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The instance ID of the update protocol that generated this event.
- *
- * Generated from protobuf field string protocol_instance_id = 1;
- */
- protected $protocol_instance_id = '';
- /**
- * The message ID of the original request message that initiated this
- * update. Needed so that the worker can recreate and deliver that same
- * message as part of replay.
- *
- * Generated from protobuf field string accepted_request_message_id = 2;
- */
- protected $accepted_request_message_id = '';
- /**
- * The event ID used to sequence the original request message.
- *
- * Generated from protobuf field int64 accepted_request_sequencing_event_id = 3;
- */
- protected $accepted_request_sequencing_event_id = 0;
- /**
- * The message payload of the original request message that initiated this
- * update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request accepted_request = 4;
- */
- protected $accepted_request = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $protocol_instance_id
- * The instance ID of the update protocol that generated this event.
- * @type string $accepted_request_message_id
- * The message ID of the original request message that initiated this
- * update. Needed so that the worker can recreate and deliver that same
- * message as part of replay.
- * @type int|string $accepted_request_sequencing_event_id
- * The event ID used to sequence the original request message.
- * @type \Temporal\Api\Update\V1\Request $accepted_request
- * The message payload of the original request message that initiated this
- * update.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The instance ID of the update protocol that generated this event.
- *
- * Generated from protobuf field string protocol_instance_id = 1;
- * @return string
- */
- public function getProtocolInstanceId()
- {
- return $this->protocol_instance_id;
- }
-
- /**
- * The instance ID of the update protocol that generated this event.
- *
- * Generated from protobuf field string protocol_instance_id = 1;
- * @param string $var
- * @return $this
- */
- public function setProtocolInstanceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->protocol_instance_id = $var;
-
- return $this;
- }
-
- /**
- * The message ID of the original request message that initiated this
- * update. Needed so that the worker can recreate and deliver that same
- * message as part of replay.
- *
- * Generated from protobuf field string accepted_request_message_id = 2;
- * @return string
- */
- public function getAcceptedRequestMessageId()
- {
- return $this->accepted_request_message_id;
- }
-
- /**
- * The message ID of the original request message that initiated this
- * update. Needed so that the worker can recreate and deliver that same
- * message as part of replay.
- *
- * Generated from protobuf field string accepted_request_message_id = 2;
- * @param string $var
- * @return $this
- */
- public function setAcceptedRequestMessageId($var)
- {
- GPBUtil::checkString($var, True);
- $this->accepted_request_message_id = $var;
-
- return $this;
- }
-
- /**
- * The event ID used to sequence the original request message.
- *
- * Generated from protobuf field int64 accepted_request_sequencing_event_id = 3;
- * @return int|string
- */
- public function getAcceptedRequestSequencingEventId()
- {
- return $this->accepted_request_sequencing_event_id;
- }
-
- /**
- * The event ID used to sequence the original request message.
- *
- * Generated from protobuf field int64 accepted_request_sequencing_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setAcceptedRequestSequencingEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->accepted_request_sequencing_event_id = $var;
-
- return $this;
- }
-
- /**
- * The message payload of the original request message that initiated this
- * update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request accepted_request = 4;
- * @return \Temporal\Api\Update\V1\Request|null
- */
- public function getAcceptedRequest()
- {
- return $this->accepted_request;
- }
-
- public function hasAcceptedRequest()
- {
- return isset($this->accepted_request);
- }
-
- public function clearAcceptedRequest()
- {
- unset($this->accepted_request);
- }
-
- /**
- * The message payload of the original request message that initiated this
- * update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request accepted_request = 4;
- * @param \Temporal\Api\Update\V1\Request $var
- * @return $this
- */
- public function setAcceptedRequest($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Request::class);
- $this->accepted_request = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateCompletedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateCompletedEventAttributes.php
deleted file mode 100644
index 3f49f6d27..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateCompletedEventAttributes.php
+++ /dev/null
@@ -1,153 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionUpdateCompletedEventAttributes
- */
-class WorkflowExecutionUpdateCompletedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The metadata about this update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- */
- protected $meta = null;
- /**
- * The event ID indicating the acceptance of this update.
- *
- * Generated from protobuf field int64 accepted_event_id = 3;
- */
- protected $accepted_event_id = 0;
- /**
- * The outcome of executing the workflow update function.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- */
- protected $outcome = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Update\V1\Meta $meta
- * The metadata about this update.
- * @type int|string $accepted_event_id
- * The event ID indicating the acceptance of this update.
- * @type \Temporal\Api\Update\V1\Outcome $outcome
- * The outcome of executing the workflow update function.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The metadata about this update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- * @return \Temporal\Api\Update\V1\Meta|null
- */
- public function getMeta()
- {
- return $this->meta;
- }
-
- public function hasMeta()
- {
- return isset($this->meta);
- }
-
- public function clearMeta()
- {
- unset($this->meta);
- }
-
- /**
- * The metadata about this update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- * @param \Temporal\Api\Update\V1\Meta $var
- * @return $this
- */
- public function setMeta($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Meta::class);
- $this->meta = $var;
-
- return $this;
- }
-
- /**
- * The event ID indicating the acceptance of this update.
- *
- * Generated from protobuf field int64 accepted_event_id = 3;
- * @return int|string
- */
- public function getAcceptedEventId()
- {
- return $this->accepted_event_id;
- }
-
- /**
- * The event ID indicating the acceptance of this update.
- *
- * Generated from protobuf field int64 accepted_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setAcceptedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->accepted_event_id = $var;
-
- return $this;
- }
-
- /**
- * The outcome of executing the workflow update function.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- * @return \Temporal\Api\Update\V1\Outcome|null
- */
- public function getOutcome()
- {
- return $this->outcome;
- }
-
- public function hasOutcome()
- {
- return isset($this->outcome);
- }
-
- public function clearOutcome()
- {
- unset($this->outcome);
- }
-
- /**
- * The outcome of executing the workflow update function.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- * @param \Temporal\Api\Update\V1\Outcome $var
- * @return $this
- */
- public function setOutcome($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Outcome::class);
- $this->outcome = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateRejectedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateRejectedEventAttributes.php
deleted file mode 100644
index 1cd988c72..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowExecutionUpdateRejectedEventAttributes.php
+++ /dev/null
@@ -1,233 +0,0 @@
-temporal.api.history.v1.WorkflowExecutionUpdateRejectedEventAttributes
- */
-class WorkflowExecutionUpdateRejectedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The instance ID of the update protocol that generated this event.
- *
- * Generated from protobuf field string protocol_instance_id = 1;
- */
- protected $protocol_instance_id = '';
- /**
- * The message ID of the original request message that initiated this
- * update. Needed so that the worker can recreate and deliver that same
- * message as part of replay.
- *
- * Generated from protobuf field string rejected_request_message_id = 2;
- */
- protected $rejected_request_message_id = '';
- /**
- * The event ID used to sequence the original request message.
- *
- * Generated from protobuf field int64 rejected_request_sequencing_event_id = 3;
- */
- protected $rejected_request_sequencing_event_id = 0;
- /**
- * The message payload of the original request message that initiated this
- * update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request rejected_request = 4;
- */
- protected $rejected_request = null;
- /**
- * The cause of rejection.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- */
- protected $failure = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $protocol_instance_id
- * The instance ID of the update protocol that generated this event.
- * @type string $rejected_request_message_id
- * The message ID of the original request message that initiated this
- * update. Needed so that the worker can recreate and deliver that same
- * message as part of replay.
- * @type int|string $rejected_request_sequencing_event_id
- * The event ID used to sequence the original request message.
- * @type \Temporal\Api\Update\V1\Request $rejected_request
- * The message payload of the original request message that initiated this
- * update.
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * The cause of rejection.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The instance ID of the update protocol that generated this event.
- *
- * Generated from protobuf field string protocol_instance_id = 1;
- * @return string
- */
- public function getProtocolInstanceId()
- {
- return $this->protocol_instance_id;
- }
-
- /**
- * The instance ID of the update protocol that generated this event.
- *
- * Generated from protobuf field string protocol_instance_id = 1;
- * @param string $var
- * @return $this
- */
- public function setProtocolInstanceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->protocol_instance_id = $var;
-
- return $this;
- }
-
- /**
- * The message ID of the original request message that initiated this
- * update. Needed so that the worker can recreate and deliver that same
- * message as part of replay.
- *
- * Generated from protobuf field string rejected_request_message_id = 2;
- * @return string
- */
- public function getRejectedRequestMessageId()
- {
- return $this->rejected_request_message_id;
- }
-
- /**
- * The message ID of the original request message that initiated this
- * update. Needed so that the worker can recreate and deliver that same
- * message as part of replay.
- *
- * Generated from protobuf field string rejected_request_message_id = 2;
- * @param string $var
- * @return $this
- */
- public function setRejectedRequestMessageId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rejected_request_message_id = $var;
-
- return $this;
- }
-
- /**
- * The event ID used to sequence the original request message.
- *
- * Generated from protobuf field int64 rejected_request_sequencing_event_id = 3;
- * @return int|string
- */
- public function getRejectedRequestSequencingEventId()
- {
- return $this->rejected_request_sequencing_event_id;
- }
-
- /**
- * The event ID used to sequence the original request message.
- *
- * Generated from protobuf field int64 rejected_request_sequencing_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setRejectedRequestSequencingEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->rejected_request_sequencing_event_id = $var;
-
- return $this;
- }
-
- /**
- * The message payload of the original request message that initiated this
- * update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request rejected_request = 4;
- * @return \Temporal\Api\Update\V1\Request|null
- */
- public function getRejectedRequest()
- {
- return $this->rejected_request;
- }
-
- public function hasRejectedRequest()
- {
- return isset($this->rejected_request);
- }
-
- public function clearRejectedRequest()
- {
- unset($this->rejected_request);
- }
-
- /**
- * The message payload of the original request message that initiated this
- * update.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request rejected_request = 4;
- * @param \Temporal\Api\Update\V1\Request $var
- * @return $this
- */
- public function setRejectedRequest($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Request::class);
- $this->rejected_request = $var;
-
- return $this;
- }
-
- /**
- * The cause of rejection.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * The cause of rejection.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowPropertiesModifiedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowPropertiesModifiedEventAttributes.php
deleted file mode 100644
index d658a294d..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowPropertiesModifiedEventAttributes.php
+++ /dev/null
@@ -1,117 +0,0 @@
-temporal.api.history.v1.WorkflowPropertiesModifiedEventAttributes
- */
-class WorkflowPropertiesModifiedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- */
- protected $workflow_task_completed_event_id = 0;
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 2;
- */
- protected $upserted_memo = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $workflow_task_completed_event_id
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- * @type \Temporal\Api\Common\V1\Memo $upserted_memo
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @return int|string
- */
- public function getWorkflowTaskCompletedEventId()
- {
- return $this->workflow_task_completed_event_id;
- }
-
- /**
- * The `WORKFLOW_TASK_COMPLETED` event which this command was reported with
- *
- * Generated from protobuf field int64 workflow_task_completed_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskCompletedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_completed_event_id = $var;
-
- return $this;
- }
-
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 2;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getUpsertedMemo()
- {
- return $this->upserted_memo;
- }
-
- public function hasUpsertedMemo()
- {
- return isset($this->upserted_memo);
- }
-
- public function clearUpsertedMemo()
- {
- unset($this->upserted_memo);
- }
-
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 2;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setUpsertedMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->upserted_memo = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowPropertiesModifiedExternallyEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowPropertiesModifiedExternallyEventAttributes.php
deleted file mode 100644
index 7289f27a0..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowPropertiesModifiedExternallyEventAttributes.php
+++ /dev/null
@@ -1,253 +0,0 @@
-temporal.api.history.v1.WorkflowPropertiesModifiedExternallyEventAttributes
- */
-class WorkflowPropertiesModifiedExternallyEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * If set to a nonempty string, future workflow tasks for this workflow shall be dispatched on
- * the provided queue.
- *
- * Generated from protobuf field string new_task_queue = 1;
- */
- protected $new_task_queue = '';
- /**
- * If set, update the workflow task timeout to this value.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_task_timeout = 2 [(.gogoproto.stdduration) = true];
- */
- protected $new_workflow_task_timeout = null;
- /**
- * If set, update the workflow run timeout to this value. May be set to 0 for no timeout.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_run_timeout = 3 [(.gogoproto.stdduration) = true];
- */
- protected $new_workflow_run_timeout = null;
- /**
- * If set, update the workflow execution timeout to this value. May be set to 0 for no timeout.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_execution_timeout = 4 [(.gogoproto.stdduration) = true];
- */
- protected $new_workflow_execution_timeout = null;
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 5;
- */
- protected $upserted_memo = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $new_task_queue
- * If set to a nonempty string, future workflow tasks for this workflow shall be dispatched on
- * the provided queue.
- * @type \Google\Protobuf\Duration $new_workflow_task_timeout
- * If set, update the workflow task timeout to this value.
- * @type \Google\Protobuf\Duration $new_workflow_run_timeout
- * If set, update the workflow run timeout to this value. May be set to 0 for no timeout.
- * @type \Google\Protobuf\Duration $new_workflow_execution_timeout
- * If set, update the workflow execution timeout to this value. May be set to 0 for no timeout.
- * @type \Temporal\Api\Common\V1\Memo $upserted_memo
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * If set to a nonempty string, future workflow tasks for this workflow shall be dispatched on
- * the provided queue.
- *
- * Generated from protobuf field string new_task_queue = 1;
- * @return string
- */
- public function getNewTaskQueue()
- {
- return $this->new_task_queue;
- }
-
- /**
- * If set to a nonempty string, future workflow tasks for this workflow shall be dispatched on
- * the provided queue.
- *
- * Generated from protobuf field string new_task_queue = 1;
- * @param string $var
- * @return $this
- */
- public function setNewTaskQueue($var)
- {
- GPBUtil::checkString($var, True);
- $this->new_task_queue = $var;
-
- return $this;
- }
-
- /**
- * If set, update the workflow task timeout to this value.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_task_timeout = 2 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getNewWorkflowTaskTimeout()
- {
- return $this->new_workflow_task_timeout;
- }
-
- public function hasNewWorkflowTaskTimeout()
- {
- return isset($this->new_workflow_task_timeout);
- }
-
- public function clearNewWorkflowTaskTimeout()
- {
- unset($this->new_workflow_task_timeout);
- }
-
- /**
- * If set, update the workflow task timeout to this value.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_task_timeout = 2 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setNewWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->new_workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * If set, update the workflow run timeout to this value. May be set to 0 for no timeout.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_run_timeout = 3 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getNewWorkflowRunTimeout()
- {
- return $this->new_workflow_run_timeout;
- }
-
- public function hasNewWorkflowRunTimeout()
- {
- return isset($this->new_workflow_run_timeout);
- }
-
- public function clearNewWorkflowRunTimeout()
- {
- unset($this->new_workflow_run_timeout);
- }
-
- /**
- * If set, update the workflow run timeout to this value. May be set to 0 for no timeout.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_run_timeout = 3 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setNewWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->new_workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * If set, update the workflow execution timeout to this value. May be set to 0 for no timeout.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_execution_timeout = 4 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getNewWorkflowExecutionTimeout()
- {
- return $this->new_workflow_execution_timeout;
- }
-
- public function hasNewWorkflowExecutionTimeout()
- {
- return isset($this->new_workflow_execution_timeout);
- }
-
- public function clearNewWorkflowExecutionTimeout()
- {
- unset($this->new_workflow_execution_timeout);
- }
-
- /**
- * If set, update the workflow execution timeout to this value. May be set to 0 for no timeout.
- *
- * Generated from protobuf field .google.protobuf.Duration new_workflow_execution_timeout = 4 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setNewWorkflowExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->new_workflow_execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 5;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getUpsertedMemo()
- {
- return $this->upserted_memo;
- }
-
- public function hasUpsertedMemo()
- {
- return isset($this->upserted_memo);
- }
-
- public function clearUpsertedMemo()
- {
- unset($this->upserted_memo);
- }
-
- /**
- * If set, update the workflow memo with the provided values. The values will be merged with
- * the existing memo. If the user wants to delete values, a default/empty Payload should be
- * used as the value for the key being deleted.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo upserted_memo = 5;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setUpsertedMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->upserted_memo = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowTaskCompletedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowTaskCompletedEventAttributes.php
deleted file mode 100644
index cd3f7a103..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowTaskCompletedEventAttributes.php
+++ /dev/null
@@ -1,311 +0,0 @@
-temporal.api.history.v1.WorkflowTaskCompletedEventAttributes
- */
-class WorkflowTaskCompletedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- */
- protected $started_event_id = 0;
- /**
- * Identity of the worker who completed this task
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Binary ID of the worker who completed this task
- *
- * Generated from protobuf field string binary_checksum = 4;
- */
- protected $binary_checksum = '';
- /**
- * Version info of the worker who processed this workflow task. If present, the `build_id` field
- * within is also used as `binary_checksum`, which may be omitted in that case (it may also be
- * populated to preserve compatibility).
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- */
- protected $worker_version = null;
- /**
- * Data the SDK wishes to record for itself, but server need not interpret, and does not
- * directly impact workflow state.
- *
- * Generated from protobuf field .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 6;
- */
- protected $sdk_metadata = null;
- /**
- * Local usage data sent during workflow task completion and recorded here for posterity
- *
- * Generated from protobuf field .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
- */
- protected $metering_metadata = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- * @type int|string $started_event_id
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- * @type string $identity
- * Identity of the worker who completed this task
- * @type string $binary_checksum
- * Binary ID of the worker who completed this task
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this workflow task. If present, the `build_id` field
- * within is also used as `binary_checksum`, which may be omitted in that case (it may also be
- * populated to preserve compatibility).
- * @type \Temporal\Api\Sdk\V1\WorkflowTaskCompletedMetadata $sdk_metadata
- * Data the SDK wishes to record for itself, but server need not interpret, and does not
- * directly impact workflow state.
- * @type \Temporal\Api\Common\V1\MeteringMetadata $metering_metadata
- * Local usage data sent during workflow task completion and recorded here for posterity
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Identity of the worker who completed this task
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * Identity of the worker who completed this task
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Binary ID of the worker who completed this task
- *
- * Generated from protobuf field string binary_checksum = 4;
- * @return string
- */
- public function getBinaryChecksum()
- {
- return $this->binary_checksum;
- }
-
- /**
- * Binary ID of the worker who completed this task
- *
- * Generated from protobuf field string binary_checksum = 4;
- * @param string $var
- * @return $this
- */
- public function setBinaryChecksum($var)
- {
- GPBUtil::checkString($var, True);
- $this->binary_checksum = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this workflow task. If present, the `build_id` field
- * within is also used as `binary_checksum`, which may be omitted in that case (it may also be
- * populated to preserve compatibility).
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this workflow task. If present, the `build_id` field
- * within is also used as `binary_checksum`, which may be omitted in that case (it may also be
- * populated to preserve compatibility).
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
- /**
- * Data the SDK wishes to record for itself, but server need not interpret, and does not
- * directly impact workflow state.
- *
- * Generated from protobuf field .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 6;
- * @return \Temporal\Api\Sdk\V1\WorkflowTaskCompletedMetadata|null
- */
- public function getSdkMetadata()
- {
- return $this->sdk_metadata;
- }
-
- public function hasSdkMetadata()
- {
- return isset($this->sdk_metadata);
- }
-
- public function clearSdkMetadata()
- {
- unset($this->sdk_metadata);
- }
-
- /**
- * Data the SDK wishes to record for itself, but server need not interpret, and does not
- * directly impact workflow state.
- *
- * Generated from protobuf field .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 6;
- * @param \Temporal\Api\Sdk\V1\WorkflowTaskCompletedMetadata $var
- * @return $this
- */
- public function setSdkMetadata($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Sdk\V1\WorkflowTaskCompletedMetadata::class);
- $this->sdk_metadata = $var;
-
- return $this;
- }
-
- /**
- * Local usage data sent during workflow task completion and recorded here for posterity
- *
- * Generated from protobuf field .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
- * @return \Temporal\Api\Common\V1\MeteringMetadata|null
- */
- public function getMeteringMetadata()
- {
- return $this->metering_metadata;
- }
-
- public function hasMeteringMetadata()
- {
- return isset($this->metering_metadata);
- }
-
- public function clearMeteringMetadata()
- {
- unset($this->metering_metadata);
- }
-
- /**
- * Local usage data sent during workflow task completion and recorded here for posterity
- *
- * Generated from protobuf field .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
- * @param \Temporal\Api\Common\V1\MeteringMetadata $var
- * @return $this
- */
- public function setMeteringMetadata($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\MeteringMetadata::class);
- $this->metering_metadata = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowTaskFailedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowTaskFailedEventAttributes.php
deleted file mode 100644
index 80d23dacf..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowTaskFailedEventAttributes.php
+++ /dev/null
@@ -1,396 +0,0 @@
-temporal.api.history.v1.WorkflowTaskFailedEventAttributes
- */
-class WorkflowTaskFailedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- */
- protected $started_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
- */
- protected $cause = 0;
- /**
- * The failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- */
- protected $failure = null;
- /**
- * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
- *
- * Generated from protobuf field string identity = 5;
- */
- protected $identity = '';
- /**
- * The original run id of the workflow. For reset workflow.
- *
- * Generated from protobuf field string base_run_id = 6;
- */
- protected $base_run_id = '';
- /**
- * If the workflow is being reset, the new run id.
- *
- * Generated from protobuf field string new_run_id = 7;
- */
- protected $new_run_id = '';
- /**
- * TODO: ?
- *
- * Generated from protobuf field int64 fork_event_version = 8;
- */
- protected $fork_event_version = 0;
- /**
- * DEPRECATED since 1.21 - use `worker_version` instead.
- * If a worker explicitly failed this task, its binary id
- *
- * Generated from protobuf field string binary_checksum = 9;
- */
- protected $binary_checksum = '';
- /**
- * Version info of the worker who processed this workflow task. If present, the `build_id` field
- * within is also used as `binary_checksum`, which may be omitted in that case (it may also be
- * populated to preserve compatibility).
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
- */
- protected $worker_version = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- * @type int|string $started_event_id
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- * @type int $cause
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * The failure details
- * @type string $identity
- * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
- * @type string $base_run_id
- * The original run id of the workflow. For reset workflow.
- * @type string $new_run_id
- * If the workflow is being reset, the new run id.
- * @type int|string $fork_event_version
- * TODO: ?
- * @type string $binary_checksum
- * DEPRECATED since 1.21 - use `worker_version` instead.
- * If a worker explicitly failed this task, its binary id
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this workflow task. If present, the `build_id` field
- * within is also used as `binary_checksum`, which may be omitted in that case (it may also be
- * populated to preserve compatibility).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
- * @return int
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 3;
- * @param int $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowTaskFailedCause::class);
- $this->cause = $var;
-
- return $this;
- }
-
- /**
- * The failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * The failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
- *
- * Generated from protobuf field string identity = 5;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * If a worker explicitly failed this task, it's identity. TODO: What is this set to if server fails the task?
- *
- * Generated from protobuf field string identity = 5;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * The original run id of the workflow. For reset workflow.
- *
- * Generated from protobuf field string base_run_id = 6;
- * @return string
- */
- public function getBaseRunId()
- {
- return $this->base_run_id;
- }
-
- /**
- * The original run id of the workflow. For reset workflow.
- *
- * Generated from protobuf field string base_run_id = 6;
- * @param string $var
- * @return $this
- */
- public function setBaseRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->base_run_id = $var;
-
- return $this;
- }
-
- /**
- * If the workflow is being reset, the new run id.
- *
- * Generated from protobuf field string new_run_id = 7;
- * @return string
- */
- public function getNewRunId()
- {
- return $this->new_run_id;
- }
-
- /**
- * If the workflow is being reset, the new run id.
- *
- * Generated from protobuf field string new_run_id = 7;
- * @param string $var
- * @return $this
- */
- public function setNewRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->new_run_id = $var;
-
- return $this;
- }
-
- /**
- * TODO: ?
- *
- * Generated from protobuf field int64 fork_event_version = 8;
- * @return int|string
- */
- public function getForkEventVersion()
- {
- return $this->fork_event_version;
- }
-
- /**
- * TODO: ?
- *
- * Generated from protobuf field int64 fork_event_version = 8;
- * @param int|string $var
- * @return $this
- */
- public function setForkEventVersion($var)
- {
- GPBUtil::checkInt64($var);
- $this->fork_event_version = $var;
-
- return $this;
- }
-
- /**
- * DEPRECATED since 1.21 - use `worker_version` instead.
- * If a worker explicitly failed this task, its binary id
- *
- * Generated from protobuf field string binary_checksum = 9;
- * @return string
- */
- public function getBinaryChecksum()
- {
- return $this->binary_checksum;
- }
-
- /**
- * DEPRECATED since 1.21 - use `worker_version` instead.
- * If a worker explicitly failed this task, its binary id
- *
- * Generated from protobuf field string binary_checksum = 9;
- * @param string $var
- * @return $this
- */
- public function setBinaryChecksum($var)
- {
- GPBUtil::checkString($var, True);
- $this->binary_checksum = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this workflow task. If present, the `build_id` field
- * within is also used as `binary_checksum`, which may be omitted in that case (it may also be
- * populated to preserve compatibility).
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this workflow task. If present, the `build_id` field
- * within is also used as `binary_checksum`, which may be omitted in that case (it may also be
- * populated to preserve compatibility).
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 10;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowTaskScheduledEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowTaskScheduledEventAttributes.php
deleted file mode 100644
index 71a52116e..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowTaskScheduledEventAttributes.php
+++ /dev/null
@@ -1,161 +0,0 @@
-temporal.api.history.v1.WorkflowTaskScheduledEventAttributes
- */
-class WorkflowTaskScheduledEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
- */
- protected $task_queue = null;
- /**
- * How long the worker has to process this task once receiving it before it times out
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true];
- */
- protected $start_to_close_timeout = null;
- /**
- * Starting at 1, how many attempts there have been to complete this task
- *
- * Generated from protobuf field int32 attempt = 3;
- */
- protected $attempt = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
- * @type \Google\Protobuf\Duration $start_to_close_timeout
- * How long the worker has to process this task once receiving it before it times out
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type int $attempt
- * Starting at 1, how many attempts there have been to complete this task
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * The task queue this workflow task was enqueued in, which could be a normal or sticky queue
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * How long the worker has to process this task once receiving it before it times out
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartToCloseTimeout()
- {
- return $this->start_to_close_timeout;
- }
-
- public function hasStartToCloseTimeout()
- {
- return isset($this->start_to_close_timeout);
- }
-
- public function clearStartToCloseTimeout()
- {
- unset($this->start_to_close_timeout);
- }
-
- /**
- * How long the worker has to process this task once receiving it before it times out
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 2 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartToCloseTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_to_close_timeout = $var;
-
- return $this;
- }
-
- /**
- * Starting at 1, how many attempts there have been to complete this task
- *
- * Generated from protobuf field int32 attempt = 3;
- * @return int
- */
- public function getAttempt()
- {
- return $this->attempt;
- }
-
- /**
- * Starting at 1, how many attempts there have been to complete this task
- *
- * Generated from protobuf field int32 attempt = 3;
- * @param int $var
- * @return $this
- */
- public function setAttempt($var)
- {
- GPBUtil::checkInt32($var);
- $this->attempt = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowTaskStartedEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowTaskStartedEventAttributes.php
deleted file mode 100644
index 2fc2567c5..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowTaskStartedEventAttributes.php
+++ /dev/null
@@ -1,213 +0,0 @@
-temporal.api.history.v1.WorkflowTaskStartedEventAttributes
- */
-class WorkflowTaskStartedEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
- /**
- * Identity of the worker who picked up this task
- *
- * Generated from protobuf field string identity = 2;
- */
- protected $identity = '';
- /**
- * TODO: ? Appears unused?
- *
- * Generated from protobuf field string request_id = 3;
- */
- protected $request_id = '';
- /**
- * True if this workflow should continue-as-new soon because its history size (in
- * either event count or bytes) is getting large.
- *
- * Generated from protobuf field bool suggest_continue_as_new = 4;
- */
- protected $suggest_continue_as_new = false;
- /**
- * Total history size in bytes, which the workflow might use to decide when to
- * continue-as-new regardless of the suggestion. Note that history event count is
- * just the event id of this event, so we don't include it explicitly here.
- *
- * Generated from protobuf field int64 history_size_bytes = 5;
- */
- protected $history_size_bytes = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- * @type string $identity
- * Identity of the worker who picked up this task
- * @type string $request_id
- * TODO: ? Appears unused?
- * @type bool $suggest_continue_as_new
- * True if this workflow should continue-as-new soon because its history size (in
- * either event count or bytes) is getting large.
- * @type int|string $history_size_bytes
- * Total history size in bytes, which the workflow might use to decide when to
- * continue-as-new regardless of the suggestion. Note that history event count is
- * just the event id of this event, so we don't include it explicitly here.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * Identity of the worker who picked up this task
- *
- * Generated from protobuf field string identity = 2;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * Identity of the worker who picked up this task
- *
- * Generated from protobuf field string identity = 2;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * TODO: ? Appears unused?
- *
- * Generated from protobuf field string request_id = 3;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * TODO: ? Appears unused?
- *
- * Generated from protobuf field string request_id = 3;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * True if this workflow should continue-as-new soon because its history size (in
- * either event count or bytes) is getting large.
- *
- * Generated from protobuf field bool suggest_continue_as_new = 4;
- * @return bool
- */
- public function getSuggestContinueAsNew()
- {
- return $this->suggest_continue_as_new;
- }
-
- /**
- * True if this workflow should continue-as-new soon because its history size (in
- * either event count or bytes) is getting large.
- *
- * Generated from protobuf field bool suggest_continue_as_new = 4;
- * @param bool $var
- * @return $this
- */
- public function setSuggestContinueAsNew($var)
- {
- GPBUtil::checkBool($var);
- $this->suggest_continue_as_new = $var;
-
- return $this;
- }
-
- /**
- * Total history size in bytes, which the workflow might use to decide when to
- * continue-as-new regardless of the suggestion. Note that history event count is
- * just the event id of this event, so we don't include it explicitly here.
- *
- * Generated from protobuf field int64 history_size_bytes = 5;
- * @return int|string
- */
- public function getHistorySizeBytes()
- {
- return $this->history_size_bytes;
- }
-
- /**
- * Total history size in bytes, which the workflow might use to decide when to
- * continue-as-new regardless of the suggestion. Note that history event count is
- * just the event id of this event, so we don't include it explicitly here.
- *
- * Generated from protobuf field int64 history_size_bytes = 5;
- * @param int|string $var
- * @return $this
- */
- public function setHistorySizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->history_size_bytes = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/History/V1/WorkflowTaskTimedOutEventAttributes.php b/api/v1/Temporal/Api/History/V1/WorkflowTaskTimedOutEventAttributes.php
deleted file mode 100644
index e73542e6c..000000000
--- a/api/v1/Temporal/Api/History/V1/WorkflowTaskTimedOutEventAttributes.php
+++ /dev/null
@@ -1,126 +0,0 @@
-temporal.api.history.v1.WorkflowTaskTimedOutEventAttributes
- */
-class WorkflowTaskTimedOutEventAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- */
- protected $scheduled_event_id = 0;
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- */
- protected $started_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TimeoutType timeout_type = 3;
- */
- protected $timeout_type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $scheduled_event_id
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- * @type int|string $started_event_id
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- * @type int $timeout_type
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\History\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @return int|string
- */
- public function getScheduledEventId()
- {
- return $this->scheduled_event_id;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_SCHEDULED` event this task corresponds to
- *
- * Generated from protobuf field int64 scheduled_event_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setScheduledEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->scheduled_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the `WORKFLOW_TASK_STARTED` event this task corresponds to
- *
- * Generated from protobuf field int64 started_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TimeoutType timeout_type = 3;
- * @return int
- */
- public function getTimeoutType()
- {
- return $this->timeout_type;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TimeoutType timeout_type = 3;
- * @param int $var
- * @return $this
- */
- public function setTimeoutType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\TimeoutType::class);
- $this->timeout_type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/AddOrUpdateRemoteClusterRequest.php b/api/v1/Temporal/Api/Operatorservice/V1/AddOrUpdateRemoteClusterRequest.php
deleted file mode 100644
index b3e4a9c07..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/AddOrUpdateRemoteClusterRequest.php
+++ /dev/null
@@ -1,99 +0,0 @@
-temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterRequest
- */
-class AddOrUpdateRemoteClusterRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Frontend Address is a cross cluster accessible address.
- *
- * Generated from protobuf field string frontend_address = 1;
- */
- protected $frontend_address = '';
- /**
- * Flag to enable / disable the cross cluster connection.
- *
- * Generated from protobuf field bool enable_remote_cluster_connection = 2;
- */
- protected $enable_remote_cluster_connection = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $frontend_address
- * Frontend Address is a cross cluster accessible address.
- * @type bool $enable_remote_cluster_connection
- * Flag to enable / disable the cross cluster connection.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Frontend Address is a cross cluster accessible address.
- *
- * Generated from protobuf field string frontend_address = 1;
- * @return string
- */
- public function getFrontendAddress()
- {
- return $this->frontend_address;
- }
-
- /**
- * Frontend Address is a cross cluster accessible address.
- *
- * Generated from protobuf field string frontend_address = 1;
- * @param string $var
- * @return $this
- */
- public function setFrontendAddress($var)
- {
- GPBUtil::checkString($var, True);
- $this->frontend_address = $var;
-
- return $this;
- }
-
- /**
- * Flag to enable / disable the cross cluster connection.
- *
- * Generated from protobuf field bool enable_remote_cluster_connection = 2;
- * @return bool
- */
- public function getEnableRemoteClusterConnection()
- {
- return $this->enable_remote_cluster_connection;
- }
-
- /**
- * Flag to enable / disable the cross cluster connection.
- *
- * Generated from protobuf field bool enable_remote_cluster_connection = 2;
- * @param bool $var
- * @return $this
- */
- public function setEnableRemoteClusterConnection($var)
- {
- GPBUtil::checkBool($var);
- $this->enable_remote_cluster_connection = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/AddOrUpdateRemoteClusterResponse.php b/api/v1/Temporal/Api/Operatorservice/V1/AddOrUpdateRemoteClusterResponse.php
deleted file mode 100644
index 46043d423..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/AddOrUpdateRemoteClusterResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.operatorservice.v1.AddOrUpdateRemoteClusterResponse
- */
-class AddOrUpdateRemoteClusterResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/AddSearchAttributesRequest.php b/api/v1/Temporal/Api/Operatorservice/V1/AddSearchAttributesRequest.php
deleted file mode 100644
index 47c076cd6..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/AddSearchAttributesRequest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-temporal.api.operatorservice.v1.AddSearchAttributesRequest
- */
-class AddSearchAttributesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Mapping between search attribute name and its IndexedValueType.
- *
- * Generated from protobuf field map search_attributes = 1;
- */
- private $search_attributes;
- /**
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $search_attributes
- * Mapping between search attribute name and its IndexedValueType.
- * @type string $namespace
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Mapping between search attribute name and its IndexedValueType.
- *
- * Generated from protobuf field map search_attributes = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- /**
- * Mapping between search attribute name and its IndexedValueType.
- *
- * Generated from protobuf field map search_attributes = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::ENUM, \Temporal\Api\Enums\V1\IndexedValueType::class);
- $this->search_attributes = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/AddSearchAttributesResponse.php b/api/v1/Temporal/Api/Operatorservice/V1/AddSearchAttributesResponse.php
deleted file mode 100644
index c8262c1c7..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/AddSearchAttributesResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.operatorservice.v1.AddSearchAttributesResponse
- */
-class AddSearchAttributesResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/ClusterMetadata.php b/api/v1/Temporal/Api/Operatorservice/V1/ClusterMetadata.php
deleted file mode 100644
index d56c4432b..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/ClusterMetadata.php
+++ /dev/null
@@ -1,235 +0,0 @@
-temporal.api.operatorservice.v1.ClusterMetadata
- */
-class ClusterMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Name of the cluster name.
- *
- * Generated from protobuf field string cluster_name = 1;
- */
- protected $cluster_name = '';
- /**
- * Id of the cluster.
- *
- * Generated from protobuf field string cluster_id = 2;
- */
- protected $cluster_id = '';
- /**
- * Cluster accessible address.
- *
- * Generated from protobuf field string address = 3;
- */
- protected $address = '';
- /**
- * A unique failover version across all connected clusters.
- *
- * Generated from protobuf field int64 initial_failover_version = 4;
- */
- protected $initial_failover_version = 0;
- /**
- * History service shard number.
- *
- * Generated from protobuf field int32 history_shard_count = 5;
- */
- protected $history_shard_count = 0;
- /**
- * A flag to indicate if a connection is active.
- *
- * Generated from protobuf field bool is_connection_enabled = 6;
- */
- protected $is_connection_enabled = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $cluster_name
- * Name of the cluster name.
- * @type string $cluster_id
- * Id of the cluster.
- * @type string $address
- * Cluster accessible address.
- * @type int|string $initial_failover_version
- * A unique failover version across all connected clusters.
- * @type int $history_shard_count
- * History service shard number.
- * @type bool $is_connection_enabled
- * A flag to indicate if a connection is active.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Name of the cluster name.
- *
- * Generated from protobuf field string cluster_name = 1;
- * @return string
- */
- public function getClusterName()
- {
- return $this->cluster_name;
- }
-
- /**
- * Name of the cluster name.
- *
- * Generated from protobuf field string cluster_name = 1;
- * @param string $var
- * @return $this
- */
- public function setClusterName($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster_name = $var;
-
- return $this;
- }
-
- /**
- * Id of the cluster.
- *
- * Generated from protobuf field string cluster_id = 2;
- * @return string
- */
- public function getClusterId()
- {
- return $this->cluster_id;
- }
-
- /**
- * Id of the cluster.
- *
- * Generated from protobuf field string cluster_id = 2;
- * @param string $var
- * @return $this
- */
- public function setClusterId($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster_id = $var;
-
- return $this;
- }
-
- /**
- * Cluster accessible address.
- *
- * Generated from protobuf field string address = 3;
- * @return string
- */
- public function getAddress()
- {
- return $this->address;
- }
-
- /**
- * Cluster accessible address.
- *
- * Generated from protobuf field string address = 3;
- * @param string $var
- * @return $this
- */
- public function setAddress($var)
- {
- GPBUtil::checkString($var, True);
- $this->address = $var;
-
- return $this;
- }
-
- /**
- * A unique failover version across all connected clusters.
- *
- * Generated from protobuf field int64 initial_failover_version = 4;
- * @return int|string
- */
- public function getInitialFailoverVersion()
- {
- return $this->initial_failover_version;
- }
-
- /**
- * A unique failover version across all connected clusters.
- *
- * Generated from protobuf field int64 initial_failover_version = 4;
- * @param int|string $var
- * @return $this
- */
- public function setInitialFailoverVersion($var)
- {
- GPBUtil::checkInt64($var);
- $this->initial_failover_version = $var;
-
- return $this;
- }
-
- /**
- * History service shard number.
- *
- * Generated from protobuf field int32 history_shard_count = 5;
- * @return int
- */
- public function getHistoryShardCount()
- {
- return $this->history_shard_count;
- }
-
- /**
- * History service shard number.
- *
- * Generated from protobuf field int32 history_shard_count = 5;
- * @param int $var
- * @return $this
- */
- public function setHistoryShardCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->history_shard_count = $var;
-
- return $this;
- }
-
- /**
- * A flag to indicate if a connection is active.
- *
- * Generated from protobuf field bool is_connection_enabled = 6;
- * @return bool
- */
- public function getIsConnectionEnabled()
- {
- return $this->is_connection_enabled;
- }
-
- /**
- * A flag to indicate if a connection is active.
- *
- * Generated from protobuf field bool is_connection_enabled = 6;
- * @param bool $var
- * @return $this
- */
- public function setIsConnectionEnabled($var)
- {
- GPBUtil::checkBool($var);
- $this->is_connection_enabled = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/DeleteNamespaceRequest.php b/api/v1/Temporal/Api/Operatorservice/V1/DeleteNamespaceRequest.php
deleted file mode 100644
index efcca2429..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/DeleteNamespaceRequest.php
+++ /dev/null
@@ -1,63 +0,0 @@
-temporal.api.operatorservice.v1.DeleteNamespaceRequest
- */
-class DeleteNamespaceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/DeleteNamespaceResponse.php b/api/v1/Temporal/Api/Operatorservice/V1/DeleteNamespaceResponse.php
deleted file mode 100644
index 826b87f7b..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/DeleteNamespaceResponse.php
+++ /dev/null
@@ -1,65 +0,0 @@
-temporal.api.operatorservice.v1.DeleteNamespaceResponse
- */
-class DeleteNamespaceResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Temporary namespace name that is used during reclaim resources step.
- *
- * Generated from protobuf field string deleted_namespace = 1;
- */
- protected $deleted_namespace = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $deleted_namespace
- * Temporary namespace name that is used during reclaim resources step.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Temporary namespace name that is used during reclaim resources step.
- *
- * Generated from protobuf field string deleted_namespace = 1;
- * @return string
- */
- public function getDeletedNamespace()
- {
- return $this->deleted_namespace;
- }
-
- /**
- * Temporary namespace name that is used during reclaim resources step.
- *
- * Generated from protobuf field string deleted_namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setDeletedNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->deleted_namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/ListClustersRequest.php b/api/v1/Temporal/Api/Operatorservice/V1/ListClustersRequest.php
deleted file mode 100644
index c06bed9e4..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/ListClustersRequest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.operatorservice.v1.ListClustersRequest
- */
-class ListClustersRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field int32 page_size = 1;
- */
- protected $page_size = 0;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $page_size
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field int32 page_size = 1;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Generated from protobuf field int32 page_size = 1;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/ListClustersResponse.php b/api/v1/Temporal/Api/Operatorservice/V1/ListClustersResponse.php
deleted file mode 100644
index 542c88766..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/ListClustersResponse.php
+++ /dev/null
@@ -1,92 +0,0 @@
-temporal.api.operatorservice.v1.ListClustersResponse
- */
-class ListClustersResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * List of all cluster information
- *
- * Generated from protobuf field repeated .temporal.api.operatorservice.v1.ClusterMetadata clusters = 1;
- */
- private $clusters;
- /**
- * Generated from protobuf field bytes next_page_token = 4;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Operatorservice\V1\ClusterMetadata>|\Google\Protobuf\Internal\RepeatedField $clusters
- * List of all cluster information
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * List of all cluster information
- *
- * Generated from protobuf field repeated .temporal.api.operatorservice.v1.ClusterMetadata clusters = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getClusters()
- {
- return $this->clusters;
- }
-
- /**
- * List of all cluster information
- *
- * Generated from protobuf field repeated .temporal.api.operatorservice.v1.ClusterMetadata clusters = 1;
- * @param array<\Temporal\Api\Operatorservice\V1\ClusterMetadata>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setClusters($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Operatorservice\V1\ClusterMetadata::class);
- $this->clusters = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 4;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 4;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/ListSearchAttributesRequest.php b/api/v1/Temporal/Api/Operatorservice/V1/ListSearchAttributesRequest.php
deleted file mode 100644
index 95d4fefce..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/ListSearchAttributesRequest.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.operatorservice.v1.ListSearchAttributesRequest
- */
-class ListSearchAttributesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/ListSearchAttributesResponse.php b/api/v1/Temporal/Api/Operatorservice/V1/ListSearchAttributesResponse.php
deleted file mode 100644
index 8dec6a7f6..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/ListSearchAttributesResponse.php
+++ /dev/null
@@ -1,133 +0,0 @@
-temporal.api.operatorservice.v1.ListSearchAttributesResponse
- */
-class ListSearchAttributesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Mapping between custom (user-registered) search attribute name to its IndexedValueType.
- *
- * Generated from protobuf field map custom_attributes = 1;
- */
- private $custom_attributes;
- /**
- * Mapping between system (predefined) search attribute name to its IndexedValueType.
- *
- * Generated from protobuf field map system_attributes = 2;
- */
- private $system_attributes;
- /**
- * Mapping from the attribute name to the visibility storage native type.
- *
- * Generated from protobuf field map storage_schema = 3;
- */
- private $storage_schema;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $custom_attributes
- * Mapping between custom (user-registered) search attribute name to its IndexedValueType.
- * @type array|\Google\Protobuf\Internal\MapField $system_attributes
- * Mapping between system (predefined) search attribute name to its IndexedValueType.
- * @type array|\Google\Protobuf\Internal\MapField $storage_schema
- * Mapping from the attribute name to the visibility storage native type.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Mapping between custom (user-registered) search attribute name to its IndexedValueType.
- *
- * Generated from protobuf field map custom_attributes = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getCustomAttributes()
- {
- return $this->custom_attributes;
- }
-
- /**
- * Mapping between custom (user-registered) search attribute name to its IndexedValueType.
- *
- * Generated from protobuf field map custom_attributes = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setCustomAttributes($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::ENUM, \Temporal\Api\Enums\V1\IndexedValueType::class);
- $this->custom_attributes = $arr;
-
- return $this;
- }
-
- /**
- * Mapping between system (predefined) search attribute name to its IndexedValueType.
- *
- * Generated from protobuf field map system_attributes = 2;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getSystemAttributes()
- {
- return $this->system_attributes;
- }
-
- /**
- * Mapping between system (predefined) search attribute name to its IndexedValueType.
- *
- * Generated from protobuf field map system_attributes = 2;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setSystemAttributes($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::ENUM, \Temporal\Api\Enums\V1\IndexedValueType::class);
- $this->system_attributes = $arr;
-
- return $this;
- }
-
- /**
- * Mapping from the attribute name to the visibility storage native type.
- *
- * Generated from protobuf field map storage_schema = 3;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getStorageSchema()
- {
- return $this->storage_schema;
- }
-
- /**
- * Mapping from the attribute name to the visibility storage native type.
- *
- * Generated from protobuf field map storage_schema = 3;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setStorageSchema($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->storage_schema = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/OperatorServiceClient.php b/api/v1/Temporal/Api/Operatorservice/V1/OperatorServiceClient.php
deleted file mode 100644
index 20923a62b..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/OperatorServiceClient.php
+++ /dev/null
@@ -1,160 +0,0 @@
-_simpleRequest('/temporal.api.operatorservice.v1.OperatorService/AddSearchAttributes',
- $argument,
- ['\Temporal\Api\Operatorservice\V1\AddSearchAttributesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RemoveSearchAttributes removes custom search attributes.
- *
- * Returns NOT_FOUND status code if a Search Attribute with any of the specified names is not registered
- * @param \Temporal\Api\Operatorservice\V1\RemoveSearchAttributesRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RemoveSearchAttributes(\Temporal\Api\Operatorservice\V1\RemoveSearchAttributesRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.operatorservice.v1.OperatorService/RemoveSearchAttributes',
- $argument,
- ['\Temporal\Api\Operatorservice\V1\RemoveSearchAttributesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ListSearchAttributes returns comprehensive information about search attributes.
- * @param \Temporal\Api\Operatorservice\V1\ListSearchAttributesRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListSearchAttributes(\Temporal\Api\Operatorservice\V1\ListSearchAttributesRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.operatorservice.v1.OperatorService/ListSearchAttributes',
- $argument,
- ['\Temporal\Api\Operatorservice\V1\ListSearchAttributesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * DeleteNamespace synchronously deletes a namespace and asynchronously reclaims all namespace resources.
- * (-- api-linter: core::0135::method-signature=disabled
- * aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
- * (-- api-linter: core::0135::response-message-name=disabled
- * aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
- * @param \Temporal\Api\Operatorservice\V1\DeleteNamespaceRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DeleteNamespace(\Temporal\Api\Operatorservice\V1\DeleteNamespaceRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.operatorservice.v1.OperatorService/DeleteNamespace',
- $argument,
- ['\Temporal\Api\Operatorservice\V1\DeleteNamespaceResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * AddOrUpdateRemoteCluster adds or updates remote cluster.
- * @param \Temporal\Api\Operatorservice\V1\AddOrUpdateRemoteClusterRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function AddOrUpdateRemoteCluster(\Temporal\Api\Operatorservice\V1\AddOrUpdateRemoteClusterRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.operatorservice.v1.OperatorService/AddOrUpdateRemoteCluster',
- $argument,
- ['\Temporal\Api\Operatorservice\V1\AddOrUpdateRemoteClusterResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RemoveRemoteCluster removes remote cluster.
- * @param \Temporal\Api\Operatorservice\V1\RemoveRemoteClusterRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RemoveRemoteCluster(\Temporal\Api\Operatorservice\V1\RemoveRemoteClusterRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.operatorservice.v1.OperatorService/RemoveRemoteCluster',
- $argument,
- ['\Temporal\Api\Operatorservice\V1\RemoveRemoteClusterResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ListClusters returns information about Temporal clusters.
- * @param \Temporal\Api\Operatorservice\V1\ListClustersRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListClusters(\Temporal\Api\Operatorservice\V1\ListClustersRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.operatorservice.v1.OperatorService/ListClusters',
- $argument,
- ['\Temporal\Api\Operatorservice\V1\ListClustersResponse', 'decode'],
- $metadata, $options);
- }
-
-}
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/RemoveRemoteClusterRequest.php b/api/v1/Temporal/Api/Operatorservice/V1/RemoveRemoteClusterRequest.php
deleted file mode 100644
index 437e20bdc..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/RemoveRemoteClusterRequest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-temporal.api.operatorservice.v1.RemoveRemoteClusterRequest
- */
-class RemoveRemoteClusterRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Remote cluster name to be removed.
- *
- * Generated from protobuf field string cluster_name = 1;
- */
- protected $cluster_name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $cluster_name
- * Remote cluster name to be removed.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Remote cluster name to be removed.
- *
- * Generated from protobuf field string cluster_name = 1;
- * @return string
- */
- public function getClusterName()
- {
- return $this->cluster_name;
- }
-
- /**
- * Remote cluster name to be removed.
- *
- * Generated from protobuf field string cluster_name = 1;
- * @param string $var
- * @return $this
- */
- public function setClusterName($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster_name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/RemoveRemoteClusterResponse.php b/api/v1/Temporal/Api/Operatorservice/V1/RemoveRemoteClusterResponse.php
deleted file mode 100644
index e592e4cfe..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/RemoveRemoteClusterResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.operatorservice.v1.RemoveRemoteClusterResponse
- */
-class RemoveRemoteClusterResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/RemoveSearchAttributesRequest.php b/api/v1/Temporal/Api/Operatorservice/V1/RemoveSearchAttributesRequest.php
deleted file mode 100644
index 3fccc26da..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/RemoveSearchAttributesRequest.php
+++ /dev/null
@@ -1,92 +0,0 @@
-temporal.api.operatorservice.v1.RemoveSearchAttributesRequest
- */
-class RemoveSearchAttributesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Search attribute names to delete.
- *
- * Generated from protobuf field repeated string search_attributes = 1;
- */
- private $search_attributes;
- /**
- * Generated from protobuf field string namespace = 2;
- */
- protected $namespace = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $search_attributes
- * Search attribute names to delete.
- * @type string $namespace
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Search attribute names to delete.
- *
- * Generated from protobuf field repeated string search_attributes = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- /**
- * Search attribute names to delete.
- *
- * Generated from protobuf field repeated string search_attributes = 1;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->search_attributes = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 2;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Operatorservice/V1/RemoveSearchAttributesResponse.php b/api/v1/Temporal/Api/Operatorservice/V1/RemoveSearchAttributesResponse.php
deleted file mode 100644
index db233bbd8..000000000
--- a/api/v1/Temporal/Api/Operatorservice/V1/RemoveSearchAttributesResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.operatorservice.v1.RemoveSearchAttributesResponse
- */
-class RemoveSearchAttributesResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Operatorservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/PBNamespace/V1/BadBinaries.php b/api/v1/Temporal/Api/PBNamespace/V1/BadBinaries.php
deleted file mode 100644
index 98375f603..000000000
--- a/api/v1/Temporal/Api/PBNamespace/V1/BadBinaries.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.namespace.v1.BadBinaries
- */
-class BadBinaries extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field map binaries = 1;
- */
- private $binaries;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $binaries
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\PBNamespace\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field map binaries = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getBinaries()
- {
- return $this->binaries;
- }
-
- /**
- * Generated from protobuf field map binaries = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setBinaries($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\PBNamespace\V1\BadBinaryInfo::class);
- $this->binaries = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/PBNamespace/V1/BadBinaryInfo.php b/api/v1/Temporal/Api/PBNamespace/V1/BadBinaryInfo.php
deleted file mode 100644
index a9af8a83e..000000000
--- a/api/v1/Temporal/Api/PBNamespace/V1/BadBinaryInfo.php
+++ /dev/null
@@ -1,122 +0,0 @@
-temporal.api.namespace.v1.BadBinaryInfo
- */
-class BadBinaryInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string reason = 1;
- */
- protected $reason = '';
- /**
- * Generated from protobuf field string operator = 2;
- */
- protected $operator = '';
- /**
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.gogoproto.stdtime) = true];
- */
- protected $create_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $reason
- * @type string $operator
- * @type \Google\Protobuf\Timestamp $create_time
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\PBNamespace\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string reason = 1;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Generated from protobuf field string reason = 1;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string operator = 2;
- * @return string
- */
- public function getOperator()
- {
- return $this->operator;
- }
-
- /**
- * Generated from protobuf field string operator = 2;
- * @param string $var
- * @return $this
- */
- public function setOperator($var)
- {
- GPBUtil::checkString($var, True);
- $this->operator = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/PBNamespace/V1/NamespaceConfig.php b/api/v1/Temporal/Api/PBNamespace/V1/NamespaceConfig.php
deleted file mode 100644
index f84a479d3..000000000
--- a/api/v1/Temporal/Api/PBNamespace/V1/NamespaceConfig.php
+++ /dev/null
@@ -1,261 +0,0 @@
-temporal.api.namespace.v1.NamespaceConfig
- */
-class NamespaceConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_retention_ttl = null;
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
- */
- protected $bad_binaries = null;
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
- */
- protected $history_archival_state = 0;
- /**
- * Generated from protobuf field string history_archival_uri = 4;
- */
- protected $history_archival_uri = '';
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
- */
- protected $visibility_archival_state = 0;
- /**
- * Generated from protobuf field string visibility_archival_uri = 6;
- */
- protected $visibility_archival_uri = '';
- /**
- * Map from field name to alias.
- *
- * Generated from protobuf field map custom_search_attribute_aliases = 7;
- */
- private $custom_search_attribute_aliases;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Duration $workflow_execution_retention_ttl
- * @type \Temporal\Api\PBNamespace\V1\BadBinaries $bad_binaries
- * @type int $history_archival_state
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- * @type string $history_archival_uri
- * @type int $visibility_archival_state
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- * @type string $visibility_archival_uri
- * @type array|\Google\Protobuf\Internal\MapField $custom_search_attribute_aliases
- * Map from field name to alias.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\PBNamespace\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionRetentionTtl()
- {
- return $this->workflow_execution_retention_ttl;
- }
-
- public function hasWorkflowExecutionRetentionTtl()
- {
- return isset($this->workflow_execution_retention_ttl);
- }
-
- public function clearWorkflowExecutionRetentionTtl()
- {
- unset($this->workflow_execution_retention_ttl);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_retention_ttl = 1 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionRetentionTtl($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_retention_ttl = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
- * @return \Temporal\Api\PBNamespace\V1\BadBinaries|null
- */
- public function getBadBinaries()
- {
- return $this->bad_binaries;
- }
-
- public function hasBadBinaries()
- {
- return isset($this->bad_binaries);
- }
-
- public function clearBadBinaries()
- {
- unset($this->bad_binaries);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.BadBinaries bad_binaries = 2;
- * @param \Temporal\Api\PBNamespace\V1\BadBinaries $var
- * @return $this
- */
- public function setBadBinaries($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\PBNamespace\V1\BadBinaries::class);
- $this->bad_binaries = $var;
-
- return $this;
- }
-
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
- * @return int
- */
- public function getHistoryArchivalState()
- {
- return $this->history_archival_state;
- }
-
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState history_archival_state = 3;
- * @param int $var
- * @return $this
- */
- public function setHistoryArchivalState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ArchivalState::class);
- $this->history_archival_state = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string history_archival_uri = 4;
- * @return string
- */
- public function getHistoryArchivalUri()
- {
- return $this->history_archival_uri;
- }
-
- /**
- * Generated from protobuf field string history_archival_uri = 4;
- * @param string $var
- * @return $this
- */
- public function setHistoryArchivalUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->history_archival_uri = $var;
-
- return $this;
- }
-
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
- * @return int
- */
- public function getVisibilityArchivalState()
- {
- return $this->visibility_archival_state;
- }
-
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState visibility_archival_state = 5;
- * @param int $var
- * @return $this
- */
- public function setVisibilityArchivalState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ArchivalState::class);
- $this->visibility_archival_state = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string visibility_archival_uri = 6;
- * @return string
- */
- public function getVisibilityArchivalUri()
- {
- return $this->visibility_archival_uri;
- }
-
- /**
- * Generated from protobuf field string visibility_archival_uri = 6;
- * @param string $var
- * @return $this
- */
- public function setVisibilityArchivalUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->visibility_archival_uri = $var;
-
- return $this;
- }
-
- /**
- * Map from field name to alias.
- *
- * Generated from protobuf field map custom_search_attribute_aliases = 7;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getCustomSearchAttributeAliases()
- {
- return $this->custom_search_attribute_aliases;
- }
-
- /**
- * Map from field name to alias.
- *
- * Generated from protobuf field map custom_search_attribute_aliases = 7;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setCustomSearchAttributeAliases($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->custom_search_attribute_aliases = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/PBNamespace/V1/NamespaceFilter.php b/api/v1/Temporal/Api/PBNamespace/V1/NamespaceFilter.php
deleted file mode 100644
index 37c3d8e5c..000000000
--- a/api/v1/Temporal/Api/PBNamespace/V1/NamespaceFilter.php
+++ /dev/null
@@ -1,73 +0,0 @@
-temporal.api.namespace.v1.NamespaceFilter
- */
-class NamespaceFilter extends \Google\Protobuf\Internal\Message
-{
- /**
- * By default namespaces in NAMESPACE_STATE_DELETED state are not included.
- * Setting include_deleted to true will include deleted namespaces.
- * Note: Namespace is in NAMESPACE_STATE_DELETED state when it was deleted from the system but associated data is not deleted yet.
- *
- * Generated from protobuf field bool include_deleted = 1;
- */
- protected $include_deleted = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $include_deleted
- * By default namespaces in NAMESPACE_STATE_DELETED state are not included.
- * Setting include_deleted to true will include deleted namespaces.
- * Note: Namespace is in NAMESPACE_STATE_DELETED state when it was deleted from the system but associated data is not deleted yet.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\PBNamespace\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * By default namespaces in NAMESPACE_STATE_DELETED state are not included.
- * Setting include_deleted to true will include deleted namespaces.
- * Note: Namespace is in NAMESPACE_STATE_DELETED state when it was deleted from the system but associated data is not deleted yet.
- *
- * Generated from protobuf field bool include_deleted = 1;
- * @return bool
- */
- public function getIncludeDeleted()
- {
- return $this->include_deleted;
- }
-
- /**
- * By default namespaces in NAMESPACE_STATE_DELETED state are not included.
- * Setting include_deleted to true will include deleted namespaces.
- * Note: Namespace is in NAMESPACE_STATE_DELETED state when it was deleted from the system but associated data is not deleted yet.
- *
- * Generated from protobuf field bool include_deleted = 1;
- * @param bool $var
- * @return $this
- */
- public function setIncludeDeleted($var)
- {
- GPBUtil::checkBool($var);
- $this->include_deleted = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/PBNamespace/V1/NamespaceInfo.php b/api/v1/Temporal/Api/PBNamespace/V1/NamespaceInfo.php
deleted file mode 100644
index 6a3839f02..000000000
--- a/api/v1/Temporal/Api/PBNamespace/V1/NamespaceInfo.php
+++ /dev/null
@@ -1,238 +0,0 @@
-temporal.api.namespace.v1.NamespaceInfo
- */
-class NamespaceInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 2;
- */
- protected $state = 0;
- /**
- * Generated from protobuf field string description = 3;
- */
- protected $description = '';
- /**
- * Generated from protobuf field string owner_email = 4;
- */
- protected $owner_email = '';
- /**
- * A key-value map for any customized purpose.
- *
- * Generated from protobuf field map data = 5;
- */
- private $data;
- /**
- * Generated from protobuf field string id = 6;
- */
- protected $id = '';
- /**
- * Whether scheduled workflows are supported on this namespace. This is only needed
- * temporarily while the feature is experimental, so we can give it a high tag.
- *
- * Generated from protobuf field bool supports_schedules = 100;
- */
- protected $supports_schedules = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * @type int $state
- * @type string $description
- * @type string $owner_email
- * @type array|\Google\Protobuf\Internal\MapField $data
- * A key-value map for any customized purpose.
- * @type string $id
- * @type bool $supports_schedules
- * Whether scheduled workflows are supported on this namespace. This is only needed
- * temporarily while the feature is experimental, so we can give it a high tag.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\PBNamespace\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 2;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 2;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\NamespaceState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string description = 3;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Generated from protobuf field string description = 3;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string owner_email = 4;
- * @return string
- */
- public function getOwnerEmail()
- {
- return $this->owner_email;
- }
-
- /**
- * Generated from protobuf field string owner_email = 4;
- * @param string $var
- * @return $this
- */
- public function setOwnerEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->owner_email = $var;
-
- return $this;
- }
-
- /**
- * A key-value map for any customized purpose.
- *
- * Generated from protobuf field map data = 5;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getData()
- {
- return $this->data;
- }
-
- /**
- * A key-value map for any customized purpose.
- *
- * Generated from protobuf field map data = 5;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setData($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->data = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string id = 6;
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Generated from protobuf field string id = 6;
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Whether scheduled workflows are supported on this namespace. This is only needed
- * temporarily while the feature is experimental, so we can give it a high tag.
- *
- * Generated from protobuf field bool supports_schedules = 100;
- * @return bool
- */
- public function getSupportsSchedules()
- {
- return $this->supports_schedules;
- }
-
- /**
- * Whether scheduled workflows are supported on this namespace. This is only needed
- * temporarily while the feature is experimental, so we can give it a high tag.
- *
- * Generated from protobuf field bool supports_schedules = 100;
- * @param bool $var
- * @return $this
- */
- public function setSupportsSchedules($var)
- {
- GPBUtil::checkBool($var);
- $this->supports_schedules = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/PBNamespace/V1/UpdateNamespaceInfo.php b/api/v1/Temporal/Api/PBNamespace/V1/UpdateNamespaceInfo.php
deleted file mode 100644
index 614daccec..000000000
--- a/api/v1/Temporal/Api/PBNamespace/V1/UpdateNamespaceInfo.php
+++ /dev/null
@@ -1,177 +0,0 @@
-temporal.api.namespace.v1.UpdateNamespaceInfo
- */
-class UpdateNamespaceInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string description = 1;
- */
- protected $description = '';
- /**
- * Generated from protobuf field string owner_email = 2;
- */
- protected $owner_email = '';
- /**
- * A key-value map for any customized purpose.
- * If data already exists on the namespace,
- * this will merge with the existing key values.
- *
- * Generated from protobuf field map data = 3;
- */
- private $data;
- /**
- * New namespace state, server will reject if transition is not allowed.
- * Allowed transitions are:
- * Registered -> [ Deleted | Deprecated | Handover ]
- * Handover -> [ Registered ]
- * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
- *
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 4;
- */
- protected $state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $description
- * @type string $owner_email
- * @type array|\Google\Protobuf\Internal\MapField $data
- * A key-value map for any customized purpose.
- * If data already exists on the namespace,
- * this will merge with the existing key values.
- * @type int $state
- * New namespace state, server will reject if transition is not allowed.
- * Allowed transitions are:
- * Registered -> [ Deleted | Deprecated | Handover ]
- * Handover -> [ Registered ]
- * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\PBNamespace\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string description = 1;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Generated from protobuf field string description = 1;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string owner_email = 2;
- * @return string
- */
- public function getOwnerEmail()
- {
- return $this->owner_email;
- }
-
- /**
- * Generated from protobuf field string owner_email = 2;
- * @param string $var
- * @return $this
- */
- public function setOwnerEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->owner_email = $var;
-
- return $this;
- }
-
- /**
- * A key-value map for any customized purpose.
- * If data already exists on the namespace,
- * this will merge with the existing key values.
- *
- * Generated from protobuf field map data = 3;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getData()
- {
- return $this->data;
- }
-
- /**
- * A key-value map for any customized purpose.
- * If data already exists on the namespace,
- * this will merge with the existing key values.
- *
- * Generated from protobuf field map data = 3;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setData($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->data = $arr;
-
- return $this;
- }
-
- /**
- * New namespace state, server will reject if transition is not allowed.
- * Allowed transitions are:
- * Registered -> [ Deleted | Deprecated | Handover ]
- * Handover -> [ Registered ]
- * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
- *
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 4;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * New namespace state, server will reject if transition is not allowed.
- * Allowed transitions are:
- * Registered -> [ Deleted | Deprecated | Handover ]
- * Handover -> [ Registered ]
- * Default is NAMESPACE_STATE_UNSPECIFIED which is do not change state.
- *
- * Generated from protobuf field .temporal.api.enums.v1.NamespaceState state = 4;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\NamespaceState::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Protocol/V1/Message.php b/api/v1/Temporal/Api/Protocol/V1/Message.php
deleted file mode 100644
index f4f547353..000000000
--- a/api/v1/Temporal/Api/Protocol/V1/Message.php
+++ /dev/null
@@ -1,219 +0,0 @@
-temporal.api.protocol.v1.Message
- */
-class Message extends \Google\Protobuf\Internal\Message
-{
- /**
- * An ID for this specific message.
- *
- * Generated from protobuf field string id = 1;
- */
- protected $id = '';
- /**
- * Identifies the specific instance of a protocol to which this message
- * belongs.
- *
- * Generated from protobuf field string protocol_instance_id = 2;
- */
- protected $protocol_instance_id = '';
- /**
- * The opaque data carried by this message. The protocol type can be
- * extracted from the package name of the message carried inside the Any.
- *
- * Generated from protobuf field .google.protobuf.Any body = 5;
- */
- protected $body = null;
- protected $sequencing_id;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $id
- * An ID for this specific message.
- * @type string $protocol_instance_id
- * Identifies the specific instance of a protocol to which this message
- * belongs.
- * @type int|string $event_id
- * @type int|string $command_index
- * @type \Google\Protobuf\Any $body
- * The opaque data carried by this message. The protocol type can be
- * extracted from the package name of the message carried inside the Any.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Protocol\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * An ID for this specific message.
- *
- * Generated from protobuf field string id = 1;
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * An ID for this specific message.
- *
- * Generated from protobuf field string id = 1;
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * Identifies the specific instance of a protocol to which this message
- * belongs.
- *
- * Generated from protobuf field string protocol_instance_id = 2;
- * @return string
- */
- public function getProtocolInstanceId()
- {
- return $this->protocol_instance_id;
- }
-
- /**
- * Identifies the specific instance of a protocol to which this message
- * belongs.
- *
- * Generated from protobuf field string protocol_instance_id = 2;
- * @param string $var
- * @return $this
- */
- public function setProtocolInstanceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->protocol_instance_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 event_id = 3;
- * @return int|string
- */
- public function getEventId()
- {
- return $this->readOneof(3);
- }
-
- public function hasEventId()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * Generated from protobuf field int64 event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 command_index = 4;
- * @return int|string
- */
- public function getCommandIndex()
- {
- return $this->readOneof(4);
- }
-
- public function hasCommandIndex()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Generated from protobuf field int64 command_index = 4;
- * @param int|string $var
- * @return $this
- */
- public function setCommandIndex($var)
- {
- GPBUtil::checkInt64($var);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * The opaque data carried by this message. The protocol type can be
- * extracted from the package name of the message carried inside the Any.
- *
- * Generated from protobuf field .google.protobuf.Any body = 5;
- * @return \Google\Protobuf\Any|null
- */
- public function getBody()
- {
- return $this->body;
- }
-
- public function hasBody()
- {
- return isset($this->body);
- }
-
- public function clearBody()
- {
- unset($this->body);
- }
-
- /**
- * The opaque data carried by this message. The protocol type can be
- * extracted from the package name of the message carried inside the Any.
- *
- * Generated from protobuf field .google.protobuf.Any body = 5;
- * @param \Google\Protobuf\Any $var
- * @return $this
- */
- public function setBody($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
- $this->body = $var;
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getSequencingId()
- {
- return $this->whichOneof("sequencing_id");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Query/V1/QueryRejected.php b/api/v1/Temporal/Api/Query/V1/QueryRejected.php
deleted file mode 100644
index ff07c25eb..000000000
--- a/api/v1/Temporal/Api/Query/V1/QueryRejected.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.query.v1.QueryRejected
- */
-class QueryRejected extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 1;
- */
- protected $status = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $status
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Query\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 1;
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 1;
- * @param int $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowExecutionStatus::class);
- $this->status = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Query/V1/WorkflowQuery.php b/api/v1/Temporal/Api/Query/V1/WorkflowQuery.php
deleted file mode 100644
index b1f1e98ea..000000000
--- a/api/v1/Temporal/Api/Query/V1/WorkflowQuery.php
+++ /dev/null
@@ -1,159 +0,0 @@
-temporal.api.query.v1.WorkflowQuery
- */
-class WorkflowQuery extends \Google\Protobuf\Internal\Message
-{
- /**
- * The workflow-author-defined identifier of the query. Typically a function name.
- *
- * Generated from protobuf field string query_type = 1;
- */
- protected $query_type = '';
- /**
- * Serialized arguments that will be provided to the query handler.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_args = 2;
- */
- protected $query_args = null;
- /**
- * Headers that were passed by the caller of the query and copied by temporal
- * server into the workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- */
- protected $header = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $query_type
- * The workflow-author-defined identifier of the query. Typically a function name.
- * @type \Temporal\Api\Common\V1\Payloads $query_args
- * Serialized arguments that will be provided to the query handler.
- * @type \Temporal\Api\Common\V1\Header $header
- * Headers that were passed by the caller of the query and copied by temporal
- * server into the workflow task.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Query\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The workflow-author-defined identifier of the query. Typically a function name.
- *
- * Generated from protobuf field string query_type = 1;
- * @return string
- */
- public function getQueryType()
- {
- return $this->query_type;
- }
-
- /**
- * The workflow-author-defined identifier of the query. Typically a function name.
- *
- * Generated from protobuf field string query_type = 1;
- * @param string $var
- * @return $this
- */
- public function setQueryType($var)
- {
- GPBUtil::checkString($var, True);
- $this->query_type = $var;
-
- return $this;
- }
-
- /**
- * Serialized arguments that will be provided to the query handler.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_args = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getQueryArgs()
- {
- return $this->query_args;
- }
-
- public function hasQueryArgs()
- {
- return isset($this->query_args);
- }
-
- public function clearQueryArgs()
- {
- unset($this->query_args);
- }
-
- /**
- * Serialized arguments that will be provided to the query handler.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_args = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setQueryArgs($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->query_args = $var;
-
- return $this;
- }
-
- /**
- * Headers that were passed by the caller of the query and copied by temporal
- * server into the workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Headers that were passed by the caller of the query and copied by temporal
- * server into the workflow task.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 3;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Query/V1/WorkflowQueryResult.php b/api/v1/Temporal/Api/Query/V1/WorkflowQueryResult.php
deleted file mode 100644
index 6e9b979c2..000000000
--- a/api/v1/Temporal/Api/Query/V1/WorkflowQueryResult.php
+++ /dev/null
@@ -1,145 +0,0 @@
-temporal.api.query.v1.WorkflowQueryResult
- */
-class WorkflowQueryResult extends \Google\Protobuf\Internal\Message
-{
- /**
- * Did the query succeed or fail?
- *
- * Generated from protobuf field .temporal.api.enums.v1.QueryResultType result_type = 1;
- */
- protected $result_type = 0;
- /**
- * Set when the query succeeds with the results
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads answer = 2;
- */
- protected $answer = null;
- /**
- * Mutually exclusive with `answer`. Set when the query fails.
- *
- * Generated from protobuf field string error_message = 3;
- */
- protected $error_message = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $result_type
- * Did the query succeed or fail?
- * @type \Temporal\Api\Common\V1\Payloads $answer
- * Set when the query succeeds with the results
- * @type string $error_message
- * Mutually exclusive with `answer`. Set when the query fails.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Query\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Did the query succeed or fail?
- *
- * Generated from protobuf field .temporal.api.enums.v1.QueryResultType result_type = 1;
- * @return int
- */
- public function getResultType()
- {
- return $this->result_type;
- }
-
- /**
- * Did the query succeed or fail?
- *
- * Generated from protobuf field .temporal.api.enums.v1.QueryResultType result_type = 1;
- * @param int $var
- * @return $this
- */
- public function setResultType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\QueryResultType::class);
- $this->result_type = $var;
-
- return $this;
- }
-
- /**
- * Set when the query succeeds with the results
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads answer = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getAnswer()
- {
- return $this->answer;
- }
-
- public function hasAnswer()
- {
- return isset($this->answer);
- }
-
- public function clearAnswer()
- {
- unset($this->answer);
- }
-
- /**
- * Set when the query succeeds with the results
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads answer = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setAnswer($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->answer = $var;
-
- return $this;
- }
-
- /**
- * Mutually exclusive with `answer`. Set when the query fails.
- *
- * Generated from protobuf field string error_message = 3;
- * @return string
- */
- public function getErrorMessage()
- {
- return $this->error_message;
- }
-
- /**
- * Mutually exclusive with `answer`. Set when the query fails.
- *
- * Generated from protobuf field string error_message = 3;
- * @param string $var
- * @return $this
- */
- public function setErrorMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->error_message = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Replication/V1/ClusterReplicationConfig.php b/api/v1/Temporal/Api/Replication/V1/ClusterReplicationConfig.php
deleted file mode 100644
index 5394f5b4b..000000000
--- a/api/v1/Temporal/Api/Replication/V1/ClusterReplicationConfig.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.replication.v1.ClusterReplicationConfig
- */
-class ClusterReplicationConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string cluster_name = 1;
- */
- protected $cluster_name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $cluster_name
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Replication\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string cluster_name = 1;
- * @return string
- */
- public function getClusterName()
- {
- return $this->cluster_name;
- }
-
- /**
- * Generated from protobuf field string cluster_name = 1;
- * @param string $var
- * @return $this
- */
- public function setClusterName($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster_name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Replication/V1/FailoverStatus.php b/api/v1/Temporal/Api/Replication/V1/FailoverStatus.php
deleted file mode 100644
index 2b953251d..000000000
--- a/api/v1/Temporal/Api/Replication/V1/FailoverStatus.php
+++ /dev/null
@@ -1,104 +0,0 @@
-temporal.api.replication.v1.FailoverStatus
- */
-class FailoverStatus extends \Google\Protobuf\Internal\Message
-{
- /**
- * Timestamp when the Cluster switched to the following failover_version
- *
- * Generated from protobuf field .google.protobuf.Timestamp failover_time = 1 [(.gogoproto.stdtime) = true];
- */
- protected $failover_time = null;
- /**
- * Generated from protobuf field int64 failover_version = 2;
- */
- protected $failover_version = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $failover_time
- * Timestamp when the Cluster switched to the following failover_version
- * @type int|string $failover_version
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Replication\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Timestamp when the Cluster switched to the following failover_version
- *
- * Generated from protobuf field .google.protobuf.Timestamp failover_time = 1 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getFailoverTime()
- {
- return $this->failover_time;
- }
-
- public function hasFailoverTime()
- {
- return isset($this->failover_time);
- }
-
- public function clearFailoverTime()
- {
- unset($this->failover_time);
- }
-
- /**
- * Timestamp when the Cluster switched to the following failover_version
- *
- * Generated from protobuf field .google.protobuf.Timestamp failover_time = 1 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setFailoverTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->failover_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 failover_version = 2;
- * @return int|string
- */
- public function getFailoverVersion()
- {
- return $this->failover_version;
- }
-
- /**
- * Generated from protobuf field int64 failover_version = 2;
- * @param int|string $var
- * @return $this
- */
- public function setFailoverVersion($var)
- {
- GPBUtil::checkInt64($var);
- $this->failover_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Replication/V1/NamespaceReplicationConfig.php b/api/v1/Temporal/Api/Replication/V1/NamespaceReplicationConfig.php
deleted file mode 100644
index 7b6599498..000000000
--- a/api/v1/Temporal/Api/Replication/V1/NamespaceReplicationConfig.php
+++ /dev/null
@@ -1,112 +0,0 @@
-temporal.api.replication.v1.NamespaceReplicationConfig
- */
-class NamespaceReplicationConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string active_cluster_name = 1;
- */
- protected $active_cluster_name = '';
- /**
- * Generated from protobuf field repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
- */
- private $clusters;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ReplicationState state = 3;
- */
- protected $state = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $active_cluster_name
- * @type array<\Temporal\Api\Replication\V1\ClusterReplicationConfig>|\Google\Protobuf\Internal\RepeatedField $clusters
- * @type int $state
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Replication\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string active_cluster_name = 1;
- * @return string
- */
- public function getActiveClusterName()
- {
- return $this->active_cluster_name;
- }
-
- /**
- * Generated from protobuf field string active_cluster_name = 1;
- * @param string $var
- * @return $this
- */
- public function setActiveClusterName($var)
- {
- GPBUtil::checkString($var, True);
- $this->active_cluster_name = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getClusters()
- {
- return $this->clusters;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 2;
- * @param array<\Temporal\Api\Replication\V1\ClusterReplicationConfig>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setClusters($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Replication\V1\ClusterReplicationConfig::class);
- $this->clusters = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ReplicationState state = 3;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.ReplicationState state = 3;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ReplicationState::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/BackfillRequest.php b/api/v1/Temporal/Api/Schedule/V1/BackfillRequest.php
deleted file mode 100644
index 1e8fcc6da..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/BackfillRequest.php
+++ /dev/null
@@ -1,146 +0,0 @@
-temporal.api.schedule.v1.BackfillRequest
- */
-class BackfillRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Time range to evaluate schedule in.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.gogoproto.stdtime) = true];
- */
- protected $start_time = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.gogoproto.stdtime) = true];
- */
- protected $end_time = null;
- /**
- * Override overlap policy for this request.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 3;
- */
- protected $overlap_policy = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $start_time
- * Time range to evaluate schedule in.
- * @type \Google\Protobuf\Timestamp $end_time
- * @type int $overlap_policy
- * Override overlap policy for this request.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Time range to evaluate schedule in.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * Time range to evaluate schedule in.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * Override overlap policy for this request.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 3;
- * @return int
- */
- public function getOverlapPolicy()
- {
- return $this->overlap_policy;
- }
-
- /**
- * Override overlap policy for this request.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 3;
- * @param int $var
- * @return $this
- */
- public function setOverlapPolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ScheduleOverlapPolicy::class);
- $this->overlap_policy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/CalendarSpec.php b/api/v1/Temporal/Api/Schedule/V1/CalendarSpec.php
deleted file mode 100644
index 69611f48a..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/CalendarSpec.php
+++ /dev/null
@@ -1,330 +0,0 @@
-temporal.api.schedule.v1.CalendarSpec
- */
-class CalendarSpec extends \Google\Protobuf\Internal\Message
-{
- /**
- * Expression to match seconds. Default: 0
- *
- * Generated from protobuf field string second = 1;
- */
- protected $second = '';
- /**
- * Expression to match minutes. Default: 0
- *
- * Generated from protobuf field string minute = 2;
- */
- protected $minute = '';
- /**
- * Expression to match hours. Default: 0
- *
- * Generated from protobuf field string hour = 3;
- */
- protected $hour = '';
- /**
- * Expression to match days of the month. Default: *
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: standard name of field --)
- *
- * Generated from protobuf field string day_of_month = 4;
- */
- protected $day_of_month = '';
- /**
- * Expression to match months. Default: *
- *
- * Generated from protobuf field string month = 5;
- */
- protected $month = '';
- /**
- * Expression to match years. Default: *
- *
- * Generated from protobuf field string year = 6;
- */
- protected $year = '';
- /**
- * Expression to match days of the week. Default: *
- *
- * Generated from protobuf field string day_of_week = 7;
- */
- protected $day_of_week = '';
- /**
- * Free-form comment describing the intention of this spec.
- *
- * Generated from protobuf field string comment = 8;
- */
- protected $comment = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $second
- * Expression to match seconds. Default: 0
- * @type string $minute
- * Expression to match minutes. Default: 0
- * @type string $hour
- * Expression to match hours. Default: 0
- * @type string $day_of_month
- * Expression to match days of the month. Default: *
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: standard name of field --)
- * @type string $month
- * Expression to match months. Default: *
- * @type string $year
- * Expression to match years. Default: *
- * @type string $day_of_week
- * Expression to match days of the week. Default: *
- * @type string $comment
- * Free-form comment describing the intention of this spec.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Expression to match seconds. Default: 0
- *
- * Generated from protobuf field string second = 1;
- * @return string
- */
- public function getSecond()
- {
- return $this->second;
- }
-
- /**
- * Expression to match seconds. Default: 0
- *
- * Generated from protobuf field string second = 1;
- * @param string $var
- * @return $this
- */
- public function setSecond($var)
- {
- GPBUtil::checkString($var, True);
- $this->second = $var;
-
- return $this;
- }
-
- /**
- * Expression to match minutes. Default: 0
- *
- * Generated from protobuf field string minute = 2;
- * @return string
- */
- public function getMinute()
- {
- return $this->minute;
- }
-
- /**
- * Expression to match minutes. Default: 0
- *
- * Generated from protobuf field string minute = 2;
- * @param string $var
- * @return $this
- */
- public function setMinute($var)
- {
- GPBUtil::checkString($var, True);
- $this->minute = $var;
-
- return $this;
- }
-
- /**
- * Expression to match hours. Default: 0
- *
- * Generated from protobuf field string hour = 3;
- * @return string
- */
- public function getHour()
- {
- return $this->hour;
- }
-
- /**
- * Expression to match hours. Default: 0
- *
- * Generated from protobuf field string hour = 3;
- * @param string $var
- * @return $this
- */
- public function setHour($var)
- {
- GPBUtil::checkString($var, True);
- $this->hour = $var;
-
- return $this;
- }
-
- /**
- * Expression to match days of the month. Default: *
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: standard name of field --)
- *
- * Generated from protobuf field string day_of_month = 4;
- * @return string
- */
- public function getDayOfMonth()
- {
- return $this->day_of_month;
- }
-
- /**
- * Expression to match days of the month. Default: *
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: standard name of field --)
- *
- * Generated from protobuf field string day_of_month = 4;
- * @param string $var
- * @return $this
- */
- public function setDayOfMonth($var)
- {
- GPBUtil::checkString($var, True);
- $this->day_of_month = $var;
-
- return $this;
- }
-
- /**
- * Expression to match months. Default: *
- *
- * Generated from protobuf field string month = 5;
- * @return string
- */
- public function getMonth()
- {
- return $this->month;
- }
-
- /**
- * Expression to match months. Default: *
- *
- * Generated from protobuf field string month = 5;
- * @param string $var
- * @return $this
- */
- public function setMonth($var)
- {
- GPBUtil::checkString($var, True);
- $this->month = $var;
-
- return $this;
- }
-
- /**
- * Expression to match years. Default: *
- *
- * Generated from protobuf field string year = 6;
- * @return string
- */
- public function getYear()
- {
- return $this->year;
- }
-
- /**
- * Expression to match years. Default: *
- *
- * Generated from protobuf field string year = 6;
- * @param string $var
- * @return $this
- */
- public function setYear($var)
- {
- GPBUtil::checkString($var, True);
- $this->year = $var;
-
- return $this;
- }
-
- /**
- * Expression to match days of the week. Default: *
- *
- * Generated from protobuf field string day_of_week = 7;
- * @return string
- */
- public function getDayOfWeek()
- {
- return $this->day_of_week;
- }
-
- /**
- * Expression to match days of the week. Default: *
- *
- * Generated from protobuf field string day_of_week = 7;
- * @param string $var
- * @return $this
- */
- public function setDayOfWeek($var)
- {
- GPBUtil::checkString($var, True);
- $this->day_of_week = $var;
-
- return $this;
- }
-
- /**
- * Free-form comment describing the intention of this spec.
- *
- * Generated from protobuf field string comment = 8;
- * @return string
- */
- public function getComment()
- {
- return $this->comment;
- }
-
- /**
- * Free-form comment describing the intention of this spec.
- *
- * Generated from protobuf field string comment = 8;
- * @param string $var
- * @return $this
- */
- public function setComment($var)
- {
- GPBUtil::checkString($var, True);
- $this->comment = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/IntervalSpec.php b/api/v1/Temporal/Api/Schedule/V1/IntervalSpec.php
deleted file mode 100644
index 5bf5488ee..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/IntervalSpec.php
+++ /dev/null
@@ -1,117 +0,0 @@
-temporal.api.schedule.v1.IntervalSpec
- */
-class IntervalSpec extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .google.protobuf.Duration interval = 1 [(.gogoproto.stdduration) = true];
- */
- protected $interval = null;
- /**
- * Generated from protobuf field .google.protobuf.Duration phase = 2 [(.gogoproto.stdduration) = true];
- */
- protected $phase = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Duration $interval
- * @type \Google\Protobuf\Duration $phase
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration interval = 1 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getInterval()
- {
- return $this->interval;
- }
-
- public function hasInterval()
- {
- return isset($this->interval);
- }
-
- public function clearInterval()
- {
- unset($this->interval);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration interval = 1 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setInterval($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->interval = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration phase = 2 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getPhase()
- {
- return $this->phase;
- }
-
- public function hasPhase()
- {
- return isset($this->phase);
- }
-
- public function clearPhase()
- {
- unset($this->phase);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration phase = 2 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setPhase($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->phase = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/Range.php b/api/v1/Temporal/Api/Schedule/V1/Range.php
deleted file mode 100644
index 040d135cf..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/Range.php
+++ /dev/null
@@ -1,138 +0,0 @@
-temporal.api.schedule.v1.Range
- */
-class Range extends \Google\Protobuf\Internal\Message
-{
- /**
- * Start of range (inclusive).
- *
- * Generated from protobuf field int32 start = 1;
- */
- protected $start = 0;
- /**
- * End of range (inclusive).
- *
- * Generated from protobuf field int32 end = 2;
- */
- protected $end = 0;
- /**
- * Step (optional, default 1).
- *
- * Generated from protobuf field int32 step = 3;
- */
- protected $step = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $start
- * Start of range (inclusive).
- * @type int $end
- * End of range (inclusive).
- * @type int $step
- * Step (optional, default 1).
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Start of range (inclusive).
- *
- * Generated from protobuf field int32 start = 1;
- * @return int
- */
- public function getStart()
- {
- return $this->start;
- }
-
- /**
- * Start of range (inclusive).
- *
- * Generated from protobuf field int32 start = 1;
- * @param int $var
- * @return $this
- */
- public function setStart($var)
- {
- GPBUtil::checkInt32($var);
- $this->start = $var;
-
- return $this;
- }
-
- /**
- * End of range (inclusive).
- *
- * Generated from protobuf field int32 end = 2;
- * @return int
- */
- public function getEnd()
- {
- return $this->end;
- }
-
- /**
- * End of range (inclusive).
- *
- * Generated from protobuf field int32 end = 2;
- * @param int $var
- * @return $this
- */
- public function setEnd($var)
- {
- GPBUtil::checkInt32($var);
- $this->end = $var;
-
- return $this;
- }
-
- /**
- * Step (optional, default 1).
- *
- * Generated from protobuf field int32 step = 3;
- * @return int
- */
- public function getStep()
- {
- return $this->step;
- }
-
- /**
- * Step (optional, default 1).
- *
- * Generated from protobuf field int32 step = 3;
- * @param int $var
- * @return $this
- */
- public function setStep($var)
- {
- GPBUtil::checkInt32($var);
- $this->step = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/Schedule.php b/api/v1/Temporal/Api/Schedule/V1/Schedule.php
deleted file mode 100644
index 686a37f93..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/Schedule.php
+++ /dev/null
@@ -1,179 +0,0 @@
-temporal.api.schedule.v1.Schedule
- */
-class Schedule extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleSpec spec = 1;
- */
- protected $spec = null;
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleAction action = 2;
- */
- protected $action = null;
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePolicies policies = 3;
- */
- protected $policies = null;
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleState state = 4;
- */
- protected $state = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Schedule\V1\ScheduleSpec $spec
- * @type \Temporal\Api\Schedule\V1\ScheduleAction $action
- * @type \Temporal\Api\Schedule\V1\SchedulePolicies $policies
- * @type \Temporal\Api\Schedule\V1\ScheduleState $state
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleSpec spec = 1;
- * @return \Temporal\Api\Schedule\V1\ScheduleSpec|null
- */
- public function getSpec()
- {
- return $this->spec;
- }
-
- public function hasSpec()
- {
- return isset($this->spec);
- }
-
- public function clearSpec()
- {
- unset($this->spec);
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleSpec spec = 1;
- * @param \Temporal\Api\Schedule\V1\ScheduleSpec $var
- * @return $this
- */
- public function setSpec($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\ScheduleSpec::class);
- $this->spec = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleAction action = 2;
- * @return \Temporal\Api\Schedule\V1\ScheduleAction|null
- */
- public function getAction()
- {
- return $this->action;
- }
-
- public function hasAction()
- {
- return isset($this->action);
- }
-
- public function clearAction()
- {
- unset($this->action);
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleAction action = 2;
- * @param \Temporal\Api\Schedule\V1\ScheduleAction $var
- * @return $this
- */
- public function setAction($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\ScheduleAction::class);
- $this->action = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePolicies policies = 3;
- * @return \Temporal\Api\Schedule\V1\SchedulePolicies|null
- */
- public function getPolicies()
- {
- return $this->policies;
- }
-
- public function hasPolicies()
- {
- return isset($this->policies);
- }
-
- public function clearPolicies()
- {
- unset($this->policies);
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePolicies policies = 3;
- * @param \Temporal\Api\Schedule\V1\SchedulePolicies $var
- * @return $this
- */
- public function setPolicies($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\SchedulePolicies::class);
- $this->policies = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleState state = 4;
- * @return \Temporal\Api\Schedule\V1\ScheduleState|null
- */
- public function getState()
- {
- return $this->state;
- }
-
- public function hasState()
- {
- return isset($this->state);
- }
-
- public function clearState()
- {
- unset($this->state);
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleState state = 4;
- * @param \Temporal\Api\Schedule\V1\ScheduleState $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\ScheduleState::class);
- $this->state = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/ScheduleAction.php b/api/v1/Temporal/Api/Schedule/V1/ScheduleAction.php
deleted file mode 100644
index 765e7a95c..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/ScheduleAction.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.schedule.v1.ScheduleAction
- */
-class ScheduleAction extends \Google\Protobuf\Internal\Message
-{
- protected $action;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Workflow\V1\NewWorkflowExecutionInfo $start_workflow
- * All fields of NewWorkflowExecutionInfo are valid except for:
- * - workflow_id_reuse_policy
- * - cron_schedule
- * The workflow id of the started workflow may not match this exactly,
- * it may have a timestamp appended for uniqueness.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * All fields of NewWorkflowExecutionInfo are valid except for:
- * - workflow_id_reuse_policy
- * - cron_schedule
- * The workflow id of the started workflow may not match this exactly,
- * it may have a timestamp appended for uniqueness.
- *
- * Generated from protobuf field .temporal.api.workflow.v1.NewWorkflowExecutionInfo start_workflow = 1;
- * @return \Temporal\Api\Workflow\V1\NewWorkflowExecutionInfo|null
- */
- public function getStartWorkflow()
- {
- return $this->readOneof(1);
- }
-
- public function hasStartWorkflow()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * All fields of NewWorkflowExecutionInfo are valid except for:
- * - workflow_id_reuse_policy
- * - cron_schedule
- * The workflow id of the started workflow may not match this exactly,
- * it may have a timestamp appended for uniqueness.
- *
- * Generated from protobuf field .temporal.api.workflow.v1.NewWorkflowExecutionInfo start_workflow = 1;
- * @param \Temporal\Api\Workflow\V1\NewWorkflowExecutionInfo $var
- * @return $this
- */
- public function setStartWorkflow($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\NewWorkflowExecutionInfo::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getAction()
- {
- return $this->whichOneof("action");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/ScheduleActionResult.php b/api/v1/Temporal/Api/Schedule/V1/ScheduleActionResult.php
deleted file mode 100644
index bd93c5b2c..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/ScheduleActionResult.php
+++ /dev/null
@@ -1,163 +0,0 @@
-temporal.api.schedule.v1.ScheduleActionResult
- */
-class ScheduleActionResult extends \Google\Protobuf\Internal\Message
-{
- /**
- * Time that the action was taken (according to the schedule, including jitter).
- *
- * Generated from protobuf field .google.protobuf.Timestamp schedule_time = 1 [(.gogoproto.stdtime) = true];
- */
- protected $schedule_time = null;
- /**
- * Time that the action was taken (real time).
- *
- * Generated from protobuf field .google.protobuf.Timestamp actual_time = 2 [(.gogoproto.stdtime) = true];
- */
- protected $actual_time = null;
- /**
- * If action was start_workflow:
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution start_workflow_result = 11;
- */
- protected $start_workflow_result = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $schedule_time
- * Time that the action was taken (according to the schedule, including jitter).
- * @type \Google\Protobuf\Timestamp $actual_time
- * Time that the action was taken (real time).
- * @type \Temporal\Api\Common\V1\WorkflowExecution $start_workflow_result
- * If action was start_workflow:
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Time that the action was taken (according to the schedule, including jitter).
- *
- * Generated from protobuf field .google.protobuf.Timestamp schedule_time = 1 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getScheduleTime()
- {
- return $this->schedule_time;
- }
-
- public function hasScheduleTime()
- {
- return isset($this->schedule_time);
- }
-
- public function clearScheduleTime()
- {
- unset($this->schedule_time);
- }
-
- /**
- * Time that the action was taken (according to the schedule, including jitter).
- *
- * Generated from protobuf field .google.protobuf.Timestamp schedule_time = 1 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setScheduleTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->schedule_time = $var;
-
- return $this;
- }
-
- /**
- * Time that the action was taken (real time).
- *
- * Generated from protobuf field .google.protobuf.Timestamp actual_time = 2 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getActualTime()
- {
- return $this->actual_time;
- }
-
- public function hasActualTime()
- {
- return isset($this->actual_time);
- }
-
- public function clearActualTime()
- {
- unset($this->actual_time);
- }
-
- /**
- * Time that the action was taken (real time).
- *
- * Generated from protobuf field .google.protobuf.Timestamp actual_time = 2 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setActualTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->actual_time = $var;
-
- return $this;
- }
-
- /**
- * If action was start_workflow:
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution start_workflow_result = 11;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getStartWorkflowResult()
- {
- return $this->start_workflow_result;
- }
-
- public function hasStartWorkflowResult()
- {
- return isset($this->start_workflow_result);
- }
-
- public function clearStartWorkflowResult()
- {
- unset($this->start_workflow_result);
- }
-
- /**
- * If action was start_workflow:
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution start_workflow_result = 11;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setStartWorkflowResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->start_workflow_result = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/ScheduleInfo.php b/api/v1/Temporal/Api/Schedule/V1/ScheduleInfo.php
deleted file mode 100644
index efc687f2a..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/ScheduleInfo.php
+++ /dev/null
@@ -1,364 +0,0 @@
-temporal.api.schedule.v1.ScheduleInfo
- */
-class ScheduleInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Number of actions taken so far.
- *
- * Generated from protobuf field int64 action_count = 1;
- */
- protected $action_count = 0;
- /**
- * Number of times a scheduled action was skipped due to missing the catchup window.
- *
- * Generated from protobuf field int64 missed_catchup_window = 2;
- */
- protected $missed_catchup_window = 0;
- /**
- * Number of skipped actions due to overlap.
- *
- * Generated from protobuf field int64 overlap_skipped = 3;
- */
- protected $overlap_skipped = 0;
- /**
- * Currently-running workflows started by this schedule. (There might be
- * more than one if the overlap policy allows overlaps.)
- * Note that the run_ids in here are the original execution run ids as
- * started by the schedule. If the workflows retried, did continue-as-new,
- * or were reset, they might still be running but with a different run_id.
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9;
- */
- private $running_workflows;
- /**
- * Most recent ten actual action times (including manual triggers).
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4;
- */
- private $recent_actions;
- /**
- * Next ten scheduled action times.
- *
- * Generated from protobuf field repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true];
- */
- private $future_action_times;
- /**
- * Timestamps of schedule creation and last update.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true];
- */
- protected $create_time = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true];
- */
- protected $update_time = null;
- /**
- * Generated from protobuf field string invalid_schedule_error = 8 [deprecated = true];
- * @deprecated
- */
- protected $invalid_schedule_error = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $action_count
- * Number of actions taken so far.
- * @type int|string $missed_catchup_window
- * Number of times a scheduled action was skipped due to missing the catchup window.
- * @type int|string $overlap_skipped
- * Number of skipped actions due to overlap.
- * @type array<\Temporal\Api\Common\V1\WorkflowExecution>|\Google\Protobuf\Internal\RepeatedField $running_workflows
- * Currently-running workflows started by this schedule. (There might be
- * more than one if the overlap policy allows overlaps.)
- * Note that the run_ids in here are the original execution run ids as
- * started by the schedule. If the workflows retried, did continue-as-new,
- * or were reset, they might still be running but with a different run_id.
- * @type array<\Temporal\Api\Schedule\V1\ScheduleActionResult>|\Google\Protobuf\Internal\RepeatedField $recent_actions
- * Most recent ten actual action times (including manual triggers).
- * @type array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $future_action_times
- * Next ten scheduled action times.
- * @type \Google\Protobuf\Timestamp $create_time
- * Timestamps of schedule creation and last update.
- * @type \Google\Protobuf\Timestamp $update_time
- * @type string $invalid_schedule_error
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Number of actions taken so far.
- *
- * Generated from protobuf field int64 action_count = 1;
- * @return int|string
- */
- public function getActionCount()
- {
- return $this->action_count;
- }
-
- /**
- * Number of actions taken so far.
- *
- * Generated from protobuf field int64 action_count = 1;
- * @param int|string $var
- * @return $this
- */
- public function setActionCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->action_count = $var;
-
- return $this;
- }
-
- /**
- * Number of times a scheduled action was skipped due to missing the catchup window.
- *
- * Generated from protobuf field int64 missed_catchup_window = 2;
- * @return int|string
- */
- public function getMissedCatchupWindow()
- {
- return $this->missed_catchup_window;
- }
-
- /**
- * Number of times a scheduled action was skipped due to missing the catchup window.
- *
- * Generated from protobuf field int64 missed_catchup_window = 2;
- * @param int|string $var
- * @return $this
- */
- public function setMissedCatchupWindow($var)
- {
- GPBUtil::checkInt64($var);
- $this->missed_catchup_window = $var;
-
- return $this;
- }
-
- /**
- * Number of skipped actions due to overlap.
- *
- * Generated from protobuf field int64 overlap_skipped = 3;
- * @return int|string
- */
- public function getOverlapSkipped()
- {
- return $this->overlap_skipped;
- }
-
- /**
- * Number of skipped actions due to overlap.
- *
- * Generated from protobuf field int64 overlap_skipped = 3;
- * @param int|string $var
- * @return $this
- */
- public function setOverlapSkipped($var)
- {
- GPBUtil::checkInt64($var);
- $this->overlap_skipped = $var;
-
- return $this;
- }
-
- /**
- * Currently-running workflows started by this schedule. (There might be
- * more than one if the overlap policy allows overlaps.)
- * Note that the run_ids in here are the original execution run ids as
- * started by the schedule. If the workflows retried, did continue-as-new,
- * or were reset, they might still be running but with a different run_id.
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRunningWorkflows()
- {
- return $this->running_workflows;
- }
-
- /**
- * Currently-running workflows started by this schedule. (There might be
- * more than one if the overlap policy allows overlaps.)
- * Note that the run_ids in here are the original execution run ids as
- * started by the schedule. If the workflows retried, did continue-as-new,
- * or were reset, they might still be running but with a different run_id.
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.WorkflowExecution running_workflows = 9;
- * @param array<\Temporal\Api\Common\V1\WorkflowExecution>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRunningWorkflows($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->running_workflows = $arr;
-
- return $this;
- }
-
- /**
- * Most recent ten actual action times (including manual triggers).
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRecentActions()
- {
- return $this->recent_actions;
- }
-
- /**
- * Most recent ten actual action times (including manual triggers).
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 4;
- * @param array<\Temporal\Api\Schedule\V1\ScheduleActionResult>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRecentActions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\ScheduleActionResult::class);
- $this->recent_actions = $arr;
-
- return $this;
- }
-
- /**
- * Next ten scheduled action times.
- *
- * Generated from protobuf field repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFutureActionTimes()
- {
- return $this->future_action_times;
- }
-
- /**
- * Next ten scheduled action times.
- *
- * Generated from protobuf field repeated .google.protobuf.Timestamp future_action_times = 5 [(.gogoproto.stdtime) = true];
- * @param array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFutureActionTimes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Timestamp::class);
- $this->future_action_times = $arr;
-
- return $this;
- }
-
- /**
- * Timestamps of schedule creation and last update.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Timestamps of schedule creation and last update.
- *
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getUpdateTime()
- {
- return $this->update_time;
- }
-
- public function hasUpdateTime()
- {
- return isset($this->update_time);
- }
-
- public function clearUpdateTime()
- {
- unset($this->update_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->update_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string invalid_schedule_error = 8 [deprecated = true];
- * @return string
- * @deprecated
- */
- public function getInvalidScheduleError()
- {
- @trigger_error('invalid_schedule_error is deprecated.', E_USER_DEPRECATED);
- return $this->invalid_schedule_error;
- }
-
- /**
- * Generated from protobuf field string invalid_schedule_error = 8 [deprecated = true];
- * @param string $var
- * @return $this
- * @deprecated
- */
- public function setInvalidScheduleError($var)
- {
- @trigger_error('invalid_schedule_error is deprecated.', E_USER_DEPRECATED);
- GPBUtil::checkString($var, True);
- $this->invalid_schedule_error = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/ScheduleListEntry.php b/api/v1/Temporal/Api/Schedule/V1/ScheduleListEntry.php
deleted file mode 100644
index 97dff350f..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/ScheduleListEntry.php
+++ /dev/null
@@ -1,171 +0,0 @@
-temporal.api.schedule.v1.ScheduleListEntry
- */
-class ScheduleListEntry extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string schedule_id = 1;
- */
- protected $schedule_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 2;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 3;
- */
- protected $search_attributes = null;
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleListInfo info = 4;
- */
- protected $info = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $schedule_id
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type \Temporal\Api\Schedule\V1\ScheduleListInfo $info
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string schedule_id = 1;
- * @return string
- */
- public function getScheduleId()
- {
- return $this->schedule_id;
- }
-
- /**
- * Generated from protobuf field string schedule_id = 1;
- * @param string $var
- * @return $this
- */
- public function setScheduleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->schedule_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 2;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 2;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 3;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 3;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleListInfo info = 4;
- * @return \Temporal\Api\Schedule\V1\ScheduleListInfo|null
- */
- public function getInfo()
- {
- return $this->info;
- }
-
- public function hasInfo()
- {
- return isset($this->info);
- }
-
- public function clearInfo()
- {
- unset($this->info);
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleListInfo info = 4;
- * @param \Temporal\Api\Schedule\V1\ScheduleListInfo $var
- * @return $this
- */
- public function setInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\ScheduleListInfo::class);
- $this->info = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/ScheduleListInfo.php b/api/v1/Temporal/Api/Schedule/V1/ScheduleListInfo.php
deleted file mode 100644
index 9c3dc19cb..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/ScheduleListInfo.php
+++ /dev/null
@@ -1,256 +0,0 @@
-temporal.api.schedule.v1.ScheduleListInfo
- */
-class ScheduleListInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * From spec:
- * Some fields are dropped from this copy of spec: timezone_data
- *
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleSpec spec = 1;
- */
- protected $spec = null;
- /**
- * From action:
- * Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
- * well with JSON. If action is start_workflow, this is set:
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- */
- protected $workflow_type = null;
- /**
- * From state:
- *
- * Generated from protobuf field string notes = 3;
- */
- protected $notes = '';
- /**
- * Generated from protobuf field bool paused = 4;
- */
- protected $paused = false;
- /**
- * From info (maybe fewer entries):
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
- */
- private $recent_actions;
- /**
- * Generated from protobuf field repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
- */
- private $future_action_times;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Schedule\V1\ScheduleSpec $spec
- * From spec:
- * Some fields are dropped from this copy of spec: timezone_data
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * From action:
- * Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
- * well with JSON. If action is start_workflow, this is set:
- * @type string $notes
- * From state:
- * @type bool $paused
- * @type array<\Temporal\Api\Schedule\V1\ScheduleActionResult>|\Google\Protobuf\Internal\RepeatedField $recent_actions
- * From info (maybe fewer entries):
- * @type array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $future_action_times
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * From spec:
- * Some fields are dropped from this copy of spec: timezone_data
- *
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleSpec spec = 1;
- * @return \Temporal\Api\Schedule\V1\ScheduleSpec|null
- */
- public function getSpec()
- {
- return $this->spec;
- }
-
- public function hasSpec()
- {
- return isset($this->spec);
- }
-
- public function clearSpec()
- {
- unset($this->spec);
- }
-
- /**
- * From spec:
- * Some fields are dropped from this copy of spec: timezone_data
- *
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleSpec spec = 1;
- * @param \Temporal\Api\Schedule\V1\ScheduleSpec $var
- * @return $this
- */
- public function setSpec($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\ScheduleSpec::class);
- $this->spec = $var;
-
- return $this;
- }
-
- /**
- * From action:
- * Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
- * well with JSON. If action is start_workflow, this is set:
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * From action:
- * Action is a oneof field, but we need to encode this in JSON and oneof fields don't work
- * well with JSON. If action is start_workflow, this is set:
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * From state:
- *
- * Generated from protobuf field string notes = 3;
- * @return string
- */
- public function getNotes()
- {
- return $this->notes;
- }
-
- /**
- * From state:
- *
- * Generated from protobuf field string notes = 3;
- * @param string $var
- * @return $this
- */
- public function setNotes($var)
- {
- GPBUtil::checkString($var, True);
- $this->notes = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bool paused = 4;
- * @return bool
- */
- public function getPaused()
- {
- return $this->paused;
- }
-
- /**
- * Generated from protobuf field bool paused = 4;
- * @param bool $var
- * @return $this
- */
- public function setPaused($var)
- {
- GPBUtil::checkBool($var);
- $this->paused = $var;
-
- return $this;
- }
-
- /**
- * From info (maybe fewer entries):
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRecentActions()
- {
- return $this->recent_actions;
- }
-
- /**
- * From info (maybe fewer entries):
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleActionResult recent_actions = 5;
- * @param array<\Temporal\Api\Schedule\V1\ScheduleActionResult>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRecentActions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\ScheduleActionResult::class);
- $this->recent_actions = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFutureActionTimes()
- {
- return $this->future_action_times;
- }
-
- /**
- * Generated from protobuf field repeated .google.protobuf.Timestamp future_action_times = 6 [(.gogoproto.stdtime) = true];
- * @param array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFutureActionTimes($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Timestamp::class);
- $this->future_action_times = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/SchedulePatch.php b/api/v1/Temporal/Api/Schedule/V1/SchedulePatch.php
deleted file mode 100644
index 34757a361..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/SchedulePatch.php
+++ /dev/null
@@ -1,182 +0,0 @@
-temporal.api.schedule.v1.SchedulePatch
- */
-class SchedulePatch extends \Google\Protobuf\Internal\Message
-{
- /**
- * If set, trigger one action immediately.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1;
- */
- protected $trigger_immediately = null;
- /**
- * If set, runs though the specified time period(s) and takes actions as if that time
- * passed by right now, all at once. The overlap policy can be overridden for the
- * scope of the backfill.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2;
- */
- private $backfill_request;
- /**
- * If set, change the state to paused or unpaused (respectively) and set the
- * notes field to the value of the string.
- *
- * Generated from protobuf field string pause = 3;
- */
- protected $pause = '';
- /**
- * Generated from protobuf field string unpause = 4;
- */
- protected $unpause = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Schedule\V1\TriggerImmediatelyRequest $trigger_immediately
- * If set, trigger one action immediately.
- * @type array<\Temporal\Api\Schedule\V1\BackfillRequest>|\Google\Protobuf\Internal\RepeatedField $backfill_request
- * If set, runs though the specified time period(s) and takes actions as if that time
- * passed by right now, all at once. The overlap policy can be overridden for the
- * scope of the backfill.
- * @type string $pause
- * If set, change the state to paused or unpaused (respectively) and set the
- * notes field to the value of the string.
- * @type string $unpause
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * If set, trigger one action immediately.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1;
- * @return \Temporal\Api\Schedule\V1\TriggerImmediatelyRequest|null
- */
- public function getTriggerImmediately()
- {
- return $this->trigger_immediately;
- }
-
- public function hasTriggerImmediately()
- {
- return isset($this->trigger_immediately);
- }
-
- public function clearTriggerImmediately()
- {
- unset($this->trigger_immediately);
- }
-
- /**
- * If set, trigger one action immediately.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.TriggerImmediatelyRequest trigger_immediately = 1;
- * @param \Temporal\Api\Schedule\V1\TriggerImmediatelyRequest $var
- * @return $this
- */
- public function setTriggerImmediately($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\TriggerImmediatelyRequest::class);
- $this->trigger_immediately = $var;
-
- return $this;
- }
-
- /**
- * If set, runs though the specified time period(s) and takes actions as if that time
- * passed by right now, all at once. The overlap policy can be overridden for the
- * scope of the backfill.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBackfillRequest()
- {
- return $this->backfill_request;
- }
-
- /**
- * If set, runs though the specified time period(s) and takes actions as if that time
- * passed by right now, all at once. The overlap policy can be overridden for the
- * scope of the backfill.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.BackfillRequest backfill_request = 2;
- * @param array<\Temporal\Api\Schedule\V1\BackfillRequest>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBackfillRequest($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\BackfillRequest::class);
- $this->backfill_request = $arr;
-
- return $this;
- }
-
- /**
- * If set, change the state to paused or unpaused (respectively) and set the
- * notes field to the value of the string.
- *
- * Generated from protobuf field string pause = 3;
- * @return string
- */
- public function getPause()
- {
- return $this->pause;
- }
-
- /**
- * If set, change the state to paused or unpaused (respectively) and set the
- * notes field to the value of the string.
- *
- * Generated from protobuf field string pause = 3;
- * @param string $var
- * @return $this
- */
- public function setPause($var)
- {
- GPBUtil::checkString($var, True);
- $this->pause = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string unpause = 4;
- * @return string
- */
- public function getUnpause()
- {
- return $this->unpause;
- }
-
- /**
- * Generated from protobuf field string unpause = 4;
- * @param string $var
- * @return $this
- */
- public function setUnpause($var)
- {
- GPBUtil::checkString($var, True);
- $this->unpause = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/SchedulePolicies.php b/api/v1/Temporal/Api/Schedule/V1/SchedulePolicies.php
deleted file mode 100644
index f4e4ceb67..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/SchedulePolicies.php
+++ /dev/null
@@ -1,179 +0,0 @@
-temporal.api.schedule.v1.SchedulePolicies
- */
-class SchedulePolicies extends \Google\Protobuf\Internal\Message
-{
- /**
- * Policy for overlaps.
- * Note that this can be changed after a schedule has taken some actions,
- * and some changes might produce unintuitive results. In general, the later
- * policy overrides the earlier policy.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
- */
- protected $overlap_policy = 0;
- /**
- * Policy for catchups:
- * If the Temporal server misses an action due to one or more components
- * being down, and comes back up, the action will be run if the scheduled
- * time is within this window from the current time.
- * This value defaults to 60 seconds, and can't be less than 10 seconds.
- *
- * Generated from protobuf field .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
- */
- protected $catchup_window = null;
- /**
- * If true, and a workflow run fails or times out, turn on "paused".
- * This applies after retry policies: the full chain of retries must fail to
- * trigger a pause here.
- *
- * Generated from protobuf field bool pause_on_failure = 3;
- */
- protected $pause_on_failure = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $overlap_policy
- * Policy for overlaps.
- * Note that this can be changed after a schedule has taken some actions,
- * and some changes might produce unintuitive results. In general, the later
- * policy overrides the earlier policy.
- * @type \Google\Protobuf\Duration $catchup_window
- * Policy for catchups:
- * If the Temporal server misses an action due to one or more components
- * being down, and comes back up, the action will be run if the scheduled
- * time is within this window from the current time.
- * This value defaults to 60 seconds, and can't be less than 10 seconds.
- * @type bool $pause_on_failure
- * If true, and a workflow run fails or times out, turn on "paused".
- * This applies after retry policies: the full chain of retries must fail to
- * trigger a pause here.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Policy for overlaps.
- * Note that this can be changed after a schedule has taken some actions,
- * and some changes might produce unintuitive results. In general, the later
- * policy overrides the earlier policy.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
- * @return int
- */
- public function getOverlapPolicy()
- {
- return $this->overlap_policy;
- }
-
- /**
- * Policy for overlaps.
- * Note that this can be changed after a schedule has taken some actions,
- * and some changes might produce unintuitive results. In general, the later
- * policy overrides the earlier policy.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
- * @param int $var
- * @return $this
- */
- public function setOverlapPolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ScheduleOverlapPolicy::class);
- $this->overlap_policy = $var;
-
- return $this;
- }
-
- /**
- * Policy for catchups:
- * If the Temporal server misses an action due to one or more components
- * being down, and comes back up, the action will be run if the scheduled
- * time is within this window from the current time.
- * This value defaults to 60 seconds, and can't be less than 10 seconds.
- *
- * Generated from protobuf field .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getCatchupWindow()
- {
- return $this->catchup_window;
- }
-
- public function hasCatchupWindow()
- {
- return isset($this->catchup_window);
- }
-
- public function clearCatchupWindow()
- {
- unset($this->catchup_window);
- }
-
- /**
- * Policy for catchups:
- * If the Temporal server misses an action due to one or more components
- * being down, and comes back up, the action will be run if the scheduled
- * time is within this window from the current time.
- * This value defaults to 60 seconds, and can't be less than 10 seconds.
- *
- * Generated from protobuf field .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setCatchupWindow($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->catchup_window = $var;
-
- return $this;
- }
-
- /**
- * If true, and a workflow run fails or times out, turn on "paused".
- * This applies after retry policies: the full chain of retries must fail to
- * trigger a pause here.
- *
- * Generated from protobuf field bool pause_on_failure = 3;
- * @return bool
- */
- public function getPauseOnFailure()
- {
- return $this->pause_on_failure;
- }
-
- /**
- * If true, and a workflow run fails or times out, turn on "paused".
- * This applies after retry policies: the full chain of retries must fail to
- * trigger a pause here.
- *
- * Generated from protobuf field bool pause_on_failure = 3;
- * @param bool $var
- * @return $this
- */
- public function setPauseOnFailure($var)
- {
- GPBUtil::checkBool($var);
- $this->pause_on_failure = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/ScheduleSpec.php b/api/v1/Temporal/Api/Schedule/V1/ScheduleSpec.php
deleted file mode 100644
index 78029aa84..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/ScheduleSpec.php
+++ /dev/null
@@ -1,588 +0,0 @@
-temporal.api.schedule.v1.ScheduleSpec
- */
-class ScheduleSpec extends \Google\Protobuf\Internal\Message
-{
- /**
- * Calendar-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;
- */
- private $structured_calendar;
- /**
- * cron_string holds a traditional cron specification as a string. It
- * accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
- * same way as CalendarSpec.
- * 5 fields: minute, hour, day_of_month, month, day_of_week
- * 6 fields: minute, hour, day_of_month, month, day_of_week, year
- * 7 fields: second, minute, hour, day_of_month, month, day_of_week, year
- * If year is not given, it defaults to *. If second is not given, it
- * defaults to 0.
- * Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
- * accepted instead of the 5-7 time fields.
- * Optionally, the string can be preceded by CRON_TZ= or
- * TZ=, which will get copied to timezone_name. (There must
- * not also be a timezone_name present.)
- * Optionally "#" followed by a comment can appear at the end of the string.
- * Note that the special case that some cron implementations have for
- * treating day_of_month and day_of_week as "or" instead of "and" when both
- * are set is not implemented.
- * @every [/] is accepted and gets compiled into an
- * IntervalSpec instead. and should be a decimal integer
- * with a unit suffix s, m, h, or d.
- *
- * Generated from protobuf field repeated string cron_string = 8;
- */
- private $cron_string;
- /**
- * Calendar-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;
- */
- private $calendar;
- /**
- * Interval-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;
- */
- private $interval;
- /**
- * Any timestamps matching any of exclude_* will be skipped.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];
- * @deprecated
- */
- private $exclude_calendar;
- /**
- * Generated from protobuf field repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
- */
- private $exclude_structured_calendar;
- /**
- * If start_time is set, any timestamps before start_time will be skipped.
- * (Together, start_time and end_time make an inclusive interval.)
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true];
- */
- protected $start_time = null;
- /**
- * If end_time is set, any timestamps after end_time will be skipped.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.gogoproto.stdtime) = true];
- */
- protected $end_time = null;
- /**
- * All timestamps will be incremented by a random value from 0 to this
- * amount of jitter. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration jitter = 6 [(.gogoproto.stdduration) = true];
- */
- protected $jitter = null;
- /**
- * Time zone to interpret all calendar-based specs in.
- * If unset, defaults to UTC. We recommend using UTC for your application if
- * at all possible, to avoid various surprising properties of time zones.
- * Time zones may be provided by name, corresponding to names in the IANA
- * time zone database (see https://www.iana.org/time-zones). The definition
- * will be loaded by the Temporal server from the environment it runs in.
- * If your application requires more control over the time zone definition
- * used, it may pass in a complete definition in the form of a TZif file
- * from the time zone database. If present, this will be used instead of
- * loading anything from the environment. You are then responsible for
- * updating timezone_data when the definition changes.
- * Calendar spec matching is based on literal matching of the clock time
- * with no special handling of DST: if you write a calendar spec that fires
- * at 2:30am and specify a time zone that follows DST, that action will not
- * be triggered on the day that has no 2:30am. Similarly, an action that
- * fires at 1:30am will be triggered twice on the day that has two 1:30s.
- * Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
- *
- * Generated from protobuf field string timezone_name = 10;
- */
- protected $timezone_name = '';
- /**
- * Generated from protobuf field bytes timezone_data = 11;
- */
- protected $timezone_data = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Schedule\V1\StructuredCalendarSpec>|\Google\Protobuf\Internal\RepeatedField $structured_calendar
- * Calendar-based specifications of times.
- * @type array|\Google\Protobuf\Internal\RepeatedField $cron_string
- * cron_string holds a traditional cron specification as a string. It
- * accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
- * same way as CalendarSpec.
- * 5 fields: minute, hour, day_of_month, month, day_of_week
- * 6 fields: minute, hour, day_of_month, month, day_of_week, year
- * 7 fields: second, minute, hour, day_of_month, month, day_of_week, year
- * If year is not given, it defaults to *. If second is not given, it
- * defaults to 0.
- * Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
- * accepted instead of the 5-7 time fields.
- * Optionally, the string can be preceded by CRON_TZ= or
- * TZ=, which will get copied to timezone_name. (There must
- * not also be a timezone_name present.)
- * Optionally "#" followed by a comment can appear at the end of the string.
- * Note that the special case that some cron implementations have for
- * treating day_of_month and day_of_week as "or" instead of "and" when both
- * are set is not implemented.
- * @every [/] is accepted and gets compiled into an
- * IntervalSpec instead. and should be a decimal integer
- * with a unit suffix s, m, h, or d.
- * @type array<\Temporal\Api\Schedule\V1\CalendarSpec>|\Google\Protobuf\Internal\RepeatedField $calendar
- * Calendar-based specifications of times.
- * @type array<\Temporal\Api\Schedule\V1\IntervalSpec>|\Google\Protobuf\Internal\RepeatedField $interval
- * Interval-based specifications of times.
- * @type array<\Temporal\Api\Schedule\V1\CalendarSpec>|\Google\Protobuf\Internal\RepeatedField $exclude_calendar
- * Any timestamps matching any of exclude_* will be skipped.
- * @type array<\Temporal\Api\Schedule\V1\StructuredCalendarSpec>|\Google\Protobuf\Internal\RepeatedField $exclude_structured_calendar
- * @type \Google\Protobuf\Timestamp $start_time
- * If start_time is set, any timestamps before start_time will be skipped.
- * (Together, start_time and end_time make an inclusive interval.)
- * @type \Google\Protobuf\Timestamp $end_time
- * If end_time is set, any timestamps after end_time will be skipped.
- * @type \Google\Protobuf\Duration $jitter
- * All timestamps will be incremented by a random value from 0 to this
- * amount of jitter. Default: 0
- * @type string $timezone_name
- * Time zone to interpret all calendar-based specs in.
- * If unset, defaults to UTC. We recommend using UTC for your application if
- * at all possible, to avoid various surprising properties of time zones.
- * Time zones may be provided by name, corresponding to names in the IANA
- * time zone database (see https://www.iana.org/time-zones). The definition
- * will be loaded by the Temporal server from the environment it runs in.
- * If your application requires more control over the time zone definition
- * used, it may pass in a complete definition in the form of a TZif file
- * from the time zone database. If present, this will be used instead of
- * loading anything from the environment. You are then responsible for
- * updating timezone_data when the definition changes.
- * Calendar spec matching is based on literal matching of the clock time
- * with no special handling of DST: if you write a calendar spec that fires
- * at 2:30am and specify a time zone that follows DST, that action will not
- * be triggered on the day that has no 2:30am. Similarly, an action that
- * fires at 1:30am will be triggered twice on the day that has two 1:30s.
- * Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
- * @type string $timezone_data
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Calendar-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getStructuredCalendar()
- {
- return $this->structured_calendar;
- }
-
- /**
- * Calendar-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.StructuredCalendarSpec structured_calendar = 7;
- * @param array<\Temporal\Api\Schedule\V1\StructuredCalendarSpec>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setStructuredCalendar($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\StructuredCalendarSpec::class);
- $this->structured_calendar = $arr;
-
- return $this;
- }
-
- /**
- * cron_string holds a traditional cron specification as a string. It
- * accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
- * same way as CalendarSpec.
- * 5 fields: minute, hour, day_of_month, month, day_of_week
- * 6 fields: minute, hour, day_of_month, month, day_of_week, year
- * 7 fields: second, minute, hour, day_of_month, month, day_of_week, year
- * If year is not given, it defaults to *. If second is not given, it
- * defaults to 0.
- * Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
- * accepted instead of the 5-7 time fields.
- * Optionally, the string can be preceded by CRON_TZ= or
- * TZ=, which will get copied to timezone_name. (There must
- * not also be a timezone_name present.)
- * Optionally "#" followed by a comment can appear at the end of the string.
- * Note that the special case that some cron implementations have for
- * treating day_of_month and day_of_week as "or" instead of "and" when both
- * are set is not implemented.
- * @every [/] is accepted and gets compiled into an
- * IntervalSpec instead. and should be a decimal integer
- * with a unit suffix s, m, h, or d.
- *
- * Generated from protobuf field repeated string cron_string = 8;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCronString()
- {
- return $this->cron_string;
- }
-
- /**
- * cron_string holds a traditional cron specification as a string. It
- * accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
- * same way as CalendarSpec.
- * 5 fields: minute, hour, day_of_month, month, day_of_week
- * 6 fields: minute, hour, day_of_month, month, day_of_week, year
- * 7 fields: second, minute, hour, day_of_month, month, day_of_week, year
- * If year is not given, it defaults to *. If second is not given, it
- * defaults to 0.
- * Shorthands @yearly, @monthly, @weekly, @daily, and @hourly are also
- * accepted instead of the 5-7 time fields.
- * Optionally, the string can be preceded by CRON_TZ= or
- * TZ=, which will get copied to timezone_name. (There must
- * not also be a timezone_name present.)
- * Optionally "#" followed by a comment can appear at the end of the string.
- * Note that the special case that some cron implementations have for
- * treating day_of_month and day_of_week as "or" instead of "and" when both
- * are set is not implemented.
- * @every [/] is accepted and gets compiled into an
- * IntervalSpec instead. and should be a decimal integer
- * with a unit suffix s, m, h, or d.
- *
- * Generated from protobuf field repeated string cron_string = 8;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCronString($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->cron_string = $arr;
-
- return $this;
- }
-
- /**
- * Calendar-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCalendar()
- {
- return $this->calendar;
- }
-
- /**
- * Calendar-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.CalendarSpec calendar = 1;
- * @param array<\Temporal\Api\Schedule\V1\CalendarSpec>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCalendar($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\CalendarSpec::class);
- $this->calendar = $arr;
-
- return $this;
- }
-
- /**
- * Interval-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getInterval()
- {
- return $this->interval;
- }
-
- /**
- * Interval-based specifications of times.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.IntervalSpec interval = 2;
- * @param array<\Temporal\Api\Schedule\V1\IntervalSpec>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setInterval($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\IntervalSpec::class);
- $this->interval = $arr;
-
- return $this;
- }
-
- /**
- * Any timestamps matching any of exclude_* will be skipped.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];
- * @return \Google\Protobuf\Internal\RepeatedField
- * @deprecated
- */
- public function getExcludeCalendar()
- {
- @trigger_error('exclude_calendar is deprecated.', E_USER_DEPRECATED);
- return $this->exclude_calendar;
- }
-
- /**
- * Any timestamps matching any of exclude_* will be skipped.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.CalendarSpec exclude_calendar = 3 [deprecated = true];
- * @param array<\Temporal\Api\Schedule\V1\CalendarSpec>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- * @deprecated
- */
- public function setExcludeCalendar($var)
- {
- @trigger_error('exclude_calendar is deprecated.', E_USER_DEPRECATED);
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\CalendarSpec::class);
- $this->exclude_calendar = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExcludeStructuredCalendar()
- {
- return $this->exclude_structured_calendar;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.schedule.v1.StructuredCalendarSpec exclude_structured_calendar = 9;
- * @param array<\Temporal\Api\Schedule\V1\StructuredCalendarSpec>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExcludeStructuredCalendar($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\StructuredCalendarSpec::class);
- $this->exclude_structured_calendar = $arr;
-
- return $this;
- }
-
- /**
- * If start_time is set, any timestamps before start_time will be skipped.
- * (Together, start_time and end_time make an inclusive interval.)
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * If start_time is set, any timestamps before start_time will be skipped.
- * (Together, start_time and end_time make an inclusive interval.)
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * If end_time is set, any timestamps after end_time will be skipped.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * If end_time is set, any timestamps after end_time will be skipped.
- *
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 5 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
- /**
- * All timestamps will be incremented by a random value from 0 to this
- * amount of jitter. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration jitter = 6 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getJitter()
- {
- return $this->jitter;
- }
-
- public function hasJitter()
- {
- return isset($this->jitter);
- }
-
- public function clearJitter()
- {
- unset($this->jitter);
- }
-
- /**
- * All timestamps will be incremented by a random value from 0 to this
- * amount of jitter. Default: 0
- *
- * Generated from protobuf field .google.protobuf.Duration jitter = 6 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setJitter($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->jitter = $var;
-
- return $this;
- }
-
- /**
- * Time zone to interpret all calendar-based specs in.
- * If unset, defaults to UTC. We recommend using UTC for your application if
- * at all possible, to avoid various surprising properties of time zones.
- * Time zones may be provided by name, corresponding to names in the IANA
- * time zone database (see https://www.iana.org/time-zones). The definition
- * will be loaded by the Temporal server from the environment it runs in.
- * If your application requires more control over the time zone definition
- * used, it may pass in a complete definition in the form of a TZif file
- * from the time zone database. If present, this will be used instead of
- * loading anything from the environment. You are then responsible for
- * updating timezone_data when the definition changes.
- * Calendar spec matching is based on literal matching of the clock time
- * with no special handling of DST: if you write a calendar spec that fires
- * at 2:30am and specify a time zone that follows DST, that action will not
- * be triggered on the day that has no 2:30am. Similarly, an action that
- * fires at 1:30am will be triggered twice on the day that has two 1:30s.
- * Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
- *
- * Generated from protobuf field string timezone_name = 10;
- * @return string
- */
- public function getTimezoneName()
- {
- return $this->timezone_name;
- }
-
- /**
- * Time zone to interpret all calendar-based specs in.
- * If unset, defaults to UTC. We recommend using UTC for your application if
- * at all possible, to avoid various surprising properties of time zones.
- * Time zones may be provided by name, corresponding to names in the IANA
- * time zone database (see https://www.iana.org/time-zones). The definition
- * will be loaded by the Temporal server from the environment it runs in.
- * If your application requires more control over the time zone definition
- * used, it may pass in a complete definition in the form of a TZif file
- * from the time zone database. If present, this will be used instead of
- * loading anything from the environment. You are then responsible for
- * updating timezone_data when the definition changes.
- * Calendar spec matching is based on literal matching of the clock time
- * with no special handling of DST: if you write a calendar spec that fires
- * at 2:30am and specify a time zone that follows DST, that action will not
- * be triggered on the day that has no 2:30am. Similarly, an action that
- * fires at 1:30am will be triggered twice on the day that has two 1:30s.
- * Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
- *
- * Generated from protobuf field string timezone_name = 10;
- * @param string $var
- * @return $this
- */
- public function setTimezoneName($var)
- {
- GPBUtil::checkString($var, True);
- $this->timezone_name = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes timezone_data = 11;
- * @return string
- */
- public function getTimezoneData()
- {
- return $this->timezone_data;
- }
-
- /**
- * Generated from protobuf field bytes timezone_data = 11;
- * @param string $var
- * @return $this
- */
- public function setTimezoneData($var)
- {
- GPBUtil::checkString($var, False);
- $this->timezone_data = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/ScheduleState.php b/api/v1/Temporal/Api/Schedule/V1/ScheduleState.php
deleted file mode 100644
index 6fdae64e9..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/ScheduleState.php
+++ /dev/null
@@ -1,184 +0,0 @@
-temporal.api.schedule.v1.ScheduleState
- */
-class ScheduleState extends \Google\Protobuf\Internal\Message
-{
- /**
- * Informative human-readable message with contextual notes, e.g. the reason
- * a schedule is paused. The system may overwrite this message on certain
- * conditions, e.g. when pause-on-failure happens.
- *
- * Generated from protobuf field string notes = 1;
- */
- protected $notes = '';
- /**
- * If true, do not take any actions based on the schedule spec.
- *
- * Generated from protobuf field bool paused = 2;
- */
- protected $paused = false;
- /**
- * If limited_actions is true, decrement remaining_actions after each
- * action, and do not take any more scheduled actions if remaining_actions
- * is zero. Actions may still be taken by explicit request (i.e. trigger
- * immediately or backfill). Skipped actions (due to overlap policy) do not
- * count against remaining actions.
- *
- * Generated from protobuf field bool limited_actions = 3;
- */
- protected $limited_actions = false;
- /**
- * Generated from protobuf field int64 remaining_actions = 4;
- */
- protected $remaining_actions = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $notes
- * Informative human-readable message with contextual notes, e.g. the reason
- * a schedule is paused. The system may overwrite this message on certain
- * conditions, e.g. when pause-on-failure happens.
- * @type bool $paused
- * If true, do not take any actions based on the schedule spec.
- * @type bool $limited_actions
- * If limited_actions is true, decrement remaining_actions after each
- * action, and do not take any more scheduled actions if remaining_actions
- * is zero. Actions may still be taken by explicit request (i.e. trigger
- * immediately or backfill). Skipped actions (due to overlap policy) do not
- * count against remaining actions.
- * @type int|string $remaining_actions
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Informative human-readable message with contextual notes, e.g. the reason
- * a schedule is paused. The system may overwrite this message on certain
- * conditions, e.g. when pause-on-failure happens.
- *
- * Generated from protobuf field string notes = 1;
- * @return string
- */
- public function getNotes()
- {
- return $this->notes;
- }
-
- /**
- * Informative human-readable message with contextual notes, e.g. the reason
- * a schedule is paused. The system may overwrite this message on certain
- * conditions, e.g. when pause-on-failure happens.
- *
- * Generated from protobuf field string notes = 1;
- * @param string $var
- * @return $this
- */
- public function setNotes($var)
- {
- GPBUtil::checkString($var, True);
- $this->notes = $var;
-
- return $this;
- }
-
- /**
- * If true, do not take any actions based on the schedule spec.
- *
- * Generated from protobuf field bool paused = 2;
- * @return bool
- */
- public function getPaused()
- {
- return $this->paused;
- }
-
- /**
- * If true, do not take any actions based on the schedule spec.
- *
- * Generated from protobuf field bool paused = 2;
- * @param bool $var
- * @return $this
- */
- public function setPaused($var)
- {
- GPBUtil::checkBool($var);
- $this->paused = $var;
-
- return $this;
- }
-
- /**
- * If limited_actions is true, decrement remaining_actions after each
- * action, and do not take any more scheduled actions if remaining_actions
- * is zero. Actions may still be taken by explicit request (i.e. trigger
- * immediately or backfill). Skipped actions (due to overlap policy) do not
- * count against remaining actions.
- *
- * Generated from protobuf field bool limited_actions = 3;
- * @return bool
- */
- public function getLimitedActions()
- {
- return $this->limited_actions;
- }
-
- /**
- * If limited_actions is true, decrement remaining_actions after each
- * action, and do not take any more scheduled actions if remaining_actions
- * is zero. Actions may still be taken by explicit request (i.e. trigger
- * immediately or backfill). Skipped actions (due to overlap policy) do not
- * count against remaining actions.
- *
- * Generated from protobuf field bool limited_actions = 3;
- * @param bool $var
- * @return $this
- */
- public function setLimitedActions($var)
- {
- GPBUtil::checkBool($var);
- $this->limited_actions = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 remaining_actions = 4;
- * @return int|string
- */
- public function getRemainingActions()
- {
- return $this->remaining_actions;
- }
-
- /**
- * Generated from protobuf field int64 remaining_actions = 4;
- * @param int|string $var
- * @return $this
- */
- public function setRemainingActions($var)
- {
- GPBUtil::checkInt64($var);
- $this->remaining_actions = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/StructuredCalendarSpec.php b/api/v1/Temporal/Api/Schedule/V1/StructuredCalendarSpec.php
deleted file mode 100644
index 126816227..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/StructuredCalendarSpec.php
+++ /dev/null
@@ -1,321 +0,0 @@
-temporal.api.schedule.v1.StructuredCalendarSpec
- */
-class StructuredCalendarSpec extends \Google\Protobuf\Internal\Message
-{
- /**
- * Match seconds (0-59)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range second = 1;
- */
- private $second;
- /**
- * Match minutes (0-59)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range minute = 2;
- */
- private $minute;
- /**
- * Match hours (0-23)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range hour = 3;
- */
- private $hour;
- /**
- * Match days of the month (1-31)
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: standard name of field --)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range day_of_month = 4;
- */
- private $day_of_month;
- /**
- * Match months (1-12)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range month = 5;
- */
- private $month;
- /**
- * Match years.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range year = 6;
- */
- private $year;
- /**
- * Match days of the week (0-6; 0 is Sunday).
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range day_of_week = 7;
- */
- private $day_of_week;
- /**
- * Free-form comment describing the intention of this spec.
- *
- * Generated from protobuf field string comment = 8;
- */
- protected $comment = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $second
- * Match seconds (0-59)
- * @type array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $minute
- * Match minutes (0-59)
- * @type array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $hour
- * Match hours (0-23)
- * @type array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $day_of_month
- * Match days of the month (1-31)
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: standard name of field --)
- * @type array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $month
- * Match months (1-12)
- * @type array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $year
- * Match years.
- * @type array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $day_of_week
- * Match days of the week (0-6; 0 is Sunday).
- * @type string $comment
- * Free-form comment describing the intention of this spec.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Match seconds (0-59)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range second = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSecond()
- {
- return $this->second;
- }
-
- /**
- * Match seconds (0-59)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range second = 1;
- * @param array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSecond($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\Range::class);
- $this->second = $arr;
-
- return $this;
- }
-
- /**
- * Match minutes (0-59)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range minute = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMinute()
- {
- return $this->minute;
- }
-
- /**
- * Match minutes (0-59)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range minute = 2;
- * @param array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMinute($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\Range::class);
- $this->minute = $arr;
-
- return $this;
- }
-
- /**
- * Match hours (0-23)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range hour = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getHour()
- {
- return $this->hour;
- }
-
- /**
- * Match hours (0-23)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range hour = 3;
- * @param array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setHour($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\Range::class);
- $this->hour = $arr;
-
- return $this;
- }
-
- /**
- * Match days of the month (1-31)
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: standard name of field --)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range day_of_month = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDayOfMonth()
- {
- return $this->day_of_month;
- }
-
- /**
- * Match days of the month (1-31)
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: standard name of field --)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range day_of_month = 4;
- * @param array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDayOfMonth($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\Range::class);
- $this->day_of_month = $arr;
-
- return $this;
- }
-
- /**
- * Match months (1-12)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range month = 5;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMonth()
- {
- return $this->month;
- }
-
- /**
- * Match months (1-12)
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range month = 5;
- * @param array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMonth($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\Range::class);
- $this->month = $arr;
-
- return $this;
- }
-
- /**
- * Match years.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range year = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getYear()
- {
- return $this->year;
- }
-
- /**
- * Match years.
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range year = 6;
- * @param array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setYear($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\Range::class);
- $this->year = $arr;
-
- return $this;
- }
-
- /**
- * Match days of the week (0-6; 0 is Sunday).
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range day_of_week = 7;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getDayOfWeek()
- {
- return $this->day_of_week;
- }
-
- /**
- * Match days of the week (0-6; 0 is Sunday).
- *
- * Generated from protobuf field repeated .temporal.api.schedule.v1.Range day_of_week = 7;
- * @param array<\Temporal\Api\Schedule\V1\Range>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setDayOfWeek($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\Range::class);
- $this->day_of_week = $arr;
-
- return $this;
- }
-
- /**
- * Free-form comment describing the intention of this spec.
- *
- * Generated from protobuf field string comment = 8;
- * @return string
- */
- public function getComment()
- {
- return $this->comment;
- }
-
- /**
- * Free-form comment describing the intention of this spec.
- *
- * Generated from protobuf field string comment = 8;
- * @param string $var
- * @return $this
- */
- public function setComment($var)
- {
- GPBUtil::checkString($var, True);
- $this->comment = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Schedule/V1/TriggerImmediatelyRequest.php b/api/v1/Temporal/Api/Schedule/V1/TriggerImmediatelyRequest.php
deleted file mode 100644
index 8071d1e7f..000000000
--- a/api/v1/Temporal/Api/Schedule/V1/TriggerImmediatelyRequest.php
+++ /dev/null
@@ -1,65 +0,0 @@
-temporal.api.schedule.v1.TriggerImmediatelyRequest
- */
-class TriggerImmediatelyRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Override overlap policy for this one request.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
- */
- protected $overlap_policy = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $overlap_policy
- * Override overlap policy for this one request.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Schedule\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Override overlap policy for this one request.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
- * @return int
- */
- public function getOverlapPolicy()
- {
- return $this->overlap_policy;
- }
-
- /**
- * Override overlap policy for this one request.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;
- * @param int $var
- * @return $this
- */
- public function setOverlapPolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ScheduleOverlapPolicy::class);
- $this->overlap_policy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Sdk/V1/WorkflowTaskCompletedMetadata.php b/api/v1/Temporal/Api/Sdk/V1/WorkflowTaskCompletedMetadata.php
deleted file mode 100644
index 88cc173a8..000000000
--- a/api/v1/Temporal/Api/Sdk/V1/WorkflowTaskCompletedMetadata.php
+++ /dev/null
@@ -1,171 +0,0 @@
-temporal.api.sdk.v1.WorkflowTaskCompletedMetadata
- */
-class WorkflowTaskCompletedMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Internal flags used by the core SDK. SDKs using flags must comply with the following behavior:
- * During replay:
- * * If a flag is not recognized (value is too high or not defined), it must fail the workflow
- * task.
- * * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for
- * that flag during and after this WFT are allowed to assume that the flag is present.
- * * If a code check for a flag does not find the flag in the set of used flags, it must take
- * the branch corresponding to the absence of that flag.
- * During non-replay execution of new WFTs:
- * * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not
- * previously recorded) flags when completing the WFT.
- * SDKs which are too old to even know about this field at all are considered to produce
- * undefined behavior if they replay workflows which used this mechanism.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: These really shouldn't have negative values. --)
- *
- * Generated from protobuf field repeated uint32 core_used_flags = 1;
- */
- private $core_used_flags;
- /**
- * Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages
- * here as processing a workflow with a different language than the one which authored it is
- * already undefined behavior. See `core_used_patches` for more.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: These really shouldn't have negative values. --)
- *
- * Generated from protobuf field repeated uint32 lang_used_flags = 2;
- */
- private $lang_used_flags;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $core_used_flags
- * Internal flags used by the core SDK. SDKs using flags must comply with the following behavior:
- * During replay:
- * * If a flag is not recognized (value is too high or not defined), it must fail the workflow
- * task.
- * * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for
- * that flag during and after this WFT are allowed to assume that the flag is present.
- * * If a code check for a flag does not find the flag in the set of used flags, it must take
- * the branch corresponding to the absence of that flag.
- * During non-replay execution of new WFTs:
- * * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not
- * previously recorded) flags when completing the WFT.
- * SDKs which are too old to even know about this field at all are considered to produce
- * undefined behavior if they replay workflows which used this mechanism.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: These really shouldn't have negative values. --)
- * @type array|\Google\Protobuf\Internal\RepeatedField $lang_used_flags
- * Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages
- * here as processing a workflow with a different language than the one which authored it is
- * already undefined behavior. See `core_used_patches` for more.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: These really shouldn't have negative values. --)
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Sdk\V1\TaskCompleteMetadata::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Internal flags used by the core SDK. SDKs using flags must comply with the following behavior:
- * During replay:
- * * If a flag is not recognized (value is too high or not defined), it must fail the workflow
- * task.
- * * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for
- * that flag during and after this WFT are allowed to assume that the flag is present.
- * * If a code check for a flag does not find the flag in the set of used flags, it must take
- * the branch corresponding to the absence of that flag.
- * During non-replay execution of new WFTs:
- * * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not
- * previously recorded) flags when completing the WFT.
- * SDKs which are too old to even know about this field at all are considered to produce
- * undefined behavior if they replay workflows which used this mechanism.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: These really shouldn't have negative values. --)
- *
- * Generated from protobuf field repeated uint32 core_used_flags = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCoreUsedFlags()
- {
- return $this->core_used_flags;
- }
-
- /**
- * Internal flags used by the core SDK. SDKs using flags must comply with the following behavior:
- * During replay:
- * * If a flag is not recognized (value is too high or not defined), it must fail the workflow
- * task.
- * * If a flag is recognized, it is stored in a set of used flags for the run. Code checks for
- * that flag during and after this WFT are allowed to assume that the flag is present.
- * * If a code check for a flag does not find the flag in the set of used flags, it must take
- * the branch corresponding to the absence of that flag.
- * During non-replay execution of new WFTs:
- * * The SDK is free to use all flags it knows about. It must record any newly-used (IE: not
- * previously recorded) flags when completing the WFT.
- * SDKs which are too old to even know about this field at all are considered to produce
- * undefined behavior if they replay workflows which used this mechanism.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: These really shouldn't have negative values. --)
- *
- * Generated from protobuf field repeated uint32 core_used_flags = 1;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCoreUsedFlags($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
- $this->core_used_flags = $arr;
-
- return $this;
- }
-
- /**
- * Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages
- * here as processing a workflow with a different language than the one which authored it is
- * already undefined behavior. See `core_used_patches` for more.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: These really shouldn't have negative values. --)
- *
- * Generated from protobuf field repeated uint32 lang_used_flags = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getLangUsedFlags()
- {
- return $this->lang_used_flags;
- }
-
- /**
- * Flags used by the SDK lang. No attempt is made to distinguish between different SDK languages
- * here as processing a workflow with a different language than the one which authored it is
- * already undefined behavior. See `core_used_patches` for more.
- * (-- api-linter: core::0141::forbidden-types=disabled
- * aip.dev/not-precedent: These really shouldn't have negative values. --)
- *
- * Generated from protobuf field repeated uint32 lang_used_flags = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setLangUsedFlags($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::UINT32);
- $this->lang_used_flags = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/BuildIdReachability.php b/api/v1/Temporal/Api/Taskqueue/V1/BuildIdReachability.php
deleted file mode 100644
index 058d3174a..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/BuildIdReachability.php
+++ /dev/null
@@ -1,101 +0,0 @@
-temporal.api.taskqueue.v1.BuildIdReachability
- */
-class BuildIdReachability extends \Google\Protobuf\Internal\Message
-{
- /**
- * A build id or empty if unversioned.
- *
- * Generated from protobuf field string build_id = 1;
- */
- protected $build_id = '';
- /**
- * Reachability per task queue.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2;
- */
- private $task_queue_reachability;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $build_id
- * A build id or empty if unversioned.
- * @type array<\Temporal\Api\Taskqueue\V1\TaskQueueReachability>|\Google\Protobuf\Internal\RepeatedField $task_queue_reachability
- * Reachability per task queue.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A build id or empty if unversioned.
- *
- * Generated from protobuf field string build_id = 1;
- * @return string
- */
- public function getBuildId()
- {
- return $this->build_id;
- }
-
- /**
- * A build id or empty if unversioned.
- *
- * Generated from protobuf field string build_id = 1;
- * @param string $var
- * @return $this
- */
- public function setBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->build_id = $var;
-
- return $this;
- }
-
- /**
- * Reachability per task queue.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTaskQueueReachability()
- {
- return $this->task_queue_reachability;
- }
-
- /**
- * Reachability per task queue.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2;
- * @param array<\Temporal\Api\Taskqueue\V1\TaskQueueReachability>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTaskQueueReachability($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Taskqueue\V1\TaskQueueReachability::class);
- $this->task_queue_reachability = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/CompatibleVersionSet.php b/api/v1/Temporal/Api/Taskqueue/V1/CompatibleVersionSet.php
deleted file mode 100644
index 00eff629d..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/CompatibleVersionSet.php
+++ /dev/null
@@ -1,68 +0,0 @@
-temporal.api.taskqueue.v1.CompatibleVersionSet
- */
-class CompatibleVersionSet extends \Google\Protobuf\Internal\Message
-{
- /**
- * All the compatible versions, unordered, except for the last element, which is considered the set "default".
- *
- * Generated from protobuf field repeated string build_ids = 1;
- */
- private $build_ids;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\RepeatedField $build_ids
- * All the compatible versions, unordered, except for the last element, which is considered the set "default".
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * All the compatible versions, unordered, except for the last element, which is considered the set "default".
- *
- * Generated from protobuf field repeated string build_ids = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBuildIds()
- {
- return $this->build_ids;
- }
-
- /**
- * All the compatible versions, unordered, except for the last element, which is considered the set "default".
- *
- * Generated from protobuf field repeated string build_ids = 1;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBuildIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->build_ids = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/PollerInfo.php b/api/v1/Temporal/Api/Taskqueue/V1/PollerInfo.php
deleted file mode 100644
index c1fe38f1d..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/PollerInfo.php
+++ /dev/null
@@ -1,170 +0,0 @@
-temporal.api.taskqueue.v1.PollerInfo
- */
-class PollerInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
- */
- protected $last_access_time = null;
- /**
- * Generated from protobuf field string identity = 2;
- */
- protected $identity = '';
- /**
- * Generated from protobuf field double rate_per_second = 3;
- */
- protected $rate_per_second = 0.0;
- /**
- * If a worker has opted into the worker versioning feature while polling, its capabilities will
- * appear here.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
- */
- protected $worker_version_capabilities = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\Timestamp $last_access_time
- * @type string $identity
- * @type float $rate_per_second
- * @type \Temporal\Api\Common\V1\WorkerVersionCapabilities $worker_version_capabilities
- * If a worker has opted into the worker versioning feature while polling, its capabilities will
- * appear here.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getLastAccessTime()
- {
- return $this->last_access_time;
- }
-
- public function hasLastAccessTime()
- {
- return isset($this->last_access_time);
- }
-
- public function clearLastAccessTime()
- {
- unset($this->last_access_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_access_time = 1 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setLastAccessTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->last_access_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string identity = 2;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * Generated from protobuf field string identity = 2;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field double rate_per_second = 3;
- * @return float
- */
- public function getRatePerSecond()
- {
- return $this->rate_per_second;
- }
-
- /**
- * Generated from protobuf field double rate_per_second = 3;
- * @param float $var
- * @return $this
- */
- public function setRatePerSecond($var)
- {
- GPBUtil::checkDouble($var);
- $this->rate_per_second = $var;
-
- return $this;
- }
-
- /**
- * If a worker has opted into the worker versioning feature while polling, its capabilities will
- * appear here.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
- * @return \Temporal\Api\Common\V1\WorkerVersionCapabilities|null
- */
- public function getWorkerVersionCapabilities()
- {
- return $this->worker_version_capabilities;
- }
-
- public function hasWorkerVersionCapabilities()
- {
- return isset($this->worker_version_capabilities);
- }
-
- public function clearWorkerVersionCapabilities()
- {
- unset($this->worker_version_capabilities);
- }
-
- /**
- * If a worker has opted into the worker versioning feature while polling, its capabilities will
- * appear here.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4;
- * @param \Temporal\Api\Common\V1\WorkerVersionCapabilities $var
- * @return $this
- */
- public function setWorkerVersionCapabilities($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionCapabilities::class);
- $this->worker_version_capabilities = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/StickyExecutionAttributes.php b/api/v1/Temporal/Api/Taskqueue/V1/StickyExecutionAttributes.php
deleted file mode 100644
index 5da4df982..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/StickyExecutionAttributes.php
+++ /dev/null
@@ -1,116 +0,0 @@
-temporal.api.taskqueue.v1.StickyExecutionAttributes
- */
-class StickyExecutionAttributes extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue worker_task_queue = 1;
- */
- protected $worker_task_queue = null;
- /**
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 2 [(.gogoproto.stdduration) = true];
- */
- protected $schedule_to_start_timeout = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $worker_task_queue
- * @type \Google\Protobuf\Duration $schedule_to_start_timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue worker_task_queue = 1;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getWorkerTaskQueue()
- {
- return $this->worker_task_queue;
- }
-
- public function hasWorkerTaskQueue()
- {
- return isset($this->worker_task_queue);
- }
-
- public function clearWorkerTaskQueue()
- {
- unset($this->worker_task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue worker_task_queue = 1;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setWorkerTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->worker_task_queue = $var;
-
- return $this;
- }
-
- /**
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 2 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getScheduleToStartTimeout()
- {
- return $this->schedule_to_start_timeout;
- }
-
- public function hasScheduleToStartTimeout()
- {
- return isset($this->schedule_to_start_timeout);
- }
-
- public function clearScheduleToStartTimeout()
- {
- unset($this->schedule_to_start_timeout);
- }
-
- /**
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_start_timeout = 2 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setScheduleToStartTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->schedule_to_start_timeout = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/TaskIdBlock.php b/api/v1/Temporal/Api/Taskqueue/V1/TaskIdBlock.php
deleted file mode 100644
index 52c6677ea..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/TaskIdBlock.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.taskqueue.v1.TaskIdBlock
- */
-class TaskIdBlock extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field int64 start_id = 1;
- */
- protected $start_id = 0;
- /**
- * Generated from protobuf field int64 end_id = 2;
- */
- protected $end_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $start_id
- * @type int|string $end_id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field int64 start_id = 1;
- * @return int|string
- */
- public function getStartId()
- {
- return $this->start_id;
- }
-
- /**
- * Generated from protobuf field int64 start_id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setStartId($var)
- {
- GPBUtil::checkInt64($var);
- $this->start_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 end_id = 2;
- * @return int|string
- */
- public function getEndId()
- {
- return $this->end_id;
- }
-
- /**
- * Generated from protobuf field int64 end_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setEndId($var)
- {
- GPBUtil::checkInt64($var);
- $this->end_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueue.php b/api/v1/Temporal/Api/Taskqueue/V1/TaskQueue.php
deleted file mode 100644
index 07ef8b103..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueue.php
+++ /dev/null
@@ -1,132 +0,0 @@
-temporal.api.taskqueue.v1.TaskQueue
- */
-class TaskQueue extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string name = 1;
- */
- protected $name = '';
- /**
- * Default: TASK_QUEUE_KIND_NORMAL.
- *
- * Generated from protobuf field .temporal.api.enums.v1.TaskQueueKind kind = 2;
- */
- protected $kind = 0;
- /**
- * Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of
- * the normal task queue that the sticky worker is running on.
- *
- * Generated from protobuf field string normal_name = 3;
- */
- protected $normal_name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * @type int $kind
- * Default: TASK_QUEUE_KIND_NORMAL.
- * @type string $normal_name
- * Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of
- * the normal task queue that the sticky worker is running on.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * Generated from protobuf field string name = 1;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * Default: TASK_QUEUE_KIND_NORMAL.
- *
- * Generated from protobuf field .temporal.api.enums.v1.TaskQueueKind kind = 2;
- * @return int
- */
- public function getKind()
- {
- return $this->kind;
- }
-
- /**
- * Default: TASK_QUEUE_KIND_NORMAL.
- *
- * Generated from protobuf field .temporal.api.enums.v1.TaskQueueKind kind = 2;
- * @param int $var
- * @return $this
- */
- public function setKind($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\TaskQueueKind::class);
- $this->kind = $var;
-
- return $this;
- }
-
- /**
- * Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of
- * the normal task queue that the sticky worker is running on.
- *
- * Generated from protobuf field string normal_name = 3;
- * @return string
- */
- public function getNormalName()
- {
- return $this->normal_name;
- }
-
- /**
- * Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of
- * the normal task queue that the sticky worker is running on.
- *
- * Generated from protobuf field string normal_name = 3;
- * @param string $var
- * @return $this
- */
- public function setNormalName($var)
- {
- GPBUtil::checkString($var, True);
- $this->normal_name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueMetadata.php b/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueMetadata.php
deleted file mode 100644
index f2f80f9b2..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueMetadata.php
+++ /dev/null
@@ -1,104 +0,0 @@
-temporal.api.taskqueue.v1.TaskQueueMetadata
- */
-class TaskQueueMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Allows throttling dispatch of tasks from this queue
- *
- * Generated from protobuf field .google.protobuf.DoubleValue max_tasks_per_second = 1;
- */
- protected $max_tasks_per_second = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Google\Protobuf\DoubleValue $max_tasks_per_second
- * Allows throttling dispatch of tasks from this queue
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Allows throttling dispatch of tasks from this queue
- *
- * Generated from protobuf field .google.protobuf.DoubleValue max_tasks_per_second = 1;
- * @return \Google\Protobuf\DoubleValue|null
- */
- public function getMaxTasksPerSecond()
- {
- return $this->max_tasks_per_second;
- }
-
- public function hasMaxTasksPerSecond()
- {
- return isset($this->max_tasks_per_second);
- }
-
- public function clearMaxTasksPerSecond()
- {
- unset($this->max_tasks_per_second);
- }
-
- /**
- * Returns the unboxed value from getMaxTasksPerSecond()
-
- * Allows throttling dispatch of tasks from this queue
- *
- * Generated from protobuf field .google.protobuf.DoubleValue max_tasks_per_second = 1;
- * @return float|null
- */
- public function getMaxTasksPerSecondUnwrapped()
- {
- return $this->readWrapperValue("max_tasks_per_second");
- }
-
- /**
- * Allows throttling dispatch of tasks from this queue
- *
- * Generated from protobuf field .google.protobuf.DoubleValue max_tasks_per_second = 1;
- * @param \Google\Protobuf\DoubleValue $var
- * @return $this
- */
- public function setMaxTasksPerSecond($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class);
- $this->max_tasks_per_second = $var;
-
- return $this;
- }
-
- /**
- * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object.
-
- * Allows throttling dispatch of tasks from this queue
- *
- * Generated from protobuf field .google.protobuf.DoubleValue max_tasks_per_second = 1;
- * @param float|null $var
- * @return $this
- */
- public function setMaxTasksPerSecondUnwrapped($var)
- {
- $this->writeWrapperValue("max_tasks_per_second", $var);
- return $this;}
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueuePartitionMetadata.php b/api/v1/Temporal/Api/Taskqueue/V1/TaskQueuePartitionMetadata.php
deleted file mode 100644
index 6d16fbbb3..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueuePartitionMetadata.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.taskqueue.v1.TaskQueuePartitionMetadata
- */
-class TaskQueuePartitionMetadata extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string key = 1;
- */
- protected $key = '';
- /**
- * Generated from protobuf field string owner_host_name = 2;
- */
- protected $owner_host_name = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $key
- * @type string $owner_host_name
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string key = 1;
- * @return string
- */
- public function getKey()
- {
- return $this->key;
- }
-
- /**
- * Generated from protobuf field string key = 1;
- * @param string $var
- * @return $this
- */
- public function setKey($var)
- {
- GPBUtil::checkString($var, True);
- $this->key = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string owner_host_name = 2;
- * @return string
- */
- public function getOwnerHostName()
- {
- return $this->owner_host_name;
- }
-
- /**
- * Generated from protobuf field string owner_host_name = 2;
- * @param string $var
- * @return $this
- */
- public function setOwnerHostName($var)
- {
- GPBUtil::checkString($var, True);
- $this->owner_host_name = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueReachability.php b/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueReachability.php
deleted file mode 100644
index 17e400ff9..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueReachability.php
+++ /dev/null
@@ -1,102 +0,0 @@
-temporal.api.taskqueue.v1.TaskQueueReachability
- */
-class TaskQueueReachability extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string task_queue = 1;
- */
- protected $task_queue = '';
- /**
- * Task reachability for a worker in a single task queue.
- * See the TaskReachability docstring for information about each enum variant.
- * If reachability is empty, this worker is considered unreachable in this task queue.
- *
- * Generated from protobuf field repeated .temporal.api.enums.v1.TaskReachability reachability = 2;
- */
- private $reachability;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_queue
- * @type array|\Google\Protobuf\Internal\RepeatedField $reachability
- * Task reachability for a worker in a single task queue.
- * See the TaskReachability docstring for information about each enum variant.
- * If reachability is empty, this worker is considered unreachable in this task queue.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string task_queue = 1;
- * @return string
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- /**
- * Generated from protobuf field string task_queue = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkString($var, True);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Task reachability for a worker in a single task queue.
- * See the TaskReachability docstring for information about each enum variant.
- * If reachability is empty, this worker is considered unreachable in this task queue.
- *
- * Generated from protobuf field repeated .temporal.api.enums.v1.TaskReachability reachability = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getReachability()
- {
- return $this->reachability;
- }
-
- /**
- * Task reachability for a worker in a single task queue.
- * See the TaskReachability docstring for information about each enum variant.
- * If reachability is empty, this worker is considered unreachable in this task queue.
- *
- * Generated from protobuf field repeated .temporal.api.enums.v1.TaskReachability reachability = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setReachability($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Temporal\Api\Enums\V1\TaskReachability::class);
- $this->reachability = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueStatus.php b/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueStatus.php
deleted file mode 100644
index 9bc632ea4..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/TaskQueueStatus.php
+++ /dev/null
@@ -1,176 +0,0 @@
-temporal.api.taskqueue.v1.TaskQueueStatus
- */
-class TaskQueueStatus extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field int64 backlog_count_hint = 1;
- */
- protected $backlog_count_hint = 0;
- /**
- * Generated from protobuf field int64 read_level = 2;
- */
- protected $read_level = 0;
- /**
- * Generated from protobuf field int64 ack_level = 3;
- */
- protected $ack_level = 0;
- /**
- * Generated from protobuf field double rate_per_second = 4;
- */
- protected $rate_per_second = 0.0;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskIdBlock task_id_block = 5;
- */
- protected $task_id_block = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $backlog_count_hint
- * @type int|string $read_level
- * @type int|string $ack_level
- * @type float $rate_per_second
- * @type \Temporal\Api\Taskqueue\V1\TaskIdBlock $task_id_block
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field int64 backlog_count_hint = 1;
- * @return int|string
- */
- public function getBacklogCountHint()
- {
- return $this->backlog_count_hint;
- }
-
- /**
- * Generated from protobuf field int64 backlog_count_hint = 1;
- * @param int|string $var
- * @return $this
- */
- public function setBacklogCountHint($var)
- {
- GPBUtil::checkInt64($var);
- $this->backlog_count_hint = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 read_level = 2;
- * @return int|string
- */
- public function getReadLevel()
- {
- return $this->read_level;
- }
-
- /**
- * Generated from protobuf field int64 read_level = 2;
- * @param int|string $var
- * @return $this
- */
- public function setReadLevel($var)
- {
- GPBUtil::checkInt64($var);
- $this->read_level = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 ack_level = 3;
- * @return int|string
- */
- public function getAckLevel()
- {
- return $this->ack_level;
- }
-
- /**
- * Generated from protobuf field int64 ack_level = 3;
- * @param int|string $var
- * @return $this
- */
- public function setAckLevel($var)
- {
- GPBUtil::checkInt64($var);
- $this->ack_level = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field double rate_per_second = 4;
- * @return float
- */
- public function getRatePerSecond()
- {
- return $this->rate_per_second;
- }
-
- /**
- * Generated from protobuf field double rate_per_second = 4;
- * @param float $var
- * @return $this
- */
- public function setRatePerSecond($var)
- {
- GPBUtil::checkDouble($var);
- $this->rate_per_second = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskIdBlock task_id_block = 5;
- * @return \Temporal\Api\Taskqueue\V1\TaskIdBlock|null
- */
- public function getTaskIdBlock()
- {
- return $this->task_id_block;
- }
-
- public function hasTaskIdBlock()
- {
- return isset($this->task_id_block);
- }
-
- public function clearTaskIdBlock()
- {
- unset($this->task_id_block);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskIdBlock task_id_block = 5;
- * @param \Temporal\Api\Taskqueue\V1\TaskIdBlock $var
- * @return $this
- */
- public function setTaskIdBlock($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskIdBlock::class);
- $this->task_id_block = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/VersionId.php b/api/v1/Temporal/Api/Taskqueue/V1/VersionId.php
deleted file mode 100644
index 6f2b01a83..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/VersionId.php
+++ /dev/null
@@ -1,70 +0,0 @@
-temporal.api.taskqueue.v1.VersionId
- */
-class VersionId extends \Google\Protobuf\Internal\Message
-{
- /**
- * An opaque whole-worker identifier
- *
- * Generated from protobuf field string worker_build_id = 1;
- */
- protected $worker_build_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $worker_build_id
- * An opaque whole-worker identifier
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * An opaque whole-worker identifier
- *
- * Generated from protobuf field string worker_build_id = 1;
- * @return string
- */
- public function getWorkerBuildId()
- {
- return $this->worker_build_id;
- }
-
- /**
- * An opaque whole-worker identifier
- *
- * Generated from protobuf field string worker_build_id = 1;
- * @param string $var
- * @return $this
- */
- public function setWorkerBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->worker_build_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Taskqueue/V1/VersionIdNode.php b/api/v1/Temporal/Api/Taskqueue/V1/VersionIdNode.php
deleted file mode 100644
index c8b6e20c3..000000000
--- a/api/v1/Temporal/Api/Taskqueue/V1/VersionIdNode.php
+++ /dev/null
@@ -1,159 +0,0 @@
-temporal.api.taskqueue.v1.VersionIdNode
- */
-class VersionIdNode extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId version = 1;
- */
- protected $version = null;
- /**
- * A pointer to the previous version this version is considered to be compatible with
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode previous_compatible = 2;
- */
- protected $previous_compatible = null;
- /**
- * A pointer to the last incompatible version (previous major version)
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode previous_incompatible = 3;
- */
- protected $previous_incompatible = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Taskqueue\V1\VersionId $version
- * @type \Temporal\Api\Taskqueue\V1\VersionIdNode $previous_compatible
- * A pointer to the previous version this version is considered to be compatible with
- * @type \Temporal\Api\Taskqueue\V1\VersionIdNode $previous_incompatible
- * A pointer to the last incompatible version (previous major version)
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Taskqueue\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId version = 1;
- * @return \Temporal\Api\Taskqueue\V1\VersionId|null
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- public function hasVersion()
- {
- return isset($this->version);
- }
-
- public function clearVersion()
- {
- unset($this->version);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId version = 1;
- * @param \Temporal\Api\Taskqueue\V1\VersionId $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\VersionId::class);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * A pointer to the previous version this version is considered to be compatible with
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode previous_compatible = 2;
- * @return \Temporal\Api\Taskqueue\V1\VersionIdNode|null
- */
- public function getPreviousCompatible()
- {
- return $this->previous_compatible;
- }
-
- public function hasPreviousCompatible()
- {
- return isset($this->previous_compatible);
- }
-
- public function clearPreviousCompatible()
- {
- unset($this->previous_compatible);
- }
-
- /**
- * A pointer to the previous version this version is considered to be compatible with
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode previous_compatible = 2;
- * @param \Temporal\Api\Taskqueue\V1\VersionIdNode $var
- * @return $this
- */
- public function setPreviousCompatible($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\VersionIdNode::class);
- $this->previous_compatible = $var;
-
- return $this;
- }
-
- /**
- * A pointer to the last incompatible version (previous major version)
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode previous_incompatible = 3;
- * @return \Temporal\Api\Taskqueue\V1\VersionIdNode|null
- */
- public function getPreviousIncompatible()
- {
- return $this->previous_incompatible;
- }
-
- public function hasPreviousIncompatible()
- {
- return isset($this->previous_incompatible);
- }
-
- public function clearPreviousIncompatible()
- {
- unset($this->previous_incompatible);
- }
-
- /**
- * A pointer to the last incompatible version (previous major version)
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode previous_incompatible = 3;
- * @param \Temporal\Api\Taskqueue\V1\VersionIdNode $var
- * @return $this
- */
- public function setPreviousIncompatible($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\VersionIdNode::class);
- $this->previous_incompatible = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/Acceptance.php b/api/v1/Temporal/Api/Update/V1/Acceptance.php
deleted file mode 100644
index 2395beef0..000000000
--- a/api/v1/Temporal/Api/Update/V1/Acceptance.php
+++ /dev/null
@@ -1,125 +0,0 @@
-temporal.api.update.v1.Acceptance
- */
-class Acceptance extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string accepted_request_message_id = 1;
- */
- protected $accepted_request_message_id = '';
- /**
- * Generated from protobuf field int64 accepted_request_sequencing_event_id = 2;
- */
- protected $accepted_request_sequencing_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.update.v1.Request accepted_request = 3;
- */
- protected $accepted_request = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $accepted_request_message_id
- * @type int|string $accepted_request_sequencing_event_id
- * @type \Temporal\Api\Update\V1\Request $accepted_request
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string accepted_request_message_id = 1;
- * @return string
- */
- public function getAcceptedRequestMessageId()
- {
- return $this->accepted_request_message_id;
- }
-
- /**
- * Generated from protobuf field string accepted_request_message_id = 1;
- * @param string $var
- * @return $this
- */
- public function setAcceptedRequestMessageId($var)
- {
- GPBUtil::checkString($var, True);
- $this->accepted_request_message_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 accepted_request_sequencing_event_id = 2;
- * @return int|string
- */
- public function getAcceptedRequestSequencingEventId()
- {
- return $this->accepted_request_sequencing_event_id;
- }
-
- /**
- * Generated from protobuf field int64 accepted_request_sequencing_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setAcceptedRequestSequencingEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->accepted_request_sequencing_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Request accepted_request = 3;
- * @return \Temporal\Api\Update\V1\Request|null
- */
- public function getAcceptedRequest()
- {
- return $this->accepted_request;
- }
-
- public function hasAcceptedRequest()
- {
- return isset($this->accepted_request);
- }
-
- public function clearAcceptedRequest()
- {
- unset($this->accepted_request);
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Request accepted_request = 3;
- * @param \Temporal\Api\Update\V1\Request $var
- * @return $this
- */
- public function setAcceptedRequest($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Request::class);
- $this->accepted_request = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/Input.php b/api/v1/Temporal/Api/Update/V1/Input.php
deleted file mode 100644
index bff3f6776..000000000
--- a/api/v1/Temporal/Api/Update/V1/Input.php
+++ /dev/null
@@ -1,157 +0,0 @@
-temporal.api.update.v1.Input
- */
-class Input extends \Google\Protobuf\Internal\Message
-{
- /**
- * Headers that are passed with the update from the requesting entity.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 1;
- */
- protected $header = null;
- /**
- * The name of the input handler to invoke on the target workflow
- *
- * Generated from protobuf field string name = 2;
- */
- protected $name = '';
- /**
- * The arguments to pass to the named handler.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads args = 3;
- */
- protected $args = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Header $header
- * Headers that are passed with the update from the requesting entity.
- * These can include things like auth or tracing tokens.
- * @type string $name
- * The name of the input handler to invoke on the target workflow
- * @type \Temporal\Api\Common\V1\Payloads $args
- * The arguments to pass to the named handler.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Headers that are passed with the update from the requesting entity.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 1;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Headers that are passed with the update from the requesting entity.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 1;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * The name of the input handler to invoke on the target workflow
- *
- * Generated from protobuf field string name = 2;
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * The name of the input handler to invoke on the target workflow
- *
- * Generated from protobuf field string name = 2;
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
-
- return $this;
- }
-
- /**
- * The arguments to pass to the named handler.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads args = 3;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getArgs()
- {
- return $this->args;
- }
-
- public function hasArgs()
- {
- return isset($this->args);
- }
-
- public function clearArgs()
- {
- unset($this->args);
- }
-
- /**
- * The arguments to pass to the named handler.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads args = 3;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setArgs($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->args = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/Meta.php b/api/v1/Temporal/Api/Update/V1/Meta.php
deleted file mode 100644
index 6047c8bdb..000000000
--- a/api/v1/Temporal/Api/Update/V1/Meta.php
+++ /dev/null
@@ -1,101 +0,0 @@
-temporal.api.update.v1.Meta
- */
-class Meta extends \Google\Protobuf\Internal\Message
-{
- /**
- * An ID with workflow-scoped uniqueness for this update
- *
- * Generated from protobuf field string update_id = 1;
- */
- protected $update_id = '';
- /**
- * A string identifying the agent that requested this update.
- *
- * Generated from protobuf field string identity = 2;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $update_id
- * An ID with workflow-scoped uniqueness for this update
- * @type string $identity
- * A string identifying the agent that requested this update.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * An ID with workflow-scoped uniqueness for this update
- *
- * Generated from protobuf field string update_id = 1;
- * @return string
- */
- public function getUpdateId()
- {
- return $this->update_id;
- }
-
- /**
- * An ID with workflow-scoped uniqueness for this update
- *
- * Generated from protobuf field string update_id = 1;
- * @param string $var
- * @return $this
- */
- public function setUpdateId($var)
- {
- GPBUtil::checkString($var, True);
- $this->update_id = $var;
-
- return $this;
- }
-
- /**
- * A string identifying the agent that requested this update.
- *
- * Generated from protobuf field string identity = 2;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * A string identifying the agent that requested this update.
- *
- * Generated from protobuf field string identity = 2;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/Outcome.php b/api/v1/Temporal/Api/Update/V1/Outcome.php
deleted file mode 100644
index 6601fc0b0..000000000
--- a/api/v1/Temporal/Api/Update/V1/Outcome.php
+++ /dev/null
@@ -1,98 +0,0 @@
-temporal.api.update.v1.Outcome
- */
-class Outcome extends \Google\Protobuf\Internal\Message
-{
- protected $value;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $success
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads success = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getSuccess()
- {
- return $this->readOneof(1);
- }
-
- public function hasSuccess()
- {
- return $this->hasOneof(1);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads success = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setSuccess($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->writeOneof(1, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 2;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->readOneof(2);
- }
-
- public function hasFailure()
- {
- return $this->hasOneof(2);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 2;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->writeOneof(2, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getValue()
- {
- return $this->whichOneof("value");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/Rejection.php b/api/v1/Temporal/Api/Update/V1/Rejection.php
deleted file mode 100644
index ac8401dd1..000000000
--- a/api/v1/Temporal/Api/Update/V1/Rejection.php
+++ /dev/null
@@ -1,162 +0,0 @@
-temporal.api.update.v1.Rejection
- */
-class Rejection extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string rejected_request_message_id = 1;
- */
- protected $rejected_request_message_id = '';
- /**
- * Generated from protobuf field int64 rejected_request_sequencing_event_id = 2;
- */
- protected $rejected_request_sequencing_event_id = 0;
- /**
- * Generated from protobuf field .temporal.api.update.v1.Request rejected_request = 3;
- */
- protected $rejected_request = null;
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- */
- protected $failure = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $rejected_request_message_id
- * @type int|string $rejected_request_sequencing_event_id
- * @type \Temporal\Api\Update\V1\Request $rejected_request
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string rejected_request_message_id = 1;
- * @return string
- */
- public function getRejectedRequestMessageId()
- {
- return $this->rejected_request_message_id;
- }
-
- /**
- * Generated from protobuf field string rejected_request_message_id = 1;
- * @param string $var
- * @return $this
- */
- public function setRejectedRequestMessageId($var)
- {
- GPBUtil::checkString($var, True);
- $this->rejected_request_message_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 rejected_request_sequencing_event_id = 2;
- * @return int|string
- */
- public function getRejectedRequestSequencingEventId()
- {
- return $this->rejected_request_sequencing_event_id;
- }
-
- /**
- * Generated from protobuf field int64 rejected_request_sequencing_event_id = 2;
- * @param int|string $var
- * @return $this
- */
- public function setRejectedRequestSequencingEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->rejected_request_sequencing_event_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Request rejected_request = 3;
- * @return \Temporal\Api\Update\V1\Request|null
- */
- public function getRejectedRequest()
- {
- return $this->rejected_request;
- }
-
- public function hasRejectedRequest()
- {
- return isset($this->rejected_request);
- }
-
- public function clearRejectedRequest()
- {
- unset($this->rejected_request);
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Request rejected_request = 3;
- * @param \Temporal\Api\Update\V1\Request $var
- * @return $this
- */
- public function setRejectedRequest($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Request::class);
- $this->rejected_request = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/Request.php b/api/v1/Temporal/Api/Update/V1/Request.php
deleted file mode 100644
index 9f1fda776..000000000
--- a/api/v1/Temporal/Api/Update/V1/Request.php
+++ /dev/null
@@ -1,107 +0,0 @@
-temporal.api.update.v1.Request
- */
-class Request extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- */
- protected $meta = null;
- /**
- * Generated from protobuf field .temporal.api.update.v1.Input input = 2;
- */
- protected $input = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Update\V1\Meta $meta
- * @type \Temporal\Api\Update\V1\Input $input
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- * @return \Temporal\Api\Update\V1\Meta|null
- */
- public function getMeta()
- {
- return $this->meta;
- }
-
- public function hasMeta()
- {
- return isset($this->meta);
- }
-
- public function clearMeta()
- {
- unset($this->meta);
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- * @param \Temporal\Api\Update\V1\Meta $var
- * @return $this
- */
- public function setMeta($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Meta::class);
- $this->meta = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Input input = 2;
- * @return \Temporal\Api\Update\V1\Input|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Input input = 2;
- * @param \Temporal\Api\Update\V1\Input $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Input::class);
- $this->input = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/Response.php b/api/v1/Temporal/Api/Update/V1/Response.php
deleted file mode 100644
index 1d1a98db3..000000000
--- a/api/v1/Temporal/Api/Update/V1/Response.php
+++ /dev/null
@@ -1,108 +0,0 @@
-temporal.api.update.v1.Response
- */
-class Response extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- */
- protected $meta = null;
- /**
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- */
- protected $outcome = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Update\V1\Meta $meta
- * @type \Temporal\Api\Update\V1\Outcome $outcome
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- * @return \Temporal\Api\Update\V1\Meta|null
- */
- public function getMeta()
- {
- return $this->meta;
- }
-
- public function hasMeta()
- {
- return isset($this->meta);
- }
-
- public function clearMeta()
- {
- unset($this->meta);
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Meta meta = 1;
- * @param \Temporal\Api\Update\V1\Meta $var
- * @return $this
- */
- public function setMeta($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Meta::class);
- $this->meta = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- * @return \Temporal\Api\Update\V1\Outcome|null
- */
- public function getOutcome()
- {
- return $this->outcome;
- }
-
- public function hasOutcome()
- {
- return isset($this->outcome);
- }
-
- public function clearOutcome()
- {
- unset($this->outcome);
- }
-
- /**
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- * @param \Temporal\Api\Update\V1\Outcome $var
- * @return $this
- */
- public function setOutcome($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Outcome::class);
- $this->outcome = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/UpdateRef.php b/api/v1/Temporal/Api/Update/V1/UpdateRef.php
deleted file mode 100644
index f6f568ec2..000000000
--- a/api/v1/Temporal/Api/Update/V1/UpdateRef.php
+++ /dev/null
@@ -1,98 +0,0 @@
-temporal.api.update.v1.UpdateRef
- */
-class UpdateRef extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 1;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field string update_id = 2;
- */
- protected $update_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type string $update_id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 1;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 1;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string update_id = 2;
- * @return string
- */
- public function getUpdateId()
- {
- return $this->update_id;
- }
-
- /**
- * Generated from protobuf field string update_id = 2;
- * @param string $var
- * @return $this
- */
- public function setUpdateId($var)
- {
- GPBUtil::checkString($var, True);
- $this->update_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Update/V1/WaitPolicy.php b/api/v1/Temporal/Api/Update/V1/WaitPolicy.php
deleted file mode 100644
index cfac6dbed..000000000
--- a/api/v1/Temporal/Api/Update/V1/WaitPolicy.php
+++ /dev/null
@@ -1,72 +0,0 @@
-temporal.api.update.v1.WaitPolicy
- */
-class WaitPolicy extends \Google\Protobuf\Internal\Message
-{
- /**
- * Indicates the update lifecycle stage that the gRPC call should wait for
- * before returning.
- *
- * Generated from protobuf field .temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage lifecycle_stage = 1;
- */
- protected $lifecycle_stage = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $lifecycle_stage
- * Indicates the update lifecycle stage that the gRPC call should wait for
- * before returning.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Update\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Indicates the update lifecycle stage that the gRPC call should wait for
- * before returning.
- *
- * Generated from protobuf field .temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage lifecycle_stage = 1;
- * @return int
- */
- public function getLifecycleStage()
- {
- return $this->lifecycle_stage;
- }
-
- /**
- * Indicates the update lifecycle stage that the gRPC call should wait for
- * before returning.
- *
- * Generated from protobuf field .temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage lifecycle_stage = 1;
- * @param int $var
- * @return $this
- */
- public function setLifecycleStage($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\UpdateWorkflowExecutionLifecycleStage::class);
- $this->lifecycle_stage = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Version/V1/Alert.php b/api/v1/Temporal/Api/Version/V1/Alert.php
deleted file mode 100644
index 075ea7af8..000000000
--- a/api/v1/Temporal/Api/Version/V1/Alert.php
+++ /dev/null
@@ -1,87 +0,0 @@
-temporal.api.version.v1.Alert
- */
-class Alert extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string message = 1;
- */
- protected $message = '';
- /**
- * Generated from protobuf field .temporal.api.enums.v1.Severity severity = 2;
- */
- protected $severity = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $message
- * @type int $severity
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Version\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string message = 1;
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
-
- /**
- * Generated from protobuf field string message = 1;
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.Severity severity = 2;
- * @return int
- */
- public function getSeverity()
- {
- return $this->severity;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.Severity severity = 2;
- * @param int $var
- * @return $this
- */
- public function setSeverity($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\Severity::class);
- $this->severity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Version/V1/ReleaseInfo.php b/api/v1/Temporal/Api/Version/V1/ReleaseInfo.php
deleted file mode 100644
index dd130f989..000000000
--- a/api/v1/Temporal/Api/Version/V1/ReleaseInfo.php
+++ /dev/null
@@ -1,124 +0,0 @@
-temporal.api.version.v1.ReleaseInfo
- */
-class ReleaseInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string version = 1;
- */
- protected $version = '';
- /**
- * Generated from protobuf field .google.protobuf.Timestamp release_time = 2 [(.gogoproto.stdtime) = true];
- */
- protected $release_time = null;
- /**
- * Generated from protobuf field string notes = 3;
- */
- protected $notes = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $version
- * @type \Google\Protobuf\Timestamp $release_time
- * @type string $notes
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Version\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string version = 1;
- * @return string
- */
- public function getVersion()
- {
- return $this->version;
- }
-
- /**
- * Generated from protobuf field string version = 1;
- * @param string $var
- * @return $this
- */
- public function setVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->version = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp release_time = 2 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getReleaseTime()
- {
- return $this->release_time;
- }
-
- public function hasReleaseTime()
- {
- return isset($this->release_time);
- }
-
- public function clearReleaseTime()
- {
- unset($this->release_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp release_time = 2 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setReleaseTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->release_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string notes = 3;
- * @return string
- */
- public function getNotes()
- {
- return $this->notes;
- }
-
- /**
- * Generated from protobuf field string notes = 3;
- * @param string $var
- * @return $this
- */
- public function setNotes($var)
- {
- GPBUtil::checkString($var, True);
- $this->notes = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Version/V1/VersionInfo.php b/api/v1/Temporal/Api/Version/V1/VersionInfo.php
deleted file mode 100644
index 3673c108b..000000000
--- a/api/v1/Temporal/Api/Version/V1/VersionInfo.php
+++ /dev/null
@@ -1,198 +0,0 @@
-temporal.api.version.v1.VersionInfo
- */
-class VersionInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.version.v1.ReleaseInfo current = 1;
- */
- protected $current = null;
- /**
- * Generated from protobuf field .temporal.api.version.v1.ReleaseInfo recommended = 2;
- */
- protected $recommended = null;
- /**
- * Generated from protobuf field string instructions = 3;
- */
- protected $instructions = '';
- /**
- * Generated from protobuf field repeated .temporal.api.version.v1.Alert alerts = 4;
- */
- private $alerts;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true];
- */
- protected $last_update_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Version\V1\ReleaseInfo $current
- * @type \Temporal\Api\Version\V1\ReleaseInfo $recommended
- * @type string $instructions
- * @type array<\Temporal\Api\Version\V1\Alert>|\Google\Protobuf\Internal\RepeatedField $alerts
- * @type \Google\Protobuf\Timestamp $last_update_time
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Version\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.version.v1.ReleaseInfo current = 1;
- * @return \Temporal\Api\Version\V1\ReleaseInfo|null
- */
- public function getCurrent()
- {
- return $this->current;
- }
-
- public function hasCurrent()
- {
- return isset($this->current);
- }
-
- public function clearCurrent()
- {
- unset($this->current);
- }
-
- /**
- * Generated from protobuf field .temporal.api.version.v1.ReleaseInfo current = 1;
- * @param \Temporal\Api\Version\V1\ReleaseInfo $var
- * @return $this
- */
- public function setCurrent($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Version\V1\ReleaseInfo::class);
- $this->current = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.version.v1.ReleaseInfo recommended = 2;
- * @return \Temporal\Api\Version\V1\ReleaseInfo|null
- */
- public function getRecommended()
- {
- return $this->recommended;
- }
-
- public function hasRecommended()
- {
- return isset($this->recommended);
- }
-
- public function clearRecommended()
- {
- unset($this->recommended);
- }
-
- /**
- * Generated from protobuf field .temporal.api.version.v1.ReleaseInfo recommended = 2;
- * @param \Temporal\Api\Version\V1\ReleaseInfo $var
- * @return $this
- */
- public function setRecommended($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Version\V1\ReleaseInfo::class);
- $this->recommended = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string instructions = 3;
- * @return string
- */
- public function getInstructions()
- {
- return $this->instructions;
- }
-
- /**
- * Generated from protobuf field string instructions = 3;
- * @param string $var
- * @return $this
- */
- public function setInstructions($var)
- {
- GPBUtil::checkString($var, True);
- $this->instructions = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.version.v1.Alert alerts = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getAlerts()
- {
- return $this->alerts;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.version.v1.Alert alerts = 4;
- * @param array<\Temporal\Api\Version\V1\Alert>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setAlerts($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Version\V1\Alert::class);
- $this->alerts = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getLastUpdateTime()
- {
- return $this->last_update_time;
- }
-
- public function hasLastUpdateTime()
- {
- return isset($this->last_update_time);
- }
-
- public function clearLastUpdateTime()
- {
- unset($this->last_update_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 5 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setLastUpdateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->last_update_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflow/V1/NewWorkflowExecutionInfo.php b/api/v1/Temporal/Api/Workflow/V1/NewWorkflowExecutionInfo.php
deleted file mode 100644
index bb01041f8..000000000
--- a/api/v1/Temporal/Api/Workflow/V1/NewWorkflowExecutionInfo.php
+++ /dev/null
@@ -1,534 +0,0 @@
-temporal.api.workflow.v1.NewWorkflowExecutionInfo
- */
-class NewWorkflowExecutionInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string workflow_id = 1;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 3;
- */
- protected $task_queue = null;
- /**
- * Serialized arguments to the workflow.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- */
- protected $input = null;
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 5 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_timeout = null;
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 6 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 7 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_task_timeout = null;
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 8;
- */
- protected $workflow_id_reuse_policy = 0;
- /**
- * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 9;
- */
- protected $retry_policy = null;
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 10;
- */
- protected $cron_schedule = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 11;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 12;
- */
- protected $search_attributes = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 13;
- */
- protected $header = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $workflow_id
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Serialized arguments to the workflow.
- * @type \Google\Protobuf\Duration $workflow_execution_timeout
- * Total workflow execution timeout including retries and continue as new.
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * Timeout of a single workflow run.
- * @type \Google\Protobuf\Duration $workflow_task_timeout
- * Timeout of a single workflow task.
- * @type int $workflow_id_reuse_policy
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
- * @type string $cron_schedule
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type \Temporal\Api\Common\V1\Header $header
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string workflow_id = 1;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 1;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 2;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 3;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 3;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Serialized arguments to the workflow.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Serialized arguments to the workflow.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 5 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionTimeout()
- {
- return $this->workflow_execution_timeout;
- }
-
- public function hasWorkflowExecutionTimeout()
- {
- return isset($this->workflow_execution_timeout);
- }
-
- public function clearWorkflowExecutionTimeout()
- {
- unset($this->workflow_execution_timeout);
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 5 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 6 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 6 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 7 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowTaskTimeout()
- {
- return $this->workflow_task_timeout;
- }
-
- public function hasWorkflowTaskTimeout()
- {
- return isset($this->workflow_task_timeout);
- }
-
- public function clearWorkflowTaskTimeout()
- {
- unset($this->workflow_task_timeout);
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 7 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 8;
- * @return int
- */
- public function getWorkflowIdReusePolicy()
- {
- return $this->workflow_id_reuse_policy;
- }
-
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 8;
- * @param int $var
- * @return $this
- */
- public function setWorkflowIdReusePolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowIdReusePolicy::class);
- $this->workflow_id_reuse_policy = $var;
-
- return $this;
- }
-
- /**
- * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 9;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 9;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 10;
- * @return string
- */
- public function getCronSchedule()
- {
- return $this->cron_schedule;
- }
-
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 10;
- * @param string $var
- * @return $this
- */
- public function setCronSchedule($var)
- {
- GPBUtil::checkString($var, True);
- $this->cron_schedule = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 11;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 11;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 12;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 12;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 13;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 13;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflow/V1/PendingActivityInfo.php b/api/v1/Temporal/Api/Workflow/V1/PendingActivityInfo.php
deleted file mode 100644
index 357972424..000000000
--- a/api/v1/Temporal/Api/Workflow/V1/PendingActivityInfo.php
+++ /dev/null
@@ -1,425 +0,0 @@
-temporal.api.workflow.v1.PendingActivityInfo
- */
-class PendingActivityInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string activity_id = 1;
- */
- protected $activity_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- */
- protected $activity_type = null;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.PendingActivityState state = 3;
- */
- protected $state = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads heartbeat_details = 4;
- */
- protected $heartbeat_details = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_heartbeat_time = 5 [(.gogoproto.stdtime) = true];
- */
- protected $last_heartbeat_time = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_started_time = 6 [(.gogoproto.stdtime) = true];
- */
- protected $last_started_time = null;
- /**
- * Generated from protobuf field int32 attempt = 7;
- */
- protected $attempt = 0;
- /**
- * Generated from protobuf field int32 maximum_attempts = 8;
- */
- protected $maximum_attempts = 0;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 9 [(.gogoproto.stdtime) = true];
- */
- protected $scheduled_time = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 10 [(.gogoproto.stdtime) = true];
- */
- protected $expiration_time = null;
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure last_failure = 11;
- */
- protected $last_failure = null;
- /**
- * Generated from protobuf field string last_worker_identity = 12;
- */
- protected $last_worker_identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $activity_id
- * @type \Temporal\Api\Common\V1\ActivityType $activity_type
- * @type int $state
- * @type \Temporal\Api\Common\V1\Payloads $heartbeat_details
- * @type \Google\Protobuf\Timestamp $last_heartbeat_time
- * @type \Google\Protobuf\Timestamp $last_started_time
- * @type int $attempt
- * @type int $maximum_attempts
- * @type \Google\Protobuf\Timestamp $scheduled_time
- * @type \Google\Protobuf\Timestamp $expiration_time
- * @type \Temporal\Api\Failure\V1\Failure $last_failure
- * @type string $last_worker_identity
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string activity_id = 1;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * Generated from protobuf field string activity_id = 1;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- * @return \Temporal\Api\Common\V1\ActivityType|null
- */
- public function getActivityType()
- {
- return $this->activity_type;
- }
-
- public function hasActivityType()
- {
- return isset($this->activity_type);
- }
-
- public function clearActivityType()
- {
- unset($this->activity_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 2;
- * @param \Temporal\Api\Common\V1\ActivityType $var
- * @return $this
- */
- public function setActivityType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\ActivityType::class);
- $this->activity_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.PendingActivityState state = 3;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.PendingActivityState state = 3;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\PendingActivityState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads heartbeat_details = 4;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getHeartbeatDetails()
- {
- return $this->heartbeat_details;
- }
-
- public function hasHeartbeatDetails()
- {
- return isset($this->heartbeat_details);
- }
-
- public function clearHeartbeatDetails()
- {
- unset($this->heartbeat_details);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads heartbeat_details = 4;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setHeartbeatDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->heartbeat_details = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_heartbeat_time = 5 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getLastHeartbeatTime()
- {
- return $this->last_heartbeat_time;
- }
-
- public function hasLastHeartbeatTime()
- {
- return isset($this->last_heartbeat_time);
- }
-
- public function clearLastHeartbeatTime()
- {
- unset($this->last_heartbeat_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_heartbeat_time = 5 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setLastHeartbeatTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->last_heartbeat_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_started_time = 6 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getLastStartedTime()
- {
- return $this->last_started_time;
- }
-
- public function hasLastStartedTime()
- {
- return isset($this->last_started_time);
- }
-
- public function clearLastStartedTime()
- {
- unset($this->last_started_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp last_started_time = 6 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setLastStartedTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->last_started_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 attempt = 7;
- * @return int
- */
- public function getAttempt()
- {
- return $this->attempt;
- }
-
- /**
- * Generated from protobuf field int32 attempt = 7;
- * @param int $var
- * @return $this
- */
- public function setAttempt($var)
- {
- GPBUtil::checkInt32($var);
- $this->attempt = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 maximum_attempts = 8;
- * @return int
- */
- public function getMaximumAttempts()
- {
- return $this->maximum_attempts;
- }
-
- /**
- * Generated from protobuf field int32 maximum_attempts = 8;
- * @param int $var
- * @return $this
- */
- public function setMaximumAttempts($var)
- {
- GPBUtil::checkInt32($var);
- $this->maximum_attempts = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 9 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getScheduledTime()
- {
- return $this->scheduled_time;
- }
-
- public function hasScheduledTime()
- {
- return isset($this->scheduled_time);
- }
-
- public function clearScheduledTime()
- {
- unset($this->scheduled_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 9 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setScheduledTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->scheduled_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 10 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getExpirationTime()
- {
- return $this->expiration_time;
- }
-
- public function hasExpirationTime()
- {
- return isset($this->expiration_time);
- }
-
- public function clearExpirationTime()
- {
- unset($this->expiration_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 10 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setExpirationTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->expiration_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure last_failure = 11;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getLastFailure()
- {
- return $this->last_failure;
- }
-
- public function hasLastFailure()
- {
- return isset($this->last_failure);
- }
-
- public function clearLastFailure()
- {
- unset($this->last_failure);
- }
-
- /**
- * Generated from protobuf field .temporal.api.failure.v1.Failure last_failure = 11;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setLastFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->last_failure = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string last_worker_identity = 12;
- * @return string
- */
- public function getLastWorkerIdentity()
- {
- return $this->last_worker_identity;
- }
-
- /**
- * Generated from protobuf field string last_worker_identity = 12;
- * @param string $var
- * @return $this
- */
- public function setLastWorkerIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->last_worker_identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflow/V1/PendingChildExecutionInfo.php b/api/v1/Temporal/Api/Workflow/V1/PendingChildExecutionInfo.php
deleted file mode 100644
index b3507f5de..000000000
--- a/api/v1/Temporal/Api/Workflow/V1/PendingChildExecutionInfo.php
+++ /dev/null
@@ -1,173 +0,0 @@
-temporal.api.workflow.v1.PendingChildExecutionInfo
- */
-class PendingChildExecutionInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string workflow_id = 1;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field string run_id = 2;
- */
- protected $run_id = '';
- /**
- * Generated from protobuf field string workflow_type_name = 3;
- */
- protected $workflow_type_name = '';
- /**
- * Generated from protobuf field int64 initiated_id = 4;
- */
- protected $initiated_id = 0;
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 5;
- */
- protected $parent_close_policy = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $workflow_id
- * @type string $run_id
- * @type string $workflow_type_name
- * @type int|string $initiated_id
- * @type int $parent_close_policy
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string workflow_id = 1;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 1;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string run_id = 2;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Generated from protobuf field string run_id = 2;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string workflow_type_name = 3;
- * @return string
- */
- public function getWorkflowTypeName()
- {
- return $this->workflow_type_name;
- }
-
- /**
- * Generated from protobuf field string workflow_type_name = 3;
- * @param string $var
- * @return $this
- */
- public function setWorkflowTypeName($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_type_name = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 initiated_id = 4;
- * @return int|string
- */
- public function getInitiatedId()
- {
- return $this->initiated_id;
- }
-
- /**
- * Generated from protobuf field int64 initiated_id = 4;
- * @param int|string $var
- * @return $this
- */
- public function setInitiatedId($var)
- {
- GPBUtil::checkInt64($var);
- $this->initiated_id = $var;
-
- return $this;
- }
-
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 5;
- * @return int
- */
- public function getParentClosePolicy()
- {
- return $this->parent_close_policy;
- }
-
- /**
- * Default: PARENT_CLOSE_POLICY_TERMINATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ParentClosePolicy parent_close_policy = 5;
- * @param int $var
- * @return $this
- */
- public function setParentClosePolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ParentClosePolicy::class);
- $this->parent_close_policy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflow/V1/PendingWorkflowTaskInfo.php b/api/v1/Temporal/Api/Workflow/V1/PendingWorkflowTaskInfo.php
deleted file mode 100644
index 7eda74c38..000000000
--- a/api/v1/Temporal/Api/Workflow/V1/PendingWorkflowTaskInfo.php
+++ /dev/null
@@ -1,215 +0,0 @@
-temporal.api.workflow.v1.PendingWorkflowTaskInfo
- */
-class PendingWorkflowTaskInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.enums.v1.PendingWorkflowTaskState state = 1;
- */
- protected $state = 0;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 2 [(.gogoproto.stdtime) = true];
- */
- protected $scheduled_time = null;
- /**
- * original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
- * Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
- * In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds
- * some threshold, the workflow task will be forced timeout.
- *
- * Generated from protobuf field .google.protobuf.Timestamp original_scheduled_time = 3 [(.gogoproto.stdtime) = true];
- */
- protected $original_scheduled_time = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 4 [(.gogoproto.stdtime) = true];
- */
- protected $started_time = null;
- /**
- * Generated from protobuf field int32 attempt = 5;
- */
- protected $attempt = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $state
- * @type \Google\Protobuf\Timestamp $scheduled_time
- * @type \Google\Protobuf\Timestamp $original_scheduled_time
- * original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
- * Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
- * In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds
- * some threshold, the workflow task will be forced timeout.
- * @type \Google\Protobuf\Timestamp $started_time
- * @type int $attempt
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.PendingWorkflowTaskState state = 1;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.PendingWorkflowTaskState state = 1;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\PendingWorkflowTaskState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 2 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getScheduledTime()
- {
- return $this->scheduled_time;
- }
-
- public function hasScheduledTime()
- {
- return isset($this->scheduled_time);
- }
-
- public function clearScheduledTime()
- {
- unset($this->scheduled_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 2 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setScheduledTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->scheduled_time = $var;
-
- return $this;
- }
-
- /**
- * original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
- * Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
- * In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds
- * some threshold, the workflow task will be forced timeout.
- *
- * Generated from protobuf field .google.protobuf.Timestamp original_scheduled_time = 3 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getOriginalScheduledTime()
- {
- return $this->original_scheduled_time;
- }
-
- public function hasOriginalScheduledTime()
- {
- return isset($this->original_scheduled_time);
- }
-
- public function clearOriginalScheduledTime()
- {
- unset($this->original_scheduled_time);
- }
-
- /**
- * original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
- * Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
- * In this case, OriginalScheduledTime won't change. Then when current time - original_scheduled_time exceeds
- * some threshold, the workflow task will be forced timeout.
- *
- * Generated from protobuf field .google.protobuf.Timestamp original_scheduled_time = 3 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setOriginalScheduledTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->original_scheduled_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 4 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartedTime()
- {
- return $this->started_time;
- }
-
- public function hasStartedTime()
- {
- return isset($this->started_time);
- }
-
- public function clearStartedTime()
- {
- unset($this->started_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 4 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartedTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->started_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 attempt = 5;
- * @return int
- */
- public function getAttempt()
- {
- return $this->attempt;
- }
-
- /**
- * Generated from protobuf field int32 attempt = 5;
- * @param int $var
- * @return $this
- */
- public function setAttempt($var)
- {
- GPBUtil::checkInt32($var);
- $this->attempt = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflow/V1/ResetPointInfo.php b/api/v1/Temporal/Api/Workflow/V1/ResetPointInfo.php
deleted file mode 100644
index 4f9b725d7..000000000
--- a/api/v1/Temporal/Api/Workflow/V1/ResetPointInfo.php
+++ /dev/null
@@ -1,260 +0,0 @@
-temporal.api.workflow.v1.ResetPointInfo
- */
-class ResetPointInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * A worker binary version identifier, will be deprecated and superseded by a newer concept of
- * build_id.
- *
- * Generated from protobuf field string binary_checksum = 1;
- */
- protected $binary_checksum = '';
- /**
- * The first run ID in the execution chain that was touched by this worker build.
- *
- * Generated from protobuf field string run_id = 2;
- */
- protected $run_id = '';
- /**
- * Event ID of the first WorkflowTaskCompleted event processed by this worker build.
- *
- * Generated from protobuf field int64 first_workflow_task_completed_id = 3;
- */
- protected $first_workflow_task_completed_id = 0;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.gogoproto.stdtime) = true];
- */
- protected $create_time = null;
- /**
- * (-- api-linter: core::0214::resource-expiry=disabled
- * aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
- * The time that the run is deleted due to retention.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 5 [(.gogoproto.stdtime) = true];
- */
- protected $expire_time = null;
- /**
- * false if the reset point has pending childWFs/reqCancels/signalExternals.
- *
- * Generated from protobuf field bool resettable = 6;
- */
- protected $resettable = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $binary_checksum
- * A worker binary version identifier, will be deprecated and superseded by a newer concept of
- * build_id.
- * @type string $run_id
- * The first run ID in the execution chain that was touched by this worker build.
- * @type int|string $first_workflow_task_completed_id
- * Event ID of the first WorkflowTaskCompleted event processed by this worker build.
- * @type \Google\Protobuf\Timestamp $create_time
- * @type \Google\Protobuf\Timestamp $expire_time
- * (-- api-linter: core::0214::resource-expiry=disabled
- * aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
- * The time that the run is deleted due to retention.
- * @type bool $resettable
- * false if the reset point has pending childWFs/reqCancels/signalExternals.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A worker binary version identifier, will be deprecated and superseded by a newer concept of
- * build_id.
- *
- * Generated from protobuf field string binary_checksum = 1;
- * @return string
- */
- public function getBinaryChecksum()
- {
- return $this->binary_checksum;
- }
-
- /**
- * A worker binary version identifier, will be deprecated and superseded by a newer concept of
- * build_id.
- *
- * Generated from protobuf field string binary_checksum = 1;
- * @param string $var
- * @return $this
- */
- public function setBinaryChecksum($var)
- {
- GPBUtil::checkString($var, True);
- $this->binary_checksum = $var;
-
- return $this;
- }
-
- /**
- * The first run ID in the execution chain that was touched by this worker build.
- *
- * Generated from protobuf field string run_id = 2;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * The first run ID in the execution chain that was touched by this worker build.
- *
- * Generated from protobuf field string run_id = 2;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
- /**
- * Event ID of the first WorkflowTaskCompleted event processed by this worker build.
- *
- * Generated from protobuf field int64 first_workflow_task_completed_id = 3;
- * @return int|string
- */
- public function getFirstWorkflowTaskCompletedId()
- {
- return $this->first_workflow_task_completed_id;
- }
-
- /**
- * Event ID of the first WorkflowTaskCompleted event processed by this worker build.
- *
- * Generated from protobuf field int64 first_workflow_task_completed_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setFirstWorkflowTaskCompletedId($var)
- {
- GPBUtil::checkInt64($var);
- $this->first_workflow_task_completed_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreateTime()
- {
- return $this->create_time;
- }
-
- public function hasCreateTime()
- {
- return isset($this->create_time);
- }
-
- public function clearCreateTime()
- {
- unset($this->create_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreateTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->create_time = $var;
-
- return $this;
- }
-
- /**
- * (-- api-linter: core::0214::resource-expiry=disabled
- * aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
- * The time that the run is deleted due to retention.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 5 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getExpireTime()
- {
- return $this->expire_time;
- }
-
- public function hasExpireTime()
- {
- return isset($this->expire_time);
- }
-
- public function clearExpireTime()
- {
- unset($this->expire_time);
- }
-
- /**
- * (-- api-linter: core::0214::resource-expiry=disabled
- * aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
- * The time that the run is deleted due to retention.
- *
- * Generated from protobuf field .google.protobuf.Timestamp expire_time = 5 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setExpireTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->expire_time = $var;
-
- return $this;
- }
-
- /**
- * false if the reset point has pending childWFs/reqCancels/signalExternals.
- *
- * Generated from protobuf field bool resettable = 6;
- * @return bool
- */
- public function getResettable()
- {
- return $this->resettable;
- }
-
- /**
- * false if the reset point has pending childWFs/reqCancels/signalExternals.
- *
- * Generated from protobuf field bool resettable = 6;
- * @param bool $var
- * @return $this
- */
- public function setResettable($var)
- {
- GPBUtil::checkBool($var);
- $this->resettable = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflow/V1/ResetPoints.php b/api/v1/Temporal/Api/Workflow/V1/ResetPoints.php
deleted file mode 100644
index 619cfe116..000000000
--- a/api/v1/Temporal/Api/Workflow/V1/ResetPoints.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.workflow.v1.ResetPoints
- */
-class ResetPoints extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.ResetPointInfo points = 1;
- */
- private $points;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Workflow\V1\ResetPointInfo>|\Google\Protobuf\Internal\RepeatedField $points
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.ResetPointInfo points = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPoints()
- {
- return $this->points;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.ResetPointInfo points = 1;
- * @param array<\Temporal\Api\Workflow\V1\ResetPointInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPoints($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\ResetPointInfo::class);
- $this->points = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflow/V1/WorkflowExecutionConfig.php b/api/v1/Temporal/Api/Workflow/V1/WorkflowExecutionConfig.php
deleted file mode 100644
index ee0942819..000000000
--- a/api/v1/Temporal/Api/Workflow/V1/WorkflowExecutionConfig.php
+++ /dev/null
@@ -1,179 +0,0 @@
-temporal.api.workflow.v1.WorkflowExecutionConfig
- */
-class WorkflowExecutionConfig extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
- */
- protected $task_queue = null;
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 2 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_timeout = null;
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 3 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Generated from protobuf field .google.protobuf.Duration default_workflow_task_timeout = 4 [(.gogoproto.stdduration) = true];
- */
- protected $default_workflow_task_timeout = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Google\Protobuf\Duration $workflow_execution_timeout
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * @type \Google\Protobuf\Duration $default_workflow_task_timeout
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 2 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionTimeout()
- {
- return $this->workflow_execution_timeout;
- }
-
- public function hasWorkflowExecutionTimeout()
- {
- return isset($this->workflow_execution_timeout);
- }
-
- public function clearWorkflowExecutionTimeout()
- {
- unset($this->workflow_execution_timeout);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 2 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 3 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 3 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration default_workflow_task_timeout = 4 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getDefaultWorkflowTaskTimeout()
- {
- return $this->default_workflow_task_timeout;
- }
-
- public function hasDefaultWorkflowTaskTimeout()
- {
- return isset($this->default_workflow_task_timeout);
- }
-
- public function clearDefaultWorkflowTaskTimeout()
- {
- unset($this->default_workflow_task_timeout);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration default_workflow_task_timeout = 4 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setDefaultWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->default_workflow_task_timeout = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflow/V1/WorkflowExecutionInfo.php b/api/v1/Temporal/Api/Workflow/V1/WorkflowExecutionInfo.php
deleted file mode 100644
index b8db59793..000000000
--- a/api/v1/Temporal/Api/Workflow/V1/WorkflowExecutionInfo.php
+++ /dev/null
@@ -1,570 +0,0 @@
-temporal.api.workflow.v1.WorkflowExecutionInfo
- */
-class WorkflowExecutionInfo extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 1;
- */
- protected $execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType type = 2;
- */
- protected $type = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- */
- protected $start_time = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 4 [(.gogoproto.stdtime) = true];
- */
- protected $close_time = null;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
- */
- protected $status = 0;
- /**
- * Generated from protobuf field int64 history_length = 6;
- */
- protected $history_length = 0;
- /**
- * Generated from protobuf field string parent_namespace_id = 7;
- */
- protected $parent_namespace_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution parent_execution = 8;
- */
- protected $parent_execution = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp execution_time = 9 [(.gogoproto.stdtime) = true];
- */
- protected $execution_time = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 10;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 11;
- */
- protected $search_attributes = null;
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.ResetPoints auto_reset_points = 12;
- */
- protected $auto_reset_points = null;
- /**
- * Generated from protobuf field string task_queue = 13;
- */
- protected $task_queue = '';
- /**
- * Generated from protobuf field int64 state_transition_count = 14;
- */
- protected $state_transition_count = 0;
- /**
- * Generated from protobuf field int64 history_size_bytes = 15;
- */
- protected $history_size_bytes = 0;
- /**
- * If set, the most recent worker version stamp that appeared in a workflow task completion
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp most_recent_worker_version_stamp = 16;
- */
- protected $most_recent_worker_version_stamp = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\WorkflowExecution $execution
- * @type \Temporal\Api\Common\V1\WorkflowType $type
- * @type \Google\Protobuf\Timestamp $start_time
- * @type \Google\Protobuf\Timestamp $close_time
- * @type int $status
- * @type int|string $history_length
- * @type string $parent_namespace_id
- * @type \Temporal\Api\Common\V1\WorkflowExecution $parent_execution
- * @type \Google\Protobuf\Timestamp $execution_time
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type \Temporal\Api\Workflow\V1\ResetPoints $auto_reset_points
- * @type string $task_queue
- * @type int|string $state_transition_count
- * @type int|string $history_size_bytes
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $most_recent_worker_version_stamp
- * If set, the most recent worker version stamp that appeared in a workflow task completion
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflow\V1\Message::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 1;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getExecution()
- {
- return $this->execution;
- }
-
- public function hasExecution()
- {
- return isset($this->execution);
- }
-
- public function clearExecution()
- {
- unset($this->execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 1;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType type = 2;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getType()
- {
- return $this->type;
- }
-
- public function hasType()
- {
- return isset($this->type);
- }
-
- public function clearType()
- {
- unset($this->type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType type = 2;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 4 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCloseTime()
- {
- return $this->close_time;
- }
-
- public function hasCloseTime()
- {
- return isset($this->close_time);
- }
-
- public function clearCloseTime()
- {
- unset($this->close_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 4 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCloseTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->close_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
- * @return int
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
- * @param int $var
- * @return $this
- */
- public function setStatus($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowExecutionStatus::class);
- $this->status = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 history_length = 6;
- * @return int|string
- */
- public function getHistoryLength()
- {
- return $this->history_length;
- }
-
- /**
- * Generated from protobuf field int64 history_length = 6;
- * @param int|string $var
- * @return $this
- */
- public function setHistoryLength($var)
- {
- GPBUtil::checkInt64($var);
- $this->history_length = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string parent_namespace_id = 7;
- * @return string
- */
- public function getParentNamespaceId()
- {
- return $this->parent_namespace_id;
- }
-
- /**
- * Generated from protobuf field string parent_namespace_id = 7;
- * @param string $var
- * @return $this
- */
- public function setParentNamespaceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->parent_namespace_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution parent_execution = 8;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getParentExecution()
- {
- return $this->parent_execution;
- }
-
- public function hasParentExecution()
- {
- return isset($this->parent_execution);
- }
-
- public function clearParentExecution()
- {
- unset($this->parent_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution parent_execution = 8;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setParentExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->parent_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp execution_time = 9 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getExecutionTime()
- {
- return $this->execution_time;
- }
-
- public function hasExecutionTime()
- {
- return isset($this->execution_time);
- }
-
- public function clearExecutionTime()
- {
- unset($this->execution_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp execution_time = 9 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setExecutionTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->execution_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 10;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 10;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 11;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 11;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.ResetPoints auto_reset_points = 12;
- * @return \Temporal\Api\Workflow\V1\ResetPoints|null
- */
- public function getAutoResetPoints()
- {
- return $this->auto_reset_points;
- }
-
- public function hasAutoResetPoints()
- {
- return isset($this->auto_reset_points);
- }
-
- public function clearAutoResetPoints()
- {
- unset($this->auto_reset_points);
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.ResetPoints auto_reset_points = 12;
- * @param \Temporal\Api\Workflow\V1\ResetPoints $var
- * @return $this
- */
- public function setAutoResetPoints($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\ResetPoints::class);
- $this->auto_reset_points = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string task_queue = 13;
- * @return string
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- /**
- * Generated from protobuf field string task_queue = 13;
- * @param string $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkString($var, True);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 state_transition_count = 14;
- * @return int|string
- */
- public function getStateTransitionCount()
- {
- return $this->state_transition_count;
- }
-
- /**
- * Generated from protobuf field int64 state_transition_count = 14;
- * @param int|string $var
- * @return $this
- */
- public function setStateTransitionCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->state_transition_count = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 history_size_bytes = 15;
- * @return int|string
- */
- public function getHistorySizeBytes()
- {
- return $this->history_size_bytes;
- }
-
- /**
- * Generated from protobuf field int64 history_size_bytes = 15;
- * @param int|string $var
- * @return $this
- */
- public function setHistorySizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->history_size_bytes = $var;
-
- return $this;
- }
-
- /**
- * If set, the most recent worker version stamp that appeared in a workflow task completion
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp most_recent_worker_version_stamp = 16;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getMostRecentWorkerVersionStamp()
- {
- return $this->most_recent_worker_version_stamp;
- }
-
- public function hasMostRecentWorkerVersionStamp()
- {
- return isset($this->most_recent_worker_version_stamp);
- }
-
- public function clearMostRecentWorkerVersionStamp()
- {
- unset($this->most_recent_worker_version_stamp);
- }
-
- /**
- * If set, the most recent worker version stamp that appeared in a workflow task completion
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp most_recent_worker_version_stamp = 16;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setMostRecentWorkerVersionStamp($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->most_recent_worker_version_stamp = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/CountWorkflowExecutionsRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/CountWorkflowExecutionsRequest.php
deleted file mode 100644
index 638982bd5..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/CountWorkflowExecutionsRequest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.CountWorkflowExecutionsRequest
- */
-class CountWorkflowExecutionsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string query = 2;
- */
- protected $query = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $query
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string query = 2;
- * @return string
- */
- public function getQuery()
- {
- return $this->query;
- }
-
- /**
- * Generated from protobuf field string query = 2;
- * @param string $var
- * @return $this
- */
- public function setQuery($var)
- {
- GPBUtil::checkString($var, True);
- $this->query = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/CountWorkflowExecutionsResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/CountWorkflowExecutionsResponse.php
deleted file mode 100644
index 72b259a46..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/CountWorkflowExecutionsResponse.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.workflowservice.v1.CountWorkflowExecutionsResponse
- */
-class CountWorkflowExecutionsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field int64 count = 1;
- */
- protected $count = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $count
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field int64 count = 1;
- * @return int|string
- */
- public function getCount()
- {
- return $this->count;
- }
-
- /**
- * Generated from protobuf field int64 count = 1;
- * @param int|string $var
- * @return $this
- */
- public function setCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->count = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/CreateScheduleRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/CreateScheduleRequest.php
deleted file mode 100644
index 50991b440..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/CreateScheduleRequest.php
+++ /dev/null
@@ -1,345 +0,0 @@
-temporal.api.workflowservice.v1.CreateScheduleRequest
- */
-class CreateScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace the schedule should be created in.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * The id of the new schedule.
- *
- * Generated from protobuf field string schedule_id = 2;
- */
- protected $schedule_id = '';
- /**
- * The schedule spec, policies, action, and initial state.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 3;
- */
- protected $schedule = null;
- /**
- * Optional initial patch (e.g. to run the action once immediately).
- *
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePatch initial_patch = 4;
- */
- protected $initial_patch = null;
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 5;
- */
- protected $identity = '';
- /**
- * A unique identifier for this create request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 6;
- */
- protected $request_id = '';
- /**
- * Memo and search attributes to attach to the schedule itself.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 7;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 8;
- */
- protected $search_attributes = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace the schedule should be created in.
- * @type string $schedule_id
- * The id of the new schedule.
- * @type \Temporal\Api\Schedule\V1\Schedule $schedule
- * The schedule spec, policies, action, and initial state.
- * @type \Temporal\Api\Schedule\V1\SchedulePatch $initial_patch
- * Optional initial patch (e.g. to run the action once immediately).
- * @type string $identity
- * The identity of the client who initiated this request.
- * @type string $request_id
- * A unique identifier for this create request for idempotence. Typically UUIDv4.
- * @type \Temporal\Api\Common\V1\Memo $memo
- * Memo and search attributes to attach to the schedule itself.
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace the schedule should be created in.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace the schedule should be created in.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * The id of the new schedule.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @return string
- */
- public function getScheduleId()
- {
- return $this->schedule_id;
- }
-
- /**
- * The id of the new schedule.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @param string $var
- * @return $this
- */
- public function setScheduleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->schedule_id = $var;
-
- return $this;
- }
-
- /**
- * The schedule spec, policies, action, and initial state.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 3;
- * @return \Temporal\Api\Schedule\V1\Schedule|null
- */
- public function getSchedule()
- {
- return $this->schedule;
- }
-
- public function hasSchedule()
- {
- return isset($this->schedule);
- }
-
- public function clearSchedule()
- {
- unset($this->schedule);
- }
-
- /**
- * The schedule spec, policies, action, and initial state.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 3;
- * @param \Temporal\Api\Schedule\V1\Schedule $var
- * @return $this
- */
- public function setSchedule($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\Schedule::class);
- $this->schedule = $var;
-
- return $this;
- }
-
- /**
- * Optional initial patch (e.g. to run the action once immediately).
- *
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePatch initial_patch = 4;
- * @return \Temporal\Api\Schedule\V1\SchedulePatch|null
- */
- public function getInitialPatch()
- {
- return $this->initial_patch;
- }
-
- public function hasInitialPatch()
- {
- return isset($this->initial_patch);
- }
-
- public function clearInitialPatch()
- {
- unset($this->initial_patch);
- }
-
- /**
- * Optional initial patch (e.g. to run the action once immediately).
- *
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePatch initial_patch = 4;
- * @param \Temporal\Api\Schedule\V1\SchedulePatch $var
- * @return $this
- */
- public function setInitialPatch($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\SchedulePatch::class);
- $this->initial_patch = $var;
-
- return $this;
- }
-
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 5;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 5;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * A unique identifier for this create request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 6;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * A unique identifier for this create request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 6;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Memo and search attributes to attach to the schedule itself.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 7;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Memo and search attributes to attach to the schedule itself.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 7;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 8;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 8;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/CreateScheduleResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/CreateScheduleResponse.php
deleted file mode 100644
index fa3daf27d..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/CreateScheduleResponse.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.workflowservice.v1.CreateScheduleResponse
- */
-class CreateScheduleResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field bytes conflict_token = 1;
- */
- protected $conflict_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $conflict_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field bytes conflict_token = 1;
- * @return string
- */
- public function getConflictToken()
- {
- return $this->conflict_token;
- }
-
- /**
- * Generated from protobuf field bytes conflict_token = 1;
- * @param string $var
- * @return $this
- */
- public function setConflictToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->conflict_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DeleteScheduleRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/DeleteScheduleRequest.php
deleted file mode 100644
index 1e5665234..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DeleteScheduleRequest.php
+++ /dev/null
@@ -1,138 +0,0 @@
-temporal.api.workflowservice.v1.DeleteScheduleRequest
- */
-class DeleteScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace of the schedule to delete.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * The id of the schedule to delete.
- *
- * Generated from protobuf field string schedule_id = 2;
- */
- protected $schedule_id = '';
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace of the schedule to delete.
- * @type string $schedule_id
- * The id of the schedule to delete.
- * @type string $identity
- * The identity of the client who initiated this request.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace of the schedule to delete.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace of the schedule to delete.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * The id of the schedule to delete.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @return string
- */
- public function getScheduleId()
- {
- return $this->schedule_id;
- }
-
- /**
- * The id of the schedule to delete.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @param string $var
- * @return $this
- */
- public function setScheduleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->schedule_id = $var;
-
- return $this;
- }
-
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DeleteScheduleResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/DeleteScheduleResponse.php
deleted file mode 100644
index b255cebd9..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DeleteScheduleResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.DeleteScheduleResponse
- */
-class DeleteScheduleResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DeleteWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/DeleteWorkflowExecutionRequest.php
deleted file mode 100644
index 35f58af78..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DeleteWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,107 +0,0 @@
-temporal.api.workflowservice.v1.DeleteWorkflowExecutionRequest
- */
-class DeleteWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Workflow Execution to delete. If run_id is not specified, the latest one is used.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * Workflow Execution to delete. If run_id is not specified, the latest one is used.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Workflow Execution to delete. If run_id is not specified, the latest one is used.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Workflow Execution to delete. If run_id is not specified, the latest one is used.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DeleteWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/DeleteWorkflowExecutionResponse.php
deleted file mode 100644
index 5375d37b5..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DeleteWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.DeleteWorkflowExecutionResponse
- */
-class DeleteWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DeprecateNamespaceRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/DeprecateNamespaceRequest.php
deleted file mode 100644
index 41337a3fe..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DeprecateNamespaceRequest.php
+++ /dev/null
@@ -1,87 +0,0 @@
-temporal.api.workflowservice.v1.DeprecateNamespaceRequest
- */
-class DeprecateNamespaceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string security_token = 2;
- */
- protected $security_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $security_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string security_token = 2;
- * @return string
- */
- public function getSecurityToken()
- {
- return $this->security_token;
- }
-
- /**
- * Generated from protobuf field string security_token = 2;
- * @param string $var
- * @return $this
- */
- public function setSecurityToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->security_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DeprecateNamespaceResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/DeprecateNamespaceResponse.php
deleted file mode 100644
index e5b76fda4..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DeprecateNamespaceResponse.php
+++ /dev/null
@@ -1,33 +0,0 @@
-temporal.api.workflowservice.v1.DeprecateNamespaceResponse
- */
-class DeprecateNamespaceResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeBatchOperationRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeBatchOperationRequest.php
deleted file mode 100644
index edf15a7ac..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeBatchOperationRequest.php
+++ /dev/null
@@ -1,99 +0,0 @@
-temporal.api.workflowservice.v1.DescribeBatchOperationRequest
- */
-class DescribeBatchOperationRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Batch job id
- *
- * Generated from protobuf field string job_id = 2;
- */
- protected $job_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace that contains the batch operation
- * @type string $job_id
- * Batch job id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Batch job id
- *
- * Generated from protobuf field string job_id = 2;
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Batch job id
- *
- * Generated from protobuf field string job_id = 2;
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeBatchOperationResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeBatchOperationResponse.php
deleted file mode 100644
index 2b4bf3be4..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeBatchOperationResponse.php
+++ /dev/null
@@ -1,391 +0,0 @@
-temporal.api.workflowservice.v1.DescribeBatchOperationResponse
- */
-class DescribeBatchOperationResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Batch operation type
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationType operation_type = 1;
- */
- protected $operation_type = 0;
- /**
- * Batch job ID
- *
- * Generated from protobuf field string job_id = 2;
- */
- protected $job_id = '';
- /**
- * Batch operation state
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationState state = 3;
- */
- protected $state = 0;
- /**
- * Batch operation start time
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true];
- */
- protected $start_time = null;
- /**
- * Batch operation close time
- *
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true];
- */
- protected $close_time = null;
- /**
- * Total operation count
- *
- * Generated from protobuf field int64 total_operation_count = 6;
- */
- protected $total_operation_count = 0;
- /**
- * Complete operation count
- *
- * Generated from protobuf field int64 complete_operation_count = 7;
- */
- protected $complete_operation_count = 0;
- /**
- * Failure operation count
- *
- * Generated from protobuf field int64 failure_operation_count = 8;
- */
- protected $failure_operation_count = 0;
- /**
- * Identity indicates the operator identity
- *
- * Generated from protobuf field string identity = 9;
- */
- protected $identity = '';
- /**
- * Reason indicates the reason to stop a operation
- *
- * Generated from protobuf field string reason = 10;
- */
- protected $reason = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $operation_type
- * Batch operation type
- * @type string $job_id
- * Batch job ID
- * @type int $state
- * Batch operation state
- * @type \Google\Protobuf\Timestamp $start_time
- * Batch operation start time
- * @type \Google\Protobuf\Timestamp $close_time
- * Batch operation close time
- * @type int|string $total_operation_count
- * Total operation count
- * @type int|string $complete_operation_count
- * Complete operation count
- * @type int|string $failure_operation_count
- * Failure operation count
- * @type string $identity
- * Identity indicates the operator identity
- * @type string $reason
- * Reason indicates the reason to stop a operation
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Batch operation type
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationType operation_type = 1;
- * @return int
- */
- public function getOperationType()
- {
- return $this->operation_type;
- }
-
- /**
- * Batch operation type
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationType operation_type = 1;
- * @param int $var
- * @return $this
- */
- public function setOperationType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\BatchOperationType::class);
- $this->operation_type = $var;
-
- return $this;
- }
-
- /**
- * Batch job ID
- *
- * Generated from protobuf field string job_id = 2;
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Batch job ID
- *
- * Generated from protobuf field string job_id = 2;
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
- /**
- * Batch operation state
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationState state = 3;
- * @return int
- */
- public function getState()
- {
- return $this->state;
- }
-
- /**
- * Batch operation state
- *
- * Generated from protobuf field .temporal.api.enums.v1.BatchOperationState state = 3;
- * @param int $var
- * @return $this
- */
- public function setState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\BatchOperationState::class);
- $this->state = $var;
-
- return $this;
- }
-
- /**
- * Batch operation start time
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * Batch operation start time
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 4 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * Batch operation close time
- *
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCloseTime()
- {
- return $this->close_time;
- }
-
- public function hasCloseTime()
- {
- return isset($this->close_time);
- }
-
- public function clearCloseTime()
- {
- unset($this->close_time);
- }
-
- /**
- * Batch operation close time
- *
- * Generated from protobuf field .google.protobuf.Timestamp close_time = 5 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCloseTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->close_time = $var;
-
- return $this;
- }
-
- /**
- * Total operation count
- *
- * Generated from protobuf field int64 total_operation_count = 6;
- * @return int|string
- */
- public function getTotalOperationCount()
- {
- return $this->total_operation_count;
- }
-
- /**
- * Total operation count
- *
- * Generated from protobuf field int64 total_operation_count = 6;
- * @param int|string $var
- * @return $this
- */
- public function setTotalOperationCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->total_operation_count = $var;
-
- return $this;
- }
-
- /**
- * Complete operation count
- *
- * Generated from protobuf field int64 complete_operation_count = 7;
- * @return int|string
- */
- public function getCompleteOperationCount()
- {
- return $this->complete_operation_count;
- }
-
- /**
- * Complete operation count
- *
- * Generated from protobuf field int64 complete_operation_count = 7;
- * @param int|string $var
- * @return $this
- */
- public function setCompleteOperationCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->complete_operation_count = $var;
-
- return $this;
- }
-
- /**
- * Failure operation count
- *
- * Generated from protobuf field int64 failure_operation_count = 8;
- * @return int|string
- */
- public function getFailureOperationCount()
- {
- return $this->failure_operation_count;
- }
-
- /**
- * Failure operation count
- *
- * Generated from protobuf field int64 failure_operation_count = 8;
- * @param int|string $var
- * @return $this
- */
- public function setFailureOperationCount($var)
- {
- GPBUtil::checkInt64($var);
- $this->failure_operation_count = $var;
-
- return $this;
- }
-
- /**
- * Identity indicates the operator identity
- *
- * Generated from protobuf field string identity = 9;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * Identity indicates the operator identity
- *
- * Generated from protobuf field string identity = 9;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Reason indicates the reason to stop a operation
- *
- * Generated from protobuf field string reason = 10;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Reason indicates the reason to stop a operation
- *
- * Generated from protobuf field string reason = 10;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeNamespaceRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeNamespaceRequest.php
deleted file mode 100644
index e5b5bfbed..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeNamespaceRequest.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.DescribeNamespaceRequest
- */
-class DescribeNamespaceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string id = 2;
- */
- protected $id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string id = 2;
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Generated from protobuf field string id = 2;
- * @param string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkString($var, True);
- $this->id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeNamespaceResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeNamespaceResponse.php
deleted file mode 100644
index bb55427e3..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeNamespaceResponse.php
+++ /dev/null
@@ -1,234 +0,0 @@
-temporal.api.workflowservice.v1.DescribeNamespaceResponse
- */
-class DescribeNamespaceResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
- */
- protected $namespace_info = null;
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 2;
- */
- protected $config = null;
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
- */
- protected $replication_config = null;
- /**
- * Generated from protobuf field int64 failover_version = 4;
- */
- protected $failover_version = 0;
- /**
- * Generated from protobuf field bool is_global_namespace = 5;
- */
- protected $is_global_namespace = false;
- /**
- * Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
- * states to ensure that the list does not grow unbounded.
- *
- * Generated from protobuf field repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
- */
- private $failover_history;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\PBNamespace\V1\NamespaceInfo $namespace_info
- * @type \Temporal\Api\PBNamespace\V1\NamespaceConfig $config
- * @type \Temporal\Api\Replication\V1\NamespaceReplicationConfig $replication_config
- * @type int|string $failover_version
- * @type bool $is_global_namespace
- * @type array<\Temporal\Api\Replication\V1\FailoverStatus>|\Google\Protobuf\Internal\RepeatedField $failover_history
- * Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
- * states to ensure that the list does not grow unbounded.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
- * @return \Temporal\Api\PBNamespace\V1\NamespaceInfo|null
- */
- public function getNamespaceInfo()
- {
- return $this->namespace_info;
- }
-
- public function hasNamespaceInfo()
- {
- return isset($this->namespace_info);
- }
-
- public function clearNamespaceInfo()
- {
- unset($this->namespace_info);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
- * @param \Temporal\Api\PBNamespace\V1\NamespaceInfo $var
- * @return $this
- */
- public function setNamespaceInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\PBNamespace\V1\NamespaceInfo::class);
- $this->namespace_info = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 2;
- * @return \Temporal\Api\PBNamespace\V1\NamespaceConfig|null
- */
- public function getConfig()
- {
- return $this->config;
- }
-
- public function hasConfig()
- {
- return isset($this->config);
- }
-
- public function clearConfig()
- {
- unset($this->config);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 2;
- * @param \Temporal\Api\PBNamespace\V1\NamespaceConfig $var
- * @return $this
- */
- public function setConfig($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\PBNamespace\V1\NamespaceConfig::class);
- $this->config = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
- * @return \Temporal\Api\Replication\V1\NamespaceReplicationConfig|null
- */
- public function getReplicationConfig()
- {
- return $this->replication_config;
- }
-
- public function hasReplicationConfig()
- {
- return isset($this->replication_config);
- }
-
- public function clearReplicationConfig()
- {
- unset($this->replication_config);
- }
-
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
- * @param \Temporal\Api\Replication\V1\NamespaceReplicationConfig $var
- * @return $this
- */
- public function setReplicationConfig($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Replication\V1\NamespaceReplicationConfig::class);
- $this->replication_config = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 failover_version = 4;
- * @return int|string
- */
- public function getFailoverVersion()
- {
- return $this->failover_version;
- }
-
- /**
- * Generated from protobuf field int64 failover_version = 4;
- * @param int|string $var
- * @return $this
- */
- public function setFailoverVersion($var)
- {
- GPBUtil::checkInt64($var);
- $this->failover_version = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bool is_global_namespace = 5;
- * @return bool
- */
- public function getIsGlobalNamespace()
- {
- return $this->is_global_namespace;
- }
-
- /**
- * Generated from protobuf field bool is_global_namespace = 5;
- * @param bool $var
- * @return $this
- */
- public function setIsGlobalNamespace($var)
- {
- GPBUtil::checkBool($var);
- $this->is_global_namespace = $var;
-
- return $this;
- }
-
- /**
- * Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
- * states to ensure that the list does not grow unbounded.
- *
- * Generated from protobuf field repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFailoverHistory()
- {
- return $this->failover_history;
- }
-
- /**
- * Contains the historical state of failover_versions for the cluster, truncated to contain only the last N
- * states to ensure that the list does not grow unbounded.
- *
- * Generated from protobuf field repeated .temporal.api.replication.v1.FailoverStatus failover_history = 6;
- * @param array<\Temporal\Api\Replication\V1\FailoverStatus>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFailoverHistory($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Replication\V1\FailoverStatus::class);
- $this->failover_history = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeScheduleRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeScheduleRequest.php
deleted file mode 100644
index f358c56f8..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeScheduleRequest.php
+++ /dev/null
@@ -1,99 +0,0 @@
-temporal.api.workflowservice.v1.DescribeScheduleRequest
- */
-class DescribeScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace of the schedule to describe.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * The id of the schedule to describe.
- *
- * Generated from protobuf field string schedule_id = 2;
- */
- protected $schedule_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace of the schedule to describe.
- * @type string $schedule_id
- * The id of the schedule to describe.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace of the schedule to describe.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace of the schedule to describe.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * The id of the schedule to describe.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @return string
- */
- public function getScheduleId()
- {
- return $this->schedule_id;
- }
-
- /**
- * The id of the schedule to describe.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @param string $var
- * @return $this
- */
- public function setScheduleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->schedule_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeScheduleResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeScheduleResponse.php
deleted file mode 100644
index 38d86fdba..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeScheduleResponse.php
+++ /dev/null
@@ -1,266 +0,0 @@
-temporal.api.workflowservice.v1.DescribeScheduleResponse
- */
-class DescribeScheduleResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The complete current schedule details. This may not match the schedule as
- * created because:
- * - some types of schedule specs may get compiled into others (e.g.
- * CronString into StructuredCalendarSpec)
- * - some unspecified fields may be replaced by defaults
- * - some fields in the state are modified automatically
- * - the schedule may have been modified by UpdateSchedule or PatchSchedule
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 1;
- */
- protected $schedule = null;
- /**
- * Extra schedule state info.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleInfo info = 2;
- */
- protected $info = null;
- /**
- * The memo and search attributes that the schedule was created with.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 3;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 4;
- */
- protected $search_attributes = null;
- /**
- * This value can be passed back to UpdateSchedule to ensure that the
- * schedule was not modified between a Describe and an Update, which could
- * lead to lost updates and other confusion.
- *
- * Generated from protobuf field bytes conflict_token = 5;
- */
- protected $conflict_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Schedule\V1\Schedule $schedule
- * The complete current schedule details. This may not match the schedule as
- * created because:
- * - some types of schedule specs may get compiled into others (e.g.
- * CronString into StructuredCalendarSpec)
- * - some unspecified fields may be replaced by defaults
- * - some fields in the state are modified automatically
- * - the schedule may have been modified by UpdateSchedule or PatchSchedule
- * @type \Temporal\Api\Schedule\V1\ScheduleInfo $info
- * Extra schedule state info.
- * @type \Temporal\Api\Common\V1\Memo $memo
- * The memo and search attributes that the schedule was created with.
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type string $conflict_token
- * This value can be passed back to UpdateSchedule to ensure that the
- * schedule was not modified between a Describe and an Update, which could
- * lead to lost updates and other confusion.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The complete current schedule details. This may not match the schedule as
- * created because:
- * - some types of schedule specs may get compiled into others (e.g.
- * CronString into StructuredCalendarSpec)
- * - some unspecified fields may be replaced by defaults
- * - some fields in the state are modified automatically
- * - the schedule may have been modified by UpdateSchedule or PatchSchedule
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 1;
- * @return \Temporal\Api\Schedule\V1\Schedule|null
- */
- public function getSchedule()
- {
- return $this->schedule;
- }
-
- public function hasSchedule()
- {
- return isset($this->schedule);
- }
-
- public function clearSchedule()
- {
- unset($this->schedule);
- }
-
- /**
- * The complete current schedule details. This may not match the schedule as
- * created because:
- * - some types of schedule specs may get compiled into others (e.g.
- * CronString into StructuredCalendarSpec)
- * - some unspecified fields may be replaced by defaults
- * - some fields in the state are modified automatically
- * - the schedule may have been modified by UpdateSchedule or PatchSchedule
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 1;
- * @param \Temporal\Api\Schedule\V1\Schedule $var
- * @return $this
- */
- public function setSchedule($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\Schedule::class);
- $this->schedule = $var;
-
- return $this;
- }
-
- /**
- * Extra schedule state info.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleInfo info = 2;
- * @return \Temporal\Api\Schedule\V1\ScheduleInfo|null
- */
- public function getInfo()
- {
- return $this->info;
- }
-
- public function hasInfo()
- {
- return isset($this->info);
- }
-
- public function clearInfo()
- {
- unset($this->info);
- }
-
- /**
- * Extra schedule state info.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.ScheduleInfo info = 2;
- * @param \Temporal\Api\Schedule\V1\ScheduleInfo $var
- * @return $this
- */
- public function setInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\ScheduleInfo::class);
- $this->info = $var;
-
- return $this;
- }
-
- /**
- * The memo and search attributes that the schedule was created with.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 3;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * The memo and search attributes that the schedule was created with.
- *
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 3;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 4;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 4;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * This value can be passed back to UpdateSchedule to ensure that the
- * schedule was not modified between a Describe and an Update, which could
- * lead to lost updates and other confusion.
- *
- * Generated from protobuf field bytes conflict_token = 5;
- * @return string
- */
- public function getConflictToken()
- {
- return $this->conflict_token;
- }
-
- /**
- * This value can be passed back to UpdateSchedule to ensure that the
- * schedule was not modified between a Describe and an Update, which could
- * lead to lost updates and other confusion.
- *
- * Generated from protobuf field bytes conflict_token = 5;
- * @param string $var
- * @return $this
- */
- public function setConflictToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->conflict_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeTaskQueueRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeTaskQueueRequest.php
deleted file mode 100644
index 69ec0272f..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeTaskQueueRequest.php
+++ /dev/null
@@ -1,149 +0,0 @@
-temporal.api.workflowservice.v1.DescribeTaskQueueRequest
- */
-class DescribeTaskQueueRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- */
- protected $task_queue = null;
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
- */
- protected $task_queue_type = 0;
- /**
- * Generated from protobuf field bool include_task_queue_status = 4;
- */
- protected $include_task_queue_status = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type int $task_queue_type
- * @type bool $include_task_queue_status
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
- * @return int
- */
- public function getTaskQueueType()
- {
- return $this->task_queue_type;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.TaskQueueType task_queue_type = 3;
- * @param int $var
- * @return $this
- */
- public function setTaskQueueType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\TaskQueueType::class);
- $this->task_queue_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bool include_task_queue_status = 4;
- * @return bool
- */
- public function getIncludeTaskQueueStatus()
- {
- return $this->include_task_queue_status;
- }
-
- /**
- * Generated from protobuf field bool include_task_queue_status = 4;
- * @param bool $var
- * @return $this
- */
- public function setIncludeTaskQueueStatus($var)
- {
- GPBUtil::checkBool($var);
- $this->include_task_queue_status = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeTaskQueueResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeTaskQueueResponse.php
deleted file mode 100644
index 8406a9b8c..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeTaskQueueResponse.php
+++ /dev/null
@@ -1,95 +0,0 @@
-temporal.api.workflowservice.v1.DescribeTaskQueueResponse
- */
-class DescribeTaskQueueResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.PollerInfo pollers = 1;
- */
- private $pollers;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueueStatus task_queue_status = 2;
- */
- protected $task_queue_status = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Taskqueue\V1\PollerInfo>|\Google\Protobuf\Internal\RepeatedField $pollers
- * @type \Temporal\Api\Taskqueue\V1\TaskQueueStatus $task_queue_status
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.PollerInfo pollers = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPollers()
- {
- return $this->pollers;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.PollerInfo pollers = 1;
- * @param array<\Temporal\Api\Taskqueue\V1\PollerInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPollers($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Taskqueue\V1\PollerInfo::class);
- $this->pollers = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueueStatus task_queue_status = 2;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueueStatus|null
- */
- public function getTaskQueueStatus()
- {
- return $this->task_queue_status;
- }
-
- public function hasTaskQueueStatus()
- {
- return isset($this->task_queue_status);
- }
-
- public function clearTaskQueueStatus()
- {
- unset($this->task_queue_status);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueueStatus task_queue_status = 2;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueueStatus $var
- * @return $this
- */
- public function setTaskQueueStatus($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueueStatus::class);
- $this->task_queue_status = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeWorkflowExecutionRequest.php
deleted file mode 100644
index 359e40072..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,95 +0,0 @@
-temporal.api.workflowservice.v1.DescribeWorkflowExecutionRequest
- */
-class DescribeWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- */
- protected $execution = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $execution
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getExecution()
- {
- return $this->execution;
- }
-
- public function hasExecution()
- {
- return isset($this->execution);
- }
-
- public function clearExecution()
- {
- unset($this->execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->execution = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/DescribeWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/DescribeWorkflowExecutionResponse.php
deleted file mode 100644
index f64cc9381..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/DescribeWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,196 +0,0 @@
-temporal.api.workflowservice.v1.DescribeWorkflowExecutionResponse
- */
-class DescribeWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.WorkflowExecutionConfig execution_config = 1;
- */
- protected $execution_config = null;
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.WorkflowExecutionInfo workflow_execution_info = 2;
- */
- protected $workflow_execution_info = null;
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.PendingActivityInfo pending_activities = 3;
- */
- private $pending_activities;
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.PendingChildExecutionInfo pending_children = 4;
- */
- private $pending_children;
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.PendingWorkflowTaskInfo pending_workflow_task = 5;
- */
- protected $pending_workflow_task = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Workflow\V1\WorkflowExecutionConfig $execution_config
- * @type \Temporal\Api\Workflow\V1\WorkflowExecutionInfo $workflow_execution_info
- * @type array<\Temporal\Api\Workflow\V1\PendingActivityInfo>|\Google\Protobuf\Internal\RepeatedField $pending_activities
- * @type array<\Temporal\Api\Workflow\V1\PendingChildExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $pending_children
- * @type \Temporal\Api\Workflow\V1\PendingWorkflowTaskInfo $pending_workflow_task
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.WorkflowExecutionConfig execution_config = 1;
- * @return \Temporal\Api\Workflow\V1\WorkflowExecutionConfig|null
- */
- public function getExecutionConfig()
- {
- return $this->execution_config;
- }
-
- public function hasExecutionConfig()
- {
- return isset($this->execution_config);
- }
-
- public function clearExecutionConfig()
- {
- unset($this->execution_config);
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.WorkflowExecutionConfig execution_config = 1;
- * @param \Temporal\Api\Workflow\V1\WorkflowExecutionConfig $var
- * @return $this
- */
- public function setExecutionConfig($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\WorkflowExecutionConfig::class);
- $this->execution_config = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.WorkflowExecutionInfo workflow_execution_info = 2;
- * @return \Temporal\Api\Workflow\V1\WorkflowExecutionInfo|null
- */
- public function getWorkflowExecutionInfo()
- {
- return $this->workflow_execution_info;
- }
-
- public function hasWorkflowExecutionInfo()
- {
- return isset($this->workflow_execution_info);
- }
-
- public function clearWorkflowExecutionInfo()
- {
- unset($this->workflow_execution_info);
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.WorkflowExecutionInfo workflow_execution_info = 2;
- * @param \Temporal\Api\Workflow\V1\WorkflowExecutionInfo $var
- * @return $this
- */
- public function setWorkflowExecutionInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\WorkflowExecutionInfo::class);
- $this->workflow_execution_info = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.PendingActivityInfo pending_activities = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPendingActivities()
- {
- return $this->pending_activities;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.PendingActivityInfo pending_activities = 3;
- * @param array<\Temporal\Api\Workflow\V1\PendingActivityInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPendingActivities($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\PendingActivityInfo::class);
- $this->pending_activities = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.PendingChildExecutionInfo pending_children = 4;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPendingChildren()
- {
- return $this->pending_children;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.PendingChildExecutionInfo pending_children = 4;
- * @param array<\Temporal\Api\Workflow\V1\PendingChildExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPendingChildren($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\PendingChildExecutionInfo::class);
- $this->pending_children = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.PendingWorkflowTaskInfo pending_workflow_task = 5;
- * @return \Temporal\Api\Workflow\V1\PendingWorkflowTaskInfo|null
- */
- public function getPendingWorkflowTask()
- {
- return $this->pending_workflow_task;
- }
-
- public function hasPendingWorkflowTask()
- {
- return isset($this->pending_workflow_task);
- }
-
- public function clearPendingWorkflowTask()
- {
- unset($this->pending_workflow_task);
- }
-
- /**
- * Generated from protobuf field .temporal.api.workflow.v1.PendingWorkflowTaskInfo pending_workflow_task = 5;
- * @param \Temporal\Api\Workflow\V1\PendingWorkflowTaskInfo $var
- * @return $this
- */
- public function setPendingWorkflowTask($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflow\V1\PendingWorkflowTaskInfo::class);
- $this->pending_workflow_task = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetClusterInfoRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/GetClusterInfoRequest.php
deleted file mode 100644
index 4f68bbad2..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetClusterInfoRequest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.GetClusterInfoRequest
- */
-class GetClusterInfoRequest extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetClusterInfoResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/GetClusterInfoResponse.php
deleted file mode 100644
index 8b5c6c950..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetClusterInfoResponse.php
+++ /dev/null
@@ -1,270 +0,0 @@
-temporal.api.workflowservice.v1.GetClusterInfoResponse
- */
-class GetClusterInfoResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
- * Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
- *
- * Generated from protobuf field map supported_clients = 1;
- */
- private $supported_clients;
- /**
- * Generated from protobuf field string server_version = 2;
- */
- protected $server_version = '';
- /**
- * Generated from protobuf field string cluster_id = 3;
- */
- protected $cluster_id = '';
- /**
- * Generated from protobuf field .temporal.api.version.v1.VersionInfo version_info = 4;
- */
- protected $version_info = null;
- /**
- * Generated from protobuf field string cluster_name = 5;
- */
- protected $cluster_name = '';
- /**
- * Generated from protobuf field int32 history_shard_count = 6;
- */
- protected $history_shard_count = 0;
- /**
- * Generated from protobuf field string persistence_store = 7;
- */
- protected $persistence_store = '';
- /**
- * Generated from protobuf field string visibility_store = 8;
- */
- protected $visibility_store = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $supported_clients
- * Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
- * Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
- * @type string $server_version
- * @type string $cluster_id
- * @type \Temporal\Api\Version\V1\VersionInfo $version_info
- * @type string $cluster_name
- * @type int $history_shard_count
- * @type string $persistence_store
- * @type string $visibility_store
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
- * Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
- *
- * Generated from protobuf field map supported_clients = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getSupportedClients()
- {
- return $this->supported_clients;
- }
-
- /**
- * Key is client name i.e "temporal-go", "temporal-java", or "temporal-cli".
- * Value is ranges of supported versions of this client i.e ">1.1.1 <=1.4.0 || ^5.0.0".
- *
- * Generated from protobuf field map supported_clients = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setSupportedClients($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->supported_clients = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string server_version = 2;
- * @return string
- */
- public function getServerVersion()
- {
- return $this->server_version;
- }
-
- /**
- * Generated from protobuf field string server_version = 2;
- * @param string $var
- * @return $this
- */
- public function setServerVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->server_version = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string cluster_id = 3;
- * @return string
- */
- public function getClusterId()
- {
- return $this->cluster_id;
- }
-
- /**
- * Generated from protobuf field string cluster_id = 3;
- * @param string $var
- * @return $this
- */
- public function setClusterId($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.version.v1.VersionInfo version_info = 4;
- * @return \Temporal\Api\Version\V1\VersionInfo|null
- */
- public function getVersionInfo()
- {
- return $this->version_info;
- }
-
- public function hasVersionInfo()
- {
- return isset($this->version_info);
- }
-
- public function clearVersionInfo()
- {
- unset($this->version_info);
- }
-
- /**
- * Generated from protobuf field .temporal.api.version.v1.VersionInfo version_info = 4;
- * @param \Temporal\Api\Version\V1\VersionInfo $var
- * @return $this
- */
- public function setVersionInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Version\V1\VersionInfo::class);
- $this->version_info = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string cluster_name = 5;
- * @return string
- */
- public function getClusterName()
- {
- return $this->cluster_name;
- }
-
- /**
- * Generated from protobuf field string cluster_name = 5;
- * @param string $var
- * @return $this
- */
- public function setClusterName($var)
- {
- GPBUtil::checkString($var, True);
- $this->cluster_name = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 history_shard_count = 6;
- * @return int
- */
- public function getHistoryShardCount()
- {
- return $this->history_shard_count;
- }
-
- /**
- * Generated from protobuf field int32 history_shard_count = 6;
- * @param int $var
- * @return $this
- */
- public function setHistoryShardCount($var)
- {
- GPBUtil::checkInt32($var);
- $this->history_shard_count = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string persistence_store = 7;
- * @return string
- */
- public function getPersistenceStore()
- {
- return $this->persistence_store;
- }
-
- /**
- * Generated from protobuf field string persistence_store = 7;
- * @param string $var
- * @return $this
- */
- public function setPersistenceStore($var)
- {
- GPBUtil::checkString($var, True);
- $this->persistence_store = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string visibility_store = 8;
- * @return string
- */
- public function getVisibilityStore()
- {
- return $this->visibility_store;
- }
-
- /**
- * Generated from protobuf field string visibility_store = 8;
- * @param string $var
- * @return $this
- */
- public function setVisibilityStore($var)
- {
- GPBUtil::checkString($var, True);
- $this->visibility_store = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetSearchAttributesRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/GetSearchAttributesRequest.php
deleted file mode 100644
index 81e2b3dd7..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetSearchAttributesRequest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.GetSearchAttributesRequest
- */
-class GetSearchAttributesRequest extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetSearchAttributesResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/GetSearchAttributesResponse.php
deleted file mode 100644
index 1e5254d19..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetSearchAttributesResponse.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.workflowservice.v1.GetSearchAttributesResponse
- */
-class GetSearchAttributesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field map keys = 1;
- */
- private $keys;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array|\Google\Protobuf\Internal\MapField $keys
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field map keys = 1;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getKeys()
- {
- return $this->keys;
- }
-
- /**
- * Generated from protobuf field map keys = 1;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setKeys($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::ENUM, \Temporal\Api\Enums\V1\IndexedValueType::class);
- $this->keys = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoRequest.php
deleted file mode 100644
index 80bdac2ee..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoRequest.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.GetSystemInfoRequest
- */
-class GetSystemInfoRequest extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse.php
deleted file mode 100644
index 845386c8c..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse.php
+++ /dev/null
@@ -1,109 +0,0 @@
-temporal.api.workflowservice.v1.GetSystemInfoResponse
- */
-class GetSystemInfoResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Version of the server.
- *
- * Generated from protobuf field string server_version = 1;
- */
- protected $server_version = '';
- /**
- * All capabilities the system supports.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities capabilities = 2;
- */
- protected $capabilities = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $server_version
- * Version of the server.
- * @type \Temporal\Api\Workflowservice\V1\GetSystemInfoResponse\Capabilities $capabilities
- * All capabilities the system supports.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Version of the server.
- *
- * Generated from protobuf field string server_version = 1;
- * @return string
- */
- public function getServerVersion()
- {
- return $this->server_version;
- }
-
- /**
- * Version of the server.
- *
- * Generated from protobuf field string server_version = 1;
- * @param string $var
- * @return $this
- */
- public function setServerVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->server_version = $var;
-
- return $this;
- }
-
- /**
- * All capabilities the system supports.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities capabilities = 2;
- * @return \Temporal\Api\Workflowservice\V1\GetSystemInfoResponse\Capabilities|null
- */
- public function getCapabilities()
- {
- return $this->capabilities;
- }
-
- public function hasCapabilities()
- {
- return isset($this->capabilities);
- }
-
- public function clearCapabilities()
- {
- unset($this->capabilities);
- }
-
- /**
- * All capabilities the system supports.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities capabilities = 2;
- * @param \Temporal\Api\Workflowservice\V1\GetSystemInfoResponse\Capabilities $var
- * @return $this
- */
- public function setCapabilities($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflowservice\V1\GetSystemInfoResponse\Capabilities::class);
- $this->capabilities = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse/Capabilities.php b/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse/Capabilities.php
deleted file mode 100644
index f8ab2fb30..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse/Capabilities.php
+++ /dev/null
@@ -1,366 +0,0 @@
-temporal.api.workflowservice.v1.GetSystemInfoResponse.Capabilities
- */
-class Capabilities extends \Google\Protobuf\Internal\Message
-{
- /**
- * True if signal and query headers are supported.
- *
- * Generated from protobuf field bool signal_and_query_header = 1;
- */
- protected $signal_and_query_header = false;
- /**
- * True if internal errors are differentiated from other types of errors for purposes of
- * retrying non-internal errors.
- * When unset/false, clients retry all failures. When true, clients should only retry
- * non-internal errors.
- *
- * Generated from protobuf field bool internal_error_differentiation = 2;
- */
- protected $internal_error_differentiation = false;
- /**
- * True if RespondActivityTaskFailed API supports including heartbeat details
- *
- * Generated from protobuf field bool activity_failure_include_heartbeat = 3;
- */
- protected $activity_failure_include_heartbeat = false;
- /**
- * Supports scheduled workflow features.
- *
- * Generated from protobuf field bool supports_schedules = 4;
- */
- protected $supports_schedules = false;
- /**
- * True if server uses protos that include temporal.api.failure.v1.Failure.encoded_attributes
- *
- * Generated from protobuf field bool encoded_failure_attributes = 5;
- */
- protected $encoded_failure_attributes = false;
- /**
- * True if server supports dispatching Workflow and Activity tasks based on a worker's build_id
- * (see:
- * https://github.com/temporalio/proposals/blob/a123af3b559f43db16ea6dd31870bfb754c4dc5e/versioning/worker-versions.md)
- *
- * Generated from protobuf field bool build_id_based_versioning = 6;
- */
- protected $build_id_based_versioning = false;
- /**
- * True if server supports upserting workflow memo
- *
- * Generated from protobuf field bool upsert_memo = 7;
- */
- protected $upsert_memo = false;
- /**
- * True if server supports eager workflow task dispatching for the StartWorkflowExecution API
- *
- * Generated from protobuf field bool eager_workflow_start = 8;
- */
- protected $eager_workflow_start = false;
- /**
- * True if the server knows about the sdk metadata field on WFT completions and will record
- * it in history
- *
- * Generated from protobuf field bool sdk_metadata = 9;
- */
- protected $sdk_metadata = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $signal_and_query_header
- * True if signal and query headers are supported.
- * @type bool $internal_error_differentiation
- * True if internal errors are differentiated from other types of errors for purposes of
- * retrying non-internal errors.
- * When unset/false, clients retry all failures. When true, clients should only retry
- * non-internal errors.
- * @type bool $activity_failure_include_heartbeat
- * True if RespondActivityTaskFailed API supports including heartbeat details
- * @type bool $supports_schedules
- * Supports scheduled workflow features.
- * @type bool $encoded_failure_attributes
- * True if server uses protos that include temporal.api.failure.v1.Failure.encoded_attributes
- * @type bool $build_id_based_versioning
- * True if server supports dispatching Workflow and Activity tasks based on a worker's build_id
- * (see:
- * https://github.com/temporalio/proposals/blob/a123af3b559f43db16ea6dd31870bfb754c4dc5e/versioning/worker-versions.md)
- * @type bool $upsert_memo
- * True if server supports upserting workflow memo
- * @type bool $eager_workflow_start
- * True if server supports eager workflow task dispatching for the StartWorkflowExecution API
- * @type bool $sdk_metadata
- * True if the server knows about the sdk metadata field on WFT completions and will record
- * it in history
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * True if signal and query headers are supported.
- *
- * Generated from protobuf field bool signal_and_query_header = 1;
- * @return bool
- */
- public function getSignalAndQueryHeader()
- {
- return $this->signal_and_query_header;
- }
-
- /**
- * True if signal and query headers are supported.
- *
- * Generated from protobuf field bool signal_and_query_header = 1;
- * @param bool $var
- * @return $this
- */
- public function setSignalAndQueryHeader($var)
- {
- GPBUtil::checkBool($var);
- $this->signal_and_query_header = $var;
-
- return $this;
- }
-
- /**
- * True if internal errors are differentiated from other types of errors for purposes of
- * retrying non-internal errors.
- * When unset/false, clients retry all failures. When true, clients should only retry
- * non-internal errors.
- *
- * Generated from protobuf field bool internal_error_differentiation = 2;
- * @return bool
- */
- public function getInternalErrorDifferentiation()
- {
- return $this->internal_error_differentiation;
- }
-
- /**
- * True if internal errors are differentiated from other types of errors for purposes of
- * retrying non-internal errors.
- * When unset/false, clients retry all failures. When true, clients should only retry
- * non-internal errors.
- *
- * Generated from protobuf field bool internal_error_differentiation = 2;
- * @param bool $var
- * @return $this
- */
- public function setInternalErrorDifferentiation($var)
- {
- GPBUtil::checkBool($var);
- $this->internal_error_differentiation = $var;
-
- return $this;
- }
-
- /**
- * True if RespondActivityTaskFailed API supports including heartbeat details
- *
- * Generated from protobuf field bool activity_failure_include_heartbeat = 3;
- * @return bool
- */
- public function getActivityFailureIncludeHeartbeat()
- {
- return $this->activity_failure_include_heartbeat;
- }
-
- /**
- * True if RespondActivityTaskFailed API supports including heartbeat details
- *
- * Generated from protobuf field bool activity_failure_include_heartbeat = 3;
- * @param bool $var
- * @return $this
- */
- public function setActivityFailureIncludeHeartbeat($var)
- {
- GPBUtil::checkBool($var);
- $this->activity_failure_include_heartbeat = $var;
-
- return $this;
- }
-
- /**
- * Supports scheduled workflow features.
- *
- * Generated from protobuf field bool supports_schedules = 4;
- * @return bool
- */
- public function getSupportsSchedules()
- {
- return $this->supports_schedules;
- }
-
- /**
- * Supports scheduled workflow features.
- *
- * Generated from protobuf field bool supports_schedules = 4;
- * @param bool $var
- * @return $this
- */
- public function setSupportsSchedules($var)
- {
- GPBUtil::checkBool($var);
- $this->supports_schedules = $var;
-
- return $this;
- }
-
- /**
- * True if server uses protos that include temporal.api.failure.v1.Failure.encoded_attributes
- *
- * Generated from protobuf field bool encoded_failure_attributes = 5;
- * @return bool
- */
- public function getEncodedFailureAttributes()
- {
- return $this->encoded_failure_attributes;
- }
-
- /**
- * True if server uses protos that include temporal.api.failure.v1.Failure.encoded_attributes
- *
- * Generated from protobuf field bool encoded_failure_attributes = 5;
- * @param bool $var
- * @return $this
- */
- public function setEncodedFailureAttributes($var)
- {
- GPBUtil::checkBool($var);
- $this->encoded_failure_attributes = $var;
-
- return $this;
- }
-
- /**
- * True if server supports dispatching Workflow and Activity tasks based on a worker's build_id
- * (see:
- * https://github.com/temporalio/proposals/blob/a123af3b559f43db16ea6dd31870bfb754c4dc5e/versioning/worker-versions.md)
- *
- * Generated from protobuf field bool build_id_based_versioning = 6;
- * @return bool
- */
- public function getBuildIdBasedVersioning()
- {
- return $this->build_id_based_versioning;
- }
-
- /**
- * True if server supports dispatching Workflow and Activity tasks based on a worker's build_id
- * (see:
- * https://github.com/temporalio/proposals/blob/a123af3b559f43db16ea6dd31870bfb754c4dc5e/versioning/worker-versions.md)
- *
- * Generated from protobuf field bool build_id_based_versioning = 6;
- * @param bool $var
- * @return $this
- */
- public function setBuildIdBasedVersioning($var)
- {
- GPBUtil::checkBool($var);
- $this->build_id_based_versioning = $var;
-
- return $this;
- }
-
- /**
- * True if server supports upserting workflow memo
- *
- * Generated from protobuf field bool upsert_memo = 7;
- * @return bool
- */
- public function getUpsertMemo()
- {
- return $this->upsert_memo;
- }
-
- /**
- * True if server supports upserting workflow memo
- *
- * Generated from protobuf field bool upsert_memo = 7;
- * @param bool $var
- * @return $this
- */
- public function setUpsertMemo($var)
- {
- GPBUtil::checkBool($var);
- $this->upsert_memo = $var;
-
- return $this;
- }
-
- /**
- * True if server supports eager workflow task dispatching for the StartWorkflowExecution API
- *
- * Generated from protobuf field bool eager_workflow_start = 8;
- * @return bool
- */
- public function getEagerWorkflowStart()
- {
- return $this->eager_workflow_start;
- }
-
- /**
- * True if server supports eager workflow task dispatching for the StartWorkflowExecution API
- *
- * Generated from protobuf field bool eager_workflow_start = 8;
- * @param bool $var
- * @return $this
- */
- public function setEagerWorkflowStart($var)
- {
- GPBUtil::checkBool($var);
- $this->eager_workflow_start = $var;
-
- return $this;
- }
-
- /**
- * True if the server knows about the sdk metadata field on WFT completions and will record
- * it in history
- *
- * Generated from protobuf field bool sdk_metadata = 9;
- * @return bool
- */
- public function getSdkMetadata()
- {
- return $this->sdk_metadata;
- }
-
- /**
- * True if the server knows about the sdk metadata field on WFT completions and will record
- * it in history
- *
- * Generated from protobuf field bool sdk_metadata = 9;
- * @param bool $var
- * @return $this
- */
- public function setSdkMetadata($var)
- {
- GPBUtil::checkBool($var);
- $this->sdk_metadata = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(Capabilities::class, \Temporal\Api\Workflowservice\V1\GetSystemInfoResponse_Capabilities::class);
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse_Capabilities.php b/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse_Capabilities.php
deleted file mode 100644
index 992a8215d..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetSystemInfoResponse_Capabilities.php
+++ /dev/null
@@ -1,16 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityRequest
- */
-class GetWorkerBuildIdCompatibilityRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Must be set, the task queue to interrogate about worker id compatibility.
- *
- * Generated from protobuf field string task_queue = 2;
- */
- protected $task_queue = '';
- /**
- * Limits how many compatible sets will be returned. Specify 1 to only return the current
- * default major version set. 0 returns all sets.
- *
- * Generated from protobuf field int32 max_sets = 3;
- */
- protected $max_sets = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $task_queue
- * Must be set, the task queue to interrogate about worker id compatibility.
- * @type int $max_sets
- * Limits how many compatible sets will be returned. Specify 1 to only return the current
- * default major version set. 0 returns all sets.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Must be set, the task queue to interrogate about worker id compatibility.
- *
- * Generated from protobuf field string task_queue = 2;
- * @return string
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- /**
- * Must be set, the task queue to interrogate about worker id compatibility.
- *
- * Generated from protobuf field string task_queue = 2;
- * @param string $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkString($var, True);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Limits how many compatible sets will be returned. Specify 1 to only return the current
- * default major version set. 0 returns all sets.
- *
- * Generated from protobuf field int32 max_sets = 3;
- * @return int
- */
- public function getMaxSets()
- {
- return $this->max_sets;
- }
-
- /**
- * Limits how many compatible sets will be returned. Specify 1 to only return the current
- * default major version set. 0 returns all sets.
- *
- * Generated from protobuf field int32 max_sets = 3;
- * @param int $var
- * @return $this
- */
- public function setMaxSets($var)
- {
- GPBUtil::checkInt32($var);
- $this->max_sets = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdCompatibilityResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdCompatibilityResponse.php
deleted file mode 100644
index d3d0cdb28..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdCompatibilityResponse.php
+++ /dev/null
@@ -1,77 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkerBuildIdCompatibilityResponse
- */
-class GetWorkerBuildIdCompatibilityResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Major version sets, in order from oldest to newest. The last element of the list will always
- * be the current default major version. IE: New workflows will target the most recent version
- * in that version set.
- * There may be fewer sets returned than exist, if the request chose to limit this response.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.CompatibleVersionSet major_version_sets = 1;
- */
- private $major_version_sets;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Taskqueue\V1\CompatibleVersionSet>|\Google\Protobuf\Internal\RepeatedField $major_version_sets
- * Major version sets, in order from oldest to newest. The last element of the list will always
- * be the current default major version. IE: New workflows will target the most recent version
- * in that version set.
- * There may be fewer sets returned than exist, if the request chose to limit this response.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Major version sets, in order from oldest to newest. The last element of the list will always
- * be the current default major version. IE: New workflows will target the most recent version
- * in that version set.
- * There may be fewer sets returned than exist, if the request chose to limit this response.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.CompatibleVersionSet major_version_sets = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMajorVersionSets()
- {
- return $this->major_version_sets;
- }
-
- /**
- * Major version sets, in order from oldest to newest. The last element of the list will always
- * be the current default major version. IE: New workflows will target the most recent version
- * in that version set.
- * There may be fewer sets returned than exist, if the request chose to limit this response.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.CompatibleVersionSet major_version_sets = 1;
- * @param array<\Temporal\Api\Taskqueue\V1\CompatibleVersionSet>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMajorVersionSets($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Taskqueue\V1\CompatibleVersionSet::class);
- $this->major_version_sets = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdOrderingRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdOrderingRequest.php
deleted file mode 100644
index a5ed2888b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdOrderingRequest.php
+++ /dev/null
@@ -1,133 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkerBuildIdOrderingRequest
- */
-class GetWorkerBuildIdOrderingRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Must be set, the task queue to interrogate about worker id ordering
- *
- * Generated from protobuf field string task_queue = 2;
- */
- protected $task_queue = '';
- /**
- * Limits how deep the returned DAG will go. 1 will return only the
- * default build id. A default/0 value will return the entire graph.
- *
- * Generated from protobuf field int32 max_depth = 3;
- */
- protected $max_depth = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $task_queue
- * Must be set, the task queue to interrogate about worker id ordering
- * @type int $max_depth
- * Limits how deep the returned DAG will go. 1 will return only the
- * default build id. A default/0 value will return the entire graph.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Must be set, the task queue to interrogate about worker id ordering
- *
- * Generated from protobuf field string task_queue = 2;
- * @return string
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- /**
- * Must be set, the task queue to interrogate about worker id ordering
- *
- * Generated from protobuf field string task_queue = 2;
- * @param string $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkString($var, True);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Limits how deep the returned DAG will go. 1 will return only the
- * default build id. A default/0 value will return the entire graph.
- *
- * Generated from protobuf field int32 max_depth = 3;
- * @return int
- */
- public function getMaxDepth()
- {
- return $this->max_depth;
- }
-
- /**
- * Limits how deep the returned DAG will go. 1 will return only the
- * default build id. A default/0 value will return the entire graph.
- *
- * Generated from protobuf field int32 max_depth = 3;
- * @param int $var
- * @return $this
- */
- public function setMaxDepth($var)
- {
- GPBUtil::checkInt32($var);
- $this->max_depth = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdOrderingResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdOrderingResponse.php
deleted file mode 100644
index c2ab9165f..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerBuildIdOrderingResponse.php
+++ /dev/null
@@ -1,117 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkerBuildIdOrderingResponse
- */
-class GetWorkerBuildIdOrderingResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The currently established default version
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode current_default = 1;
- */
- protected $current_default = null;
- /**
- * Other current latest-compatible versions who are not the overall default. These are the
- * versions that will be used when generating new tasks by following the graph from the
- * version of the last task out to a leaf.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.VersionIdNode compatible_leaves = 2;
- */
- private $compatible_leaves;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Taskqueue\V1\VersionIdNode $current_default
- * The currently established default version
- * @type array<\Temporal\Api\Taskqueue\V1\VersionIdNode>|\Google\Protobuf\Internal\RepeatedField $compatible_leaves
- * Other current latest-compatible versions who are not the overall default. These are the
- * versions that will be used when generating new tasks by following the graph from the
- * version of the last task out to a leaf.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The currently established default version
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode current_default = 1;
- * @return \Temporal\Api\Taskqueue\V1\VersionIdNode|null
- */
- public function getCurrentDefault()
- {
- return $this->current_default;
- }
-
- public function hasCurrentDefault()
- {
- return isset($this->current_default);
- }
-
- public function clearCurrentDefault()
- {
- unset($this->current_default);
- }
-
- /**
- * The currently established default version
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionIdNode current_default = 1;
- * @param \Temporal\Api\Taskqueue\V1\VersionIdNode $var
- * @return $this
- */
- public function setCurrentDefault($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\VersionIdNode::class);
- $this->current_default = $var;
-
- return $this;
- }
-
- /**
- * Other current latest-compatible versions who are not the overall default. These are the
- * versions that will be used when generating new tasks by following the graph from the
- * version of the last task out to a leaf.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.VersionIdNode compatible_leaves = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCompatibleLeaves()
- {
- return $this->compatible_leaves;
- }
-
- /**
- * Other current latest-compatible versions who are not the overall default. These are the
- * versions that will be used when generating new tasks by following the graph from the
- * version of the last task out to a leaf.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.VersionIdNode compatible_leaves = 2;
- * @param array<\Temporal\Api\Taskqueue\V1\VersionIdNode>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCompatibleLeaves($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Taskqueue\V1\VersionIdNode::class);
- $this->compatible_leaves = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerTaskReachabilityRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerTaskReachabilityRequest.php
deleted file mode 100644
index cc397b1d0..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerTaskReachabilityRequest.php
+++ /dev/null
@@ -1,208 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkerTaskReachabilityRequest
- */
-class GetWorkerTaskReachabilityRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
- * The number of build ids that can be queried in a single API call is limited.
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
- *
- * Generated from protobuf field repeated string build_ids = 2;
- */
- private $build_ids;
- /**
- * Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
- * build ids in the namespace.
- * Must specify at least one task queue if querying for an unversioned worker.
- * The number of task queues that the server will fetch reachability information for is limited.
- * See the `GetWorkerTaskReachabilityResponse` documentation for more information.
- *
- * Generated from protobuf field repeated string task_queues = 3;
- */
- private $task_queues;
- /**
- * Type of reachability to query for.
- * `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
- * Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
- * Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
- * unspecified.
- * See the TaskReachability docstring for information about each enum variant.
- *
- * Generated from protobuf field .temporal.api.enums.v1.TaskReachability reachability = 4;
- */
- protected $reachability = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type array|\Google\Protobuf\Internal\RepeatedField $build_ids
- * Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
- * The number of build ids that can be queried in a single API call is limited.
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
- * @type array|\Google\Protobuf\Internal\RepeatedField $task_queues
- * Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
- * build ids in the namespace.
- * Must specify at least one task queue if querying for an unversioned worker.
- * The number of task queues that the server will fetch reachability information for is limited.
- * See the `GetWorkerTaskReachabilityResponse` documentation for more information.
- * @type int $reachability
- * Type of reachability to query for.
- * `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
- * Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
- * Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
- * unspecified.
- * See the TaskReachability docstring for information about each enum variant.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
- * The number of build ids that can be queried in a single API call is limited.
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
- *
- * Generated from protobuf field repeated string build_ids = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBuildIds()
- {
- return $this->build_ids;
- }
-
- /**
- * Build ids to retrieve reachability for. An empty string will be interpreted as an unversioned worker.
- * The number of build ids that can be queried in a single API call is limited.
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityQueryBuildIds` with the caveat that this call can strain the visibility store.
- *
- * Generated from protobuf field repeated string build_ids = 2;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBuildIds($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->build_ids = $arr;
-
- return $this;
- }
-
- /**
- * Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
- * build ids in the namespace.
- * Must specify at least one task queue if querying for an unversioned worker.
- * The number of task queues that the server will fetch reachability information for is limited.
- * See the `GetWorkerTaskReachabilityResponse` documentation for more information.
- *
- * Generated from protobuf field repeated string task_queues = 3;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTaskQueues()
- {
- return $this->task_queues;
- }
-
- /**
- * Task queues to retrieve reachability for. Leave this empty to query for all task queues associated with given
- * build ids in the namespace.
- * Must specify at least one task queue if querying for an unversioned worker.
- * The number of task queues that the server will fetch reachability information for is limited.
- * See the `GetWorkerTaskReachabilityResponse` documentation for more information.
- *
- * Generated from protobuf field repeated string task_queues = 3;
- * @param array|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTaskQueues($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
- $this->task_queues = $arr;
-
- return $this;
- }
-
- /**
- * Type of reachability to query for.
- * `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
- * Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
- * Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
- * unspecified.
- * See the TaskReachability docstring for information about each enum variant.
- *
- * Generated from protobuf field .temporal.api.enums.v1.TaskReachability reachability = 4;
- * @return int
- */
- public function getReachability()
- {
- return $this->reachability;
- }
-
- /**
- * Type of reachability to query for.
- * `TASK_REACHABILITY_NEW_WORKFLOWS` is always returned in the response.
- * Use `TASK_REACHABILITY_EXISTING_WORKFLOWS` if your application needs to respond to queries on closed workflows.
- * Otherwise, use `TASK_REACHABILITY_OPEN_WORKFLOWS`. Default is `TASK_REACHABILITY_EXISTING_WORKFLOWS` if left
- * unspecified.
- * See the TaskReachability docstring for information about each enum variant.
- *
- * Generated from protobuf field .temporal.api.enums.v1.TaskReachability reachability = 4;
- * @param int $var
- * @return $this
- */
- public function setReachability($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\TaskReachability::class);
- $this->reachability = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerTaskReachabilityResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerTaskReachabilityResponse.php
deleted file mode 100644
index cd9ccaec9..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkerTaskReachabilityResponse.php
+++ /dev/null
@@ -1,93 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkerTaskReachabilityResponse
- */
-class GetWorkerTaskReachabilityResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Task reachability, broken down by build id and then task queue.
- * When requesting a large number of task queues or all task queues associated with the given build ids in a
- * namespace, all task queues will be listed in the response but some of them may not contain reachability
- * information due to a server enforced limit. When reaching the limit, task queues that reachability information
- * could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue
- * another call to get the reachability for those task queues.
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.BuildIdReachability build_id_reachability = 1;
- */
- private $build_id_reachability;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Taskqueue\V1\BuildIdReachability>|\Google\Protobuf\Internal\RepeatedField $build_id_reachability
- * Task reachability, broken down by build id and then task queue.
- * When requesting a large number of task queues or all task queues associated with the given build ids in a
- * namespace, all task queues will be listed in the response but some of them may not contain reachability
- * information due to a server enforced limit. When reaching the limit, task queues that reachability information
- * could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue
- * another call to get the reachability for those task queues.
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Task reachability, broken down by build id and then task queue.
- * When requesting a large number of task queues or all task queues associated with the given build ids in a
- * namespace, all task queues will be listed in the response but some of them may not contain reachability
- * information due to a server enforced limit. When reaching the limit, task queues that reachability information
- * could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue
- * another call to get the reachability for those task queues.
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.BuildIdReachability build_id_reachability = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getBuildIdReachability()
- {
- return $this->build_id_reachability;
- }
-
- /**
- * Task reachability, broken down by build id and then task queue.
- * When requesting a large number of task queues or all task queues associated with the given build ids in a
- * namespace, all task queues will be listed in the response but some of them may not contain reachability
- * information due to a server enforced limit. When reaching the limit, task queues that reachability information
- * could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue
- * another call to get the reachability for those task queues.
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store.
- *
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.BuildIdReachability build_id_reachability = 1;
- * @param array<\Temporal\Api\Taskqueue\V1\BuildIdReachability>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setBuildIdReachability($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Taskqueue\V1\BuildIdReachability::class);
- $this->build_id_reachability = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryRequest.php
deleted file mode 100644
index 05cd098d7..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryRequest.php
+++ /dev/null
@@ -1,263 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryRequest
- */
-class GetWorkflowExecutionHistoryRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- */
- protected $execution = null;
- /**
- * Generated from protobuf field int32 maximum_page_size = 3;
- */
- protected $maximum_page_size = 0;
- /**
- * If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of
- * these, it should be passed here to fetch the next page.
- *
- * Generated from protobuf field bytes next_page_token = 4;
- */
- protected $next_page_token = '';
- /**
- * If set to true, the RPC call will not resolve until there is a new event which matches
- * the `history_event_filter_type`, or a timeout is hit.
- *
- * Generated from protobuf field bool wait_new_event = 5;
- */
- protected $wait_new_event = false;
- /**
- * Filter returned events such that they match the specified filter type.
- * Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT.
- *
- * Generated from protobuf field .temporal.api.enums.v1.HistoryEventFilterType history_event_filter_type = 6;
- */
- protected $history_event_filter_type = 0;
- /**
- * Generated from protobuf field bool skip_archival = 7;
- */
- protected $skip_archival = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $execution
- * @type int $maximum_page_size
- * @type string $next_page_token
- * If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of
- * these, it should be passed here to fetch the next page.
- * @type bool $wait_new_event
- * If set to true, the RPC call will not resolve until there is a new event which matches
- * the `history_event_filter_type`, or a timeout is hit.
- * @type int $history_event_filter_type
- * Filter returned events such that they match the specified filter type.
- * Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT.
- * @type bool $skip_archival
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getExecution()
- {
- return $this->execution;
- }
-
- public function hasExecution()
- {
- return isset($this->execution);
- }
-
- public function clearExecution()
- {
- unset($this->execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 maximum_page_size = 3;
- * @return int
- */
- public function getMaximumPageSize()
- {
- return $this->maximum_page_size;
- }
-
- /**
- * Generated from protobuf field int32 maximum_page_size = 3;
- * @param int $var
- * @return $this
- */
- public function setMaximumPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->maximum_page_size = $var;
-
- return $this;
- }
-
- /**
- * If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of
- * these, it should be passed here to fetch the next page.
- *
- * Generated from protobuf field bytes next_page_token = 4;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * If a `GetWorkflowExecutionHistoryResponse` or a `PollWorkflowTaskQueueResponse` had one of
- * these, it should be passed here to fetch the next page.
- *
- * Generated from protobuf field bytes next_page_token = 4;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * If set to true, the RPC call will not resolve until there is a new event which matches
- * the `history_event_filter_type`, or a timeout is hit.
- *
- * Generated from protobuf field bool wait_new_event = 5;
- * @return bool
- */
- public function getWaitNewEvent()
- {
- return $this->wait_new_event;
- }
-
- /**
- * If set to true, the RPC call will not resolve until there is a new event which matches
- * the `history_event_filter_type`, or a timeout is hit.
- *
- * Generated from protobuf field bool wait_new_event = 5;
- * @param bool $var
- * @return $this
- */
- public function setWaitNewEvent($var)
- {
- GPBUtil::checkBool($var);
- $this->wait_new_event = $var;
-
- return $this;
- }
-
- /**
- * Filter returned events such that they match the specified filter type.
- * Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT.
- *
- * Generated from protobuf field .temporal.api.enums.v1.HistoryEventFilterType history_event_filter_type = 6;
- * @return int
- */
- public function getHistoryEventFilterType()
- {
- return $this->history_event_filter_type;
- }
-
- /**
- * Filter returned events such that they match the specified filter type.
- * Default: HISTORY_EVENT_FILTER_TYPE_ALL_EVENT.
- *
- * Generated from protobuf field .temporal.api.enums.v1.HistoryEventFilterType history_event_filter_type = 6;
- * @param int $var
- * @return $this
- */
- public function setHistoryEventFilterType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\HistoryEventFilterType::class);
- $this->history_event_filter_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bool skip_archival = 7;
- * @return bool
- */
- public function getSkipArchival()
- {
- return $this->skip_archival;
- }
-
- /**
- * Generated from protobuf field bool skip_archival = 7;
- * @param bool $var
- * @return $this
- */
- public function setSkipArchival($var)
- {
- GPBUtil::checkBool($var);
- $this->skip_archival = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryResponse.php
deleted file mode 100644
index 948df5b79..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryResponse.php
+++ /dev/null
@@ -1,167 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryResponse
- */
-class GetWorkflowExecutionHistoryResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.history.v1.History history = 1;
- */
- protected $history = null;
- /**
- * Raw history is an alternate representation of history that may be returned if configured on
- * the frontend. This is not supported by all SDKs. Either this or `history` will be set.
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.DataBlob raw_history = 2;
- */
- private $raw_history;
- /**
- * Will be set if there are more history events than were included in this response
- *
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
- /**
- * Generated from protobuf field bool archived = 4;
- */
- protected $archived = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\History\V1\History $history
- * @type array<\Temporal\Api\Common\V1\DataBlob>|\Google\Protobuf\Internal\RepeatedField $raw_history
- * Raw history is an alternate representation of history that may be returned if configured on
- * the frontend. This is not supported by all SDKs. Either this or `history` will be set.
- * @type string $next_page_token
- * Will be set if there are more history events than were included in this response
- * @type bool $archived
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.History history = 1;
- * @return \Temporal\Api\History\V1\History|null
- */
- public function getHistory()
- {
- return $this->history;
- }
-
- public function hasHistory()
- {
- return isset($this->history);
- }
-
- public function clearHistory()
- {
- unset($this->history);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.History history = 1;
- * @param \Temporal\Api\History\V1\History $var
- * @return $this
- */
- public function setHistory($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\History::class);
- $this->history = $var;
-
- return $this;
- }
-
- /**
- * Raw history is an alternate representation of history that may be returned if configured on
- * the frontend. This is not supported by all SDKs. Either this or `history` will be set.
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.DataBlob raw_history = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getRawHistory()
- {
- return $this->raw_history;
- }
-
- /**
- * Raw history is an alternate representation of history that may be returned if configured on
- * the frontend. This is not supported by all SDKs. Either this or `history` will be set.
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.DataBlob raw_history = 2;
- * @param array<\Temporal\Api\Common\V1\DataBlob>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setRawHistory($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\DataBlob::class);
- $this->raw_history = $arr;
-
- return $this;
- }
-
- /**
- * Will be set if there are more history events than were included in this response
- *
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Will be set if there are more history events than were included in this response
- *
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bool archived = 4;
- * @return bool
- */
- public function getArchived()
- {
- return $this->archived;
- }
-
- /**
- * Generated from protobuf field bool archived = 4;
- * @param bool $var
- * @return $this
- */
- public function setArchived($var)
- {
- GPBUtil::checkBool($var);
- $this->archived = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryReverseRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryReverseRequest.php
deleted file mode 100644
index c1a1dd5aa..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryReverseRequest.php
+++ /dev/null
@@ -1,149 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseRequest
- */
-class GetWorkflowExecutionHistoryReverseRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- */
- protected $execution = null;
- /**
- * Generated from protobuf field int32 maximum_page_size = 3;
- */
- protected $maximum_page_size = 0;
- /**
- * Generated from protobuf field bytes next_page_token = 4;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $execution
- * @type int $maximum_page_size
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getExecution()
- {
- return $this->execution;
- }
-
- public function hasExecution()
- {
- return isset($this->execution);
- }
-
- public function clearExecution()
- {
- unset($this->execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 maximum_page_size = 3;
- * @return int
- */
- public function getMaximumPageSize()
- {
- return $this->maximum_page_size;
- }
-
- /**
- * Generated from protobuf field int32 maximum_page_size = 3;
- * @param int $var
- * @return $this
- */
- public function setMaximumPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->maximum_page_size = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 4;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 4;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryReverseResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryReverseResponse.php
deleted file mode 100644
index 9af4f8c89..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/GetWorkflowExecutionHistoryReverseResponse.php
+++ /dev/null
@@ -1,102 +0,0 @@
-temporal.api.workflowservice.v1.GetWorkflowExecutionHistoryReverseResponse
- */
-class GetWorkflowExecutionHistoryReverseResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.history.v1.History history = 1;
- */
- protected $history = null;
- /**
- * Will be set if there are more history events than were included in this response
- *
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\History\V1\History $history
- * @type string $next_page_token
- * Will be set if there are more history events than were included in this response
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.History history = 1;
- * @return \Temporal\Api\History\V1\History|null
- */
- public function getHistory()
- {
- return $this->history;
- }
-
- public function hasHistory()
- {
- return isset($this->history);
- }
-
- public function clearHistory()
- {
- unset($this->history);
- }
-
- /**
- * Generated from protobuf field .temporal.api.history.v1.History history = 1;
- * @param \Temporal\Api\History\V1\History $var
- * @return $this
- */
- public function setHistory($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\History::class);
- $this->history = $var;
-
- return $this;
- }
-
- /**
- * Will be set if there are more history events than were included in this response
- *
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Will be set if there are more history events than were included in this response
- *
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListArchivedWorkflowExecutionsRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListArchivedWorkflowExecutionsRequest.php
deleted file mode 100644
index 13c6dbee8..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListArchivedWorkflowExecutionsRequest.php
+++ /dev/null
@@ -1,139 +0,0 @@
-temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsRequest
- */
-class ListArchivedWorkflowExecutionsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
- /**
- * Generated from protobuf field string query = 4;
- */
- protected $query = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type int $page_size
- * @type string $next_page_token
- * @type string $query
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string query = 4;
- * @return string
- */
- public function getQuery()
- {
- return $this->query;
- }
-
- /**
- * Generated from protobuf field string query = 4;
- * @param string $var
- * @return $this
- */
- public function setQuery($var)
- {
- GPBUtil::checkString($var, True);
- $this->query = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListArchivedWorkflowExecutionsResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListArchivedWorkflowExecutionsResponse.php
deleted file mode 100644
index 9d85c0604..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListArchivedWorkflowExecutionsResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.ListArchivedWorkflowExecutionsResponse
- */
-class ListArchivedWorkflowExecutionsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- */
- private $executions;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $executions
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExecutions()
- {
- return $this->executions;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @param array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExecutions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\WorkflowExecutionInfo::class);
- $this->executions = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListBatchOperationsRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListBatchOperationsRequest.php
deleted file mode 100644
index 134c409db..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListBatchOperationsRequest.php
+++ /dev/null
@@ -1,133 +0,0 @@
-temporal.api.workflowservice.v1.ListBatchOperationsRequest
- */
-class ListBatchOperationsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * List page size
- *
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * Next page token
- *
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace that contains the batch operation
- * @type int $page_size
- * List page size
- * @type string $next_page_token
- * Next page token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * List page size
- *
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * List page size
- *
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Next page token
- *
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Next page token
- *
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListBatchOperationsResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListBatchOperationsResponse.php
deleted file mode 100644
index 9bad93606..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListBatchOperationsResponse.php
+++ /dev/null
@@ -1,92 +0,0 @@
-temporal.api.workflowservice.v1.ListBatchOperationsResponse
- */
-class ListBatchOperationsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * BatchOperationInfo contains the basic info about batch operation
- *
- * Generated from protobuf field repeated .temporal.api.batch.v1.BatchOperationInfo operation_info = 1;
- */
- private $operation_info;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Batch\V1\BatchOperationInfo>|\Google\Protobuf\Internal\RepeatedField $operation_info
- * BatchOperationInfo contains the basic info about batch operation
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * BatchOperationInfo contains the basic info about batch operation
- *
- * Generated from protobuf field repeated .temporal.api.batch.v1.BatchOperationInfo operation_info = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getOperationInfo()
- {
- return $this->operation_info;
- }
-
- /**
- * BatchOperationInfo contains the basic info about batch operation
- *
- * Generated from protobuf field repeated .temporal.api.batch.v1.BatchOperationInfo operation_info = 1;
- * @param array<\Temporal\Api\Batch\V1\BatchOperationInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setOperationInfo($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Batch\V1\BatchOperationInfo::class);
- $this->operation_info = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListClosedWorkflowExecutionsRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListClosedWorkflowExecutionsRequest.php
deleted file mode 100644
index ffe6aef0b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListClosedWorkflowExecutionsRequest.php
+++ /dev/null
@@ -1,242 +0,0 @@
-temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsRequest
- */
-class ListClosedWorkflowExecutionsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field int32 maximum_page_size = 2;
- */
- protected $maximum_page_size = 0;
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
- /**
- * Generated from protobuf field .temporal.api.filter.v1.StartTimeFilter start_time_filter = 4;
- */
- protected $start_time_filter = null;
- protected $filters;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type int $maximum_page_size
- * @type string $next_page_token
- * @type \Temporal\Api\Filter\V1\StartTimeFilter $start_time_filter
- * @type \Temporal\Api\Filter\V1\WorkflowExecutionFilter $execution_filter
- * @type \Temporal\Api\Filter\V1\WorkflowTypeFilter $type_filter
- * @type \Temporal\Api\Filter\V1\StatusFilter $status_filter
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 maximum_page_size = 2;
- * @return int
- */
- public function getMaximumPageSize()
- {
- return $this->maximum_page_size;
- }
-
- /**
- * Generated from protobuf field int32 maximum_page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setMaximumPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->maximum_page_size = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.StartTimeFilter start_time_filter = 4;
- * @return \Temporal\Api\Filter\V1\StartTimeFilter|null
- */
- public function getStartTimeFilter()
- {
- return $this->start_time_filter;
- }
-
- public function hasStartTimeFilter()
- {
- return isset($this->start_time_filter);
- }
-
- public function clearStartTimeFilter()
- {
- unset($this->start_time_filter);
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.StartTimeFilter start_time_filter = 4;
- * @param \Temporal\Api\Filter\V1\StartTimeFilter $var
- * @return $this
- */
- public function setStartTimeFilter($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Filter\V1\StartTimeFilter::class);
- $this->start_time_filter = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.WorkflowExecutionFilter execution_filter = 5;
- * @return \Temporal\Api\Filter\V1\WorkflowExecutionFilter|null
- */
- public function getExecutionFilter()
- {
- return $this->readOneof(5);
- }
-
- public function hasExecutionFilter()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.WorkflowExecutionFilter execution_filter = 5;
- * @param \Temporal\Api\Filter\V1\WorkflowExecutionFilter $var
- * @return $this
- */
- public function setExecutionFilter($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Filter\V1\WorkflowExecutionFilter::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.WorkflowTypeFilter type_filter = 6;
- * @return \Temporal\Api\Filter\V1\WorkflowTypeFilter|null
- */
- public function getTypeFilter()
- {
- return $this->readOneof(6);
- }
-
- public function hasTypeFilter()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.WorkflowTypeFilter type_filter = 6;
- * @param \Temporal\Api\Filter\V1\WorkflowTypeFilter $var
- * @return $this
- */
- public function setTypeFilter($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Filter\V1\WorkflowTypeFilter::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.StatusFilter status_filter = 7;
- * @return \Temporal\Api\Filter\V1\StatusFilter|null
- */
- public function getStatusFilter()
- {
- return $this->readOneof(7);
- }
-
- public function hasStatusFilter()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.StatusFilter status_filter = 7;
- * @param \Temporal\Api\Filter\V1\StatusFilter $var
- * @return $this
- */
- public function setStatusFilter($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Filter\V1\StatusFilter::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getFilters()
- {
- return $this->whichOneof("filters");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListClosedWorkflowExecutionsResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListClosedWorkflowExecutionsResponse.php
deleted file mode 100644
index d0b9d571b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListClosedWorkflowExecutionsResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.ListClosedWorkflowExecutionsResponse
- */
-class ListClosedWorkflowExecutionsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- */
- private $executions;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $executions
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExecutions()
- {
- return $this->executions;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @param array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExecutions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\WorkflowExecutionInfo::class);
- $this->executions = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListNamespacesRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListNamespacesRequest.php
deleted file mode 100644
index 79622ea5b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListNamespacesRequest.php
+++ /dev/null
@@ -1,122 +0,0 @@
-temporal.api.workflowservice.v1.ListNamespacesRequest
- */
-class ListNamespacesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field int32 page_size = 1;
- */
- protected $page_size = 0;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceFilter namespace_filter = 3;
- */
- protected $namespace_filter = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int $page_size
- * @type string $next_page_token
- * @type \Temporal\Api\PBNamespace\V1\NamespaceFilter $namespace_filter
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field int32 page_size = 1;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Generated from protobuf field int32 page_size = 1;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceFilter namespace_filter = 3;
- * @return \Temporal\Api\PBNamespace\V1\NamespaceFilter|null
- */
- public function getNamespaceFilter()
- {
- return $this->namespace_filter;
- }
-
- public function hasNamespaceFilter()
- {
- return isset($this->namespace_filter);
- }
-
- public function clearNamespaceFilter()
- {
- unset($this->namespace_filter);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceFilter namespace_filter = 3;
- * @param \Temporal\Api\PBNamespace\V1\NamespaceFilter $var
- * @return $this
- */
- public function setNamespaceFilter($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\PBNamespace\V1\NamespaceFilter::class);
- $this->namespace_filter = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListNamespacesResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListNamespacesResponse.php
deleted file mode 100644
index 816f76bf0..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListNamespacesResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.ListNamespacesResponse
- */
-class ListNamespacesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.workflowservice.v1.DescribeNamespaceResponse namespaces = 1;
- */
- private $namespaces;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Workflowservice\V1\DescribeNamespaceResponse>|\Google\Protobuf\Internal\RepeatedField $namespaces
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflowservice.v1.DescribeNamespaceResponse namespaces = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getNamespaces()
- {
- return $this->namespaces;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflowservice.v1.DescribeNamespaceResponse namespaces = 1;
- * @param array<\Temporal\Api\Workflowservice\V1\DescribeNamespaceResponse>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setNamespaces($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflowservice\V1\DescribeNamespaceResponse::class);
- $this->namespaces = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListOpenWorkflowExecutionsRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListOpenWorkflowExecutionsRequest.php
deleted file mode 100644
index 0984f594d..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListOpenWorkflowExecutionsRequest.php
+++ /dev/null
@@ -1,214 +0,0 @@
-temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsRequest
- */
-class ListOpenWorkflowExecutionsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field int32 maximum_page_size = 2;
- */
- protected $maximum_page_size = 0;
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
- /**
- * Generated from protobuf field .temporal.api.filter.v1.StartTimeFilter start_time_filter = 4;
- */
- protected $start_time_filter = null;
- protected $filters;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type int $maximum_page_size
- * @type string $next_page_token
- * @type \Temporal\Api\Filter\V1\StartTimeFilter $start_time_filter
- * @type \Temporal\Api\Filter\V1\WorkflowExecutionFilter $execution_filter
- * @type \Temporal\Api\Filter\V1\WorkflowTypeFilter $type_filter
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 maximum_page_size = 2;
- * @return int
- */
- public function getMaximumPageSize()
- {
- return $this->maximum_page_size;
- }
-
- /**
- * Generated from protobuf field int32 maximum_page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setMaximumPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->maximum_page_size = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.StartTimeFilter start_time_filter = 4;
- * @return \Temporal\Api\Filter\V1\StartTimeFilter|null
- */
- public function getStartTimeFilter()
- {
- return $this->start_time_filter;
- }
-
- public function hasStartTimeFilter()
- {
- return isset($this->start_time_filter);
- }
-
- public function clearStartTimeFilter()
- {
- unset($this->start_time_filter);
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.StartTimeFilter start_time_filter = 4;
- * @param \Temporal\Api\Filter\V1\StartTimeFilter $var
- * @return $this
- */
- public function setStartTimeFilter($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Filter\V1\StartTimeFilter::class);
- $this->start_time_filter = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.WorkflowExecutionFilter execution_filter = 5;
- * @return \Temporal\Api\Filter\V1\WorkflowExecutionFilter|null
- */
- public function getExecutionFilter()
- {
- return $this->readOneof(5);
- }
-
- public function hasExecutionFilter()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.WorkflowExecutionFilter execution_filter = 5;
- * @param \Temporal\Api\Filter\V1\WorkflowExecutionFilter $var
- * @return $this
- */
- public function setExecutionFilter($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Filter\V1\WorkflowExecutionFilter::class);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.WorkflowTypeFilter type_filter = 6;
- * @return \Temporal\Api\Filter\V1\WorkflowTypeFilter|null
- */
- public function getTypeFilter()
- {
- return $this->readOneof(6);
- }
-
- public function hasTypeFilter()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Generated from protobuf field .temporal.api.filter.v1.WorkflowTypeFilter type_filter = 6;
- * @param \Temporal\Api\Filter\V1\WorkflowTypeFilter $var
- * @return $this
- */
- public function setTypeFilter($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Filter\V1\WorkflowTypeFilter::class);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getFilters()
- {
- return $this->whichOneof("filters");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListOpenWorkflowExecutionsResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListOpenWorkflowExecutionsResponse.php
deleted file mode 100644
index 30d13e16d..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListOpenWorkflowExecutionsResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.ListOpenWorkflowExecutionsResponse
- */
-class ListOpenWorkflowExecutionsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- */
- private $executions;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $executions
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExecutions()
- {
- return $this->executions;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @param array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExecutions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\WorkflowExecutionInfo::class);
- $this->executions = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListScheduleMatchingTimesRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListScheduleMatchingTimesRequest.php
deleted file mode 100644
index 5b8f4baa2..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListScheduleMatchingTimesRequest.php
+++ /dev/null
@@ -1,180 +0,0 @@
-temporal.api.workflowservice.v1.ListScheduleMatchingTimesRequest
- */
-class ListScheduleMatchingTimesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace of the schedule to query.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * The id of the schedule to query.
- *
- * Generated from protobuf field string schedule_id = 2;
- */
- protected $schedule_id = '';
- /**
- * Time range to query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- */
- protected $start_time = null;
- /**
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.gogoproto.stdtime) = true];
- */
- protected $end_time = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace of the schedule to query.
- * @type string $schedule_id
- * The id of the schedule to query.
- * @type \Google\Protobuf\Timestamp $start_time
- * Time range to query.
- * @type \Google\Protobuf\Timestamp $end_time
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace of the schedule to query.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace of the schedule to query.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * The id of the schedule to query.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @return string
- */
- public function getScheduleId()
- {
- return $this->schedule_id;
- }
-
- /**
- * The id of the schedule to query.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @param string $var
- * @return $this
- */
- public function setScheduleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->schedule_id = $var;
-
- return $this;
- }
-
- /**
- * Time range to query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- public function hasStartTime()
- {
- return isset($this->start_time);
- }
-
- public function clearStartTime()
- {
- unset($this->start_time);
- }
-
- /**
- * Time range to query.
- *
- * Generated from protobuf field .google.protobuf.Timestamp start_time = 3 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->start_time = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getEndTime()
- {
- return $this->end_time;
- }
-
- public function hasEndTime()
- {
- return isset($this->end_time);
- }
-
- public function clearEndTime()
- {
- unset($this->end_time);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Timestamp end_time = 4 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setEndTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->end_time = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListScheduleMatchingTimesResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListScheduleMatchingTimesResponse.php
deleted file mode 100644
index 91af2e10b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListScheduleMatchingTimesResponse.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.workflowservice.v1.ListScheduleMatchingTimesResponse
- */
-class ListScheduleMatchingTimesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .google.protobuf.Timestamp start_time = 1 [(.gogoproto.stdtime) = true];
- */
- private $start_time;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $start_time
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .google.protobuf.Timestamp start_time = 1 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getStartTime()
- {
- return $this->start_time;
- }
-
- /**
- * Generated from protobuf field repeated .google.protobuf.Timestamp start_time = 1 [(.gogoproto.stdtime) = true];
- * @param array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setStartTime($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Timestamp::class);
- $this->start_time = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListSchedulesRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListSchedulesRequest.php
deleted file mode 100644
index bb998722a..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListSchedulesRequest.php
+++ /dev/null
@@ -1,133 +0,0 @@
-temporal.api.workflowservice.v1.ListSchedulesRequest
- */
-class ListSchedulesRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace to list schedules in.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * How many to return at once.
- *
- * Generated from protobuf field int32 maximum_page_size = 2;
- */
- protected $maximum_page_size = 0;
- /**
- * Token to get the next page of results.
- *
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace to list schedules in.
- * @type int $maximum_page_size
- * How many to return at once.
- * @type string $next_page_token
- * Token to get the next page of results.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace to list schedules in.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace to list schedules in.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * How many to return at once.
- *
- * Generated from protobuf field int32 maximum_page_size = 2;
- * @return int
- */
- public function getMaximumPageSize()
- {
- return $this->maximum_page_size;
- }
-
- /**
- * How many to return at once.
- *
- * Generated from protobuf field int32 maximum_page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setMaximumPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->maximum_page_size = $var;
-
- return $this;
- }
-
- /**
- * Token to get the next page of results.
- *
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Token to get the next page of results.
- *
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListSchedulesResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListSchedulesResponse.php
deleted file mode 100644
index 03671eb64..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListSchedulesResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.ListSchedulesResponse
- */
-class ListSchedulesResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleListEntry schedules = 1;
- */
- private $schedules;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Schedule\V1\ScheduleListEntry>|\Google\Protobuf\Internal\RepeatedField $schedules
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleListEntry schedules = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getSchedules()
- {
- return $this->schedules;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.schedule.v1.ScheduleListEntry schedules = 1;
- * @param array<\Temporal\Api\Schedule\V1\ScheduleListEntry>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setSchedules($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Schedule\V1\ScheduleListEntry::class);
- $this->schedules = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListTaskQueuePartitionsRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListTaskQueuePartitionsRequest.php
deleted file mode 100644
index 49f837877..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListTaskQueuePartitionsRequest.php
+++ /dev/null
@@ -1,95 +0,0 @@
-temporal.api.workflowservice.v1.ListTaskQueuePartitionsRequest
- */
-class ListTaskQueuePartitionsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- */
- protected $task_queue = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListTaskQueuePartitionsResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListTaskQueuePartitionsResponse.php
deleted file mode 100644
index fb085227f..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListTaskQueuePartitionsResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.ListTaskQueuePartitionsResponse
- */
-class ListTaskQueuePartitionsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueuePartitionMetadata activity_task_queue_partitions = 1;
- */
- private $activity_task_queue_partitions;
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueuePartitionMetadata workflow_task_queue_partitions = 2;
- */
- private $workflow_task_queue_partitions;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Taskqueue\V1\TaskQueuePartitionMetadata>|\Google\Protobuf\Internal\RepeatedField $activity_task_queue_partitions
- * @type array<\Temporal\Api\Taskqueue\V1\TaskQueuePartitionMetadata>|\Google\Protobuf\Internal\RepeatedField $workflow_task_queue_partitions
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueuePartitionMetadata activity_task_queue_partitions = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getActivityTaskQueuePartitions()
- {
- return $this->activity_task_queue_partitions;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueuePartitionMetadata activity_task_queue_partitions = 1;
- * @param array<\Temporal\Api\Taskqueue\V1\TaskQueuePartitionMetadata>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setActivityTaskQueuePartitions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Taskqueue\V1\TaskQueuePartitionMetadata::class);
- $this->activity_task_queue_partitions = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueuePartitionMetadata workflow_task_queue_partitions = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getWorkflowTaskQueuePartitions()
- {
- return $this->workflow_task_queue_partitions;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.taskqueue.v1.TaskQueuePartitionMetadata workflow_task_queue_partitions = 2;
- * @param array<\Temporal\Api\Taskqueue\V1\TaskQueuePartitionMetadata>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setWorkflowTaskQueuePartitions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Taskqueue\V1\TaskQueuePartitionMetadata::class);
- $this->workflow_task_queue_partitions = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListWorkflowExecutionsRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ListWorkflowExecutionsRequest.php
deleted file mode 100644
index 6ede20dd7..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListWorkflowExecutionsRequest.php
+++ /dev/null
@@ -1,139 +0,0 @@
-temporal.api.workflowservice.v1.ListWorkflowExecutionsRequest
- */
-class ListWorkflowExecutionsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
- /**
- * Generated from protobuf field string query = 4;
- */
- protected $query = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type int $page_size
- * @type string $next_page_token
- * @type string $query
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string query = 4;
- * @return string
- */
- public function getQuery()
- {
- return $this->query;
- }
-
- /**
- * Generated from protobuf field string query = 4;
- * @param string $var
- * @return $this
- */
- public function setQuery($var)
- {
- GPBUtil::checkString($var, True);
- $this->query = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ListWorkflowExecutionsResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ListWorkflowExecutionsResponse.php
deleted file mode 100644
index c3ea4a297..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ListWorkflowExecutionsResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.ListWorkflowExecutionsResponse
- */
-class ListWorkflowExecutionsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- */
- private $executions;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $executions
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExecutions()
- {
- return $this->executions;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @param array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExecutions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\WorkflowExecutionInfo::class);
- $this->executions = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/PatchScheduleRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/PatchScheduleRequest.php
deleted file mode 100644
index 2cf273cd4..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/PatchScheduleRequest.php
+++ /dev/null
@@ -1,204 +0,0 @@
-temporal.api.workflowservice.v1.PatchScheduleRequest
- */
-class PatchScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace of the schedule to patch.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * The id of the schedule to patch.
- *
- * Generated from protobuf field string schedule_id = 2;
- */
- protected $schedule_id = '';
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePatch patch = 3;
- */
- protected $patch = null;
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 4;
- */
- protected $identity = '';
- /**
- * A unique identifier for this update request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 5;
- */
- protected $request_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace of the schedule to patch.
- * @type string $schedule_id
- * The id of the schedule to patch.
- * @type \Temporal\Api\Schedule\V1\SchedulePatch $patch
- * @type string $identity
- * The identity of the client who initiated this request.
- * @type string $request_id
- * A unique identifier for this update request for idempotence. Typically UUIDv4.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace of the schedule to patch.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace of the schedule to patch.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * The id of the schedule to patch.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @return string
- */
- public function getScheduleId()
- {
- return $this->schedule_id;
- }
-
- /**
- * The id of the schedule to patch.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @param string $var
- * @return $this
- */
- public function setScheduleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->schedule_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePatch patch = 3;
- * @return \Temporal\Api\Schedule\V1\SchedulePatch|null
- */
- public function getPatch()
- {
- return $this->patch;
- }
-
- public function hasPatch()
- {
- return isset($this->patch);
- }
-
- public function clearPatch()
- {
- unset($this->patch);
- }
-
- /**
- * Generated from protobuf field .temporal.api.schedule.v1.SchedulePatch patch = 3;
- * @param \Temporal\Api\Schedule\V1\SchedulePatch $var
- * @return $this
- */
- public function setPatch($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\SchedulePatch::class);
- $this->patch = $var;
-
- return $this;
- }
-
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 4;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 4;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * A unique identifier for this update request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 5;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * A unique identifier for this update request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 5;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/PatchScheduleResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/PatchScheduleResponse.php
deleted file mode 100644
index 51ba1ed26..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/PatchScheduleResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.PatchScheduleResponse
- */
-class PatchScheduleResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/PollActivityTaskQueueRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/PollActivityTaskQueueRequest.php
deleted file mode 100644
index c1101dd08..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/PollActivityTaskQueueRequest.php
+++ /dev/null
@@ -1,214 +0,0 @@
-temporal.api.workflowservice.v1.PollActivityTaskQueueRequest
- */
-class PollActivityTaskQueueRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- */
- protected $task_queue = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueueMetadata task_queue_metadata = 4;
- */
- protected $task_queue_metadata = null;
- /**
- * Information about this worker's build identifier and if it is choosing to use the versioning
- * feature. See the `WorkerVersionCapabilities` docstring for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 5;
- */
- protected $worker_version_capabilities = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type string $identity
- * The identity of the worker/client
- * @type \Temporal\Api\Taskqueue\V1\TaskQueueMetadata $task_queue_metadata
- * @type \Temporal\Api\Common\V1\WorkerVersionCapabilities $worker_version_capabilities
- * Information about this worker's build identifier and if it is choosing to use the versioning
- * feature. See the `WorkerVersionCapabilities` docstring for more.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueueMetadata task_queue_metadata = 4;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueueMetadata|null
- */
- public function getTaskQueueMetadata()
- {
- return $this->task_queue_metadata;
- }
-
- public function hasTaskQueueMetadata()
- {
- return isset($this->task_queue_metadata);
- }
-
- public function clearTaskQueueMetadata()
- {
- unset($this->task_queue_metadata);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueueMetadata task_queue_metadata = 4;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueueMetadata $var
- * @return $this
- */
- public function setTaskQueueMetadata($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueueMetadata::class);
- $this->task_queue_metadata = $var;
-
- return $this;
- }
-
- /**
- * Information about this worker's build identifier and if it is choosing to use the versioning
- * feature. See the `WorkerVersionCapabilities` docstring for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 5;
- * @return \Temporal\Api\Common\V1\WorkerVersionCapabilities|null
- */
- public function getWorkerVersionCapabilities()
- {
- return $this->worker_version_capabilities;
- }
-
- public function hasWorkerVersionCapabilities()
- {
- return isset($this->worker_version_capabilities);
- }
-
- public function clearWorkerVersionCapabilities()
- {
- unset($this->worker_version_capabilities);
- }
-
- /**
- * Information about this worker's build identifier and if it is choosing to use the versioning
- * feature. See the `WorkerVersionCapabilities` docstring for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 5;
- * @param \Temporal\Api\Common\V1\WorkerVersionCapabilities $var
- * @return $this
- */
- public function setWorkerVersionCapabilities($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionCapabilities::class);
- $this->worker_version_capabilities = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/PollActivityTaskQueueResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/PollActivityTaskQueueResponse.php
deleted file mode 100644
index 5b6933921..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/PollActivityTaskQueueResponse.php
+++ /dev/null
@@ -1,772 +0,0 @@
-temporal.api.workflowservice.v1.PollActivityTaskQueueResponse
- */
-class PollActivityTaskQueueResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * A unique identifier for this task
- *
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * The namespace the workflow which requested this activity lives in
- *
- * Generated from protobuf field string workflow_namespace = 2;
- */
- protected $workflow_namespace = '';
- /**
- * Type of the requesting workflow
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * Execution info of the requesting workflow
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 5;
- */
- protected $activity_type = null;
- /**
- * The autogenerated or user specified identifier of this activity. Can be used to complete the
- * activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage
- * has resolved, but unique IDs for every activity invocation is a good idea.
- *
- * Generated from protobuf field string activity_id = 6;
- */
- protected $activity_id = '';
- /**
- * Headers specified by the scheduling workflow. Commonly used to propagate contextual info
- * from the workflow to its activities. For example, tracing contexts.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 7;
- */
- protected $header = null;
- /**
- * Arguments to the activity invocation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 8;
- */
- protected $input = null;
- /**
- * Details of the last heartbeat that was recorded for this activity as of the time this task
- * was delivered.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads heartbeat_details = 9;
- */
- protected $heartbeat_details = null;
- /**
- * When was this task first scheduled
- *
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 10 [(.gogoproto.stdtime) = true];
- */
- protected $scheduled_time = null;
- /**
- * When was this task attempt scheduled
- *
- * Generated from protobuf field .google.protobuf.Timestamp current_attempt_scheduled_time = 11 [(.gogoproto.stdtime) = true];
- */
- protected $current_attempt_scheduled_time = null;
- /**
- * When was this task started (this attempt)
- *
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 12 [(.gogoproto.stdtime) = true];
- */
- protected $started_time = null;
- /**
- * Starting at 1, the number of attempts to perform this activity
- *
- * Generated from protobuf field int32 attempt = 13;
- */
- protected $attempt = 0;
- /**
- * First scheduled -> final result reported timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 14 [(.gogoproto.stdduration) = true];
- */
- protected $schedule_to_close_timeout = null;
- /**
- * Current attempt start -> final result reported timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 15 [(.gogoproto.stdduration) = true];
- */
- protected $start_to_close_timeout = null;
- /**
- * Window within which the activity must report a heartbeat, or be timed out.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 16 [(.gogoproto.stdduration) = true];
- */
- protected $heartbeat_timeout = null;
- /**
- * This is the retry policy the service uses which may be different from the one provided
- * (or not) during activity scheduling. The service can override the provided one if some
- * values are not specified or exceed configured system limits.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 17;
- */
- protected $retry_policy = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * A unique identifier for this task
- * @type string $workflow_namespace
- * The namespace the workflow which requested this activity lives in
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * Type of the requesting workflow
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * Execution info of the requesting workflow
- * @type \Temporal\Api\Common\V1\ActivityType $activity_type
- * @type string $activity_id
- * The autogenerated or user specified identifier of this activity. Can be used to complete the
- * activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage
- * has resolved, but unique IDs for every activity invocation is a good idea.
- * @type \Temporal\Api\Common\V1\Header $header
- * Headers specified by the scheduling workflow. Commonly used to propagate contextual info
- * from the workflow to its activities. For example, tracing contexts.
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Arguments to the activity invocation
- * @type \Temporal\Api\Common\V1\Payloads $heartbeat_details
- * Details of the last heartbeat that was recorded for this activity as of the time this task
- * was delivered.
- * @type \Google\Protobuf\Timestamp $scheduled_time
- * When was this task first scheduled
- * @type \Google\Protobuf\Timestamp $current_attempt_scheduled_time
- * When was this task attempt scheduled
- * @type \Google\Protobuf\Timestamp $started_time
- * When was this task started (this attempt)
- * @type int $attempt
- * Starting at 1, the number of attempts to perform this activity
- * @type \Google\Protobuf\Duration $schedule_to_close_timeout
- * First scheduled -> final result reported timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type \Google\Protobuf\Duration $start_to_close_timeout
- * Current attempt start -> final result reported timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- * @type \Google\Protobuf\Duration $heartbeat_timeout
- * Window within which the activity must report a heartbeat, or be timed out.
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * This is the retry policy the service uses which may be different from the one provided
- * (or not) during activity scheduling. The service can override the provided one if some
- * values are not specified or exceed configured system limits.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A unique identifier for this task
- *
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * A unique identifier for this task
- *
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * The namespace the workflow which requested this activity lives in
- *
- * Generated from protobuf field string workflow_namespace = 2;
- * @return string
- */
- public function getWorkflowNamespace()
- {
- return $this->workflow_namespace;
- }
-
- /**
- * The namespace the workflow which requested this activity lives in
- *
- * Generated from protobuf field string workflow_namespace = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_namespace = $var;
-
- return $this;
- }
-
- /**
- * Type of the requesting workflow
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Type of the requesting workflow
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Execution info of the requesting workflow
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Execution info of the requesting workflow
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 4;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 5;
- * @return \Temporal\Api\Common\V1\ActivityType|null
- */
- public function getActivityType()
- {
- return $this->activity_type;
- }
-
- public function hasActivityType()
- {
- return isset($this->activity_type);
- }
-
- public function clearActivityType()
- {
- unset($this->activity_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.ActivityType activity_type = 5;
- * @param \Temporal\Api\Common\V1\ActivityType $var
- * @return $this
- */
- public function setActivityType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\ActivityType::class);
- $this->activity_type = $var;
-
- return $this;
- }
-
- /**
- * The autogenerated or user specified identifier of this activity. Can be used to complete the
- * activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage
- * has resolved, but unique IDs for every activity invocation is a good idea.
- *
- * Generated from protobuf field string activity_id = 6;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * The autogenerated or user specified identifier of this activity. Can be used to complete the
- * activity via `RespondActivityTaskCompletedById`. May be re-used as long as the last usage
- * has resolved, but unique IDs for every activity invocation is a good idea.
- *
- * Generated from protobuf field string activity_id = 6;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * Headers specified by the scheduling workflow. Commonly used to propagate contextual info
- * from the workflow to its activities. For example, tracing contexts.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 7;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Headers specified by the scheduling workflow. Commonly used to propagate contextual info
- * from the workflow to its activities. For example, tracing contexts.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 7;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Arguments to the activity invocation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 8;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Arguments to the activity invocation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 8;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Details of the last heartbeat that was recorded for this activity as of the time this task
- * was delivered.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads heartbeat_details = 9;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getHeartbeatDetails()
- {
- return $this->heartbeat_details;
- }
-
- public function hasHeartbeatDetails()
- {
- return isset($this->heartbeat_details);
- }
-
- public function clearHeartbeatDetails()
- {
- unset($this->heartbeat_details);
- }
-
- /**
- * Details of the last heartbeat that was recorded for this activity as of the time this task
- * was delivered.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads heartbeat_details = 9;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setHeartbeatDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->heartbeat_details = $var;
-
- return $this;
- }
-
- /**
- * When was this task first scheduled
- *
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 10 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getScheduledTime()
- {
- return $this->scheduled_time;
- }
-
- public function hasScheduledTime()
- {
- return isset($this->scheduled_time);
- }
-
- public function clearScheduledTime()
- {
- unset($this->scheduled_time);
- }
-
- /**
- * When was this task first scheduled
- *
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 10 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setScheduledTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->scheduled_time = $var;
-
- return $this;
- }
-
- /**
- * When was this task attempt scheduled
- *
- * Generated from protobuf field .google.protobuf.Timestamp current_attempt_scheduled_time = 11 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCurrentAttemptScheduledTime()
- {
- return $this->current_attempt_scheduled_time;
- }
-
- public function hasCurrentAttemptScheduledTime()
- {
- return isset($this->current_attempt_scheduled_time);
- }
-
- public function clearCurrentAttemptScheduledTime()
- {
- unset($this->current_attempt_scheduled_time);
- }
-
- /**
- * When was this task attempt scheduled
- *
- * Generated from protobuf field .google.protobuf.Timestamp current_attempt_scheduled_time = 11 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCurrentAttemptScheduledTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->current_attempt_scheduled_time = $var;
-
- return $this;
- }
-
- /**
- * When was this task started (this attempt)
- *
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 12 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartedTime()
- {
- return $this->started_time;
- }
-
- public function hasStartedTime()
- {
- return isset($this->started_time);
- }
-
- public function clearStartedTime()
- {
- unset($this->started_time);
- }
-
- /**
- * When was this task started (this attempt)
- *
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 12 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartedTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->started_time = $var;
-
- return $this;
- }
-
- /**
- * Starting at 1, the number of attempts to perform this activity
- *
- * Generated from protobuf field int32 attempt = 13;
- * @return int
- */
- public function getAttempt()
- {
- return $this->attempt;
- }
-
- /**
- * Starting at 1, the number of attempts to perform this activity
- *
- * Generated from protobuf field int32 attempt = 13;
- * @param int $var
- * @return $this
- */
- public function setAttempt($var)
- {
- GPBUtil::checkInt32($var);
- $this->attempt = $var;
-
- return $this;
- }
-
- /**
- * First scheduled -> final result reported timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 14 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getScheduleToCloseTimeout()
- {
- return $this->schedule_to_close_timeout;
- }
-
- public function hasScheduleToCloseTimeout()
- {
- return isset($this->schedule_to_close_timeout);
- }
-
- public function clearScheduleToCloseTimeout()
- {
- unset($this->schedule_to_close_timeout);
- }
-
- /**
- * First scheduled -> final result reported timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration schedule_to_close_timeout = 14 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setScheduleToCloseTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->schedule_to_close_timeout = $var;
-
- return $this;
- }
-
- /**
- * Current attempt start -> final result reported timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 15 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getStartToCloseTimeout()
- {
- return $this->start_to_close_timeout;
- }
-
- public function hasStartToCloseTimeout()
- {
- return isset($this->start_to_close_timeout);
- }
-
- public function clearStartToCloseTimeout()
- {
- unset($this->start_to_close_timeout);
- }
-
- /**
- * Current attempt start -> final result reported timeout
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: "to" is used to indicate interval. --)
- *
- * Generated from protobuf field .google.protobuf.Duration start_to_close_timeout = 15 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setStartToCloseTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->start_to_close_timeout = $var;
-
- return $this;
- }
-
- /**
- * Window within which the activity must report a heartbeat, or be timed out.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 16 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getHeartbeatTimeout()
- {
- return $this->heartbeat_timeout;
- }
-
- public function hasHeartbeatTimeout()
- {
- return isset($this->heartbeat_timeout);
- }
-
- public function clearHeartbeatTimeout()
- {
- unset($this->heartbeat_timeout);
- }
-
- /**
- * Window within which the activity must report a heartbeat, or be timed out.
- *
- * Generated from protobuf field .google.protobuf.Duration heartbeat_timeout = 16 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setHeartbeatTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->heartbeat_timeout = $var;
-
- return $this;
- }
-
- /**
- * This is the retry policy the service uses which may be different from the one provided
- * (or not) during activity scheduling. The service can override the provided one if some
- * values are not specified or exceed configured system limits.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 17;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * This is the retry policy the service uses which may be different from the one provided
- * (or not) during activity scheduling. The service can override the provided one if some
- * values are not specified or exceed configured system limits.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 17;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowExecutionUpdateRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowExecutionUpdateRequest.php
deleted file mode 100644
index 161ff5f81..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowExecutionUpdateRequest.php
+++ /dev/null
@@ -1,195 +0,0 @@
-temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateRequest
- */
-class PollWorkflowExecutionUpdateRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace of the workflow execution to which the update was
- * originally issued.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * The update reference returned in the initial
- * UpdateWorkflowExecutionResponse
- *
- * Generated from protobuf field .temporal.api.update.v1.UpdateRef update_ref = 2;
- */
- protected $update_ref = null;
- /**
- * The identity of the worker/client who is polling this update outcome
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Describes when this poll request should return a response
- *
- * Generated from protobuf field .temporal.api.update.v1.WaitPolicy wait_policy = 4;
- */
- protected $wait_policy = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace of the workflow execution to which the update was
- * originally issued.
- * @type \Temporal\Api\Update\V1\UpdateRef $update_ref
- * The update reference returned in the initial
- * UpdateWorkflowExecutionResponse
- * @type string $identity
- * The identity of the worker/client who is polling this update outcome
- * @type \Temporal\Api\Update\V1\WaitPolicy $wait_policy
- * Describes when this poll request should return a response
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace of the workflow execution to which the update was
- * originally issued.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace of the workflow execution to which the update was
- * originally issued.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * The update reference returned in the initial
- * UpdateWorkflowExecutionResponse
- *
- * Generated from protobuf field .temporal.api.update.v1.UpdateRef update_ref = 2;
- * @return \Temporal\Api\Update\V1\UpdateRef|null
- */
- public function getUpdateRef()
- {
- return $this->update_ref;
- }
-
- public function hasUpdateRef()
- {
- return isset($this->update_ref);
- }
-
- public function clearUpdateRef()
- {
- unset($this->update_ref);
- }
-
- /**
- * The update reference returned in the initial
- * UpdateWorkflowExecutionResponse
- *
- * Generated from protobuf field .temporal.api.update.v1.UpdateRef update_ref = 2;
- * @param \Temporal\Api\Update\V1\UpdateRef $var
- * @return $this
- */
- public function setUpdateRef($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\UpdateRef::class);
- $this->update_ref = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client who is polling this update outcome
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client who is polling this update outcome
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Describes when this poll request should return a response
- *
- * Generated from protobuf field .temporal.api.update.v1.WaitPolicy wait_policy = 4;
- * @return \Temporal\Api\Update\V1\WaitPolicy|null
- */
- public function getWaitPolicy()
- {
- return $this->wait_policy;
- }
-
- public function hasWaitPolicy()
- {
- return isset($this->wait_policy);
- }
-
- public function clearWaitPolicy()
- {
- unset($this->wait_policy);
- }
-
- /**
- * Describes when this poll request should return a response
- *
- * Generated from protobuf field .temporal.api.update.v1.WaitPolicy wait_policy = 4;
- * @param \Temporal\Api\Update\V1\WaitPolicy $var
- * @return $this
- */
- public function setWaitPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\WaitPolicy::class);
- $this->wait_policy = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowExecutionUpdateResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowExecutionUpdateResponse.php
deleted file mode 100644
index eda16ba3a..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowExecutionUpdateResponse.php
+++ /dev/null
@@ -1,91 +0,0 @@
-temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse
- */
-class PollWorkflowExecutionUpdateResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The outcome of the update if and only if the update has completed. If
- * this response is being returned before the update has completed (e.g. due
- * to the specification of a wait policy that only waits on
- * UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
- * not be set.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 1;
- */
- protected $outcome = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Update\V1\Outcome $outcome
- * The outcome of the update if and only if the update has completed. If
- * this response is being returned before the update has completed (e.g. due
- * to the specification of a wait policy that only waits on
- * UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
- * not be set.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The outcome of the update if and only if the update has completed. If
- * this response is being returned before the update has completed (e.g. due
- * to the specification of a wait policy that only waits on
- * UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
- * not be set.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 1;
- * @return \Temporal\Api\Update\V1\Outcome|null
- */
- public function getOutcome()
- {
- return $this->outcome;
- }
-
- public function hasOutcome()
- {
- return isset($this->outcome);
- }
-
- public function clearOutcome()
- {
- unset($this->outcome);
- }
-
- /**
- * The outcome of the update if and only if the update has completed. If
- * this response is being returned before the update has completed (e.g. due
- * to the specification of a wait policy that only waits on
- * UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
- * not be set.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 1;
- * @param \Temporal\Api\Update\V1\Outcome $var
- * @return $this
- */
- public function setOutcome($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Outcome::class);
- $this->outcome = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowTaskQueueRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowTaskQueueRequest.php
deleted file mode 100644
index 797e17cb9..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowTaskQueueRequest.php
+++ /dev/null
@@ -1,219 +0,0 @@
-temporal.api.workflowservice.v1.PollWorkflowTaskQueueRequest
- */
-class PollWorkflowTaskQueueRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- */
- protected $task_queue = null;
- /**
- * The identity of the worker/client who is polling this task queue
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * DEPRECATED since 1.21 - use `worker_version_capabilities` instead.
- * Each worker process should provide an ID unique to the specific set of code it is running
- * "checksum" in this field name isn't very accurate, it should be though of as an id.
- *
- * Generated from protobuf field string binary_checksum = 4;
- */
- protected $binary_checksum = '';
- /**
- * Information about this worker's build identifier and if it is choosing to use the versioning
- * feature. See the `WorkerVersionCapabilities` docstring for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 5;
- */
- protected $worker_version_capabilities = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type string $identity
- * The identity of the worker/client who is polling this task queue
- * @type string $binary_checksum
- * DEPRECATED since 1.21 - use `worker_version_capabilities` instead.
- * Each worker process should provide an ID unique to the specific set of code it is running
- * "checksum" in this field name isn't very accurate, it should be though of as an id.
- * @type \Temporal\Api\Common\V1\WorkerVersionCapabilities $worker_version_capabilities
- * Information about this worker's build identifier and if it is choosing to use the versioning
- * feature. See the `WorkerVersionCapabilities` docstring for more.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 2;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client who is polling this task queue
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client who is polling this task queue
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * DEPRECATED since 1.21 - use `worker_version_capabilities` instead.
- * Each worker process should provide an ID unique to the specific set of code it is running
- * "checksum" in this field name isn't very accurate, it should be though of as an id.
- *
- * Generated from protobuf field string binary_checksum = 4;
- * @return string
- */
- public function getBinaryChecksum()
- {
- return $this->binary_checksum;
- }
-
- /**
- * DEPRECATED since 1.21 - use `worker_version_capabilities` instead.
- * Each worker process should provide an ID unique to the specific set of code it is running
- * "checksum" in this field name isn't very accurate, it should be though of as an id.
- *
- * Generated from protobuf field string binary_checksum = 4;
- * @param string $var
- * @return $this
- */
- public function setBinaryChecksum($var)
- {
- GPBUtil::checkString($var, True);
- $this->binary_checksum = $var;
-
- return $this;
- }
-
- /**
- * Information about this worker's build identifier and if it is choosing to use the versioning
- * feature. See the `WorkerVersionCapabilities` docstring for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 5;
- * @return \Temporal\Api\Common\V1\WorkerVersionCapabilities|null
- */
- public function getWorkerVersionCapabilities()
- {
- return $this->worker_version_capabilities;
- }
-
- public function hasWorkerVersionCapabilities()
- {
- return isset($this->worker_version_capabilities);
- }
-
- public function clearWorkerVersionCapabilities()
- {
- unset($this->worker_version_capabilities);
- }
-
- /**
- * Information about this worker's build identifier and if it is choosing to use the versioning
- * feature. See the `WorkerVersionCapabilities` docstring for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 5;
- * @param \Temporal\Api\Common\V1\WorkerVersionCapabilities $var
- * @return $this
- */
- public function setWorkerVersionCapabilities($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionCapabilities::class);
- $this->worker_version_capabilities = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowTaskQueueResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowTaskQueueResponse.php
deleted file mode 100644
index 00219b451..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/PollWorkflowTaskQueueResponse.php
+++ /dev/null
@@ -1,641 +0,0 @@
-temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse
- */
-class PollWorkflowTaskQueueResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * A unique identifier for this task
- *
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * The last workflow task started event which was processed by some worker for this execution.
- * Will be zero if no task has ever started.
- *
- * Generated from protobuf field int64 previous_started_event_id = 4;
- */
- protected $previous_started_event_id = 0;
- /**
- * The id of the most recent workflow task started event, which will have been generated as a
- * result of this poll request being served.
- *
- * Generated from protobuf field int64 started_event_id = 5;
- */
- protected $started_event_id = 0;
- /**
- * Starting at 1, the number of attempts to complete this task by any worker.
- *
- * Generated from protobuf field int32 attempt = 6;
- */
- protected $attempt = 0;
- /**
- * A hint that there are more tasks already present in this task queue. Can be used to
- * prioritize draining a sticky queue before polling from a normal queue.
- *
- * Generated from protobuf field int64 backlog_count_hint = 7;
- */
- protected $backlog_count_hint = 0;
- /**
- * The history for this workflow, which will either be complete or partial. Partial histories
- * are sent to workers who have signaled that they are using a sticky queue when completing
- * a workflow task.
- *
- * Generated from protobuf field .temporal.api.history.v1.History history = 8;
- */
- protected $history = null;
- /**
- * Will be set if there are more history events than were included in this response. Such events
- * should be fetched via `GetWorkflowExecutionHistory`.
- *
- * Generated from protobuf field bytes next_page_token = 9;
- */
- protected $next_page_token = '';
- /**
- * Legacy queries appear in this field. The query must be responded to via
- * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
- * closed workflows) then the `history` field will be populated with the entire history. It
- * may also be populated if this task originates on a non-sticky queue.
- *
- * Generated from protobuf field .temporal.api.query.v1.WorkflowQuery query = 10;
- */
- protected $query = null;
- /**
- * The task queue this task originated from, which will always be the original non-sticky name
- * for the queue, even if this response came from polling a sticky queue.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
- */
- protected $workflow_execution_task_queue = null;
- /**
- * When this task was scheduled by the server
- *
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true];
- */
- protected $scheduled_time = null;
- /**
- * When the current workflow task started event was generated, meaning the current attempt.
- *
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true];
- */
- protected $started_time = null;
- /**
- * Queries that should be executed after applying the history in this task. Responses should be
- * attached to `RespondWorkflowTaskCompletedRequest::query_results`
- *
- * Generated from protobuf field map queries = 14;
- */
- private $queries;
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 15;
- */
- private $messages;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * A unique identifier for this task
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type int|string $previous_started_event_id
- * The last workflow task started event which was processed by some worker for this execution.
- * Will be zero if no task has ever started.
- * @type int|string $started_event_id
- * The id of the most recent workflow task started event, which will have been generated as a
- * result of this poll request being served.
- * @type int $attempt
- * Starting at 1, the number of attempts to complete this task by any worker.
- * @type int|string $backlog_count_hint
- * A hint that there are more tasks already present in this task queue. Can be used to
- * prioritize draining a sticky queue before polling from a normal queue.
- * @type \Temporal\Api\History\V1\History $history
- * The history for this workflow, which will either be complete or partial. Partial histories
- * are sent to workers who have signaled that they are using a sticky queue when completing
- * a workflow task.
- * @type string $next_page_token
- * Will be set if there are more history events than were included in this response. Such events
- * should be fetched via `GetWorkflowExecutionHistory`.
- * @type \Temporal\Api\Query\V1\WorkflowQuery $query
- * Legacy queries appear in this field. The query must be responded to via
- * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
- * closed workflows) then the `history` field will be populated with the entire history. It
- * may also be populated if this task originates on a non-sticky queue.
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $workflow_execution_task_queue
- * The task queue this task originated from, which will always be the original non-sticky name
- * for the queue, even if this response came from polling a sticky queue.
- * @type \Google\Protobuf\Timestamp $scheduled_time
- * When this task was scheduled by the server
- * @type \Google\Protobuf\Timestamp $started_time
- * When the current workflow task started event was generated, meaning the current attempt.
- * @type array|\Google\Protobuf\Internal\MapField $queries
- * Queries that should be executed after applying the history in this task. Responses should be
- * attached to `RespondWorkflowTaskCompletedRequest::query_results`
- * @type array<\Temporal\Api\Protocol\V1\Message>|\Google\Protobuf\Internal\RepeatedField $messages
- * Protocol messages piggybacking on a WFT as a transport
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A unique identifier for this task
- *
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * A unique identifier for this task
- *
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * The last workflow task started event which was processed by some worker for this execution.
- * Will be zero if no task has ever started.
- *
- * Generated from protobuf field int64 previous_started_event_id = 4;
- * @return int|string
- */
- public function getPreviousStartedEventId()
- {
- return $this->previous_started_event_id;
- }
-
- /**
- * The last workflow task started event which was processed by some worker for this execution.
- * Will be zero if no task has ever started.
- *
- * Generated from protobuf field int64 previous_started_event_id = 4;
- * @param int|string $var
- * @return $this
- */
- public function setPreviousStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->previous_started_event_id = $var;
-
- return $this;
- }
-
- /**
- * The id of the most recent workflow task started event, which will have been generated as a
- * result of this poll request being served.
- *
- * Generated from protobuf field int64 started_event_id = 5;
- * @return int|string
- */
- public function getStartedEventId()
- {
- return $this->started_event_id;
- }
-
- /**
- * The id of the most recent workflow task started event, which will have been generated as a
- * result of this poll request being served.
- *
- * Generated from protobuf field int64 started_event_id = 5;
- * @param int|string $var
- * @return $this
- */
- public function setStartedEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->started_event_id = $var;
-
- return $this;
- }
-
- /**
- * Starting at 1, the number of attempts to complete this task by any worker.
- *
- * Generated from protobuf field int32 attempt = 6;
- * @return int
- */
- public function getAttempt()
- {
- return $this->attempt;
- }
-
- /**
- * Starting at 1, the number of attempts to complete this task by any worker.
- *
- * Generated from protobuf field int32 attempt = 6;
- * @param int $var
- * @return $this
- */
- public function setAttempt($var)
- {
- GPBUtil::checkInt32($var);
- $this->attempt = $var;
-
- return $this;
- }
-
- /**
- * A hint that there are more tasks already present in this task queue. Can be used to
- * prioritize draining a sticky queue before polling from a normal queue.
- *
- * Generated from protobuf field int64 backlog_count_hint = 7;
- * @return int|string
- */
- public function getBacklogCountHint()
- {
- return $this->backlog_count_hint;
- }
-
- /**
- * A hint that there are more tasks already present in this task queue. Can be used to
- * prioritize draining a sticky queue before polling from a normal queue.
- *
- * Generated from protobuf field int64 backlog_count_hint = 7;
- * @param int|string $var
- * @return $this
- */
- public function setBacklogCountHint($var)
- {
- GPBUtil::checkInt64($var);
- $this->backlog_count_hint = $var;
-
- return $this;
- }
-
- /**
- * The history for this workflow, which will either be complete or partial. Partial histories
- * are sent to workers who have signaled that they are using a sticky queue when completing
- * a workflow task.
- *
- * Generated from protobuf field .temporal.api.history.v1.History history = 8;
- * @return \Temporal\Api\History\V1\History|null
- */
- public function getHistory()
- {
- return $this->history;
- }
-
- public function hasHistory()
- {
- return isset($this->history);
- }
-
- public function clearHistory()
- {
- unset($this->history);
- }
-
- /**
- * The history for this workflow, which will either be complete or partial. Partial histories
- * are sent to workers who have signaled that they are using a sticky queue when completing
- * a workflow task.
- *
- * Generated from protobuf field .temporal.api.history.v1.History history = 8;
- * @param \Temporal\Api\History\V1\History $var
- * @return $this
- */
- public function setHistory($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\History\V1\History::class);
- $this->history = $var;
-
- return $this;
- }
-
- /**
- * Will be set if there are more history events than were included in this response. Such events
- * should be fetched via `GetWorkflowExecutionHistory`.
- *
- * Generated from protobuf field bytes next_page_token = 9;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Will be set if there are more history events than were included in this response. Such events
- * should be fetched via `GetWorkflowExecutionHistory`.
- *
- * Generated from protobuf field bytes next_page_token = 9;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Legacy queries appear in this field. The query must be responded to via
- * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
- * closed workflows) then the `history` field will be populated with the entire history. It
- * may also be populated if this task originates on a non-sticky queue.
- *
- * Generated from protobuf field .temporal.api.query.v1.WorkflowQuery query = 10;
- * @return \Temporal\Api\Query\V1\WorkflowQuery|null
- */
- public function getQuery()
- {
- return $this->query;
- }
-
- public function hasQuery()
- {
- return isset($this->query);
- }
-
- public function clearQuery()
- {
- unset($this->query);
- }
-
- /**
- * Legacy queries appear in this field. The query must be responded to via
- * `RespondQueryTaskCompleted`. If the workflow is already closed (queries are permitted on
- * closed workflows) then the `history` field will be populated with the entire history. It
- * may also be populated if this task originates on a non-sticky queue.
- *
- * Generated from protobuf field .temporal.api.query.v1.WorkflowQuery query = 10;
- * @param \Temporal\Api\Query\V1\WorkflowQuery $var
- * @return $this
- */
- public function setQuery($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Query\V1\WorkflowQuery::class);
- $this->query = $var;
-
- return $this;
- }
-
- /**
- * The task queue this task originated from, which will always be the original non-sticky name
- * for the queue, even if this response came from polling a sticky queue.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getWorkflowExecutionTaskQueue()
- {
- return $this->workflow_execution_task_queue;
- }
-
- public function hasWorkflowExecutionTaskQueue()
- {
- return isset($this->workflow_execution_task_queue);
- }
-
- public function clearWorkflowExecutionTaskQueue()
- {
- unset($this->workflow_execution_task_queue);
- }
-
- /**
- * The task queue this task originated from, which will always be the original non-sticky name
- * for the queue, even if this response came from polling a sticky queue.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue workflow_execution_task_queue = 11;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setWorkflowExecutionTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->workflow_execution_task_queue = $var;
-
- return $this;
- }
-
- /**
- * When this task was scheduled by the server
- *
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getScheduledTime()
- {
- return $this->scheduled_time;
- }
-
- public function hasScheduledTime()
- {
- return isset($this->scheduled_time);
- }
-
- public function clearScheduledTime()
- {
- unset($this->scheduled_time);
- }
-
- /**
- * When this task was scheduled by the server
- *
- * Generated from protobuf field .google.protobuf.Timestamp scheduled_time = 12 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setScheduledTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->scheduled_time = $var;
-
- return $this;
- }
-
- /**
- * When the current workflow task started event was generated, meaning the current attempt.
- *
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true];
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getStartedTime()
- {
- return $this->started_time;
- }
-
- public function hasStartedTime()
- {
- return isset($this->started_time);
- }
-
- public function clearStartedTime()
- {
- unset($this->started_time);
- }
-
- /**
- * When the current workflow task started event was generated, meaning the current attempt.
- *
- * Generated from protobuf field .google.protobuf.Timestamp started_time = 13 [(.gogoproto.stdtime) = true];
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setStartedTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->started_time = $var;
-
- return $this;
- }
-
- /**
- * Queries that should be executed after applying the history in this task. Responses should be
- * attached to `RespondWorkflowTaskCompletedRequest::query_results`
- *
- * Generated from protobuf field map queries = 14;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getQueries()
- {
- return $this->queries;
- }
-
- /**
- * Queries that should be executed after applying the history in this task. Responses should be
- * attached to `RespondWorkflowTaskCompletedRequest::query_results`
- *
- * Generated from protobuf field map queries = 14;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setQueries($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Query\V1\WorkflowQuery::class);
- $this->queries = $arr;
-
- return $this;
- }
-
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 15;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMessages()
- {
- return $this->messages;
- }
-
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 15;
- * @param array<\Temporal\Api\Protocol\V1\Message>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMessages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Protocol\V1\Message::class);
- $this->messages = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/QueryWorkflowRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/QueryWorkflowRequest.php
deleted file mode 100644
index 063e9039d..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/QueryWorkflowRequest.php
+++ /dev/null
@@ -1,170 +0,0 @@
-temporal.api.workflowservice.v1.QueryWorkflowRequest
- */
-class QueryWorkflowRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- */
- protected $execution = null;
- /**
- * Generated from protobuf field .temporal.api.query.v1.WorkflowQuery query = 3;
- */
- protected $query = null;
- /**
- * QueryRejectCondition can used to reject the query if workflow state does not satisfy condition.
- * Default: QUERY_REJECT_CONDITION_NONE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.QueryRejectCondition query_reject_condition = 4;
- */
- protected $query_reject_condition = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $execution
- * @type \Temporal\Api\Query\V1\WorkflowQuery $query
- * @type int $query_reject_condition
- * QueryRejectCondition can used to reject the query if workflow state does not satisfy condition.
- * Default: QUERY_REJECT_CONDITION_NONE.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getExecution()
- {
- return $this->execution;
- }
-
- public function hasExecution()
- {
- return isset($this->execution);
- }
-
- public function clearExecution()
- {
- unset($this->execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.query.v1.WorkflowQuery query = 3;
- * @return \Temporal\Api\Query\V1\WorkflowQuery|null
- */
- public function getQuery()
- {
- return $this->query;
- }
-
- public function hasQuery()
- {
- return isset($this->query);
- }
-
- public function clearQuery()
- {
- unset($this->query);
- }
-
- /**
- * Generated from protobuf field .temporal.api.query.v1.WorkflowQuery query = 3;
- * @param \Temporal\Api\Query\V1\WorkflowQuery $var
- * @return $this
- */
- public function setQuery($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Query\V1\WorkflowQuery::class);
- $this->query = $var;
-
- return $this;
- }
-
- /**
- * QueryRejectCondition can used to reject the query if workflow state does not satisfy condition.
- * Default: QUERY_REJECT_CONDITION_NONE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.QueryRejectCondition query_reject_condition = 4;
- * @return int
- */
- public function getQueryRejectCondition()
- {
- return $this->query_reject_condition;
- }
-
- /**
- * QueryRejectCondition can used to reject the query if workflow state does not satisfy condition.
- * Default: QUERY_REJECT_CONDITION_NONE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.QueryRejectCondition query_reject_condition = 4;
- * @param int $var
- * @return $this
- */
- public function setQueryRejectCondition($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\QueryRejectCondition::class);
- $this->query_reject_condition = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/QueryWorkflowResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/QueryWorkflowResponse.php
deleted file mode 100644
index 518f5ef14..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/QueryWorkflowResponse.php
+++ /dev/null
@@ -1,105 +0,0 @@
-temporal.api.workflowservice.v1.QueryWorkflowResponse
- */
-class QueryWorkflowResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_result = 1;
- */
- protected $query_result = null;
- /**
- * Generated from protobuf field .temporal.api.query.v1.QueryRejected query_rejected = 2;
- */
- protected $query_rejected = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Common\V1\Payloads $query_result
- * @type \Temporal\Api\Query\V1\QueryRejected $query_rejected
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_result = 1;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getQueryResult()
- {
- return $this->query_result;
- }
-
- public function hasQueryResult()
- {
- return isset($this->query_result);
- }
-
- public function clearQueryResult()
- {
- unset($this->query_result);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_result = 1;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setQueryResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->query_result = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.query.v1.QueryRejected query_rejected = 2;
- * @return \Temporal\Api\Query\V1\QueryRejected|null
- */
- public function getQueryRejected()
- {
- return $this->query_rejected;
- }
-
- public function hasQueryRejected()
- {
- return isset($this->query_rejected);
- }
-
- public function clearQueryRejected()
- {
- unset($this->query_rejected);
- }
-
- /**
- * Generated from protobuf field .temporal.api.query.v1.QueryRejected query_rejected = 2;
- * @param \Temporal\Api\Query\V1\QueryRejected $var
- * @return $this
- */
- public function setQueryRejected($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Query\V1\QueryRejected::class);
- $this->query_rejected = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatByIdRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatByIdRequest.php
deleted file mode 100644
index 7c9d2fabb..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatByIdRequest.php
+++ /dev/null
@@ -1,245 +0,0 @@
-temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdRequest
- */
-class RecordActivityTaskHeartbeatByIdRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- */
- protected $run_id = '';
- /**
- * Id of the activity we're heartbeating
- *
- * Generated from protobuf field string activity_id = 4;
- */
- protected $activity_id = '';
- /**
- * Arbitrary data, of which the most recent call is kept, to store for this activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 5;
- */
- protected $details = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the workflow which scheduled this activity
- * @type string $workflow_id
- * Id of the workflow which scheduled this activity
- * @type string $run_id
- * Run Id of the workflow which scheduled this activity
- * @type string $activity_id
- * Id of the activity we're heartbeating
- * @type \Temporal\Api\Common\V1\Payloads $details
- * Arbitrary data, of which the most recent call is kept, to store for this activity
- * @type string $identity
- * The identity of the worker/client
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the activity we're heartbeating
- *
- * Generated from protobuf field string activity_id = 4;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * Id of the activity we're heartbeating
- *
- * Generated from protobuf field string activity_id = 4;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * Arbitrary data, of which the most recent call is kept, to store for this activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Arbitrary data, of which the most recent call is kept, to store for this activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatByIdResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatByIdResponse.php
deleted file mode 100644
index 2a77c9eee..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatByIdResponse.php
+++ /dev/null
@@ -1,69 +0,0 @@
-temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatByIdResponse
- */
-class RecordActivityTaskHeartbeatByIdResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Will be set to true if the activity has been asked to cancel itself. The SDK should then
- * notify the activity of cancellation if it is still running.
- *
- * Generated from protobuf field bool cancel_requested = 1;
- */
- protected $cancel_requested = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $cancel_requested
- * Will be set to true if the activity has been asked to cancel itself. The SDK should then
- * notify the activity of cancellation if it is still running.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Will be set to true if the activity has been asked to cancel itself. The SDK should then
- * notify the activity of cancellation if it is still running.
- *
- * Generated from protobuf field bool cancel_requested = 1;
- * @return bool
- */
- public function getCancelRequested()
- {
- return $this->cancel_requested;
- }
-
- /**
- * Will be set to true if the activity has been asked to cancel itself. The SDK should then
- * notify the activity of cancellation if it is still running.
- *
- * Generated from protobuf field bool cancel_requested = 1;
- * @param bool $var
- * @return $this
- */
- public function setCancelRequested($var)
- {
- GPBUtil::checkBool($var);
- $this->cancel_requested = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatRequest.php
deleted file mode 100644
index 5f02fee7d..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatRequest.php
+++ /dev/null
@@ -1,170 +0,0 @@
-temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatRequest
- */
-class RecordActivityTaskHeartbeatRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * Arbitrary data, of which the most recent call is kept, to store for this activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- */
- protected $details = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Generated from protobuf field string namespace = 4;
- */
- protected $namespace = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * The task token as received in `PollActivityTaskQueueResponse`
- * @type \Temporal\Api\Common\V1\Payloads $details
- * Arbitrary data, of which the most recent call is kept, to store for this activity
- * @type string $identity
- * The identity of the worker/client
- * @type string $namespace
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * Arbitrary data, of which the most recent call is kept, to store for this activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Arbitrary data, of which the most recent call is kept, to store for this activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 4;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 4;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatResponse.php
deleted file mode 100644
index 01c6a8a6c..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RecordActivityTaskHeartbeatResponse.php
+++ /dev/null
@@ -1,69 +0,0 @@
-temporal.api.workflowservice.v1.RecordActivityTaskHeartbeatResponse
- */
-class RecordActivityTaskHeartbeatResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Will be set to true if the activity has been asked to cancel itself. The SDK should then
- * notify the activity of cancellation if it is still running.
- *
- * Generated from protobuf field bool cancel_requested = 1;
- */
- protected $cancel_requested = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type bool $cancel_requested
- * Will be set to true if the activity has been asked to cancel itself. The SDK should then
- * notify the activity of cancellation if it is still running.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Will be set to true if the activity has been asked to cancel itself. The SDK should then
- * notify the activity of cancellation if it is still running.
- *
- * Generated from protobuf field bool cancel_requested = 1;
- * @return bool
- */
- public function getCancelRequested()
- {
- return $this->cancel_requested;
- }
-
- /**
- * Will be set to true if the activity has been asked to cancel itself. The SDK should then
- * notify the activity of cancellation if it is still running.
- *
- * Generated from protobuf field bool cancel_requested = 1;
- * @param bool $var
- * @return $this
- */
- public function setCancelRequested($var)
- {
- GPBUtil::checkBool($var);
- $this->cancel_requested = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RegisterNamespaceRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RegisterNamespaceRequest.php
deleted file mode 100644
index 75eea4178..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RegisterNamespaceRequest.php
+++ /dev/null
@@ -1,413 +0,0 @@
-temporal.api.workflowservice.v1.RegisterNamespaceRequest
- */
-class RegisterNamespaceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string description = 2;
- */
- protected $description = '';
- /**
- * Generated from protobuf field string owner_email = 3;
- */
- protected $owner_email = '';
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_retention_period = 4 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_retention_period = null;
- /**
- * Generated from protobuf field repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 5;
- */
- private $clusters;
- /**
- * Generated from protobuf field string active_cluster_name = 6;
- */
- protected $active_cluster_name = '';
- /**
- * A key-value map for any customized purpose.
- *
- * Generated from protobuf field map data = 7;
- */
- private $data;
- /**
- * Generated from protobuf field string security_token = 8;
- */
- protected $security_token = '';
- /**
- * Generated from protobuf field bool is_global_namespace = 9;
- */
- protected $is_global_namespace = false;
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState history_archival_state = 10;
- */
- protected $history_archival_state = 0;
- /**
- * Generated from protobuf field string history_archival_uri = 11;
- */
- protected $history_archival_uri = '';
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState visibility_archival_state = 12;
- */
- protected $visibility_archival_state = 0;
- /**
- * Generated from protobuf field string visibility_archival_uri = 13;
- */
- protected $visibility_archival_uri = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $description
- * @type string $owner_email
- * @type \Google\Protobuf\Duration $workflow_execution_retention_period
- * @type array<\Temporal\Api\Replication\V1\ClusterReplicationConfig>|\Google\Protobuf\Internal\RepeatedField $clusters
- * @type string $active_cluster_name
- * @type array|\Google\Protobuf\Internal\MapField $data
- * A key-value map for any customized purpose.
- * @type string $security_token
- * @type bool $is_global_namespace
- * @type int $history_archival_state
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- * @type string $history_archival_uri
- * @type int $visibility_archival_state
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- * @type string $visibility_archival_uri
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string description = 2;
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * Generated from protobuf field string description = 2;
- * @param string $var
- * @return $this
- */
- public function setDescription($var)
- {
- GPBUtil::checkString($var, True);
- $this->description = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string owner_email = 3;
- * @return string
- */
- public function getOwnerEmail()
- {
- return $this->owner_email;
- }
-
- /**
- * Generated from protobuf field string owner_email = 3;
- * @param string $var
- * @return $this
- */
- public function setOwnerEmail($var)
- {
- GPBUtil::checkString($var, True);
- $this->owner_email = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_retention_period = 4 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionRetentionPeriod()
- {
- return $this->workflow_execution_retention_period;
- }
-
- public function hasWorkflowExecutionRetentionPeriod()
- {
- return isset($this->workflow_execution_retention_period);
- }
-
- public function clearWorkflowExecutionRetentionPeriod()
- {
- unset($this->workflow_execution_retention_period);
- }
-
- /**
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_retention_period = 4 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionRetentionPeriod($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_retention_period = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 5;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getClusters()
- {
- return $this->clusters;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.replication.v1.ClusterReplicationConfig clusters = 5;
- * @param array<\Temporal\Api\Replication\V1\ClusterReplicationConfig>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setClusters($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Replication\V1\ClusterReplicationConfig::class);
- $this->clusters = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string active_cluster_name = 6;
- * @return string
- */
- public function getActiveClusterName()
- {
- return $this->active_cluster_name;
- }
-
- /**
- * Generated from protobuf field string active_cluster_name = 6;
- * @param string $var
- * @return $this
- */
- public function setActiveClusterName($var)
- {
- GPBUtil::checkString($var, True);
- $this->active_cluster_name = $var;
-
- return $this;
- }
-
- /**
- * A key-value map for any customized purpose.
- *
- * Generated from protobuf field map data = 7;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getData()
- {
- return $this->data;
- }
-
- /**
- * A key-value map for any customized purpose.
- *
- * Generated from protobuf field map data = 7;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setData($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
- $this->data = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string security_token = 8;
- * @return string
- */
- public function getSecurityToken()
- {
- return $this->security_token;
- }
-
- /**
- * Generated from protobuf field string security_token = 8;
- * @param string $var
- * @return $this
- */
- public function setSecurityToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->security_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bool is_global_namespace = 9;
- * @return bool
- */
- public function getIsGlobalNamespace()
- {
- return $this->is_global_namespace;
- }
-
- /**
- * Generated from protobuf field bool is_global_namespace = 9;
- * @param bool $var
- * @return $this
- */
- public function setIsGlobalNamespace($var)
- {
- GPBUtil::checkBool($var);
- $this->is_global_namespace = $var;
-
- return $this;
- }
-
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState history_archival_state = 10;
- * @return int
- */
- public function getHistoryArchivalState()
- {
- return $this->history_archival_state;
- }
-
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState history_archival_state = 10;
- * @param int $var
- * @return $this
- */
- public function setHistoryArchivalState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ArchivalState::class);
- $this->history_archival_state = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string history_archival_uri = 11;
- * @return string
- */
- public function getHistoryArchivalUri()
- {
- return $this->history_archival_uri;
- }
-
- /**
- * Generated from protobuf field string history_archival_uri = 11;
- * @param string $var
- * @return $this
- */
- public function setHistoryArchivalUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->history_archival_uri = $var;
-
- return $this;
- }
-
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState visibility_archival_state = 12;
- * @return int
- */
- public function getVisibilityArchivalState()
- {
- return $this->visibility_archival_state;
- }
-
- /**
- * If unspecified (ARCHIVAL_STATE_UNSPECIFIED) then default server configuration is used.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ArchivalState visibility_archival_state = 12;
- * @param int $var
- * @return $this
- */
- public function setVisibilityArchivalState($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ArchivalState::class);
- $this->visibility_archival_state = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string visibility_archival_uri = 13;
- * @return string
- */
- public function getVisibilityArchivalUri()
- {
- return $this->visibility_archival_uri;
- }
-
- /**
- * Generated from protobuf field string visibility_archival_uri = 13;
- * @param string $var
- * @return $this
- */
- public function setVisibilityArchivalUri($var)
- {
- GPBUtil::checkString($var, True);
- $this->visibility_archival_uri = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RegisterNamespaceResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RegisterNamespaceResponse.php
deleted file mode 100644
index e00a17452..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RegisterNamespaceResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.RegisterNamespaceResponse
- */
-class RegisterNamespaceResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RequestCancelWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RequestCancelWorkflowExecutionRequest.php
deleted file mode 100644
index 5eba2127c..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RequestCancelWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,239 +0,0 @@
-temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionRequest
- */
-class RequestCancelWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Used to de-dupe cancellation requests
- *
- * Generated from protobuf field string request_id = 4;
- */
- protected $request_id = '';
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not part of the same
- * execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 5;
- */
- protected $first_execution_run_id = '';
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- */
- protected $reason = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type string $identity
- * The identity of the worker/client
- * @type string $request_id
- * Used to de-dupe cancellation requests
- * @type string $first_execution_run_id
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not part of the same
- * execution chain as this id.
- * @type string $reason
- * Reason for requesting the cancellation
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Used to de-dupe cancellation requests
- *
- * Generated from protobuf field string request_id = 4;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Used to de-dupe cancellation requests
- *
- * Generated from protobuf field string request_id = 4;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not part of the same
- * execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 5;
- * @return string
- */
- public function getFirstExecutionRunId()
- {
- return $this->first_execution_run_id;
- }
-
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not part of the same
- * execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 5;
- * @param string $var
- * @return $this
- */
- public function setFirstExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->first_execution_run_id = $var;
-
- return $this;
- }
-
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Reason for requesting the cancellation
- *
- * Generated from protobuf field string reason = 6;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RequestCancelWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RequestCancelWorkflowExecutionResponse.php
deleted file mode 100644
index eb36d2064..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RequestCancelWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.RequestCancelWorkflowExecutionResponse
- */
-class RequestCancelWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ResetStickyTaskQueueRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ResetStickyTaskQueueRequest.php
deleted file mode 100644
index eaacb4886..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ResetStickyTaskQueueRequest.php
+++ /dev/null
@@ -1,95 +0,0 @@
-temporal.api.workflowservice.v1.ResetStickyTaskQueueRequest
- */
-class ResetStickyTaskQueueRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- */
- protected $execution = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $execution
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getExecution()
- {
- return $this->execution;
- }
-
- public function hasExecution()
- {
- return isset($this->execution);
- }
-
- public function clearExecution()
- {
- unset($this->execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->execution = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ResetStickyTaskQueueResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ResetStickyTaskQueueResponse.php
deleted file mode 100644
index 11de4b4db..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ResetStickyTaskQueueResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.ResetStickyTaskQueueResponse
- */
-class ResetStickyTaskQueueResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ResetWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ResetWorkflowExecutionRequest.php
deleted file mode 100644
index 9e28514e3..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ResetWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,228 +0,0 @@
-temporal.api.workflowservice.v1.ResetWorkflowExecutionRequest
- */
-class ResetWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field string reason = 3;
- */
- protected $reason = '';
- /**
- * The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
- * `WORKFLOW_TASK_STARTED` event to reset to.
- *
- * Generated from protobuf field int64 workflow_task_finish_event_id = 4;
- */
- protected $workflow_task_finish_event_id = 0;
- /**
- * Used to de-dupe reset requests
- *
- * Generated from protobuf field string request_id = 5;
- */
- protected $request_id = '';
- /**
- * Reset reapplay(replay) options.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
- */
- protected $reset_reapply_type = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type string $reason
- * @type int|string $workflow_task_finish_event_id
- * The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
- * `WORKFLOW_TASK_STARTED` event to reset to.
- * @type string $request_id
- * Used to de-dupe reset requests
- * @type int $reset_reapply_type
- * Reset reapplay(replay) options.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string reason = 3;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Generated from protobuf field string reason = 3;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
- /**
- * The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
- * `WORKFLOW_TASK_STARTED` event to reset to.
- *
- * Generated from protobuf field int64 workflow_task_finish_event_id = 4;
- * @return int|string
- */
- public function getWorkflowTaskFinishEventId()
- {
- return $this->workflow_task_finish_event_id;
- }
-
- /**
- * The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
- * `WORKFLOW_TASK_STARTED` event to reset to.
- *
- * Generated from protobuf field int64 workflow_task_finish_event_id = 4;
- * @param int|string $var
- * @return $this
- */
- public function setWorkflowTaskFinishEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->workflow_task_finish_event_id = $var;
-
- return $this;
- }
-
- /**
- * Used to de-dupe reset requests
- *
- * Generated from protobuf field string request_id = 5;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Used to de-dupe reset requests
- *
- * Generated from protobuf field string request_id = 5;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Reset reapplay(replay) options.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
- * @return int
- */
- public function getResetReapplyType()
- {
- return $this->reset_reapply_type;
- }
-
- /**
- * Reset reapplay(replay) options.
- *
- * Generated from protobuf field .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
- * @param int $var
- * @return $this
- */
- public function setResetReapplyType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\ResetReapplyType::class);
- $this->reset_reapply_type = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ResetWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ResetWorkflowExecutionResponse.php
deleted file mode 100644
index 5453de295..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ResetWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.workflowservice.v1.ResetWorkflowExecutionResponse
- */
-class ResetWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string run_id = 1;
- */
- protected $run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $run_id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string run_id = 1;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Generated from protobuf field string run_id = 1;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledByIdRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledByIdRequest.php
deleted file mode 100644
index 3979d8b18..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledByIdRequest.php
+++ /dev/null
@@ -1,245 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdRequest
- */
-class RespondActivityTaskCanceledByIdRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- */
- protected $run_id = '';
- /**
- * Id of the activity to confirm is cancelled
- *
- * Generated from protobuf field string activity_id = 4;
- */
- protected $activity_id = '';
- /**
- * Serialized additional information to attach to the cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 5;
- */
- protected $details = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the workflow which scheduled this activity
- * @type string $workflow_id
- * Id of the workflow which scheduled this activity
- * @type string $run_id
- * Run Id of the workflow which scheduled this activity
- * @type string $activity_id
- * Id of the activity to confirm is cancelled
- * @type \Temporal\Api\Common\V1\Payloads $details
- * Serialized additional information to attach to the cancellation
- * @type string $identity
- * The identity of the worker/client
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the activity to confirm is cancelled
- *
- * Generated from protobuf field string activity_id = 4;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * Id of the activity to confirm is cancelled
- *
- * Generated from protobuf field string activity_id = 4;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * Serialized additional information to attach to the cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Serialized additional information to attach to the cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledByIdResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledByIdResponse.php
deleted file mode 100644
index 820b86498..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledByIdResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskCanceledByIdResponse
- */
-class RespondActivityTaskCanceledByIdResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledRequest.php
deleted file mode 100644
index 1d0a143b3..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledRequest.php
+++ /dev/null
@@ -1,222 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskCanceledRequest
- */
-class RespondActivityTaskCanceledRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * Serialized additional information to attach to the cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- */
- protected $details = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Generated from protobuf field string namespace = 4;
- */
- protected $namespace = '';
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- */
- protected $worker_version = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * The task token as received in `PollActivityTaskQueueResponse`
- * @type \Temporal\Api\Common\V1\Payloads $details
- * Serialized additional information to attach to the cancellation
- * @type string $identity
- * The identity of the worker/client
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * Serialized additional information to attach to the cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Serialized additional information to attach to the cancellation
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 4;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 4;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledResponse.php
deleted file mode 100644
index e998d7ed6..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCanceledResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskCanceledResponse
- */
-class RespondActivityTaskCanceledResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedByIdRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedByIdRequest.php
deleted file mode 100644
index 28d653b1c..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedByIdRequest.php
+++ /dev/null
@@ -1,245 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdRequest
- */
-class RespondActivityTaskCompletedByIdRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- */
- protected $run_id = '';
- /**
- * Id of the activity to complete
- *
- * Generated from protobuf field string activity_id = 4;
- */
- protected $activity_id = '';
- /**
- * The serialized result of activity execution
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 5;
- */
- protected $result = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the workflow which scheduled this activity
- * @type string $workflow_id
- * Id of the workflow which scheduled this activity
- * @type string $run_id
- * Run Id of the workflow which scheduled this activity
- * @type string $activity_id
- * Id of the activity to complete
- * @type \Temporal\Api\Common\V1\Payloads $result
- * The serialized result of activity execution
- * @type string $identity
- * The identity of the worker/client
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the activity to complete
- *
- * Generated from protobuf field string activity_id = 4;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * Id of the activity to complete
- *
- * Generated from protobuf field string activity_id = 4;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * The serialized result of activity execution
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getResult()
- {
- return $this->result;
- }
-
- public function hasResult()
- {
- return isset($this->result);
- }
-
- public function clearResult()
- {
- unset($this->result);
- }
-
- /**
- * The serialized result of activity execution
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->result = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedByIdResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedByIdResponse.php
deleted file mode 100644
index e7a3c6a7b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedByIdResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskCompletedByIdResponse
- */
-class RespondActivityTaskCompletedByIdResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedRequest.php
deleted file mode 100644
index e530e1a01..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedRequest.php
+++ /dev/null
@@ -1,222 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskCompletedRequest
- */
-class RespondActivityTaskCompletedRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * The result of successfully executing the activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 2;
- */
- protected $result = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Generated from protobuf field string namespace = 4;
- */
- protected $namespace = '';
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- */
- protected $worker_version = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * The task token as received in `PollActivityTaskQueueResponse`
- * @type \Temporal\Api\Common\V1\Payloads $result
- * The result of successfully executing the activity
- * @type string $identity
- * The identity of the worker/client
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * The result of successfully executing the activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 2;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getResult()
- {
- return $this->result;
- }
-
- public function hasResult()
- {
- return isset($this->result);
- }
-
- public function clearResult()
- {
- unset($this->result);
- }
-
- /**
- * The result of successfully executing the activity
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads result = 2;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->result = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 4;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 4;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 5;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedResponse.php
deleted file mode 100644
index bfaf46a87..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskCompletedResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskCompletedResponse
- */
-class RespondActivityTaskCompletedResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedByIdRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedByIdRequest.php
deleted file mode 100644
index 6640605c4..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedByIdRequest.php
+++ /dev/null
@@ -1,289 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdRequest
- */
-class RespondActivityTaskFailedByIdRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- */
- protected $run_id = '';
- /**
- * Id of the activity to fail
- *
- * Generated from protobuf field string activity_id = 4;
- */
- protected $activity_id = '';
- /**
- * Detailed failure information
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- */
- protected $failure = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- */
- protected $identity = '';
- /**
- * Additional details to be stored as last activity heartbeat
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 7;
- */
- protected $last_heartbeat_details = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace of the workflow which scheduled this activity
- * @type string $workflow_id
- * Id of the workflow which scheduled this activity
- * @type string $run_id
- * Run Id of the workflow which scheduled this activity
- * @type string $activity_id
- * Id of the activity to fail
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * Detailed failure information
- * @type string $identity
- * The identity of the worker/client
- * @type \Temporal\Api\Common\V1\Payloads $last_heartbeat_details
- * Additional details to be stored as last activity heartbeat
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace of the workflow which scheduled this activity
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Run Id of the workflow which scheduled this activity
- *
- * Generated from protobuf field string run_id = 3;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
- /**
- * Id of the activity to fail
- *
- * Generated from protobuf field string activity_id = 4;
- * @return string
- */
- public function getActivityId()
- {
- return $this->activity_id;
- }
-
- /**
- * Id of the activity to fail
- *
- * Generated from protobuf field string activity_id = 4;
- * @param string $var
- * @return $this
- */
- public function setActivityId($var)
- {
- GPBUtil::checkString($var, True);
- $this->activity_id = $var;
-
- return $this;
- }
-
- /**
- * Detailed failure information
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Detailed failure information
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 5;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 6;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Additional details to be stored as last activity heartbeat
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 7;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getLastHeartbeatDetails()
- {
- return $this->last_heartbeat_details;
- }
-
- public function hasLastHeartbeatDetails()
- {
- return isset($this->last_heartbeat_details);
- }
-
- public function clearLastHeartbeatDetails()
- {
- unset($this->last_heartbeat_details);
- }
-
- /**
- * Additional details to be stored as last activity heartbeat
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 7;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setLastHeartbeatDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->last_heartbeat_details = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedByIdResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedByIdResponse.php
deleted file mode 100644
index 54f7179b1..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedByIdResponse.php
+++ /dev/null
@@ -1,69 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskFailedByIdResponse
- */
-class RespondActivityTaskFailedByIdResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Server validation failures could include
- * last_heartbeat_details payload is too large, request failure is too large
- *
- * Generated from protobuf field repeated .temporal.api.failure.v1.Failure failures = 1;
- */
- private $failures;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Failure\V1\Failure>|\Google\Protobuf\Internal\RepeatedField $failures
- * Server validation failures could include
- * last_heartbeat_details payload is too large, request failure is too large
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Server validation failures could include
- * last_heartbeat_details payload is too large, request failure is too large
- *
- * Generated from protobuf field repeated .temporal.api.failure.v1.Failure failures = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFailures()
- {
- return $this->failures;
- }
-
- /**
- * Server validation failures could include
- * last_heartbeat_details payload is too large, request failure is too large
- *
- * Generated from protobuf field repeated .temporal.api.failure.v1.Failure failures = 1;
- * @param array<\Temporal\Api\Failure\V1\Failure>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFailures($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Failure\V1\Failure::class);
- $this->failures = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedRequest.php
deleted file mode 100644
index 66a4a6b0e..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedRequest.php
+++ /dev/null
@@ -1,266 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskFailedRequest
- */
-class RespondActivityTaskFailedRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * Detailed failure information
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 2;
- */
- protected $failure = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * Generated from protobuf field string namespace = 4;
- */
- protected $namespace = '';
- /**
- * Additional details to be stored as last activity heartbeat
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 5;
- */
- protected $last_heartbeat_details = null;
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- */
- protected $worker_version = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * The task token as received in `PollActivityTaskQueueResponse`
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * Detailed failure information
- * @type string $identity
- * The identity of the worker/client
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\Payloads $last_heartbeat_details
- * Additional details to be stored as last activity heartbeat
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * The task token as received in `PollActivityTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * Detailed failure information
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 2;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Detailed failure information
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 2;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 4;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 4;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Additional details to be stored as last activity heartbeat
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getLastHeartbeatDetails()
- {
- return $this->last_heartbeat_details;
- }
-
- public function hasLastHeartbeatDetails()
- {
- return isset($this->last_heartbeat_details);
- }
-
- public function clearLastHeartbeatDetails()
- {
- unset($this->last_heartbeat_details);
- }
-
- /**
- * Additional details to be stored as last activity heartbeat
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_heartbeat_details = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setLastHeartbeatDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->last_heartbeat_details = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 6;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedResponse.php
deleted file mode 100644
index 6b3874bf9..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondActivityTaskFailedResponse.php
+++ /dev/null
@@ -1,69 +0,0 @@
-temporal.api.workflowservice.v1.RespondActivityTaskFailedResponse
- */
-class RespondActivityTaskFailedResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Server validation failures could include
- * last_heartbeat_details payload is too large, request failure is too large
- *
- * Generated from protobuf field repeated .temporal.api.failure.v1.Failure failures = 1;
- */
- private $failures;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Failure\V1\Failure>|\Google\Protobuf\Internal\RepeatedField $failures
- * Server validation failures could include
- * last_heartbeat_details payload is too large, request failure is too large
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Server validation failures could include
- * last_heartbeat_details payload is too large, request failure is too large
- *
- * Generated from protobuf field repeated .temporal.api.failure.v1.Failure failures = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getFailures()
- {
- return $this->failures;
- }
-
- /**
- * Server validation failures could include
- * last_heartbeat_details payload is too large, request failure is too large
- *
- * Generated from protobuf field repeated .temporal.api.failure.v1.Failure failures = 1;
- * @param array<\Temporal\Api\Failure\V1\Failure>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setFailures($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Failure\V1\Failure::class);
- $this->failures = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondQueryTaskCompletedRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondQueryTaskCompletedRequest.php
deleted file mode 100644
index 7bc586b5b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondQueryTaskCompletedRequest.php
+++ /dev/null
@@ -1,176 +0,0 @@
-temporal.api.workflowservice.v1.RespondQueryTaskCompletedRequest
- */
-class RespondQueryTaskCompletedRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * Generated from protobuf field .temporal.api.enums.v1.QueryResultType completed_type = 2;
- */
- protected $completed_type = 0;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_result = 3;
- */
- protected $query_result = null;
- /**
- * Generated from protobuf field string error_message = 4;
- */
- protected $error_message = '';
- /**
- * Generated from protobuf field string namespace = 6;
- */
- protected $namespace = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * @type int $completed_type
- * @type \Temporal\Api\Common\V1\Payloads $query_result
- * @type string $error_message
- * @type string $namespace
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.QueryResultType completed_type = 2;
- * @return int
- */
- public function getCompletedType()
- {
- return $this->completed_type;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.QueryResultType completed_type = 2;
- * @param int $var
- * @return $this
- */
- public function setCompletedType($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\QueryResultType::class);
- $this->completed_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_result = 3;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getQueryResult()
- {
- return $this->query_result;
- }
-
- public function hasQueryResult()
- {
- return isset($this->query_result);
- }
-
- public function clearQueryResult()
- {
- unset($this->query_result);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads query_result = 3;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setQueryResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->query_result = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string error_message = 4;
- * @return string
- */
- public function getErrorMessage()
- {
- return $this->error_message;
- }
-
- /**
- * Generated from protobuf field string error_message = 4;
- * @param string $var
- * @return $this
- */
- public function setErrorMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->error_message = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 6;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 6;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondQueryTaskCompletedResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondQueryTaskCompletedResponse.php
deleted file mode 100644
index 4e17c7052..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondQueryTaskCompletedResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.RespondQueryTaskCompletedResponse
- */
-class RespondQueryTaskCompletedResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskCompletedRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskCompletedRequest.php
deleted file mode 100644
index bc22222d6..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskCompletedRequest.php
+++ /dev/null
@@ -1,542 +0,0 @@
-temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedRequest
- */
-class RespondWorkflowTaskCompletedRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The task token as received in `PollWorkflowTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * A list of commands generated when driving the workflow code in response to the new task
- *
- * Generated from protobuf field repeated .temporal.api.command.v1.Command commands = 2;
- */
- private $commands;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- */
- protected $identity = '';
- /**
- * May be set by workers to indicate that the worker desires future tasks to be provided with
- * incremental history on a sticky queue.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.StickyExecutionAttributes sticky_attributes = 4;
- */
- protected $sticky_attributes = null;
- /**
- * If set, the worker wishes to immediately receive the next workflow task as a response to
- * this completion. This can save on polling round-trips.
- *
- * Generated from protobuf field bool return_new_workflow_task = 5;
- */
- protected $return_new_workflow_task = false;
- /**
- * Can be used to *force* creation of a new workflow task, even if no commands have resolved or
- * one would not otherwise have been generated. This is used when the worker knows it is doing
- * something useful, but cannot complete it within the workflow task timeout. Local activities
- * which run for longer than the task timeout being the prime example.
- *
- * Generated from protobuf field bool force_create_new_workflow_task = 6;
- */
- protected $force_create_new_workflow_task = false;
- /**
- * DEPRECATED since 1.21 - use `worker_version_stamp` instead.
- * Worker process' unique binary id
- *
- * Generated from protobuf field string binary_checksum = 7;
- */
- protected $binary_checksum = '';
- /**
- * Responses to the `queries` field in the task being responded to
- *
- * Generated from protobuf field map query_results = 8;
- */
- private $query_results;
- /**
- * Generated from protobuf field string namespace = 9;
- */
- protected $namespace = '';
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version_stamp = 10;
- */
- protected $worker_version_stamp = null;
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 11;
- */
- private $messages;
- /**
- * Data the SDK wishes to record for itself, but server need not interpret, and does not
- * directly impact workflow state.
- *
- * Generated from protobuf field .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 12;
- */
- protected $sdk_metadata = null;
- /**
- * Local usage data collected for metering
- *
- * Generated from protobuf field .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
- */
- protected $metering_metadata = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * The task token as received in `PollWorkflowTaskQueueResponse`
- * @type array<\Temporal\Api\Command\V1\Command>|\Google\Protobuf\Internal\RepeatedField $commands
- * A list of commands generated when driving the workflow code in response to the new task
- * @type string $identity
- * The identity of the worker/client
- * @type \Temporal\Api\Taskqueue\V1\StickyExecutionAttributes $sticky_attributes
- * May be set by workers to indicate that the worker desires future tasks to be provided with
- * incremental history on a sticky queue.
- * @type bool $return_new_workflow_task
- * If set, the worker wishes to immediately receive the next workflow task as a response to
- * this completion. This can save on polling round-trips.
- * @type bool $force_create_new_workflow_task
- * Can be used to *force* creation of a new workflow task, even if no commands have resolved or
- * one would not otherwise have been generated. This is used when the worker knows it is doing
- * something useful, but cannot complete it within the workflow task timeout. Local activities
- * which run for longer than the task timeout being the prime example.
- * @type string $binary_checksum
- * DEPRECATED since 1.21 - use `worker_version_stamp` instead.
- * Worker process' unique binary id
- * @type array|\Google\Protobuf\Internal\MapField $query_results
- * Responses to the `queries` field in the task being responded to
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version_stamp
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- * @type array<\Temporal\Api\Protocol\V1\Message>|\Google\Protobuf\Internal\RepeatedField $messages
- * Protocol messages piggybacking on a WFT as a transport
- * @type \Temporal\Api\Sdk\V1\WorkflowTaskCompletedMetadata $sdk_metadata
- * Data the SDK wishes to record for itself, but server need not interpret, and does not
- * directly impact workflow state.
- * @type \Temporal\Api\Common\V1\MeteringMetadata $metering_metadata
- * Local usage data collected for metering
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The task token as received in `PollWorkflowTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * The task token as received in `PollWorkflowTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * A list of commands generated when driving the workflow code in response to the new task
- *
- * Generated from protobuf field repeated .temporal.api.command.v1.Command commands = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getCommands()
- {
- return $this->commands;
- }
-
- /**
- * A list of commands generated when driving the workflow code in response to the new task
- *
- * Generated from protobuf field repeated .temporal.api.command.v1.Command commands = 2;
- * @param array<\Temporal\Api\Command\V1\Command>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setCommands($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Command\V1\Command::class);
- $this->commands = $arr;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 3;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * May be set by workers to indicate that the worker desires future tasks to be provided with
- * incremental history on a sticky queue.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.StickyExecutionAttributes sticky_attributes = 4;
- * @return \Temporal\Api\Taskqueue\V1\StickyExecutionAttributes|null
- */
- public function getStickyAttributes()
- {
- return $this->sticky_attributes;
- }
-
- public function hasStickyAttributes()
- {
- return isset($this->sticky_attributes);
- }
-
- public function clearStickyAttributes()
- {
- unset($this->sticky_attributes);
- }
-
- /**
- * May be set by workers to indicate that the worker desires future tasks to be provided with
- * incremental history on a sticky queue.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.StickyExecutionAttributes sticky_attributes = 4;
- * @param \Temporal\Api\Taskqueue\V1\StickyExecutionAttributes $var
- * @return $this
- */
- public function setStickyAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\StickyExecutionAttributes::class);
- $this->sticky_attributes = $var;
-
- return $this;
- }
-
- /**
- * If set, the worker wishes to immediately receive the next workflow task as a response to
- * this completion. This can save on polling round-trips.
- *
- * Generated from protobuf field bool return_new_workflow_task = 5;
- * @return bool
- */
- public function getReturnNewWorkflowTask()
- {
- return $this->return_new_workflow_task;
- }
-
- /**
- * If set, the worker wishes to immediately receive the next workflow task as a response to
- * this completion. This can save on polling round-trips.
- *
- * Generated from protobuf field bool return_new_workflow_task = 5;
- * @param bool $var
- * @return $this
- */
- public function setReturnNewWorkflowTask($var)
- {
- GPBUtil::checkBool($var);
- $this->return_new_workflow_task = $var;
-
- return $this;
- }
-
- /**
- * Can be used to *force* creation of a new workflow task, even if no commands have resolved or
- * one would not otherwise have been generated. This is used when the worker knows it is doing
- * something useful, but cannot complete it within the workflow task timeout. Local activities
- * which run for longer than the task timeout being the prime example.
- *
- * Generated from protobuf field bool force_create_new_workflow_task = 6;
- * @return bool
- */
- public function getForceCreateNewWorkflowTask()
- {
- return $this->force_create_new_workflow_task;
- }
-
- /**
- * Can be used to *force* creation of a new workflow task, even if no commands have resolved or
- * one would not otherwise have been generated. This is used when the worker knows it is doing
- * something useful, but cannot complete it within the workflow task timeout. Local activities
- * which run for longer than the task timeout being the prime example.
- *
- * Generated from protobuf field bool force_create_new_workflow_task = 6;
- * @param bool $var
- * @return $this
- */
- public function setForceCreateNewWorkflowTask($var)
- {
- GPBUtil::checkBool($var);
- $this->force_create_new_workflow_task = $var;
-
- return $this;
- }
-
- /**
- * DEPRECATED since 1.21 - use `worker_version_stamp` instead.
- * Worker process' unique binary id
- *
- * Generated from protobuf field string binary_checksum = 7;
- * @return string
- */
- public function getBinaryChecksum()
- {
- return $this->binary_checksum;
- }
-
- /**
- * DEPRECATED since 1.21 - use `worker_version_stamp` instead.
- * Worker process' unique binary id
- *
- * Generated from protobuf field string binary_checksum = 7;
- * @param string $var
- * @return $this
- */
- public function setBinaryChecksum($var)
- {
- GPBUtil::checkString($var, True);
- $this->binary_checksum = $var;
-
- return $this;
- }
-
- /**
- * Responses to the `queries` field in the task being responded to
- *
- * Generated from protobuf field map query_results = 8;
- * @return \Google\Protobuf\Internal\MapField
- */
- public function getQueryResults()
- {
- return $this->query_results;
- }
-
- /**
- * Responses to the `queries` field in the task being responded to
- *
- * Generated from protobuf field map query_results = 8;
- * @param array|\Google\Protobuf\Internal\MapField $var
- * @return $this
- */
- public function setQueryResults($var)
- {
- $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Query\V1\WorkflowQueryResult::class);
- $this->query_results = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 9;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 9;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version_stamp = 10;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersionStamp()
- {
- return $this->worker_version_stamp;
- }
-
- public function hasWorkerVersionStamp()
- {
- return isset($this->worker_version_stamp);
- }
-
- public function clearWorkerVersionStamp()
- {
- unset($this->worker_version_stamp);
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version_stamp = 10;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersionStamp($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version_stamp = $var;
-
- return $this;
- }
-
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 11;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMessages()
- {
- return $this->messages;
- }
-
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 11;
- * @param array<\Temporal\Api\Protocol\V1\Message>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMessages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Protocol\V1\Message::class);
- $this->messages = $arr;
-
- return $this;
- }
-
- /**
- * Data the SDK wishes to record for itself, but server need not interpret, and does not
- * directly impact workflow state.
- *
- * Generated from protobuf field .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 12;
- * @return \Temporal\Api\Sdk\V1\WorkflowTaskCompletedMetadata|null
- */
- public function getSdkMetadata()
- {
- return $this->sdk_metadata;
- }
-
- public function hasSdkMetadata()
- {
- return isset($this->sdk_metadata);
- }
-
- public function clearSdkMetadata()
- {
- unset($this->sdk_metadata);
- }
-
- /**
- * Data the SDK wishes to record for itself, but server need not interpret, and does not
- * directly impact workflow state.
- *
- * Generated from protobuf field .temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 12;
- * @param \Temporal\Api\Sdk\V1\WorkflowTaskCompletedMetadata $var
- * @return $this
- */
- public function setSdkMetadata($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Sdk\V1\WorkflowTaskCompletedMetadata::class);
- $this->sdk_metadata = $var;
-
- return $this;
- }
-
- /**
- * Local usage data collected for metering
- *
- * Generated from protobuf field .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
- * @return \Temporal\Api\Common\V1\MeteringMetadata|null
- */
- public function getMeteringMetadata()
- {
- return $this->metering_metadata;
- }
-
- public function hasMeteringMetadata()
- {
- return isset($this->metering_metadata);
- }
-
- public function clearMeteringMetadata()
- {
- unset($this->metering_metadata);
- }
-
- /**
- * Local usage data collected for metering
- *
- * Generated from protobuf field .temporal.api.common.v1.MeteringMetadata metering_metadata = 13;
- * @param \Temporal\Api\Common\V1\MeteringMetadata $var
- * @return $this
- */
- public function setMeteringMetadata($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\MeteringMetadata::class);
- $this->metering_metadata = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskCompletedResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskCompletedResponse.php
deleted file mode 100644
index 5421419af..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskCompletedResponse.php
+++ /dev/null
@@ -1,136 +0,0 @@
-temporal.api.workflowservice.v1.RespondWorkflowTaskCompletedResponse
- */
-class RespondWorkflowTaskCompletedResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task`
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflow_task = 1;
- */
- protected $workflow_task = null;
- /**
- * See `ScheduleActivityTaskCommandAttributes::request_start`
- *
- * Generated from protobuf field repeated .temporal.api.workflowservice.v1.PollActivityTaskQueueResponse activity_tasks = 2;
- */
- private $activity_tasks;
- /**
- * Generated from protobuf field int64 reset_history_event_id = 3;
- */
- protected $reset_history_event_id = 0;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse $workflow_task
- * See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task`
- * @type array<\Temporal\Api\Workflowservice\V1\PollActivityTaskQueueResponse>|\Google\Protobuf\Internal\RepeatedField $activity_tasks
- * See `ScheduleActivityTaskCommandAttributes::request_start`
- * @type int|string $reset_history_event_id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task`
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflow_task = 1;
- * @return \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse|null
- */
- public function getWorkflowTask()
- {
- return $this->workflow_task;
- }
-
- public function hasWorkflowTask()
- {
- return isset($this->workflow_task);
- }
-
- public function clearWorkflowTask()
- {
- unset($this->workflow_task);
- }
-
- /**
- * See `RespondWorkflowTaskCompletedResponse::return_new_workflow_task`
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflow_task = 1;
- * @param \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse $var
- * @return $this
- */
- public function setWorkflowTask($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse::class);
- $this->workflow_task = $var;
-
- return $this;
- }
-
- /**
- * See `ScheduleActivityTaskCommandAttributes::request_start`
- *
- * Generated from protobuf field repeated .temporal.api.workflowservice.v1.PollActivityTaskQueueResponse activity_tasks = 2;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getActivityTasks()
- {
- return $this->activity_tasks;
- }
-
- /**
- * See `ScheduleActivityTaskCommandAttributes::request_start`
- *
- * Generated from protobuf field repeated .temporal.api.workflowservice.v1.PollActivityTaskQueueResponse activity_tasks = 2;
- * @param array<\Temporal\Api\Workflowservice\V1\PollActivityTaskQueueResponse>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setActivityTasks($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflowservice\V1\PollActivityTaskQueueResponse::class);
- $this->activity_tasks = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 reset_history_event_id = 3;
- * @return int|string
- */
- public function getResetHistoryEventId()
- {
- return $this->reset_history_event_id;
- }
-
- /**
- * Generated from protobuf field int64 reset_history_event_id = 3;
- * @param int|string $var
- * @return $this
- */
- public function setResetHistoryEventId($var)
- {
- GPBUtil::checkInt64($var);
- $this->reset_history_event_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskFailedRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskFailedRequest.php
deleted file mode 100644
index 96f5bb453..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskFailedRequest.php
+++ /dev/null
@@ -1,332 +0,0 @@
-temporal.api.workflowservice.v1.RespondWorkflowTaskFailedRequest
- */
-class RespondWorkflowTaskFailedRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The task token as received in `PollWorkflowTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- */
- protected $task_token = '';
- /**
- * Why did the task fail? It's important to note that many of the variants in this enum cannot
- * apply to worker responses. See the type's doc for more.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 2;
- */
- protected $cause = 0;
- /**
- * Failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 3;
- */
- protected $failure = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 4;
- */
- protected $identity = '';
- /**
- * DEPRECATED since 1.21 - use `worker_version_stamp` instead.
- * Worker process' unique binary id
- *
- * Generated from protobuf field string binary_checksum = 5;
- */
- protected $binary_checksum = '';
- /**
- * Generated from protobuf field string namespace = 6;
- */
- protected $namespace = '';
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 7;
- */
- private $messages;
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 8;
- */
- protected $worker_version = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $task_token
- * The task token as received in `PollWorkflowTaskQueueResponse`
- * @type int $cause
- * Why did the task fail? It's important to note that many of the variants in this enum cannot
- * apply to worker responses. See the type's doc for more.
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * Failure details
- * @type string $identity
- * The identity of the worker/client
- * @type string $binary_checksum
- * DEPRECATED since 1.21 - use `worker_version_stamp` instead.
- * Worker process' unique binary id
- * @type string $namespace
- * @type array<\Temporal\Api\Protocol\V1\Message>|\Google\Protobuf\Internal\RepeatedField $messages
- * Protocol messages piggybacking on a WFT as a transport
- * @type \Temporal\Api\Common\V1\WorkerVersionStamp $worker_version
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The task token as received in `PollWorkflowTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @return string
- */
- public function getTaskToken()
- {
- return $this->task_token;
- }
-
- /**
- * The task token as received in `PollWorkflowTaskQueueResponse`
- *
- * Generated from protobuf field bytes task_token = 1;
- * @param string $var
- * @return $this
- */
- public function setTaskToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->task_token = $var;
-
- return $this;
- }
-
- /**
- * Why did the task fail? It's important to note that many of the variants in this enum cannot
- * apply to worker responses. See the type's doc for more.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 2;
- * @return int
- */
- public function getCause()
- {
- return $this->cause;
- }
-
- /**
- * Why did the task fail? It's important to note that many of the variants in this enum cannot
- * apply to worker responses. See the type's doc for more.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowTaskFailedCause cause = 2;
- * @param int $var
- * @return $this
- */
- public function setCause($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowTaskFailedCause::class);
- $this->cause = $var;
-
- return $this;
- }
-
- /**
- * Failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 3;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * Failure details
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 3;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 4;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 4;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * DEPRECATED since 1.21 - use `worker_version_stamp` instead.
- * Worker process' unique binary id
- *
- * Generated from protobuf field string binary_checksum = 5;
- * @return string
- */
- public function getBinaryChecksum()
- {
- return $this->binary_checksum;
- }
-
- /**
- * DEPRECATED since 1.21 - use `worker_version_stamp` instead.
- * Worker process' unique binary id
- *
- * Generated from protobuf field string binary_checksum = 5;
- * @param string $var
- * @return $this
- */
- public function setBinaryChecksum($var)
- {
- GPBUtil::checkString($var, True);
- $this->binary_checksum = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string namespace = 6;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 6;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 7;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMessages()
- {
- return $this->messages;
- }
-
- /**
- * Protocol messages piggybacking on a WFT as a transport
- *
- * Generated from protobuf field repeated .temporal.api.protocol.v1.Message messages = 7;
- * @param array<\Temporal\Api\Protocol\V1\Message>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMessages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Protocol\V1\Message::class);
- $this->messages = $arr;
-
- return $this;
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 8;
- * @return \Temporal\Api\Common\V1\WorkerVersionStamp|null
- */
- public function getWorkerVersion()
- {
- return $this->worker_version;
- }
-
- public function hasWorkerVersion()
- {
- return isset($this->worker_version);
- }
-
- public function clearWorkerVersion()
- {
- unset($this->worker_version);
- }
-
- /**
- * Version info of the worker who processed this task. This message's `build_id` field should
- * always be set by SDKs. Workers opting into versioning will also set the `use_versioning`
- * field to true. See message docstrings for more.
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkerVersionStamp worker_version = 8;
- * @param \Temporal\Api\Common\V1\WorkerVersionStamp $var
- * @return $this
- */
- public function setWorkerVersion($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkerVersionStamp::class);
- $this->worker_version = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskFailedResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskFailedResponse.php
deleted file mode 100644
index 9709bd4d1..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/RespondWorkflowTaskFailedResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.RespondWorkflowTaskFailedResponse
- */
-class RespondWorkflowTaskFailedResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ScanWorkflowExecutionsRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/ScanWorkflowExecutionsRequest.php
deleted file mode 100644
index 69ac191a4..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ScanWorkflowExecutionsRequest.php
+++ /dev/null
@@ -1,139 +0,0 @@
-temporal.api.workflowservice.v1.ScanWorkflowExecutionsRequest
- */
-class ScanWorkflowExecutionsRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field int32 page_size = 2;
- */
- protected $page_size = 0;
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- */
- protected $next_page_token = '';
- /**
- * Generated from protobuf field string query = 4;
- */
- protected $query = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type int $page_size
- * @type string $next_page_token
- * @type string $query
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int32 page_size = 2;
- * @return int
- */
- public function getPageSize()
- {
- return $this->page_size;
- }
-
- /**
- * Generated from protobuf field int32 page_size = 2;
- * @param int $var
- * @return $this
- */
- public function setPageSize($var)
- {
- GPBUtil::checkInt32($var);
- $this->page_size = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 3;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string query = 4;
- * @return string
- */
- public function getQuery()
- {
- return $this->query;
- }
-
- /**
- * Generated from protobuf field string query = 4;
- * @param string $var
- * @return $this
- */
- public function setQuery($var)
- {
- GPBUtil::checkString($var, True);
- $this->query = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/ScanWorkflowExecutionsResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/ScanWorkflowExecutionsResponse.php
deleted file mode 100644
index d4b40897b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/ScanWorkflowExecutionsResponse.php
+++ /dev/null
@@ -1,85 +0,0 @@
-temporal.api.workflowservice.v1.ScanWorkflowExecutionsResponse
- */
-class ScanWorkflowExecutionsResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- */
- private $executions;
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- */
- protected $next_page_token = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $executions
- * @type string $next_page_token
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExecutions()
- {
- return $this->executions;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.api.workflow.v1.WorkflowExecutionInfo executions = 1;
- * @param array<\Temporal\Api\Workflow\V1\WorkflowExecutionInfo>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExecutions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Workflow\V1\WorkflowExecutionInfo::class);
- $this->executions = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @return string
- */
- public function getNextPageToken()
- {
- return $this->next_page_token;
- }
-
- /**
- * Generated from protobuf field bytes next_page_token = 2;
- * @param string $var
- * @return $this
- */
- public function setNextPageToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->next_page_token = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/SignalWithStartWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/SignalWithStartWorkflowExecutionRequest.php
deleted file mode 100644
index 54467f050..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/SignalWithStartWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,836 +0,0 @@
-temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionRequest
- */
-class SignalWithStartWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * The task queue to start this workflow on, if it will be started
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- */
- protected $task_queue = null;
- /**
- * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- */
- protected $input = null;
- /**
- * Total workflow execution timeout including retries and continue as new
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_timeout = null;
- /**
- * Timeout of a single workflow run
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Timeout of a single workflow task
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_task_timeout = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 9;
- */
- protected $identity = '';
- /**
- * Used to de-dupe signal w/ start requests
- *
- * Generated from protobuf field string request_id = 10;
- */
- protected $request_id = '';
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- */
- protected $workflow_id_reuse_policy = 0;
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal_name = 12;
- */
- protected $signal_name = '';
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads signal_input = 13;
- */
- protected $signal_input = null;
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 14;
- */
- protected $control = '';
- /**
- * Retry policy for the workflow Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 15;
- */
- protected $retry_policy = null;
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 16;
- */
- protected $cron_schedule = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 17;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 18;
- */
- protected $search_attributes = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 19;
- */
- protected $header = null;
- /**
- * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
- * Note that the signal will be delivered with the first workflow task. If the workflow gets
- * another SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false
- * or not set, a workflow task will be dispatched immediately and the rest of the delay period
- * will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution
- * will not unblock the workflow.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_start_delay = null;
- /**
- * Indicates that a new workflow task should not be generated when this signal is received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 21;
- */
- protected $skip_generate_workflow_task = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $workflow_id
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * The task queue to start this workflow on, if it will be started
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
- * @type \Google\Protobuf\Duration $workflow_execution_timeout
- * Total workflow execution timeout including retries and continue as new
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * Timeout of a single workflow run
- * @type \Google\Protobuf\Duration $workflow_task_timeout
- * Timeout of a single workflow task
- * @type string $identity
- * The identity of the worker/client
- * @type string $request_id
- * Used to de-dupe signal w/ start requests
- * @type int $workflow_id_reuse_policy
- * @type string $signal_name
- * The workflow author-defined name of the signal to send to the workflow
- * @type \Temporal\Api\Common\V1\Payloads $signal_input
- * Serialized value(s) to provide with the signal
- * @type string $control
- * Deprecated
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * Retry policy for the workflow Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- * @type string $cron_schedule
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type \Temporal\Api\Common\V1\Header $header
- * @type \Google\Protobuf\Duration $workflow_start_delay
- * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
- * Note that the signal will be delivered with the first workflow task. If the workflow gets
- * another SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false
- * or not set, a workflow task will be dispatched immediately and the rest of the delay period
- * will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution
- * will not unblock the workflow.
- * @type bool $skip_generate_workflow_task
- * Indicates that a new workflow task should not be generated when this signal is received.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * The task queue to start this workflow on, if it will be started
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * The task queue to start this workflow on, if it will be started
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionTimeout()
- {
- return $this->workflow_execution_timeout;
- }
-
- public function hasWorkflowExecutionTimeout()
- {
- return isset($this->workflow_execution_timeout);
- }
-
- public function clearWorkflowExecutionTimeout()
- {
- unset($this->workflow_execution_timeout);
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow run
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Timeout of a single workflow run
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow task
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowTaskTimeout()
- {
- return $this->workflow_task_timeout;
- }
-
- public function hasWorkflowTaskTimeout()
- {
- return isset($this->workflow_task_timeout);
- }
-
- public function clearWorkflowTaskTimeout()
- {
- unset($this->workflow_task_timeout);
- }
-
- /**
- * Timeout of a single workflow task
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 9;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 9;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Used to de-dupe signal w/ start requests
- *
- * Generated from protobuf field string request_id = 10;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Used to de-dupe signal w/ start requests
- *
- * Generated from protobuf field string request_id = 10;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- * @return int
- */
- public function getWorkflowIdReusePolicy()
- {
- return $this->workflow_id_reuse_policy;
- }
-
- /**
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- * @param int $var
- * @return $this
- */
- public function setWorkflowIdReusePolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowIdReusePolicy::class);
- $this->workflow_id_reuse_policy = $var;
-
- return $this;
- }
-
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal_name = 12;
- * @return string
- */
- public function getSignalName()
- {
- return $this->signal_name;
- }
-
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal_name = 12;
- * @param string $var
- * @return $this
- */
- public function setSignalName($var)
- {
- GPBUtil::checkString($var, True);
- $this->signal_name = $var;
-
- return $this;
- }
-
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads signal_input = 13;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getSignalInput()
- {
- return $this->signal_input;
- }
-
- public function hasSignalInput()
- {
- return isset($this->signal_input);
- }
-
- public function clearSignalInput()
- {
- unset($this->signal_input);
- }
-
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads signal_input = 13;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setSignalInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->signal_input = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 14;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 14;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * Retry policy for the workflow Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 15;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * Retry policy for the workflow Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 15;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 16;
- * @return string
- */
- public function getCronSchedule()
- {
- return $this->cron_schedule;
- }
-
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 16;
- * @param string $var
- * @return $this
- */
- public function setCronSchedule($var)
- {
- GPBUtil::checkString($var, True);
- $this->cron_schedule = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 17;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 17;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 18;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 18;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 19;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 19;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
- * Note that the signal will be delivered with the first workflow task. If the workflow gets
- * another SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false
- * or not set, a workflow task will be dispatched immediately and the rest of the delay period
- * will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution
- * will not unblock the workflow.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowStartDelay()
- {
- return $this->workflow_start_delay;
- }
-
- public function hasWorkflowStartDelay()
- {
- return isset($this->workflow_start_delay);
- }
-
- public function clearWorkflowStartDelay()
- {
- unset($this->workflow_start_delay);
- }
-
- /**
- * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
- * Note that the signal will be delivered with the first workflow task. If the workflow gets
- * another SignalWithStartWorkflow before the delay and `skip_generate_workflow_task` is false
- * or not set, a workflow task will be dispatched immediately and the rest of the delay period
- * will be ignored, even if that request also had a delay. Signal via SignalWorkflowExecution
- * will not unblock the workflow.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowStartDelay($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_start_delay = $var;
-
- return $this;
- }
-
- /**
- * Indicates that a new workflow task should not be generated when this signal is received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 21;
- * @return bool
- */
- public function getSkipGenerateWorkflowTask()
- {
- return $this->skip_generate_workflow_task;
- }
-
- /**
- * Indicates that a new workflow task should not be generated when this signal is received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 21;
- * @param bool $var
- * @return $this
- */
- public function setSkipGenerateWorkflowTask($var)
- {
- GPBUtil::checkBool($var);
- $this->skip_generate_workflow_task = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/SignalWithStartWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/SignalWithStartWorkflowExecutionResponse.php
deleted file mode 100644
index 60cb3d200..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/SignalWithStartWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.api.workflowservice.v1.SignalWithStartWorkflowExecutionResponse
- */
-class SignalWithStartWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string run_id = 1;
- */
- protected $run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $run_id
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string run_id = 1;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Generated from protobuf field string run_id = 1;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/SignalWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/SignalWorkflowExecutionRequest.php
deleted file mode 100644
index 45f23fb5b..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/SignalWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,357 +0,0 @@
-temporal.api.workflowservice.v1.SignalWorkflowExecutionRequest
- */
-class SignalWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal_name = 3;
- */
- protected $signal_name = '';
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- */
- protected $input = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 5;
- */
- protected $identity = '';
- /**
- * Used to de-dupe sent signals
- *
- * Generated from protobuf field string request_id = 6;
- */
- protected $request_id = '';
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 7;
- */
- protected $control = '';
- /**
- * Headers that are passed with the signal to the processing workflow.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 8;
- */
- protected $header = null;
- /**
- * Indicates that a new workflow task should not be generated when this signal is received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 9;
- */
- protected $skip_generate_workflow_task = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type string $signal_name
- * The workflow author-defined name of the signal to send to the workflow
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Serialized value(s) to provide with the signal
- * @type string $identity
- * The identity of the worker/client
- * @type string $request_id
- * Used to de-dupe sent signals
- * @type string $control
- * Deprecated
- * @type \Temporal\Api\Common\V1\Header $header
- * Headers that are passed with the signal to the processing workflow.
- * These can include things like auth or tracing tokens.
- * @type bool $skip_generate_workflow_task
- * Indicates that a new workflow task should not be generated when this signal is received.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal_name = 3;
- * @return string
- */
- public function getSignalName()
- {
- return $this->signal_name;
- }
-
- /**
- * The workflow author-defined name of the signal to send to the workflow
- *
- * Generated from protobuf field string signal_name = 3;
- * @param string $var
- * @return $this
- */
- public function setSignalName($var)
- {
- GPBUtil::checkString($var, True);
- $this->signal_name = $var;
-
- return $this;
- }
-
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Serialized value(s) to provide with the signal
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 4;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 5;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 5;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * Used to de-dupe sent signals
- *
- * Generated from protobuf field string request_id = 6;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * Used to de-dupe sent signals
- *
- * Generated from protobuf field string request_id = 6;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 7;
- * @return string
- */
- public function getControl()
- {
- return $this->control;
- }
-
- /**
- * Deprecated
- *
- * Generated from protobuf field string control = 7;
- * @param string $var
- * @return $this
- */
- public function setControl($var)
- {
- GPBUtil::checkString($var, True);
- $this->control = $var;
-
- return $this;
- }
-
- /**
- * Headers that are passed with the signal to the processing workflow.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 8;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Headers that are passed with the signal to the processing workflow.
- * These can include things like auth or tracing tokens.
- *
- * Generated from protobuf field .temporal.api.common.v1.Header header = 8;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Indicates that a new workflow task should not be generated when this signal is received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 9;
- * @return bool
- */
- public function getSkipGenerateWorkflowTask()
- {
- return $this->skip_generate_workflow_task;
- }
-
- /**
- * Indicates that a new workflow task should not be generated when this signal is received.
- *
- * Generated from protobuf field bool skip_generate_workflow_task = 9;
- * @param bool $var
- * @return $this
- */
- public function setSkipGenerateWorkflowTask($var)
- {
- GPBUtil::checkBool($var);
- $this->skip_generate_workflow_task = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/SignalWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/SignalWorkflowExecutionResponse.php
deleted file mode 100644
index 276a77f90..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/SignalWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.SignalWorkflowExecutionResponse
- */
-class SignalWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/StartBatchOperationRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/StartBatchOperationRequest.php
deleted file mode 100644
index 7c205b0c9..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/StartBatchOperationRequest.php
+++ /dev/null
@@ -1,358 +0,0 @@
-temporal.api.workflowservice.v1.StartBatchOperationRequest
- */
-class StartBatchOperationRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Visibility query defines the the group of workflow to apply the batch operation
- * This field and Executions are mutually exclusive
- *
- * Generated from protobuf field string visibility_query = 2;
- */
- protected $visibility_query = '';
- /**
- * Job ID defines the unique ID for the batch job
- *
- * Generated from protobuf field string job_id = 3;
- */
- protected $job_id = '';
- /**
- * Reason to perform the batch operation
- *
- * Generated from protobuf field string reason = 4;
- */
- protected $reason = '';
- /**
- * Executions to apply the batch operation
- * This field and VisibilityQuery are mutually exclusive
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.WorkflowExecution executions = 5;
- */
- private $executions;
- protected $operation;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace that contains the batch operation
- * @type string $visibility_query
- * Visibility query defines the the group of workflow to apply the batch operation
- * This field and Executions are mutually exclusive
- * @type string $job_id
- * Job ID defines the unique ID for the batch job
- * @type string $reason
- * Reason to perform the batch operation
- * @type array<\Temporal\Api\Common\V1\WorkflowExecution>|\Google\Protobuf\Internal\RepeatedField $executions
- * Executions to apply the batch operation
- * This field and VisibilityQuery are mutually exclusive
- * @type \Temporal\Api\Batch\V1\BatchOperationTermination $termination_operation
- * @type \Temporal\Api\Batch\V1\BatchOperationSignal $signal_operation
- * @type \Temporal\Api\Batch\V1\BatchOperationCancellation $cancellation_operation
- * @type \Temporal\Api\Batch\V1\BatchOperationDeletion $deletion_operation
- * @type \Temporal\Api\Batch\V1\BatchOperationReset $reset_operation
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Visibility query defines the the group of workflow to apply the batch operation
- * This field and Executions are mutually exclusive
- *
- * Generated from protobuf field string visibility_query = 2;
- * @return string
- */
- public function getVisibilityQuery()
- {
- return $this->visibility_query;
- }
-
- /**
- * Visibility query defines the the group of workflow to apply the batch operation
- * This field and Executions are mutually exclusive
- *
- * Generated from protobuf field string visibility_query = 2;
- * @param string $var
- * @return $this
- */
- public function setVisibilityQuery($var)
- {
- GPBUtil::checkString($var, True);
- $this->visibility_query = $var;
-
- return $this;
- }
-
- /**
- * Job ID defines the unique ID for the batch job
- *
- * Generated from protobuf field string job_id = 3;
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Job ID defines the unique ID for the batch job
- *
- * Generated from protobuf field string job_id = 3;
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
- /**
- * Reason to perform the batch operation
- *
- * Generated from protobuf field string reason = 4;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Reason to perform the batch operation
- *
- * Generated from protobuf field string reason = 4;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
- /**
- * Executions to apply the batch operation
- * This field and VisibilityQuery are mutually exclusive
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.WorkflowExecution executions = 5;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getExecutions()
- {
- return $this->executions;
- }
-
- /**
- * Executions to apply the batch operation
- * This field and VisibilityQuery are mutually exclusive
- *
- * Generated from protobuf field repeated .temporal.api.common.v1.WorkflowExecution executions = 5;
- * @param array<\Temporal\Api\Common\V1\WorkflowExecution>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setExecutions($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->executions = $arr;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationTermination termination_operation = 10;
- * @return \Temporal\Api\Batch\V1\BatchOperationTermination|null
- */
- public function getTerminationOperation()
- {
- return $this->readOneof(10);
- }
-
- public function hasTerminationOperation()
- {
- return $this->hasOneof(10);
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationTermination termination_operation = 10;
- * @param \Temporal\Api\Batch\V1\BatchOperationTermination $var
- * @return $this
- */
- public function setTerminationOperation($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Batch\V1\BatchOperationTermination::class);
- $this->writeOneof(10, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationSignal signal_operation = 11;
- * @return \Temporal\Api\Batch\V1\BatchOperationSignal|null
- */
- public function getSignalOperation()
- {
- return $this->readOneof(11);
- }
-
- public function hasSignalOperation()
- {
- return $this->hasOneof(11);
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationSignal signal_operation = 11;
- * @param \Temporal\Api\Batch\V1\BatchOperationSignal $var
- * @return $this
- */
- public function setSignalOperation($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Batch\V1\BatchOperationSignal::class);
- $this->writeOneof(11, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationCancellation cancellation_operation = 12;
- * @return \Temporal\Api\Batch\V1\BatchOperationCancellation|null
- */
- public function getCancellationOperation()
- {
- return $this->readOneof(12);
- }
-
- public function hasCancellationOperation()
- {
- return $this->hasOneof(12);
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationCancellation cancellation_operation = 12;
- * @param \Temporal\Api\Batch\V1\BatchOperationCancellation $var
- * @return $this
- */
- public function setCancellationOperation($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Batch\V1\BatchOperationCancellation::class);
- $this->writeOneof(12, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationDeletion deletion_operation = 13;
- * @return \Temporal\Api\Batch\V1\BatchOperationDeletion|null
- */
- public function getDeletionOperation()
- {
- return $this->readOneof(13);
- }
-
- public function hasDeletionOperation()
- {
- return $this->hasOneof(13);
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationDeletion deletion_operation = 13;
- * @param \Temporal\Api\Batch\V1\BatchOperationDeletion $var
- * @return $this
- */
- public function setDeletionOperation($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Batch\V1\BatchOperationDeletion::class);
- $this->writeOneof(13, $var);
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationReset reset_operation = 14;
- * @return \Temporal\Api\Batch\V1\BatchOperationReset|null
- */
- public function getResetOperation()
- {
- return $this->readOneof(14);
- }
-
- public function hasResetOperation()
- {
- return $this->hasOneof(14);
- }
-
- /**
- * Generated from protobuf field .temporal.api.batch.v1.BatchOperationReset reset_operation = 14;
- * @param \Temporal\Api\Batch\V1\BatchOperationReset $var
- * @return $this
- */
- public function setResetOperation($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Batch\V1\BatchOperationReset::class);
- $this->writeOneof(14, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getOperation()
- {
- return $this->whichOneof("operation");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/StartBatchOperationResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/StartBatchOperationResponse.php
deleted file mode 100644
index 118634183..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/StartBatchOperationResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.StartBatchOperationResponse
- */
-class StartBatchOperationResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/StartWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/StartWorkflowExecutionRequest.php
deleted file mode 100644
index f4bfd7fc0..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/StartWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,817 +0,0 @@
-temporal.api.workflowservice.v1.StartWorkflowExecutionRequest
- */
-class StartWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field string workflow_id = 2;
- */
- protected $workflow_id = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- */
- protected $workflow_type = null;
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- */
- protected $task_queue = null;
- /**
- * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- */
- protected $input = null;
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_execution_timeout = null;
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_run_timeout = null;
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_task_timeout = null;
- /**
- * The identity of the client who initiated this request
- *
- * Generated from protobuf field string identity = 9;
- */
- protected $identity = '';
- /**
- * A unique identifier for this start request. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 10;
- */
- protected $request_id = '';
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- */
- protected $workflow_id_reuse_policy = 0;
- /**
- * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- */
- protected $retry_policy = null;
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 13;
- */
- protected $cron_schedule = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 14;
- */
- protected $memo = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 15;
- */
- protected $search_attributes = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 16;
- */
- protected $header = null;
- /**
- * Request to get the first workflow task inline in the response bypassing matching service and worker polling.
- * If set to `true` the caller is expected to have a worker available and capable of processing the task.
- * The returned task will be marked as started and is expected to be completed by the specified
- * `workflow_task_timeout`.
- *
- * Generated from protobuf field bool request_eager_execution = 17;
- */
- protected $request_eager_execution = false;
- /**
- * These values will be available as ContinuedFailure and LastCompletionResult in the
- * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
- * server itself (for the schedules feature) and are not intended to be exposed in
- * StartWorkflowExecution.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure continued_failure = 18;
- */
- protected $continued_failure = null;
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 19;
- */
- protected $last_completion_result = null;
- /**
- * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
- * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
- * of the delay will be ignored.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
- */
- protected $workflow_start_delay = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $workflow_id
- * @type \Temporal\Api\Common\V1\WorkflowType $workflow_type
- * @type \Temporal\Api\Taskqueue\V1\TaskQueue $task_queue
- * @type \Temporal\Api\Common\V1\Payloads $input
- * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
- * @type \Google\Protobuf\Duration $workflow_execution_timeout
- * Total workflow execution timeout including retries and continue as new.
- * @type \Google\Protobuf\Duration $workflow_run_timeout
- * Timeout of a single workflow run.
- * @type \Google\Protobuf\Duration $workflow_task_timeout
- * Timeout of a single workflow task.
- * @type string $identity
- * The identity of the client who initiated this request
- * @type string $request_id
- * A unique identifier for this start request. Typically UUIDv4.
- * @type int $workflow_id_reuse_policy
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- * @type \Temporal\Api\Common\V1\RetryPolicy $retry_policy
- * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
- * @type string $cron_schedule
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- * @type \Temporal\Api\Common\V1\Memo $memo
- * @type \Temporal\Api\Common\V1\SearchAttributes $search_attributes
- * @type \Temporal\Api\Common\V1\Header $header
- * @type bool $request_eager_execution
- * Request to get the first workflow task inline in the response bypassing matching service and worker polling.
- * If set to `true` the caller is expected to have a worker available and capable of processing the task.
- * The returned task will be marked as started and is expected to be completed by the specified
- * `workflow_task_timeout`.
- * @type \Temporal\Api\Failure\V1\Failure $continued_failure
- * These values will be available as ContinuedFailure and LastCompletionResult in the
- * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
- * server itself (for the schedules feature) and are not intended to be exposed in
- * StartWorkflowExecution.
- * @type \Temporal\Api\Common\V1\Payloads $last_completion_result
- * @type \Google\Protobuf\Duration $workflow_start_delay
- * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
- * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
- * of the delay will be ignored.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @return string
- */
- public function getWorkflowId()
- {
- return $this->workflow_id;
- }
-
- /**
- * Generated from protobuf field string workflow_id = 2;
- * @param string $var
- * @return $this
- */
- public function setWorkflowId($var)
- {
- GPBUtil::checkString($var, True);
- $this->workflow_id = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @return \Temporal\Api\Common\V1\WorkflowType|null
- */
- public function getWorkflowType()
- {
- return $this->workflow_type;
- }
-
- public function hasWorkflowType()
- {
- return isset($this->workflow_type);
- }
-
- public function clearWorkflowType()
- {
- unset($this->workflow_type);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowType workflow_type = 3;
- * @param \Temporal\Api\Common\V1\WorkflowType $var
- * @return $this
- */
- public function setWorkflowType($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowType::class);
- $this->workflow_type = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @return \Temporal\Api\Taskqueue\V1\TaskQueue|null
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- public function hasTaskQueue()
- {
- return isset($this->task_queue);
- }
-
- public function clearTaskQueue()
- {
- unset($this->task_queue);
- }
-
- /**
- * Generated from protobuf field .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
- * @param \Temporal\Api\Taskqueue\V1\TaskQueue $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\TaskQueue::class);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getInput()
- {
- return $this->input;
- }
-
- public function hasInput()
- {
- return isset($this->input);
- }
-
- public function clearInput()
- {
- unset($this->input);
- }
-
- /**
- * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads input = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setInput($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->input = $var;
-
- return $this;
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowExecutionTimeout()
- {
- return $this->workflow_execution_timeout;
- }
-
- public function hasWorkflowExecutionTimeout()
- {
- return isset($this->workflow_execution_timeout);
- }
-
- public function clearWorkflowExecutionTimeout()
- {
- unset($this->workflow_execution_timeout);
- }
-
- /**
- * Total workflow execution timeout including retries and continue as new.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowExecutionTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_execution_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowRunTimeout()
- {
- return $this->workflow_run_timeout;
- }
-
- public function hasWorkflowRunTimeout()
- {
- return isset($this->workflow_run_timeout);
- }
-
- public function clearWorkflowRunTimeout()
- {
- unset($this->workflow_run_timeout);
- }
-
- /**
- * Timeout of a single workflow run.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowRunTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_run_timeout = $var;
-
- return $this;
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowTaskTimeout()
- {
- return $this->workflow_task_timeout;
- }
-
- public function hasWorkflowTaskTimeout()
- {
- return isset($this->workflow_task_timeout);
- }
-
- public function clearWorkflowTaskTimeout()
- {
- unset($this->workflow_task_timeout);
- }
-
- /**
- * Timeout of a single workflow task.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowTaskTimeout($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_task_timeout = $var;
-
- return $this;
- }
-
- /**
- * The identity of the client who initiated this request
- *
- * Generated from protobuf field string identity = 9;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the client who initiated this request
- *
- * Generated from protobuf field string identity = 9;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * A unique identifier for this start request. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 10;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * A unique identifier for this start request. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 10;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- * @return int
- */
- public function getWorkflowIdReusePolicy()
- {
- return $this->workflow_id_reuse_policy;
- }
-
- /**
- * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
- *
- * Generated from protobuf field .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11;
- * @param int $var
- * @return $this
- */
- public function setWorkflowIdReusePolicy($var)
- {
- GPBUtil::checkEnum($var, \Temporal\Api\Enums\V1\WorkflowIdReusePolicy::class);
- $this->workflow_id_reuse_policy = $var;
-
- return $this;
- }
-
- /**
- * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- * @return \Temporal\Api\Common\V1\RetryPolicy|null
- */
- public function getRetryPolicy()
- {
- return $this->retry_policy;
- }
-
- public function hasRetryPolicy()
- {
- return isset($this->retry_policy);
- }
-
- public function clearRetryPolicy()
- {
- unset($this->retry_policy);
- }
-
- /**
- * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
- *
- * Generated from protobuf field .temporal.api.common.v1.RetryPolicy retry_policy = 12;
- * @param \Temporal\Api\Common\V1\RetryPolicy $var
- * @return $this
- */
- public function setRetryPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\RetryPolicy::class);
- $this->retry_policy = $var;
-
- return $this;
- }
-
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 13;
- * @return string
- */
- public function getCronSchedule()
- {
- return $this->cron_schedule;
- }
-
- /**
- * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
- *
- * Generated from protobuf field string cron_schedule = 13;
- * @param string $var
- * @return $this
- */
- public function setCronSchedule($var)
- {
- GPBUtil::checkString($var, True);
- $this->cron_schedule = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 14;
- * @return \Temporal\Api\Common\V1\Memo|null
- */
- public function getMemo()
- {
- return $this->memo;
- }
-
- public function hasMemo()
- {
- return isset($this->memo);
- }
-
- public function clearMemo()
- {
- unset($this->memo);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Memo memo = 14;
- * @param \Temporal\Api\Common\V1\Memo $var
- * @return $this
- */
- public function setMemo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Memo::class);
- $this->memo = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 15;
- * @return \Temporal\Api\Common\V1\SearchAttributes|null
- */
- public function getSearchAttributes()
- {
- return $this->search_attributes;
- }
-
- public function hasSearchAttributes()
- {
- return isset($this->search_attributes);
- }
-
- public function clearSearchAttributes()
- {
- unset($this->search_attributes);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.SearchAttributes search_attributes = 15;
- * @param \Temporal\Api\Common\V1\SearchAttributes $var
- * @return $this
- */
- public function setSearchAttributes($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\SearchAttributes::class);
- $this->search_attributes = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 16;
- * @return \Temporal\Api\Common\V1\Header|null
- */
- public function getHeader()
- {
- return $this->header;
- }
-
- public function hasHeader()
- {
- return isset($this->header);
- }
-
- public function clearHeader()
- {
- unset($this->header);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Header header = 16;
- * @param \Temporal\Api\Common\V1\Header $var
- * @return $this
- */
- public function setHeader($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Header::class);
- $this->header = $var;
-
- return $this;
- }
-
- /**
- * Request to get the first workflow task inline in the response bypassing matching service and worker polling.
- * If set to `true` the caller is expected to have a worker available and capable of processing the task.
- * The returned task will be marked as started and is expected to be completed by the specified
- * `workflow_task_timeout`.
- *
- * Generated from protobuf field bool request_eager_execution = 17;
- * @return bool
- */
- public function getRequestEagerExecution()
- {
- return $this->request_eager_execution;
- }
-
- /**
- * Request to get the first workflow task inline in the response bypassing matching service and worker polling.
- * If set to `true` the caller is expected to have a worker available and capable of processing the task.
- * The returned task will be marked as started and is expected to be completed by the specified
- * `workflow_task_timeout`.
- *
- * Generated from protobuf field bool request_eager_execution = 17;
- * @param bool $var
- * @return $this
- */
- public function setRequestEagerExecution($var)
- {
- GPBUtil::checkBool($var);
- $this->request_eager_execution = $var;
-
- return $this;
- }
-
- /**
- * These values will be available as ContinuedFailure and LastCompletionResult in the
- * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
- * server itself (for the schedules feature) and are not intended to be exposed in
- * StartWorkflowExecution.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure continued_failure = 18;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getContinuedFailure()
- {
- return $this->continued_failure;
- }
-
- public function hasContinuedFailure()
- {
- return isset($this->continued_failure);
- }
-
- public function clearContinuedFailure()
- {
- unset($this->continued_failure);
- }
-
- /**
- * These values will be available as ContinuedFailure and LastCompletionResult in the
- * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
- * server itself (for the schedules feature) and are not intended to be exposed in
- * StartWorkflowExecution.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure continued_failure = 18;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setContinuedFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->continued_failure = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 19;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getLastCompletionResult()
- {
- return $this->last_completion_result;
- }
-
- public function hasLastCompletionResult()
- {
- return isset($this->last_completion_result);
- }
-
- public function clearLastCompletionResult()
- {
- unset($this->last_completion_result);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.Payloads last_completion_result = 19;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setLastCompletionResult($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->last_completion_result = $var;
-
- return $this;
- }
-
- /**
- * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
- * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
- * of the delay will be ignored.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
- * @return \Google\Protobuf\Duration|null
- */
- public function getWorkflowStartDelay()
- {
- return $this->workflow_start_delay;
- }
-
- public function hasWorkflowStartDelay()
- {
- return isset($this->workflow_start_delay);
- }
-
- public function clearWorkflowStartDelay()
- {
- unset($this->workflow_start_delay);
- }
-
- /**
- * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
- * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
- * of the delay will be ignored.
- *
- * Generated from protobuf field .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true];
- * @param \Google\Protobuf\Duration $var
- * @return $this
- */
- public function setWorkflowStartDelay($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class);
- $this->workflow_start_delay = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/StartWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/StartWorkflowExecutionResponse.php
deleted file mode 100644
index c72876c22..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/StartWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,110 +0,0 @@
-temporal.api.workflowservice.v1.StartWorkflowExecutionResponse
- */
-class StartWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string run_id = 1;
- */
- protected $run_id = '';
- /**
- * When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
- * return the first workflow task to be eagerly executed.
- * The caller is expected to have a worker available to process the task.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
- */
- protected $eager_workflow_task = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $run_id
- * @type \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse $eager_workflow_task
- * When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
- * return the first workflow task to be eagerly executed.
- * The caller is expected to have a worker available to process the task.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string run_id = 1;
- * @return string
- */
- public function getRunId()
- {
- return $this->run_id;
- }
-
- /**
- * Generated from protobuf field string run_id = 1;
- * @param string $var
- * @return $this
- */
- public function setRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->run_id = $var;
-
- return $this;
- }
-
- /**
- * When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
- * return the first workflow task to be eagerly executed.
- * The caller is expected to have a worker available to process the task.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
- * @return \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse|null
- */
- public function getEagerWorkflowTask()
- {
- return $this->eager_workflow_task;
- }
-
- public function hasEagerWorkflowTask()
- {
- return isset($this->eager_workflow_task);
- }
-
- public function clearEagerWorkflowTask()
- {
- unset($this->eager_workflow_task);
- }
-
- /**
- * When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
- * return the first workflow task to be eagerly executed.
- * The caller is expected to have a worker available to process the task.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
- * @param \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse $var
- * @return $this
- */
- public function setEagerWorkflowTask($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse::class);
- $this->eager_workflow_task = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/StopBatchOperationRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/StopBatchOperationRequest.php
deleted file mode 100644
index 6c6a0e2c2..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/StopBatchOperationRequest.php
+++ /dev/null
@@ -1,167 +0,0 @@
-temporal.api.workflowservice.v1.StopBatchOperationRequest
- */
-class StopBatchOperationRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Batch job id
- *
- * Generated from protobuf field string job_id = 2;
- */
- protected $job_id = '';
- /**
- * Reason to stop a batch operation
- *
- * Generated from protobuf field string reason = 3;
- */
- protected $reason = '';
- /**
- * Identity of the operator
- *
- * Generated from protobuf field string identity = 4;
- */
- protected $identity = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * Namespace that contains the batch operation
- * @type string $job_id
- * Batch job id
- * @type string $reason
- * Reason to stop a batch operation
- * @type string $identity
- * Identity of the operator
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Namespace that contains the batch operation
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Batch job id
- *
- * Generated from protobuf field string job_id = 2;
- * @return string
- */
- public function getJobId()
- {
- return $this->job_id;
- }
-
- /**
- * Batch job id
- *
- * Generated from protobuf field string job_id = 2;
- * @param string $var
- * @return $this
- */
- public function setJobId($var)
- {
- GPBUtil::checkString($var, True);
- $this->job_id = $var;
-
- return $this;
- }
-
- /**
- * Reason to stop a batch operation
- *
- * Generated from protobuf field string reason = 3;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Reason to stop a batch operation
- *
- * Generated from protobuf field string reason = 3;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
- /**
- * Identity of the operator
- *
- * Generated from protobuf field string identity = 4;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * Identity of the operator
- *
- * Generated from protobuf field string identity = 4;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/StopBatchOperationResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/StopBatchOperationResponse.php
deleted file mode 100644
index 0de1b5052..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/StopBatchOperationResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.StopBatchOperationResponse
- */
-class StopBatchOperationResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/TerminateWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/TerminateWorkflowExecutionRequest.php
deleted file mode 100644
index 97c81ea1e..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/TerminateWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,242 +0,0 @@
-temporal.api.workflowservice.v1.TerminateWorkflowExecutionRequest
- */
-class TerminateWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * Generated from protobuf field string reason = 3;
- */
- protected $reason = '';
- /**
- * Serialized additional information to attach to the termination event
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 4;
- */
- protected $details = null;
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 5;
- */
- protected $identity = '';
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not part of the same
- * execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 6;
- */
- protected $first_execution_run_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * @type string $reason
- * @type \Temporal\Api\Common\V1\Payloads $details
- * Serialized additional information to attach to the termination event
- * @type string $identity
- * The identity of the worker/client
- * @type string $first_execution_run_id
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not part of the same
- * execution chain as this id.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string reason = 3;
- * @return string
- */
- public function getReason()
- {
- return $this->reason;
- }
-
- /**
- * Generated from protobuf field string reason = 3;
- * @param string $var
- * @return $this
- */
- public function setReason($var)
- {
- GPBUtil::checkString($var, True);
- $this->reason = $var;
-
- return $this;
- }
-
- /**
- * Serialized additional information to attach to the termination event
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 4;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getDetails()
- {
- return $this->details;
- }
-
- public function hasDetails()
- {
- return isset($this->details);
- }
-
- public function clearDetails()
- {
- unset($this->details);
- }
-
- /**
- * Serialized additional information to attach to the termination event
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads details = 4;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setDetails($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->details = $var;
-
- return $this;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 5;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the worker/client
- *
- * Generated from protobuf field string identity = 5;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not part of the same
- * execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 6;
- * @return string
- */
- public function getFirstExecutionRunId()
- {
- return $this->first_execution_run_id;
- }
-
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not part of the same
- * execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 6;
- * @param string $var
- * @return $this
- */
- public function setFirstExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->first_execution_run_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/TerminateWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/TerminateWorkflowExecutionResponse.php
deleted file mode 100644
index e26bb9c51..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/TerminateWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.TerminateWorkflowExecutionResponse
- */
-class TerminateWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateNamespaceRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateNamespaceRequest.php
deleted file mode 100644
index 524b34788..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateNamespaceRequest.php
+++ /dev/null
@@ -1,262 +0,0 @@
-temporal.api.workflowservice.v1.UpdateNamespaceRequest
- */
-class UpdateNamespaceRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.UpdateNamespaceInfo update_info = 2;
- */
- protected $update_info = null;
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 3;
- */
- protected $config = null;
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 4;
- */
- protected $replication_config = null;
- /**
- * Generated from protobuf field string security_token = 5;
- */
- protected $security_token = '';
- /**
- * Generated from protobuf field string delete_bad_binary = 6;
- */
- protected $delete_bad_binary = '';
- /**
- * promote local namespace to global namespace. Ignored if namespace is already global namespace.
- *
- * Generated from protobuf field bool promote_namespace = 7;
- */
- protected $promote_namespace = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type \Temporal\Api\PBNamespace\V1\UpdateNamespaceInfo $update_info
- * @type \Temporal\Api\PBNamespace\V1\NamespaceConfig $config
- * @type \Temporal\Api\Replication\V1\NamespaceReplicationConfig $replication_config
- * @type string $security_token
- * @type string $delete_bad_binary
- * @type bool $promote_namespace
- * promote local namespace to global namespace. Ignored if namespace is already global namespace.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.UpdateNamespaceInfo update_info = 2;
- * @return \Temporal\Api\PBNamespace\V1\UpdateNamespaceInfo|null
- */
- public function getUpdateInfo()
- {
- return $this->update_info;
- }
-
- public function hasUpdateInfo()
- {
- return isset($this->update_info);
- }
-
- public function clearUpdateInfo()
- {
- unset($this->update_info);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.UpdateNamespaceInfo update_info = 2;
- * @param \Temporal\Api\PBNamespace\V1\UpdateNamespaceInfo $var
- * @return $this
- */
- public function setUpdateInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\PBNamespace\V1\UpdateNamespaceInfo::class);
- $this->update_info = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 3;
- * @return \Temporal\Api\PBNamespace\V1\NamespaceConfig|null
- */
- public function getConfig()
- {
- return $this->config;
- }
-
- public function hasConfig()
- {
- return isset($this->config);
- }
-
- public function clearConfig()
- {
- unset($this->config);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 3;
- * @param \Temporal\Api\PBNamespace\V1\NamespaceConfig $var
- * @return $this
- */
- public function setConfig($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\PBNamespace\V1\NamespaceConfig::class);
- $this->config = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 4;
- * @return \Temporal\Api\Replication\V1\NamespaceReplicationConfig|null
- */
- public function getReplicationConfig()
- {
- return $this->replication_config;
- }
-
- public function hasReplicationConfig()
- {
- return isset($this->replication_config);
- }
-
- public function clearReplicationConfig()
- {
- unset($this->replication_config);
- }
-
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 4;
- * @param \Temporal\Api\Replication\V1\NamespaceReplicationConfig $var
- * @return $this
- */
- public function setReplicationConfig($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Replication\V1\NamespaceReplicationConfig::class);
- $this->replication_config = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string security_token = 5;
- * @return string
- */
- public function getSecurityToken()
- {
- return $this->security_token;
- }
-
- /**
- * Generated from protobuf field string security_token = 5;
- * @param string $var
- * @return $this
- */
- public function setSecurityToken($var)
- {
- GPBUtil::checkString($var, True);
- $this->security_token = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field string delete_bad_binary = 6;
- * @return string
- */
- public function getDeleteBadBinary()
- {
- return $this->delete_bad_binary;
- }
-
- /**
- * Generated from protobuf field string delete_bad_binary = 6;
- * @param string $var
- * @return $this
- */
- public function setDeleteBadBinary($var)
- {
- GPBUtil::checkString($var, True);
- $this->delete_bad_binary = $var;
-
- return $this;
- }
-
- /**
- * promote local namespace to global namespace. Ignored if namespace is already global namespace.
- *
- * Generated from protobuf field bool promote_namespace = 7;
- * @return bool
- */
- public function getPromoteNamespace()
- {
- return $this->promote_namespace;
- }
-
- /**
- * promote local namespace to global namespace. Ignored if namespace is already global namespace.
- *
- * Generated from protobuf field bool promote_namespace = 7;
- * @param bool $var
- * @return $this
- */
- public function setPromoteNamespace($var)
- {
- GPBUtil::checkBool($var);
- $this->promote_namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateNamespaceResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateNamespaceResponse.php
deleted file mode 100644
index 645aec2fe..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateNamespaceResponse.php
+++ /dev/null
@@ -1,196 +0,0 @@
-temporal.api.workflowservice.v1.UpdateNamespaceResponse
- */
-class UpdateNamespaceResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
- */
- protected $namespace_info = null;
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 2;
- */
- protected $config = null;
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
- */
- protected $replication_config = null;
- /**
- * Generated from protobuf field int64 failover_version = 4;
- */
- protected $failover_version = 0;
- /**
- * Generated from protobuf field bool is_global_namespace = 5;
- */
- protected $is_global_namespace = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\PBNamespace\V1\NamespaceInfo $namespace_info
- * @type \Temporal\Api\PBNamespace\V1\NamespaceConfig $config
- * @type \Temporal\Api\Replication\V1\NamespaceReplicationConfig $replication_config
- * @type int|string $failover_version
- * @type bool $is_global_namespace
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
- * @return \Temporal\Api\PBNamespace\V1\NamespaceInfo|null
- */
- public function getNamespaceInfo()
- {
- return $this->namespace_info;
- }
-
- public function hasNamespaceInfo()
- {
- return isset($this->namespace_info);
- }
-
- public function clearNamespaceInfo()
- {
- unset($this->namespace_info);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceInfo namespace_info = 1;
- * @param \Temporal\Api\PBNamespace\V1\NamespaceInfo $var
- * @return $this
- */
- public function setNamespaceInfo($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\PBNamespace\V1\NamespaceInfo::class);
- $this->namespace_info = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 2;
- * @return \Temporal\Api\PBNamespace\V1\NamespaceConfig|null
- */
- public function getConfig()
- {
- return $this->config;
- }
-
- public function hasConfig()
- {
- return isset($this->config);
- }
-
- public function clearConfig()
- {
- unset($this->config);
- }
-
- /**
- * Generated from protobuf field .temporal.api.namespace.v1.NamespaceConfig config = 2;
- * @param \Temporal\Api\PBNamespace\V1\NamespaceConfig $var
- * @return $this
- */
- public function setConfig($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\PBNamespace\V1\NamespaceConfig::class);
- $this->config = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
- * @return \Temporal\Api\Replication\V1\NamespaceReplicationConfig|null
- */
- public function getReplicationConfig()
- {
- return $this->replication_config;
- }
-
- public function hasReplicationConfig()
- {
- return isset($this->replication_config);
- }
-
- public function clearReplicationConfig()
- {
- unset($this->replication_config);
- }
-
- /**
- * Generated from protobuf field .temporal.api.replication.v1.NamespaceReplicationConfig replication_config = 3;
- * @param \Temporal\Api\Replication\V1\NamespaceReplicationConfig $var
- * @return $this
- */
- public function setReplicationConfig($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Replication\V1\NamespaceReplicationConfig::class);
- $this->replication_config = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field int64 failover_version = 4;
- * @return int|string
- */
- public function getFailoverVersion()
- {
- return $this->failover_version;
- }
-
- /**
- * Generated from protobuf field int64 failover_version = 4;
- * @param int|string $var
- * @return $this
- */
- public function setFailoverVersion($var)
- {
- GPBUtil::checkInt64($var);
- $this->failover_version = $var;
-
- return $this;
- }
-
- /**
- * Generated from protobuf field bool is_global_namespace = 5;
- * @return bool
- */
- public function getIsGlobalNamespace()
- {
- return $this->is_global_namespace;
- }
-
- /**
- * Generated from protobuf field bool is_global_namespace = 5;
- * @param bool $var
- * @return $this
- */
- public function setIsGlobalNamespace($var)
- {
- GPBUtil::checkBool($var);
- $this->is_global_namespace = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateScheduleRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateScheduleRequest.php
deleted file mode 100644
index 8babe1575..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateScheduleRequest.php
+++ /dev/null
@@ -1,264 +0,0 @@
-temporal.api.workflowservice.v1.UpdateScheduleRequest
- */
-class UpdateScheduleRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace of the schedule to update.
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * The id of the schedule to update.
- *
- * Generated from protobuf field string schedule_id = 2;
- */
- protected $schedule_id = '';
- /**
- * The new schedule. The four main fields of the schedule (spec, action,
- * policies, state) are replaced completely by the values in this message.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 3;
- */
- protected $schedule = null;
- /**
- * This can be the value of conflict_token from a DescribeScheduleResponse,
- * which will cause this request to fail if the schedule has been modified
- * between the Describe and this Update.
- * If missing, the schedule will be updated unconditionally.
- *
- * Generated from protobuf field bytes conflict_token = 4;
- */
- protected $conflict_token = '';
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 5;
- */
- protected $identity = '';
- /**
- * A unique identifier for this update request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 6;
- */
- protected $request_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace of the schedule to update.
- * @type string $schedule_id
- * The id of the schedule to update.
- * @type \Temporal\Api\Schedule\V1\Schedule $schedule
- * The new schedule. The four main fields of the schedule (spec, action,
- * policies, state) are replaced completely by the values in this message.
- * @type string $conflict_token
- * This can be the value of conflict_token from a DescribeScheduleResponse,
- * which will cause this request to fail if the schedule has been modified
- * between the Describe and this Update.
- * If missing, the schedule will be updated unconditionally.
- * @type string $identity
- * The identity of the client who initiated this request.
- * @type string $request_id
- * A unique identifier for this update request for idempotence. Typically UUIDv4.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace of the schedule to update.
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace of the schedule to update.
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * The id of the schedule to update.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @return string
- */
- public function getScheduleId()
- {
- return $this->schedule_id;
- }
-
- /**
- * The id of the schedule to update.
- *
- * Generated from protobuf field string schedule_id = 2;
- * @param string $var
- * @return $this
- */
- public function setScheduleId($var)
- {
- GPBUtil::checkString($var, True);
- $this->schedule_id = $var;
-
- return $this;
- }
-
- /**
- * The new schedule. The four main fields of the schedule (spec, action,
- * policies, state) are replaced completely by the values in this message.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 3;
- * @return \Temporal\Api\Schedule\V1\Schedule|null
- */
- public function getSchedule()
- {
- return $this->schedule;
- }
-
- public function hasSchedule()
- {
- return isset($this->schedule);
- }
-
- public function clearSchedule()
- {
- unset($this->schedule);
- }
-
- /**
- * The new schedule. The four main fields of the schedule (spec, action,
- * policies, state) are replaced completely by the values in this message.
- *
- * Generated from protobuf field .temporal.api.schedule.v1.Schedule schedule = 3;
- * @param \Temporal\Api\Schedule\V1\Schedule $var
- * @return $this
- */
- public function setSchedule($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Schedule\V1\Schedule::class);
- $this->schedule = $var;
-
- return $this;
- }
-
- /**
- * This can be the value of conflict_token from a DescribeScheduleResponse,
- * which will cause this request to fail if the schedule has been modified
- * between the Describe and this Update.
- * If missing, the schedule will be updated unconditionally.
- *
- * Generated from protobuf field bytes conflict_token = 4;
- * @return string
- */
- public function getConflictToken()
- {
- return $this->conflict_token;
- }
-
- /**
- * This can be the value of conflict_token from a DescribeScheduleResponse,
- * which will cause this request to fail if the schedule has been modified
- * between the Describe and this Update.
- * If missing, the schedule will be updated unconditionally.
- *
- * Generated from protobuf field bytes conflict_token = 4;
- * @param string $var
- * @return $this
- */
- public function setConflictToken($var)
- {
- GPBUtil::checkString($var, False);
- $this->conflict_token = $var;
-
- return $this;
- }
-
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 5;
- * @return string
- */
- public function getIdentity()
- {
- return $this->identity;
- }
-
- /**
- * The identity of the client who initiated this request.
- *
- * Generated from protobuf field string identity = 5;
- * @param string $var
- * @return $this
- */
- public function setIdentity($var)
- {
- GPBUtil::checkString($var, True);
- $this->identity = $var;
-
- return $this;
- }
-
- /**
- * A unique identifier for this update request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 6;
- * @return string
- */
- public function getRequestId()
- {
- return $this->request_id;
- }
-
- /**
- * A unique identifier for this update request for idempotence. Typically UUIDv4.
- *
- * Generated from protobuf field string request_id = 6;
- * @param string $var
- * @return $this
- */
- public function setRequestId($var)
- {
- GPBUtil::checkString($var, True);
- $this->request_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateScheduleResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateScheduleResponse.php
deleted file mode 100644
index 088a92ccc..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateScheduleResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.UpdateScheduleResponse
- */
-class UpdateScheduleResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest.php
deleted file mode 100644
index bf512fb85..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest.php
+++ /dev/null
@@ -1,318 +0,0 @@
-temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest
- */
-class UpdateWorkerBuildIdCompatibilityRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Must be set, the task queue to apply changes to. Because all workers on a given task queue
- * must have the same set of workflow & activity implementations, there is no reason to specify
- * a task queue type here.
- *
- * Generated from protobuf field string task_queue = 2;
- */
- protected $task_queue = '';
- protected $operation;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $task_queue
- * Must be set, the task queue to apply changes to. Because all workers on a given task queue
- * must have the same set of workflow & activity implementations, there is no reason to specify
- * a task queue type here.
- * @type string $add_new_build_id_in_new_default_set
- * A new build id. This operation will create a new set which will be the new overall
- * default version for the queue, with this id as its only member. This new set is
- * incompatible with all previous sets/versions.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: In makes perfect sense here. --)
- * @type \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest\AddNewCompatibleVersion $add_new_compatible_build_id
- * Adds a new id to an existing compatible set, see sub-message definition for more.
- * @type string $promote_set_by_build_id
- * Promote an existing set to be the current default (if it isn't already) by targeting
- * an existing build id within it. This field's value is the extant build id.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: Names are hard. --)
- * @type string $promote_build_id_within_set
- * Promote an existing build id within some set to be the current default for that set.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: Within makes perfect sense here. --)
- * @type \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest\MergeSets $merge_sets
- * Merge two existing sets together, thus declaring all build IDs in both sets compatible
- * with one another. The primary set's default will become the default for the merged set.
- * This is useful if you've accidentally declared a new ID as incompatible you meant to
- * declare as compatible. The unusual case of incomplete replication during failover could
- * also result in a split set, which this operation can repair.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Must be set, the task queue to apply changes to. Because all workers on a given task queue
- * must have the same set of workflow & activity implementations, there is no reason to specify
- * a task queue type here.
- *
- * Generated from protobuf field string task_queue = 2;
- * @return string
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- /**
- * Must be set, the task queue to apply changes to. Because all workers on a given task queue
- * must have the same set of workflow & activity implementations, there is no reason to specify
- * a task queue type here.
- *
- * Generated from protobuf field string task_queue = 2;
- * @param string $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkString($var, True);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * A new build id. This operation will create a new set which will be the new overall
- * default version for the queue, with this id as its only member. This new set is
- * incompatible with all previous sets/versions.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: In makes perfect sense here. --)
- *
- * Generated from protobuf field string add_new_build_id_in_new_default_set = 3;
- * @return string
- */
- public function getAddNewBuildIdInNewDefaultSet()
- {
- return $this->readOneof(3);
- }
-
- public function hasAddNewBuildIdInNewDefaultSet()
- {
- return $this->hasOneof(3);
- }
-
- /**
- * A new build id. This operation will create a new set which will be the new overall
- * default version for the queue, with this id as its only member. This new set is
- * incompatible with all previous sets/versions.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: In makes perfect sense here. --)
- *
- * Generated from protobuf field string add_new_build_id_in_new_default_set = 3;
- * @param string $var
- * @return $this
- */
- public function setAddNewBuildIdInNewDefaultSet($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(3, $var);
-
- return $this;
- }
-
- /**
- * Adds a new id to an existing compatible set, see sub-message definition for more.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion add_new_compatible_build_id = 4;
- * @return \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest\AddNewCompatibleVersion|null
- */
- public function getAddNewCompatibleBuildId()
- {
- return $this->readOneof(4);
- }
-
- public function hasAddNewCompatibleBuildId()
- {
- return $this->hasOneof(4);
- }
-
- /**
- * Adds a new id to an existing compatible set, see sub-message definition for more.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion add_new_compatible_build_id = 4;
- * @param \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest\AddNewCompatibleVersion $var
- * @return $this
- */
- public function setAddNewCompatibleBuildId($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest\AddNewCompatibleVersion::class);
- $this->writeOneof(4, $var);
-
- return $this;
- }
-
- /**
- * Promote an existing set to be the current default (if it isn't already) by targeting
- * an existing build id within it. This field's value is the extant build id.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: Names are hard. --)
- *
- * Generated from protobuf field string promote_set_by_build_id = 5;
- * @return string
- */
- public function getPromoteSetByBuildId()
- {
- return $this->readOneof(5);
- }
-
- public function hasPromoteSetByBuildId()
- {
- return $this->hasOneof(5);
- }
-
- /**
- * Promote an existing set to be the current default (if it isn't already) by targeting
- * an existing build id within it. This field's value is the extant build id.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: Names are hard. --)
- *
- * Generated from protobuf field string promote_set_by_build_id = 5;
- * @param string $var
- * @return $this
- */
- public function setPromoteSetByBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(5, $var);
-
- return $this;
- }
-
- /**
- * Promote an existing build id within some set to be the current default for that set.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: Within makes perfect sense here. --)
- *
- * Generated from protobuf field string promote_build_id_within_set = 6;
- * @return string
- */
- public function getPromoteBuildIdWithinSet()
- {
- return $this->readOneof(6);
- }
-
- public function hasPromoteBuildIdWithinSet()
- {
- return $this->hasOneof(6);
- }
-
- /**
- * Promote an existing build id within some set to be the current default for that set.
- * (-- api-linter: core::0140::prepositions=disabled
- * aip.dev/not-precedent: Within makes perfect sense here. --)
- *
- * Generated from protobuf field string promote_build_id_within_set = 6;
- * @param string $var
- * @return $this
- */
- public function setPromoteBuildIdWithinSet($var)
- {
- GPBUtil::checkString($var, True);
- $this->writeOneof(6, $var);
-
- return $this;
- }
-
- /**
- * Merge two existing sets together, thus declaring all build IDs in both sets compatible
- * with one another. The primary set's default will become the default for the merged set.
- * This is useful if you've accidentally declared a new ID as incompatible you meant to
- * declare as compatible. The unusual case of incomplete replication during failover could
- * also result in a split set, which this operation can repair.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSets merge_sets = 7;
- * @return \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest\MergeSets|null
- */
- public function getMergeSets()
- {
- return $this->readOneof(7);
- }
-
- public function hasMergeSets()
- {
- return $this->hasOneof(7);
- }
-
- /**
- * Merge two existing sets together, thus declaring all build IDs in both sets compatible
- * with one another. The primary set's default will become the default for the merged set.
- * This is useful if you've accidentally declared a new ID as incompatible you meant to
- * declare as compatible. The unusual case of incomplete replication during failover could
- * also result in a split set, which this operation can repair.
- *
- * Generated from protobuf field .temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSets merge_sets = 7;
- * @param \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest\MergeSets $var
- * @return $this
- */
- public function setMergeSets($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest\MergeSets::class);
- $this->writeOneof(7, $var);
-
- return $this;
- }
-
- /**
- * @return string
- */
- public function getOperation()
- {
- return $this->whichOneof("operation");
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest/AddNewCompatibleVersion.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest/AddNewCompatibleVersion.php
deleted file mode 100644
index ee2acdba3..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest/AddNewCompatibleVersion.php
+++ /dev/null
@@ -1,152 +0,0 @@
-temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.AddNewCompatibleVersion
- */
-class AddNewCompatibleVersion extends \Google\Protobuf\Internal\Message
-{
- /**
- * A new id to be added to an existing compatible set.
- *
- * Generated from protobuf field string new_build_id = 1;
- */
- protected $new_build_id = '';
- /**
- * A build id which must already exist in the version sets known by the task queue. The new
- * id will be stored in the set containing this id, marking it as compatible with
- * the versions within.
- *
- * Generated from protobuf field string existing_compatible_build_id = 2;
- */
- protected $existing_compatible_build_id = '';
- /**
- * When set, establishes the compatible set being targeted as the overall default for the
- * queue. If a different set was the current default, the targeted set will replace it as
- * the new default.
- *
- * Generated from protobuf field bool make_set_default = 3;
- */
- protected $make_set_default = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $new_build_id
- * A new id to be added to an existing compatible set.
- * @type string $existing_compatible_build_id
- * A build id which must already exist in the version sets known by the task queue. The new
- * id will be stored in the set containing this id, marking it as compatible with
- * the versions within.
- * @type bool $make_set_default
- * When set, establishes the compatible set being targeted as the overall default for the
- * queue. If a different set was the current default, the targeted set will replace it as
- * the new default.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A new id to be added to an existing compatible set.
- *
- * Generated from protobuf field string new_build_id = 1;
- * @return string
- */
- public function getNewBuildId()
- {
- return $this->new_build_id;
- }
-
- /**
- * A new id to be added to an existing compatible set.
- *
- * Generated from protobuf field string new_build_id = 1;
- * @param string $var
- * @return $this
- */
- public function setNewBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->new_build_id = $var;
-
- return $this;
- }
-
- /**
- * A build id which must already exist in the version sets known by the task queue. The new
- * id will be stored in the set containing this id, marking it as compatible with
- * the versions within.
- *
- * Generated from protobuf field string existing_compatible_build_id = 2;
- * @return string
- */
- public function getExistingCompatibleBuildId()
- {
- return $this->existing_compatible_build_id;
- }
-
- /**
- * A build id which must already exist in the version sets known by the task queue. The new
- * id will be stored in the set containing this id, marking it as compatible with
- * the versions within.
- *
- * Generated from protobuf field string existing_compatible_build_id = 2;
- * @param string $var
- * @return $this
- */
- public function setExistingCompatibleBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->existing_compatible_build_id = $var;
-
- return $this;
- }
-
- /**
- * When set, establishes the compatible set being targeted as the overall default for the
- * queue. If a different set was the current default, the targeted set will replace it as
- * the new default.
- *
- * Generated from protobuf field bool make_set_default = 3;
- * @return bool
- */
- public function getMakeSetDefault()
- {
- return $this->make_set_default;
- }
-
- /**
- * When set, establishes the compatible set being targeted as the overall default for the
- * queue. If a different set was the current default, the targeted set will replace it as
- * the new default.
- *
- * Generated from protobuf field bool make_set_default = 3;
- * @param bool $var
- * @return $this
- */
- public function setMakeSetDefault($var)
- {
- GPBUtil::checkBool($var);
- $this->make_set_default = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(AddNewCompatibleVersion::class, \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest_AddNewCompatibleVersion::class);
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest/MergeSets.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest/MergeSets.php
deleted file mode 100644
index 572cddc86..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityRequest/MergeSets.php
+++ /dev/null
@@ -1,102 +0,0 @@
-temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityRequest.MergeSets
- */
-class MergeSets extends \Google\Protobuf\Internal\Message
-{
- /**
- * A build ID in the set whose default will become the merged set default
- *
- * Generated from protobuf field string primary_set_build_id = 1;
- */
- protected $primary_set_build_id = '';
- /**
- * A build ID in the set which will be merged into the primary set
- *
- * Generated from protobuf field string secondary_set_build_id = 2;
- */
- protected $secondary_set_build_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $primary_set_build_id
- * A build ID in the set whose default will become the merged set default
- * @type string $secondary_set_build_id
- * A build ID in the set which will be merged into the primary set
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * A build ID in the set whose default will become the merged set default
- *
- * Generated from protobuf field string primary_set_build_id = 1;
- * @return string
- */
- public function getPrimarySetBuildId()
- {
- return $this->primary_set_build_id;
- }
-
- /**
- * A build ID in the set whose default will become the merged set default
- *
- * Generated from protobuf field string primary_set_build_id = 1;
- * @param string $var
- * @return $this
- */
- public function setPrimarySetBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->primary_set_build_id = $var;
-
- return $this;
- }
-
- /**
- * A build ID in the set which will be merged into the primary set
- *
- * Generated from protobuf field string secondary_set_build_id = 2;
- * @return string
- */
- public function getSecondarySetBuildId()
- {
- return $this->secondary_set_build_id;
- }
-
- /**
- * A build ID in the set which will be merged into the primary set
- *
- * Generated from protobuf field string secondary_set_build_id = 2;
- * @param string $var
- * @return $this
- */
- public function setSecondarySetBuildId($var)
- {
- GPBUtil::checkString($var, True);
- $this->secondary_set_build_id = $var;
-
- return $this;
- }
-
-}
-
-// Adding a class alias for backwards compatibility with the previous class name.
-class_alias(MergeSets::class, \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest_MergeSets::class);
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityResponse.php
deleted file mode 100644
index a572a4652..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdCompatibilityResponse.php
+++ /dev/null
@@ -1,69 +0,0 @@
-temporal.api.workflowservice.v1.UpdateWorkerBuildIdCompatibilityResponse
- */
-class UpdateWorkerBuildIdCompatibilityResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * The id of the compatible set that the updated version was added to, or exists in. Users don't
- * need to understand or care about this value, but it has value for debugging purposes.
- *
- * Generated from protobuf field string version_set_id = 1;
- */
- protected $version_set_id = '';
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $version_set_id
- * The id of the compatible set that the updated version was added to, or exists in. Users don't
- * need to understand or care about this value, but it has value for debugging purposes.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The id of the compatible set that the updated version was added to, or exists in. Users don't
- * need to understand or care about this value, but it has value for debugging purposes.
- *
- * Generated from protobuf field string version_set_id = 1;
- * @return string
- */
- public function getVersionSetId()
- {
- return $this->version_set_id;
- }
-
- /**
- * The id of the compatible set that the updated version was added to, or exists in. Users don't
- * need to understand or care about this value, but it has value for debugging purposes.
- *
- * Generated from protobuf field string version_set_id = 1;
- * @param string $var
- * @return $this
- */
- public function setVersionSetId($var)
- {
- GPBUtil::checkString($var, True);
- $this->version_set_id = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdOrderingRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdOrderingRequest.php
deleted file mode 100644
index 6f135518e..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdOrderingRequest.php
+++ /dev/null
@@ -1,251 +0,0 @@
-temporal.api.workflowservice.v1.UpdateWorkerBuildIdOrderingRequest
- */
-class UpdateWorkerBuildIdOrderingRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * Must be set, the task queue to apply changes to. Because all workers on
- * a given task queue must have the same set of workflow & activity
- * implementations, there is no reason to specify a task queue type here.
- *
- * Generated from protobuf field string task_queue = 2;
- */
- protected $task_queue = '';
- /**
- * The version id we are targeting.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId version_id = 3;
- */
- protected $version_id = null;
- /**
- * When set, indicates that the `version_id` in this message is compatible
- * with the one specified in this field. Because compatability should form
- * a DAG, any build id can only be the "next compatible" version for one
- * other ID of a certain type at a time, and any setting which would create a cycle is invalid.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId previous_compatible = 4;
- */
- protected $previous_compatible = null;
- /**
- * When set, establishes the specified `version_id` as the default of it's type
- * for the queue. Workers matching it will begin processing new workflow executions.
- * The existing default will be marked as a previous incompatible version
- * to this one, assuming it is not also in `is_compatible_with`.
- *
- * Generated from protobuf field bool become_default = 5;
- */
- protected $become_default = false;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * @type string $task_queue
- * Must be set, the task queue to apply changes to. Because all workers on
- * a given task queue must have the same set of workflow & activity
- * implementations, there is no reason to specify a task queue type here.
- * @type \Temporal\Api\Taskqueue\V1\VersionId $version_id
- * The version id we are targeting.
- * @type \Temporal\Api\Taskqueue\V1\VersionId $previous_compatible
- * When set, indicates that the `version_id` in this message is compatible
- * with the one specified in this field. Because compatability should form
- * a DAG, any build id can only be the "next compatible" version for one
- * other ID of a certain type at a time, and any setting which would create a cycle is invalid.
- * @type bool $become_default
- * When set, establishes the specified `version_id` as the default of it's type
- * for the queue. Workers matching it will begin processing new workflow executions.
- * The existing default will be marked as a previous incompatible version
- * to this one, assuming it is not also in `is_compatible_with`.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * Must be set, the task queue to apply changes to. Because all workers on
- * a given task queue must have the same set of workflow & activity
- * implementations, there is no reason to specify a task queue type here.
- *
- * Generated from protobuf field string task_queue = 2;
- * @return string
- */
- public function getTaskQueue()
- {
- return $this->task_queue;
- }
-
- /**
- * Must be set, the task queue to apply changes to. Because all workers on
- * a given task queue must have the same set of workflow & activity
- * implementations, there is no reason to specify a task queue type here.
- *
- * Generated from protobuf field string task_queue = 2;
- * @param string $var
- * @return $this
- */
- public function setTaskQueue($var)
- {
- GPBUtil::checkString($var, True);
- $this->task_queue = $var;
-
- return $this;
- }
-
- /**
- * The version id we are targeting.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId version_id = 3;
- * @return \Temporal\Api\Taskqueue\V1\VersionId|null
- */
- public function getVersionId()
- {
- return $this->version_id;
- }
-
- public function hasVersionId()
- {
- return isset($this->version_id);
- }
-
- public function clearVersionId()
- {
- unset($this->version_id);
- }
-
- /**
- * The version id we are targeting.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId version_id = 3;
- * @param \Temporal\Api\Taskqueue\V1\VersionId $var
- * @return $this
- */
- public function setVersionId($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\VersionId::class);
- $this->version_id = $var;
-
- return $this;
- }
-
- /**
- * When set, indicates that the `version_id` in this message is compatible
- * with the one specified in this field. Because compatability should form
- * a DAG, any build id can only be the "next compatible" version for one
- * other ID of a certain type at a time, and any setting which would create a cycle is invalid.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId previous_compatible = 4;
- * @return \Temporal\Api\Taskqueue\V1\VersionId|null
- */
- public function getPreviousCompatible()
- {
- return $this->previous_compatible;
- }
-
- public function hasPreviousCompatible()
- {
- return isset($this->previous_compatible);
- }
-
- public function clearPreviousCompatible()
- {
- unset($this->previous_compatible);
- }
-
- /**
- * When set, indicates that the `version_id` in this message is compatible
- * with the one specified in this field. Because compatability should form
- * a DAG, any build id can only be the "next compatible" version for one
- * other ID of a certain type at a time, and any setting which would create a cycle is invalid.
- *
- * Generated from protobuf field .temporal.api.taskqueue.v1.VersionId previous_compatible = 4;
- * @param \Temporal\Api\Taskqueue\V1\VersionId $var
- * @return $this
- */
- public function setPreviousCompatible($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Taskqueue\V1\VersionId::class);
- $this->previous_compatible = $var;
-
- return $this;
- }
-
- /**
- * When set, establishes the specified `version_id` as the default of it's type
- * for the queue. Workers matching it will begin processing new workflow executions.
- * The existing default will be marked as a previous incompatible version
- * to this one, assuming it is not also in `is_compatible_with`.
- *
- * Generated from protobuf field bool become_default = 5;
- * @return bool
- */
- public function getBecomeDefault()
- {
- return $this->become_default;
- }
-
- /**
- * When set, establishes the specified `version_id` as the default of it's type
- * for the queue. Workers matching it will begin processing new workflow executions.
- * The existing default will be marked as a previous incompatible version
- * to this one, assuming it is not also in `is_compatible_with`.
- *
- * Generated from protobuf field bool become_default = 5;
- * @param bool $var
- * @return $this
- */
- public function setBecomeDefault($var)
- {
- GPBUtil::checkBool($var);
- $this->become_default = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdOrderingResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdOrderingResponse.php
deleted file mode 100644
index 0321d1491..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkerBuildIdOrderingResponse.php
+++ /dev/null
@@ -1,31 +0,0 @@
-temporal.api.workflowservice.v1.UpdateWorkerBuildIdOrderingResponse
- */
-class UpdateWorkerBuildIdOrderingResponse extends \Google\Protobuf\Internal\Message
-{
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkflowExecutionRequest.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkflowExecutionRequest.php
deleted file mode 100644
index 033d29813..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkflowExecutionRequest.php
+++ /dev/null
@@ -1,258 +0,0 @@
-temporal.api.workflowservice.v1.UpdateWorkflowExecutionRequest
- */
-class UpdateWorkflowExecutionRequest extends \Google\Protobuf\Internal\Message
-{
- /**
- * The namespace name of the target workflow
- *
- * Generated from protobuf field string namespace = 1;
- */
- protected $namespace = '';
- /**
- * The target workflow id and (optionally) a specific run thereof
- * (-- api-linter: core::0203::optional=disabled
- * aip.dev/not-precedent: false positive triggered by the word "optional" --)
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- */
- protected $workflow_execution = null;
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not
- * part of the same execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 3;
- */
- protected $first_execution_run_id = '';
- /**
- * Describes when this request should return - basically whether the
- * update is synchronous, asynchronous, or somewhere in between.
- *
- * Generated from protobuf field .temporal.api.update.v1.WaitPolicy wait_policy = 4;
- */
- protected $wait_policy = null;
- /**
- * The request information that will be delivered all the way down to the
- * workflow execution.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request request = 5;
- */
- protected $request = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $namespace
- * The namespace name of the target workflow
- * @type \Temporal\Api\Common\V1\WorkflowExecution $workflow_execution
- * The target workflow id and (optionally) a specific run thereof
- * (-- api-linter: core::0203::optional=disabled
- * aip.dev/not-precedent: false positive triggered by the word "optional" --)
- * @type string $first_execution_run_id
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not
- * part of the same execution chain as this id.
- * @type \Temporal\Api\Update\V1\WaitPolicy $wait_policy
- * Describes when this request should return - basically whether the
- * update is synchronous, asynchronous, or somewhere in between.
- * @type \Temporal\Api\Update\V1\Request $request
- * The request information that will be delivered all the way down to the
- * workflow execution.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * The namespace name of the target workflow
- *
- * Generated from protobuf field string namespace = 1;
- * @return string
- */
- public function getNamespace()
- {
- return $this->namespace;
- }
-
- /**
- * The namespace name of the target workflow
- *
- * Generated from protobuf field string namespace = 1;
- * @param string $var
- * @return $this
- */
- public function setNamespace($var)
- {
- GPBUtil::checkString($var, True);
- $this->namespace = $var;
-
- return $this;
- }
-
- /**
- * The target workflow id and (optionally) a specific run thereof
- * (-- api-linter: core::0203::optional=disabled
- * aip.dev/not-precedent: false positive triggered by the word "optional" --)
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @return \Temporal\Api\Common\V1\WorkflowExecution|null
- */
- public function getWorkflowExecution()
- {
- return $this->workflow_execution;
- }
-
- public function hasWorkflowExecution()
- {
- return isset($this->workflow_execution);
- }
-
- public function clearWorkflowExecution()
- {
- unset($this->workflow_execution);
- }
-
- /**
- * The target workflow id and (optionally) a specific run thereof
- * (-- api-linter: core::0203::optional=disabled
- * aip.dev/not-precedent: false positive triggered by the word "optional" --)
- *
- * Generated from protobuf field .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
- * @param \Temporal\Api\Common\V1\WorkflowExecution $var
- * @return $this
- */
- public function setWorkflowExecution($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\WorkflowExecution::class);
- $this->workflow_execution = $var;
-
- return $this;
- }
-
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not
- * part of the same execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 3;
- * @return string
- */
- public function getFirstExecutionRunId()
- {
- return $this->first_execution_run_id;
- }
-
- /**
- * If set, this call will error if the most recent (if no run id is set on
- * `workflow_execution`), or specified (if it is) workflow execution is not
- * part of the same execution chain as this id.
- *
- * Generated from protobuf field string first_execution_run_id = 3;
- * @param string $var
- * @return $this
- */
- public function setFirstExecutionRunId($var)
- {
- GPBUtil::checkString($var, True);
- $this->first_execution_run_id = $var;
-
- return $this;
- }
-
- /**
- * Describes when this request should return - basically whether the
- * update is synchronous, asynchronous, or somewhere in between.
- *
- * Generated from protobuf field .temporal.api.update.v1.WaitPolicy wait_policy = 4;
- * @return \Temporal\Api\Update\V1\WaitPolicy|null
- */
- public function getWaitPolicy()
- {
- return $this->wait_policy;
- }
-
- public function hasWaitPolicy()
- {
- return isset($this->wait_policy);
- }
-
- public function clearWaitPolicy()
- {
- unset($this->wait_policy);
- }
-
- /**
- * Describes when this request should return - basically whether the
- * update is synchronous, asynchronous, or somewhere in between.
- *
- * Generated from protobuf field .temporal.api.update.v1.WaitPolicy wait_policy = 4;
- * @param \Temporal\Api\Update\V1\WaitPolicy $var
- * @return $this
- */
- public function setWaitPolicy($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\WaitPolicy::class);
- $this->wait_policy = $var;
-
- return $this;
- }
-
- /**
- * The request information that will be delivered all the way down to the
- * workflow execution.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request request = 5;
- * @return \Temporal\Api\Update\V1\Request|null
- */
- public function getRequest()
- {
- return $this->request;
- }
-
- public function hasRequest()
- {
- return isset($this->request);
- }
-
- public function clearRequest()
- {
- unset($this->request);
- }
-
- /**
- * The request information that will be delivered all the way down to the
- * workflow execution.
- *
- * Generated from protobuf field .temporal.api.update.v1.Request request = 5;
- * @param \Temporal\Api\Update\V1\Request $var
- * @return $this
- */
- public function setRequest($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Request::class);
- $this->request = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkflowExecutionResponse.php b/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkflowExecutionResponse.php
deleted file mode 100644
index a391db6a6..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/UpdateWorkflowExecutionResponse.php
+++ /dev/null
@@ -1,127 +0,0 @@
-temporal.api.workflowservice.v1.UpdateWorkflowExecutionResponse
- */
-class UpdateWorkflowExecutionResponse extends \Google\Protobuf\Internal\Message
-{
- /**
- * Enough information for subsequent poll calls if needed. Never null.
- *
- * Generated from protobuf field .temporal.api.update.v1.UpdateRef update_ref = 1;
- */
- protected $update_ref = null;
- /**
- * The outcome of the update if and only if the workflow execution update
- * has completed. If this response is being returned before the update has
- * completed then this field will not be set.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- */
- protected $outcome = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Temporal\Api\Update\V1\UpdateRef $update_ref
- * Enough information for subsequent poll calls if needed. Never null.
- * @type \Temporal\Api\Update\V1\Outcome $outcome
- * The outcome of the update if and only if the workflow execution update
- * has completed. If this response is being returned before the update has
- * completed then this field will not be set.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Temporal\Api\Workflowservice\V1\RequestResponse::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Enough information for subsequent poll calls if needed. Never null.
- *
- * Generated from protobuf field .temporal.api.update.v1.UpdateRef update_ref = 1;
- * @return \Temporal\Api\Update\V1\UpdateRef|null
- */
- public function getUpdateRef()
- {
- return $this->update_ref;
- }
-
- public function hasUpdateRef()
- {
- return isset($this->update_ref);
- }
-
- public function clearUpdateRef()
- {
- unset($this->update_ref);
- }
-
- /**
- * Enough information for subsequent poll calls if needed. Never null.
- *
- * Generated from protobuf field .temporal.api.update.v1.UpdateRef update_ref = 1;
- * @param \Temporal\Api\Update\V1\UpdateRef $var
- * @return $this
- */
- public function setUpdateRef($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\UpdateRef::class);
- $this->update_ref = $var;
-
- return $this;
- }
-
- /**
- * The outcome of the update if and only if the workflow execution update
- * has completed. If this response is being returned before the update has
- * completed then this field will not be set.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- * @return \Temporal\Api\Update\V1\Outcome|null
- */
- public function getOutcome()
- {
- return $this->outcome;
- }
-
- public function hasOutcome()
- {
- return isset($this->outcome);
- }
-
- public function clearOutcome()
- {
- unset($this->outcome);
- }
-
- /**
- * The outcome of the update if and only if the workflow execution update
- * has completed. If this response is being returned before the update has
- * completed then this field will not be set.
- *
- * Generated from protobuf field .temporal.api.update.v1.Outcome outcome = 2;
- * @param \Temporal\Api\Update\V1\Outcome $var
- * @return $this
- */
- public function setOutcome($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Update\V1\Outcome::class);
- $this->outcome = $var;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Api/Workflowservice/V1/WorkflowServiceClient.php b/api/v1/Temporal/Api/Workflowservice/V1/WorkflowServiceClient.php
deleted file mode 100644
index 5a5060ae1..000000000
--- a/api/v1/Temporal/Api/Workflowservice/V1/WorkflowServiceClient.php
+++ /dev/null
@@ -1,1083 +0,0 @@
-_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RegisterNamespace',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RegisterNamespaceResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * DescribeNamespace returns the information and configuration for a registered namespace.
- * @param \Temporal\Api\Workflowservice\V1\DescribeNamespaceRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DescribeNamespace(\Temporal\Api\Workflowservice\V1\DescribeNamespaceRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/DescribeNamespace',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\DescribeNamespaceResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ListNamespaces returns the information and configuration for all namespaces.
- * @param \Temporal\Api\Workflowservice\V1\ListNamespacesRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListNamespaces(\Temporal\Api\Workflowservice\V1\ListNamespacesRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListNamespaces',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListNamespacesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * UpdateNamespace is used to update the information and configuration of a registered
- * namespace.
- *
- * (-- api-linter: core::0134::method-signature=disabled
- * aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)
- * (-- api-linter: core::0134::response-message-name=disabled
- * aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)
- * @param \Temporal\Api\Workflowservice\V1\UpdateNamespaceRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function UpdateNamespace(\Temporal\Api\Workflowservice\V1\UpdateNamespaceRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/UpdateNamespace',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\UpdateNamespaceResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * DeprecateNamespace is used to update the state of a registered namespace to DEPRECATED.
- *
- * Once the namespace is deprecated it cannot be used to start new workflow executions. Existing
- * workflow executions will continue to run on deprecated namespaces.
- * Deprecated.
- * @param \Temporal\Api\Workflowservice\V1\DeprecateNamespaceRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DeprecateNamespace(\Temporal\Api\Workflowservice\V1\DeprecateNamespaceRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/DeprecateNamespace',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\DeprecateNamespaceResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * StartWorkflowExecution starts a new workflow execution.
- *
- * It will create the execution with a `WORKFLOW_EXECUTION_STARTED` event in its history and
- * also schedule the first workflow task. Returns `WorkflowExecutionAlreadyStarted`, if an
- * instance already exists with same workflow id.
- * @param \Temporal\Api\Workflowservice\V1\StartWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function StartWorkflowExecution(\Temporal\Api\Workflowservice\V1\StartWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/StartWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\StartWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * GetWorkflowExecutionHistory returns the history of specified workflow execution. Fails with
- * `NotFound` if the specified workflow execution is unknown to the service.
- * @param \Temporal\Api\Workflowservice\V1\GetWorkflowExecutionHistoryRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetWorkflowExecutionHistory(\Temporal\Api\Workflowservice\V1\GetWorkflowExecutionHistoryRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/GetWorkflowExecutionHistory',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\GetWorkflowExecutionHistoryResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * GetWorkflowExecutionHistoryReverse returns the history of specified workflow execution in reverse
- * order (starting from last event). Fails with`NotFound` if the specified workflow execution is
- * unknown to the service.
- * @param \Temporal\Api\Workflowservice\V1\GetWorkflowExecutionHistoryReverseRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetWorkflowExecutionHistoryReverse(\Temporal\Api\Workflowservice\V1\GetWorkflowExecutionHistoryReverseRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/GetWorkflowExecutionHistoryReverse',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\GetWorkflowExecutionHistoryReverseResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * PollWorkflowTaskQueue is called by workers to make progress on workflows.
- *
- * A WorkflowTask is dispatched to callers for active workflow executions with pending workflow
- * tasks. The worker is expected to call `RespondWorkflowTaskCompleted` when it is done
- * processing the task. The service will create a `WorkflowTaskStarted` event in the history for
- * this task before handing it to the worker.
- * @param \Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function PollWorkflowTaskQueue(\Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/PollWorkflowTaskQueue',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\PollWorkflowTaskQueueResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RespondWorkflowTaskCompleted is called by workers to successfully complete workflow tasks
- * they received from `PollWorkflowTaskQueue`.
- *
- * Completing a WorkflowTask will write a `WORKFLOW_TASK_COMPLETED` event to the workflow's
- * history, along with events corresponding to whatever commands the SDK generated while
- * executing the task (ex timer started, activity task scheduled, etc).
- * @param \Temporal\Api\Workflowservice\V1\RespondWorkflowTaskCompletedRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondWorkflowTaskCompleted(\Temporal\Api\Workflowservice\V1\RespondWorkflowTaskCompletedRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondWorkflowTaskCompleted',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondWorkflowTaskCompletedResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RespondWorkflowTaskFailed is called by workers to indicate the processing of a workflow task
- * failed.
- *
- * This results in a `WORKFLOW_TASK_FAILED` event written to the history, and a new workflow
- * task will be scheduled. This API can be used to report unhandled failures resulting from
- * applying the workflow task.
- *
- * Temporal will only append first WorkflowTaskFailed event to the history of workflow execution
- * for consecutive failures.
- * @param \Temporal\Api\Workflowservice\V1\RespondWorkflowTaskFailedRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondWorkflowTaskFailed(\Temporal\Api\Workflowservice\V1\RespondWorkflowTaskFailedRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondWorkflowTaskFailed',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondWorkflowTaskFailedResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * PollActivityTaskQueue is called by workers to process activity tasks from a specific task
- * queue.
- *
- * The worker is expected to call one of the `RespondActivityTaskXXX` methods when it is done
- * processing the task.
- *
- * An activity task is dispatched whenever a `SCHEDULE_ACTIVITY_TASK` command is produced during
- * workflow execution. An in memory `ACTIVITY_TASK_STARTED` event is written to mutable state
- * before the task is dispatched to the worker. The started event, and the final event
- * (`ACTIVITY_TASK_COMPLETED` / `ACTIVITY_TASK_FAILED` / `ACTIVITY_TASK_TIMED_OUT`) will both be
- * written permanently to Workflow execution history when Activity is finished. This is done to
- * avoid writing many events in the case of a failure/retry loop.
- * @param \Temporal\Api\Workflowservice\V1\PollActivityTaskQueueRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function PollActivityTaskQueue(\Temporal\Api\Workflowservice\V1\PollActivityTaskQueueRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/PollActivityTaskQueue',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\PollActivityTaskQueueResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RecordActivityTaskHeartbeat is optionally called by workers while they execute activities.
- *
- * If worker fails to heartbeat within the `heartbeat_timeout` interval for the activity task,
- * then it will be marked as timed out and an `ACTIVITY_TASK_TIMED_OUT` event will be written to
- * the workflow history. Calling `RecordActivityTaskHeartbeat` will fail with `NotFound` in
- * such situations, in that event, the SDK should request cancellation of the activity.
- * @param \Temporal\Api\Workflowservice\V1\RecordActivityTaskHeartbeatRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RecordActivityTaskHeartbeat(\Temporal\Api\Workflowservice\V1\RecordActivityTaskHeartbeatRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RecordActivityTaskHeartbeat',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RecordActivityTaskHeartbeatResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * See `RecordActivityTaskHeartbeat`. This version allows clients to record heartbeats by
- * namespace/workflow id/activity id instead of task token.
- *
- * (-- api-linter: core::0136::prepositions=disabled
- * aip.dev/not-precedent: "By" is used to indicate request type. --)
- * @param \Temporal\Api\Workflowservice\V1\RecordActivityTaskHeartbeatByIdRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RecordActivityTaskHeartbeatById(\Temporal\Api\Workflowservice\V1\RecordActivityTaskHeartbeatByIdRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RecordActivityTaskHeartbeatById',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RecordActivityTaskHeartbeatByIdResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RespondActivityTaskCompleted is called by workers when they successfully complete an activity
- * task.
- *
- * This results in a new `ACTIVITY_TASK_COMPLETED` event being written to the workflow history
- * and a new workflow task created for the workflow. Fails with `NotFound` if the task token is
- * no longer valid due to activity timeout, already being completed, or never having existed.
- * @param \Temporal\Api\Workflowservice\V1\RespondActivityTaskCompletedRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondActivityTaskCompleted(\Temporal\Api\Workflowservice\V1\RespondActivityTaskCompletedRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCompleted',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondActivityTaskCompletedResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * See `RecordActivityTaskCompleted`. This version allows clients to record completions by
- * namespace/workflow id/activity id instead of task token.
- *
- * (-- api-linter: core::0136::prepositions=disabled
- * aip.dev/not-precedent: "By" is used to indicate request type. --)
- * @param \Temporal\Api\Workflowservice\V1\RespondActivityTaskCompletedByIdRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondActivityTaskCompletedById(\Temporal\Api\Workflowservice\V1\RespondActivityTaskCompletedByIdRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCompletedById',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondActivityTaskCompletedByIdResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RespondActivityTaskFailed is called by workers when processing an activity task fails.
- *
- * This results in a new `ACTIVITY_TASK_FAILED` event being written to the workflow history and
- * a new workflow task created for the workflow. Fails with `NotFound` if the task token is no
- * longer valid due to activity timeout, already being completed, or never having existed.
- * @param \Temporal\Api\Workflowservice\V1\RespondActivityTaskFailedRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondActivityTaskFailed(\Temporal\Api\Workflowservice\V1\RespondActivityTaskFailedRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskFailed',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondActivityTaskFailedResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * See `RecordActivityTaskFailed`. This version allows clients to record failures by
- * namespace/workflow id/activity id instead of task token.
- *
- * (-- api-linter: core::0136::prepositions=disabled
- * aip.dev/not-precedent: "By" is used to indicate request type. --)
- * @param \Temporal\Api\Workflowservice\V1\RespondActivityTaskFailedByIdRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondActivityTaskFailedById(\Temporal\Api\Workflowservice\V1\RespondActivityTaskFailedByIdRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskFailedById',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondActivityTaskFailedByIdResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RespondActivityTaskFailed is called by workers when processing an activity task fails.
- *
- * This results in a new `ACTIVITY_TASK_CANCELED` event being written to the workflow history
- * and a new workflow task created for the workflow. Fails with `NotFound` if the task token is
- * no longer valid due to activity timeout, already being completed, or never having existed.
- * @param \Temporal\Api\Workflowservice\V1\RespondActivityTaskCanceledRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondActivityTaskCanceled(\Temporal\Api\Workflowservice\V1\RespondActivityTaskCanceledRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCanceled',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondActivityTaskCanceledResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * See `RecordActivityTaskCanceled`. This version allows clients to record failures by
- * namespace/workflow id/activity id instead of task token.
- *
- * (-- api-linter: core::0136::prepositions=disabled
- * aip.dev/not-precedent: "By" is used to indicate request type. --)
- * @param \Temporal\Api\Workflowservice\V1\RespondActivityTaskCanceledByIdRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondActivityTaskCanceledById(\Temporal\Api\Workflowservice\V1\RespondActivityTaskCanceledByIdRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondActivityTaskCanceledById',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondActivityTaskCanceledByIdResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RequestCancelWorkflowExecution is called by workers when they want to request cancellation of
- * a workflow execution.
- *
- * This results in a new `WORKFLOW_EXECUTION_CANCEL_REQUESTED` event being written to the
- * workflow history and a new workflow task created for the workflow. It returns success if the requested
- * workflow is already closed. It fails with 'NotFound' if the requested workflow doesn't exist.
- * @param \Temporal\Api\Workflowservice\V1\RequestCancelWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RequestCancelWorkflowExecution(\Temporal\Api\Workflowservice\V1\RequestCancelWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RequestCancelWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RequestCancelWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * SignalWorkflowExecution is used to send a signal to a running workflow execution.
- *
- * This results in a `WORKFLOW_EXECUTION_SIGNALED` event recorded in the history and a workflow
- * task being created for the execution.
- * @param \Temporal\Api\Workflowservice\V1\SignalWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function SignalWorkflowExecution(\Temporal\Api\Workflowservice\V1\SignalWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/SignalWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\SignalWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * SignalWithStartWorkflowExecution is used to ensure a signal is sent to a workflow, even if
- * it isn't yet started.
- *
- * If the workflow is running, a `WORKFLOW_EXECUTION_SIGNALED` event is recorded in the history
- * and a workflow task is generated.
- *
- * If the workflow is not running or not found, then the workflow is created with
- * `WORKFLOW_EXECUTION_STARTED` and `WORKFLOW_EXECUTION_SIGNALED` events in its history, and a
- * workflow task is generated.
- *
- * (-- api-linter: core::0136::prepositions=disabled
- * aip.dev/not-precedent: "With" is used to indicate combined operation. --)
- * @param \Temporal\Api\Workflowservice\V1\SignalWithStartWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function SignalWithStartWorkflowExecution(\Temporal\Api\Workflowservice\V1\SignalWithStartWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/SignalWithStartWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\SignalWithStartWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ResetWorkflowExecution will reset an existing workflow execution to a specified
- * `WORKFLOW_TASK_COMPLETED` event (exclusive). It will immediately terminate the current
- * execution instance.
- * TODO: Does exclusive here mean *just* the completed event, or also WFT started? Otherwise the task is doomed to time out?
- * @param \Temporal\Api\Workflowservice\V1\ResetWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ResetWorkflowExecution(\Temporal\Api\Workflowservice\V1\ResetWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ResetWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ResetWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * TerminateWorkflowExecution terminates an existing workflow execution by recording a
- * `WORKFLOW_EXECUTION_TERMINATED` event in the history and immediately terminating the
- * execution instance.
- * @param \Temporal\Api\Workflowservice\V1\TerminateWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function TerminateWorkflowExecution(\Temporal\Api\Workflowservice\V1\TerminateWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/TerminateWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\TerminateWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * DeleteWorkflowExecution asynchronously deletes a specific Workflow Execution (when
- * WorkflowExecution.run_id is provided) or the latest Workflow Execution (when
- * WorkflowExecution.run_id is not provided). If the Workflow Execution is Running, it will be
- * terminated before deletion.
- * (-- api-linter: core::0135::method-signature=disabled
- * aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
- * (-- api-linter: core::0135::response-message-name=disabled
- * aip.dev/not-precedent: DeleteNamespace RPC doesn't follow Google API format. --)
- * @param \Temporal\Api\Workflowservice\V1\DeleteWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DeleteWorkflowExecution(\Temporal\Api\Workflowservice\V1\DeleteWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/DeleteWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\DeleteWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ListOpenWorkflowExecutions is a visibility API to list the open executions in a specific namespace.
- * @param \Temporal\Api\Workflowservice\V1\ListOpenWorkflowExecutionsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListOpenWorkflowExecutions(\Temporal\Api\Workflowservice\V1\ListOpenWorkflowExecutionsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListOpenWorkflowExecutions',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListOpenWorkflowExecutionsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ListClosedWorkflowExecutions is a visibility API to list the closed executions in a specific namespace.
- * @param \Temporal\Api\Workflowservice\V1\ListClosedWorkflowExecutionsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListClosedWorkflowExecutions(\Temporal\Api\Workflowservice\V1\ListClosedWorkflowExecutionsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListClosedWorkflowExecutions',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListClosedWorkflowExecutionsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ListWorkflowExecutions is a visibility API to list workflow executions in a specific namespace.
- * @param \Temporal\Api\Workflowservice\V1\ListWorkflowExecutionsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListWorkflowExecutions(\Temporal\Api\Workflowservice\V1\ListWorkflowExecutionsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListWorkflowExecutions',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListWorkflowExecutionsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ListArchivedWorkflowExecutions is a visibility API to list archived workflow executions in a specific namespace.
- * @param \Temporal\Api\Workflowservice\V1\ListArchivedWorkflowExecutionsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListArchivedWorkflowExecutions(\Temporal\Api\Workflowservice\V1\ListArchivedWorkflowExecutionsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListArchivedWorkflowExecutions',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListArchivedWorkflowExecutionsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ScanWorkflowExecutions is a visibility API to list large amount of workflow executions in a specific namespace without order.
- * @param \Temporal\Api\Workflowservice\V1\ScanWorkflowExecutionsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ScanWorkflowExecutions(\Temporal\Api\Workflowservice\V1\ScanWorkflowExecutionsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ScanWorkflowExecutions',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ScanWorkflowExecutionsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * CountWorkflowExecutions is a visibility API to count of workflow executions in a specific namespace.
- * @param \Temporal\Api\Workflowservice\V1\CountWorkflowExecutionsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function CountWorkflowExecutions(\Temporal\Api\Workflowservice\V1\CountWorkflowExecutionsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/CountWorkflowExecutions',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\CountWorkflowExecutionsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * GetSearchAttributes is a visibility API to get all legal keys that could be used in list APIs
- * @param \Temporal\Api\Workflowservice\V1\GetSearchAttributesRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetSearchAttributes(\Temporal\Api\Workflowservice\V1\GetSearchAttributesRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/GetSearchAttributes',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\GetSearchAttributesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * RespondQueryTaskCompleted is called by workers to complete queries which were delivered on
- * the `query` (not `queries`) field of a `PollWorkflowTaskQueueResponse`.
- *
- * Completing the query will unblock the corresponding client call to `QueryWorkflow` and return
- * the query result a response.
- * @param \Temporal\Api\Workflowservice\V1\RespondQueryTaskCompletedRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function RespondQueryTaskCompleted(\Temporal\Api\Workflowservice\V1\RespondQueryTaskCompletedRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/RespondQueryTaskCompleted',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\RespondQueryTaskCompletedResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ResetStickyTaskQueue resets the sticky task queue related information in the mutable state of
- * a given workflow. This is prudent for workers to perform if a workflow has been paged out of
- * their cache.
- *
- * Things cleared are:
- * 1. StickyTaskQueue
- * 2. StickyScheduleToStartTimeout
- * @param \Temporal\Api\Workflowservice\V1\ResetStickyTaskQueueRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ResetStickyTaskQueue(\Temporal\Api\Workflowservice\V1\ResetStickyTaskQueueRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ResetStickyTaskQueue',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ResetStickyTaskQueueResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * QueryWorkflow requests a query be executed for a specified workflow execution.
- * @param \Temporal\Api\Workflowservice\V1\QueryWorkflowRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function QueryWorkflow(\Temporal\Api\Workflowservice\V1\QueryWorkflowRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/QueryWorkflow',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\QueryWorkflowResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * DescribeWorkflowExecution returns information about the specified workflow execution.
- * @param \Temporal\Api\Workflowservice\V1\DescribeWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DescribeWorkflowExecution(\Temporal\Api\Workflowservice\V1\DescribeWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/DescribeWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\DescribeWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * DescribeTaskQueue returns information about the target task queue.
- * @param \Temporal\Api\Workflowservice\V1\DescribeTaskQueueRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DescribeTaskQueue(\Temporal\Api\Workflowservice\V1\DescribeTaskQueueRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/DescribeTaskQueue',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\DescribeTaskQueueResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * GetClusterInfo returns information about temporal cluster
- * @param \Temporal\Api\Workflowservice\V1\GetClusterInfoRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetClusterInfo(\Temporal\Api\Workflowservice\V1\GetClusterInfoRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/GetClusterInfo',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\GetClusterInfoResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * GetSystemInfo returns information about the system.
- * @param \Temporal\Api\Workflowservice\V1\GetSystemInfoRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetSystemInfo(\Temporal\Api\Workflowservice\V1\GetSystemInfoRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/GetSystemInfo',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\GetSystemInfoResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * @param \Temporal\Api\Workflowservice\V1\ListTaskQueuePartitionsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListTaskQueuePartitions(\Temporal\Api\Workflowservice\V1\ListTaskQueuePartitionsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListTaskQueuePartitions',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListTaskQueuePartitionsResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Creates a new schedule.
- * (-- api-linter: core::0133::method-signature=disabled
- * aip.dev/not-precedent: CreateSchedule doesn't follow Google API format --)
- * (-- api-linter: core::0133::response-message-name=disabled
- * aip.dev/not-precedent: CreateSchedule doesn't follow Google API format --)
- * (-- api-linter: core::0133::http-uri-parent=disabled
- * aip.dev/not-precedent: CreateSchedule doesn't follow Google API format --)
- * @param \Temporal\Api\Workflowservice\V1\CreateScheduleRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function CreateSchedule(\Temporal\Api\Workflowservice\V1\CreateScheduleRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/CreateSchedule',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\CreateScheduleResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Returns the schedule description and current state of an existing schedule.
- * @param \Temporal\Api\Workflowservice\V1\DescribeScheduleRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DescribeSchedule(\Temporal\Api\Workflowservice\V1\DescribeScheduleRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/DescribeSchedule',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\DescribeScheduleResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Changes the configuration or state of an existing schedule.
- * (-- api-linter: core::0134::response-message-name=disabled
- * aip.dev/not-precedent: UpdateSchedule RPC doesn't follow Google API format. --)
- * (-- api-linter: core::0134::method-signature=disabled
- * aip.dev/not-precedent: UpdateSchedule RPC doesn't follow Google API format. --)
- * @param \Temporal\Api\Workflowservice\V1\UpdateScheduleRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function UpdateSchedule(\Temporal\Api\Workflowservice\V1\UpdateScheduleRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/UpdateSchedule',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\UpdateScheduleResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Makes a specific change to a schedule or triggers an immediate action.
- * (-- api-linter: core::0134::synonyms=disabled
- * aip.dev/not-precedent: we have both patch and update. --)
- * @param \Temporal\Api\Workflowservice\V1\PatchScheduleRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function PatchSchedule(\Temporal\Api\Workflowservice\V1\PatchScheduleRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/PatchSchedule',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\PatchScheduleResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Lists matching times within a range.
- * @param \Temporal\Api\Workflowservice\V1\ListScheduleMatchingTimesRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListScheduleMatchingTimes(\Temporal\Api\Workflowservice\V1\ListScheduleMatchingTimesRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListScheduleMatchingTimes',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListScheduleMatchingTimesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Deletes a schedule, removing it from the system.
- * (-- api-linter: core::0135::method-signature=disabled
- * aip.dev/not-precedent: DeleteSchedule doesn't follow Google API format --)
- * (-- api-linter: core::0135::response-message-name=disabled
- * aip.dev/not-precedent: DeleteSchedule doesn't follow Google API format --)
- * @param \Temporal\Api\Workflowservice\V1\DeleteScheduleRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DeleteSchedule(\Temporal\Api\Workflowservice\V1\DeleteScheduleRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/DeleteSchedule',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\DeleteScheduleResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * List all schedules in a namespace.
- * @param \Temporal\Api\Workflowservice\V1\ListSchedulesRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListSchedules(\Temporal\Api\Workflowservice\V1\ListSchedulesRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListSchedules',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListSchedulesResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Allows users to specify sets of worker build id versions on a per task queue basis. Versions
- * are ordered, and may be either compatible with some extant version, or a new incompatible
- * version, forming sets of ids which are incompatible with each other, but whose contained
- * members are compatible with one another.
- *
- * A single build id may be mapped to multiple task queues using this API for cases where a single process hosts
- * multiple workers.
- *
- * To query which workers can be retired, use the `GetWorkerTaskReachability` API.
- *
- * NOTE: The number of task queues mapped to a single build id is limited by the `limit.taskQueuesPerBuildId`
- * (default is 20), if this limit is exceeded this API will error with a FailedPrecondition.
- *
- * (-- api-linter: core::0134::response-message-name=disabled
- * aip.dev/not-precedent: UpdateWorkerBuildIdCompatibility RPC doesn't follow Google API format. --)
- * (-- api-linter: core::0134::method-signature=disabled
- * aip.dev/not-precedent: UpdateWorkerBuildIdCompatibility RPC doesn't follow Google API format. --)
- * @param \Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function UpdateWorkerBuildIdCompatibility(\Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkerBuildIdCompatibility',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\UpdateWorkerBuildIdCompatibilityResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Fetches the worker build id versioning sets for a task queue.
- * @param \Temporal\Api\Workflowservice\V1\GetWorkerBuildIdCompatibilityRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetWorkerBuildIdCompatibility(\Temporal\Api\Workflowservice\V1\GetWorkerBuildIdCompatibilityRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/GetWorkerBuildIdCompatibility',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\GetWorkerBuildIdCompatibilityResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Fetches task reachability to determine whether a worker may be retired.
- * The request may specify task queues to query for or let the server fetch all task queues mapped to the given
- * build IDs.
- *
- * When requesting a large number of task queues or all task queues associated with the given build ids in a
- * namespace, all task queues will be listed in the response but some of them may not contain reachability
- * information due to a server enforced limit. When reaching the limit, task queues that reachability information
- * could not be retrieved for will be marked with a single TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue
- * another call to get the reachability for those task queues.
- *
- * Open source users can adjust this limit by setting the server's dynamic config value for
- * `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the visibility store.
- * @param \Temporal\Api\Workflowservice\V1\GetWorkerTaskReachabilityRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function GetWorkerTaskReachability(\Temporal\Api\Workflowservice\V1\GetWorkerTaskReachabilityRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/GetWorkerTaskReachability',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\GetWorkerTaskReachabilityResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Invokes the specified update function on user workflow code.
- * (-- api-linter: core::0134=disabled
- * aip.dev/not-precedent: UpdateWorkflowExecution doesn't follow Google API format --)
- * @param \Temporal\Api\Workflowservice\V1\UpdateWorkflowExecutionRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function UpdateWorkflowExecution(\Temporal\Api\Workflowservice\V1\UpdateWorkflowExecutionRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/UpdateWorkflowExecution',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\UpdateWorkflowExecutionResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * Polls a workflow execution for the outcome of a workflow execution update
- * previously issued through the UpdateWorkflowExecution RPC. The effective
- * timeout on this call will be shorter of the the caller-supplied gRPC
- * timeout and the server's configured long-poll timeout.
- * (-- api-linter: core::0134=disabled
- * aip.dev/not-precedent: UpdateWorkflowExecution doesn't follow Google API format --)
- * @param \Temporal\Api\Workflowservice\V1\PollWorkflowExecutionUpdateRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function PollWorkflowExecutionUpdate(\Temporal\Api\Workflowservice\V1\PollWorkflowExecutionUpdateRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/PollWorkflowExecutionUpdate',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\PollWorkflowExecutionUpdateResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * StartBatchOperation starts a new batch operation
- * @param \Temporal\Api\Workflowservice\V1\StartBatchOperationRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function StartBatchOperation(\Temporal\Api\Workflowservice\V1\StartBatchOperationRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/StartBatchOperation',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\StartBatchOperationResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * StopBatchOperation stops a batch operation
- * @param \Temporal\Api\Workflowservice\V1\StopBatchOperationRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function StopBatchOperation(\Temporal\Api\Workflowservice\V1\StopBatchOperationRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/StopBatchOperation',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\StopBatchOperationResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * DescribeBatchOperation returns the information about a batch operation
- * @param \Temporal\Api\Workflowservice\V1\DescribeBatchOperationRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function DescribeBatchOperation(\Temporal\Api\Workflowservice\V1\DescribeBatchOperationRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/DescribeBatchOperation',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\DescribeBatchOperationResponse', 'decode'],
- $metadata, $options);
- }
-
- /**
- * ListBatchOperations returns a list of batch operations
- * @param \Temporal\Api\Workflowservice\V1\ListBatchOperationsRequest $argument input argument
- * @param array $metadata metadata
- * @param array $options call options
- * @return \Grpc\UnaryCall
- */
- public function ListBatchOperations(\Temporal\Api\Workflowservice\V1\ListBatchOperationsRequest $argument,
- $metadata = [], $options = []) {
- return $this->_simpleRequest('/temporal.api.workflowservice.v1.WorkflowService/ListBatchOperations',
- $argument,
- ['\Temporal\Api\Workflowservice\V1\ListBatchOperationsResponse', 'decode'],
- $metadata, $options);
- }
-
-}
diff --git a/api/v1/Temporal/Roadrunner/Internal/Frame.php b/api/v1/Temporal/Roadrunner/Internal/Frame.php
deleted file mode 100644
index 06b6b67e3..000000000
--- a/api/v1/Temporal/Roadrunner/Internal/Frame.php
+++ /dev/null
@@ -1,58 +0,0 @@
-temporal.roadrunner.internal.Frame
- */
-class Frame extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field repeated .temporal.roadrunner.internal.Message messages = 1;
- */
- private $messages;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Temporal\Roadrunner\Internal\Message>|\Google\Protobuf\Internal\RepeatedField $messages
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protocol::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field repeated .temporal.roadrunner.internal.Message messages = 1;
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getMessages()
- {
- return $this->messages;
- }
-
- /**
- * Generated from protobuf field repeated .temporal.roadrunner.internal.Message messages = 1;
- * @param array<\Temporal\Roadrunner\Internal\Message>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setMessages($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Temporal\Roadrunner\Internal\Message::class);
- $this->messages = $arr;
-
- return $this;
- }
-
-}
-
diff --git a/api/v1/Temporal/Roadrunner/Internal/Message.php b/api/v1/Temporal/Roadrunner/Internal/Message.php
deleted file mode 100644
index de53384fa..000000000
--- a/api/v1/Temporal/Roadrunner/Internal/Message.php
+++ /dev/null
@@ -1,216 +0,0 @@
-temporal.roadrunner.internal.Message
- */
-class Message extends \Google\Protobuf\Internal\Message
-{
- /**
- * Generated from protobuf field uint64 id = 1;
- */
- protected $id = 0;
- /**
- * command name (if any)
- *
- * Generated from protobuf field string command = 2;
- */
- protected $command = '';
- /**
- * command options in json format.
- *
- * Generated from protobuf field bytes options = 3;
- */
- protected $options = '';
- /**
- * error response.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- */
- protected $failure = null;
- /**
- * invocation or result payloads.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads payloads = 5;
- */
- protected $payloads = null;
-
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $id
- * @type string $command
- * command name (if any)
- * @type string $options
- * command options in json format.
- * @type \Temporal\Api\Failure\V1\Failure $failure
- * error response.
- * @type \Temporal\Api\Common\V1\Payloads $payloads
- * invocation or result payloads.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protocol::initOnce();
- parent::__construct($data);
- }
-
- /**
- * Generated from protobuf field uint64 id = 1;
- * @return int|string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * Generated from protobuf field uint64 id = 1;
- * @param int|string $var
- * @return $this
- */
- public function setId($var)
- {
- GPBUtil::checkUint64($var);
- $this->id = $var;
-
- return $this;
- }
-
- /**
- * command name (if any)
- *
- * Generated from protobuf field string command = 2;
- * @return string
- */
- public function getCommand()
- {
- return $this->command;
- }
-
- /**
- * command name (if any)
- *
- * Generated from protobuf field string command = 2;
- * @param string $var
- * @return $this
- */
- public function setCommand($var)
- {
- GPBUtil::checkString($var, True);
- $this->command = $var;
-
- return $this;
- }
-
- /**
- * command options in json format.
- *
- * Generated from protobuf field bytes options = 3;
- * @return string
- */
- public function getOptions()
- {
- return $this->options;
- }
-
- /**
- * command options in json format.
- *
- * Generated from protobuf field bytes options = 3;
- * @param string $var
- * @return $this
- */
- public function setOptions($var)
- {
- GPBUtil::checkString($var, False);
- $this->options = $var;
-
- return $this;
- }
-
- /**
- * error response.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- * @return \Temporal\Api\Failure\V1\Failure|null
- */
- public function getFailure()
- {
- return $this->failure;
- }
-
- public function hasFailure()
- {
- return isset($this->failure);
- }
-
- public function clearFailure()
- {
- unset($this->failure);
- }
-
- /**
- * error response.
- *
- * Generated from protobuf field .temporal.api.failure.v1.Failure failure = 4;
- * @param \Temporal\Api\Failure\V1\Failure $var
- * @return $this
- */
- public function setFailure($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Failure\V1\Failure::class);
- $this->failure = $var;
-
- return $this;
- }
-
- /**
- * invocation or result payloads.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads payloads = 5;
- * @return \Temporal\Api\Common\V1\Payloads|null
- */
- public function getPayloads()
- {
- return $this->payloads;
- }
-
- public function hasPayloads()
- {
- return isset($this->payloads);
- }
-
- public function clearPayloads()
- {
- unset($this->payloads);
- }
-
- /**
- * invocation or result payloads.
- *
- * Generated from protobuf field .temporal.api.common.v1.Payloads payloads = 5;
- * @param \Temporal\Api\Common\V1\Payloads $var
- * @return $this
- */
- public function setPayloads($var)
- {
- GPBUtil::checkMessage($var, \Temporal\Api\Common\V1\Payloads::class);
- $this->payloads = $var;
-
- return $this;
- }
-
-}
-
diff --git a/composer.json b/composer.json
index fdac4cb68..6fe498b82 100644
--- a/composer.json
+++ b/composer.json
@@ -24,73 +24,76 @@
"php": ">=8.1",
"ext-curl": "*",
"ext-json": "*",
- "google/common-protos": "^1.3 || ^2.0 || ^3.0",
- "google/protobuf": "^3.22",
- "grpc/grpc": "^1.42",
- "nesbot/carbon": "^2.66",
- "psr/log": "^1.0.1 || ^2.0 || ^3.0",
- "react/promise": "^2.9",
- "spiral/attributes": "^2.8 || ^3.0",
- "spiral/roadrunner-cli": "^2.2 || ^3.0",
- "spiral/roadrunner-kv": "^2.1 || ^3.0 || ^4.0",
- "spiral/roadrunner-worker": "^2.1.3 || ^3.0",
- "symfony/filesystem": "^4.4.20 || ^5.0 || ^6.0",
- "symfony/http-client": "^4.4.20 || ^5.0 || ^6.0",
- "symfony/process": "^4.4.20 || ^5.0 || ^6.0"
+ "google/common-protos": "^1.4 || ^2.2 || ^3.2 || ^4.9",
+ "google/protobuf": "^3.25.5 || ^4.29.3",
+ "grpc/grpc": "^1.57",
+ "nesbot/carbon": "^2.72.6 || ^3.8.4",
+ "psr/log": "^2.0 || ^3.0.2",
+ "ramsey/uuid": "^4.7.6",
+ "react/promise": "^2.11",
+ "roadrunner-php/roadrunner-api-dto": "^1.10.0",
+ "roadrunner-php/version-checker": "^1.0.1",
+ "spiral/attributes": "^3.1.8",
+ "spiral/roadrunner": "^2024.3.3 || ^2025.1.1",
+ "spiral/roadrunner-cli": "^2.6",
+ "spiral/roadrunner-kv": "^4.3",
+ "spiral/roadrunner-worker": "^3.6.1",
+ "symfony/filesystem": "^5.4.45 || ^6.4.13 || ^7.0",
+ "symfony/http-client": "^5.4.49 || ^6.4.17 || ^7.0",
+ "symfony/polyfill-php83": "^1.31.0",
+ "symfony/process": "^5.4.47 || ^6.4.15 || ^7.0"
},
"autoload": {
"psr-4": {
"Temporal\\Api\\Testservice\\": "testing/api/testservice/Temporal/Api/Testservice",
"GPBMetadata\\Temporal\\Api\\Testservice\\": "testing/api/testservice/GPBMetadata/Temporal/Api/Testservice",
"Temporal\\Testing\\": "testing/src",
- "GPBMetadata\\": "api/v1/GPBMetadata",
- "Temporal\\": "src",
- "Temporal\\Api\\": "api/v1/Temporal/Api",
- "Temporal\\Roadrunner\\": "api/v1/Temporal/Roadrunner"
+ "Temporal\\": "src"
}
},
"require-dev": {
- "composer/composer": "^2.0",
+ "buggregator/trap": "^1.13.0",
+ "composer/composer": "^2.8.4",
"dereuromark/composer-prefer-lowest": "^0.1.10",
- "doctrine/annotations": "^1.11",
- "friendsofphp/php-cs-fixer": "^3.0",
- "illuminate/support": "^9.0",
- "jetbrains/phpstorm-attributes": "dev-master@dev",
- "laminas/laminas-code": "^4.0",
- "monolog/monolog": "^2.1 || ^3.0",
- "phpunit/phpunit": "^9.5.21",
- "ramsey/uuid": "^4.7",
- "symfony/translation": "^6.0",
- "symfony/var-dumper": "^6.0",
- "vimeo/psalm": "^4.30 || ^5.4"
+ "doctrine/annotations": "^1.14.4 || ^2.0.2",
+ "internal/dload": "^1.1.0",
+ "jetbrains/phpstorm-attributes": "dev-master",
+ "laminas/laminas-code": "^4.16",
+ "phpunit/phpunit": "10.5.45",
+ "spiral/code-style": "~2.2.2",
+ "spiral/core": "^3.14.9",
+ "ta-tikoma/phpunit-architecture-test": "^0.8.5",
+ "vimeo/psalm": "^5.26.1 || ^6.2"
},
"autoload-dev": {
"psr-4": {
- "Temporal\\Tests\\": "tests",
+ "Temporal\\Tests\\Acceptance\\App\\": "tests/Acceptance/App",
+ "Temporal\\Tests\\Interceptor\\": "tests/Fixtures/src/Interceptor",
"Temporal\\Tests\\Workflow\\": "tests/Fixtures/src/Workflow",
"Temporal\\Tests\\Activity\\": "tests/Fixtures/src/Activity",
- "Temporal\\Tests\\DTO\\": "tests/Fixtures/src/DTO"
+ "Temporal\\Tests\\DTO\\": "tests/Fixtures/src/DTO",
+ "Temporal\\Tests\\Proto\\": "tests/Fixtures/src/Proto",
+ "Temporal\\Tests\\": "tests"
}
},
"suggest": {
- "doctrine/annotations": "^1.11 for Doctrine metadata driver support"
+ "ext-grpc": "For Client calls",
+ "ext-protobuf": "For better performance",
+ "buggregator/trap": "For better debugging"
},
"scripts": {
- "tests": [
- "phpunit --testsuite=Unit --testdox",
- "phpunit --testsuite=Feature --testdox",
- "phpunit --testsuite=Functional --testdox"
+ "get:binaries": [
+ "dload get --no-interaction -vv",
+ "Temporal\\Worker\\Transport\\RoadRunnerVersionChecker::postUpdate"
],
- "phpcs": [
- "@putenv PHP_CS_FIXER_IGNORE_ENV=1",
- "php-cs-fixer fix src"
- ],
- "check": "psalm"
- },
- "extra": {
- "branch-alias": {
- "dev-master": "1.0.x-dev"
- }
+ "cs:diff": "php-cs-fixer fix --dry-run -v --diff --show-progress dots",
+ "cs:fix": "php-cs-fixer fix -v",
+ "psalm": "psalm",
+ "psalm:baseline": "psalm --set-baseline=psalm-baseline.xml",
+ "test:unit": "phpunit --testsuite=Unit --color=always --testdox",
+ "test:func": "phpunit --testsuite=Functional --color=always --testdox",
+ "test:arch": "phpunit --testsuite=Arch --color=always --testdox",
+ "test:accept": "phpunit --testsuite=Acceptance --color=always --testdox"
},
"config": {
"sort-packages": true
diff --git a/dload.xml b/dload.xml
new file mode 100644
index 000000000..da18048a0
--- /dev/null
+++ b/dload.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docker/buildkite/Dockerfile b/docker/buildkite/Dockerfile
deleted file mode 100644
index 0e056cd82..000000000
--- a/docker/buildkite/Dockerfile
+++ /dev/null
@@ -1,4 +0,0 @@
-FROM php:7.4-cli
-
-RUN mkdir -p /php/src
-WORKDIR /php/src
diff --git a/docker/buildkite/docker-compose.yml b/docker/buildkite/docker-compose.yml
deleted file mode 100644
index a83941097..000000000
--- a/docker/buildkite/docker-compose.yml
+++ /dev/null
@@ -1,44 +0,0 @@
-version: "3.5"
-
-services:
- cassandra:
- image: cassandra:3.11
- ports:
- - "9042:9042"
- networks:
- services-network:
- aliases:
- - cassandra
-
- temporal:
- image: temporaliotest/auto-setup:latest
- ports:
- - "7233:7233"
- - "7234:7234"
- - "7235:7235"
- - "7239:7239"
- environment:
- - "CASSANDRA_SEEDS=cassandra"
- - "DYNAMIC_CONFIG_FILE_PATH=config/dynamicconfig/development.yaml"
- depends_on:
- - cassandra
- networks:
- services-network:
- aliases:
- - temporal
-
- build:
- build:
- context: ../../
- dockerfile: ./docker/buildkite/Dockerfile
- volumes:
- - ../../:/php/src
- networks:
- services-network:
- aliases:
- - build
-
-networks:
- services-network:
- name: services-network
- driver: bridge
diff --git a/phpdoc.dist.xml b/phpdoc.dist.xml
new file mode 100644
index 000000000..4569d9e1b
--- /dev/null
+++ b/phpdoc.dist.xml
@@ -0,0 +1,22 @@
+
+
+
+
+ .phpdoc/cache
+
+
+
+
+ src
+
+
+ src/Internal/**/*
+
+
+
+
diff --git a/phpunit.xml b/phpunit.xml
deleted file mode 100644
index f235466e4..000000000
--- a/phpunit.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
- src
-
-
-
-
- tests/Unit
-
-
- tests/Feature
-
-
- tests/Functional
-
-
-
-
-
-
-
-
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
new file mode 100644
index 000000000..044038070
--- /dev/null
+++ b/phpunit.xml.dist
@@ -0,0 +1,51 @@
+
+
+
+
+ tests/Acceptance/Extra
+ tests/Acceptance/Harness
+
+
+ tests/Arch
+
+
+ tests/Unit
+
+
+ tests/Feature
+
+
+ tests/Functional
+
+
+
+
+ skip-on-test-server
+
+
+
+
+
+
+
+
+ src
+
+
+
diff --git a/proto b/proto
deleted file mode 160000
index e4246bbd5..000000000
--- a/proto
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit e4246bbd59fd1f850bdd5be6a59d6d2f8e532d76
diff --git a/psalm-baseline.xml b/psalm-baseline.xml
index dd6cf7252..a8074d53e 100644
--- a/psalm-baseline.xml
+++ b/psalm-baseline.xml
@@ -1,175 +1,306 @@
-
+
- $type
+
+
+
+
+
+
+
+
+
+
+
- mergeWith
+
-
- $type
-
+
+
+
+
+
- mergeWith
+
- $details
- $details
+
+
- recordHeartbeat
- recordHeartbeatByToken
+
+
-
-
- totalMicroseconds]]>
-
-
- maximumInterval]]>
- $waitRetry
-
-
- $options
- $options
-
-
- new static($client)
- new static($client)
-
+
+
+ current()]]>
+
+
+
+
+
+
+
- $format
+
-
- $timeout
-
-
-
- nextPage->counter = &$this->nextPage;]]>
-
-
- nextPage->counter = &$this->nextPage]]>
-
+
+
+
+
+
+
+
+ name]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ namespace]]>
+
+
+
+
+ excludeCalendarList]]>
+ excludeCalendarList]]>
+
+
+
+
+
+
+
+ namespace]]>
+ namespace]]>
+
- $counter
+
+
+
+
+
+
+
newUntypedRunningWorkflowStub($workflowID, $runID, $workflow->getID()),
- $workflow
+ $workflow,
)]]>
newUntypedWorkflowStub($workflow->getID(), $options),
- $workflow
+ $workflow,
)]]>
- object
- object
+
+
- new self($serviceClient, $options, $converter)
+
+
+
+
- static
+
-
- getWorkflowType()]]>
- getWorkflowType()]]>
-
-
- \sprintf
- \sprintf
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+ typedSearchAttributes]]>
+
+
+
+
+
+
+
- mergeWith
+
-
-
-
- ...mixed
- ...mixed
-
-
- $args
- $args
-
+
+
+
+
+
+
- interval]]>
+ interval]]>
+
+
+
+
+
+
+
+
- $interval
- $interval
initialInterval)]]>
maximumInterval)]]>
-
-
- __toString
-
+
+
+
+
+
-
-
- EncodedValues
- EncodedValues
- EncodedValues
-
-
- null
-
-
- payloads[$name]]]>
- $type
-
+
+
+ ]]>
+
+
+
+
+
+
+
+
+ collection]]>
+
- payloads[$name]]]>
+ collection[$found]]]>
+ collection[$key]]]>
-
- values]]>
-
+
+ collection]]>
+ collection]]>
+
+
+
+
-
-
- $value
-
-
- $type
-
+
+
+
+
+
+
+
+
+
+
+
+
- $type
+
+
+
+
+
+
+
+
+
+
+
+
values]]>
-
- getPayloads
-
+
+
+
+
+
getName()]]>
+
+
+
getCode()]]>
getCode()]]>
@@ -190,7 +321,7 @@
- setDataConverter
+
@@ -200,13 +331,13 @@
getCode()]]>
- getID
+
getMessage(),
$e->getCode(),
- $e
+ $e,
)]]>
$info->workflowExecution->getRunID(),
'activityId' => $info->id,
'activityType' => $info->type->name,
- ]
+ ],
),
$e === null ? 0 : $e->getCode(),
- $e
+ $e,
)]]>
getCode(), $e)]]>
- new static(null, $execution, $workflowType, $previous)
+
- new static(static::DEFAULT_ERROR_MESSAGE)
+
- new self([\Error::class])
+
- static
+
+
+
+
- Failure
+
getFailure()]]>
@@ -263,109 +397,70 @@
getLastHeartbeatDetails()]]>
- getName
- getName
- getNonRetryable
- getScheduledEventId
- getStackTrace
- getWorkflowExecution
- getWorkflowId
- hasDetails
- hasDetails
- hasLastHeartbeatDetails
- hasLastHeartbeatDetails
- setStackTrace
+
+
+
+
+
+
- $value
- $value
- $value
+
+
+
- RetryState::name($value)]]>
- TimeoutType::name($value)]]>
- TimeoutType::name($value)]]>
+ RetryState::name($value)]]>
+ TimeoutType::name($value)]]>
+ TimeoutType::name($value)]]>
+
+
+
+
+
+
+
+
- getValue
+
- $v
- $v
+
+
- $details
- $details
+
+
-
-
- getReturnType()]]>
-
-
- WorkflowStubInterface
-
-
- prototype->getReturnType()]]>
-
-
- stub]]>
-
+
+
+
+
+
+
+
+
+
- getHandler
- getHandler
- getQueryHandlers
- getReturnType
- query
- signal
+
+
+
-
-
-
- retryOptions ? $options->retryOptions->toWorkflowRetryPolicy() : null]]>
- retryOptions ? $options->retryOptions->toWorkflowRetryPolicy() : null]]>
- toMemo($this->converter)]]>
- toMemo($this->converter)]]>
- toSearchAttributes($this->converter)]]>
- toSearchAttributes($this->converter)]]>
- workflowExecutionTimeout)]]>
- workflowExecutionTimeout)]]>
- workflowRunTimeout)]]>
- workflowRunTimeout)]]>
- workflowTaskTimeout)]]>
- workflowTaskTimeout)]]>
-
-
- workflowId]]>
- workflowId]]>
-
-
- Uuid::v4()
- Uuid::v4()
-
+
+
+
-
- $type
-
-
- WorkflowExecution
-
-
- $args
- $args
-
-
- execution]]>
-
getTaskId()]]>
@@ -373,6 +468,7 @@
getDetails()]]>
getFailure()]]>
getResult()]]>
+ workflowType]]>
getQueryResult()]]>
execution]]>
execution]]>
@@ -381,24 +477,20 @@
execution]]>
execution]]>
execution]]>
- workflowType]]>
- getEvents
- getEvents
- getFailure
- getNewExecutionRunId
- getReason
- getRetryState
- getStatus
- hasDetails
- hasResult
- toProtoWorkflowExecution
- toProtoWorkflowExecution
- toProtoWorkflowExecution
- toProtoWorkflowExecution
- toProtoWorkflowExecution
+
+
+
+
+
+
+
+
+
+
+
@@ -407,14 +499,14 @@
- FunctionExecutor
+
- FunctionExecutor
+
- $executor
- $types
+
+
@@ -423,163 +515,187 @@
]]>
- static function () use ($boxed) {
+
class->getTraits()]]>
- []
+
- interface NodeInterface extends \Stringable, \IteratorAggregate, \Countable
+
- \IteratorAggregate
+
- final class ActivityInstantiator extends Instantiator
+
- InstantiatorInterface
+
- TPrototype
+
- final class WorkflowInstantiator extends Instantiator
+
-
- getInstance($prototype)]]>
-
-
- $class !== null
-
- $prototype
+
- T|null
+
- $reflection
+
-
-
- queryHandlers]]>
- signalHandlers]]>
-
-
+
+
+
+
+
- $group
+
- $retry !== null
+
- $class
- $method
- $name
+
+
+
+
-
- $graph
- $graph
-
- \reset($prototypes)
+
]]>
+
+
+
- $group
- $group
+
+
- $retry !== null
+
-
- $handler
- $name
-
-
- context]]>
-
-
- queryHandlers]]>
-
+
+
+
+
+
+
+
+
-
- ($this->consumers[$signal])($args)]]>
- ($this->consumers[$signal])($values)]]>
-
- $onSignal
+
- T
+
- self
- self
+
+
- $callback(...$arguments)
+
- T
+
-
-
- getFields(),
- $this->converter,
- )]]>
- getIndexedFields(),
- $this->converter,
- )]]>
- converter)]]>
- converter)]]>
-
-
- EncodedCollection
- EncodedCollection
-
+
+
+ last]]>
+ last)(...$arguments)]]>
+
+
+
+
+
-
+
+
+ action]]>
+
+
+ header?->setDataConverter($this->converter)]]>
+ input?->setDataConverter($this->converter)]]>
+ memo?->setDataConverter($this->converter)]]>
+ searchAttributes?->setDataConverter($this->converter)]]>
+
+
+ header]]>
+ input]]>
+ memo]]>
+ searchAttributes]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getTaskQueue()]]>
+ getHistorySizeBytes()]]>
+ getStateTransitionCount()]]>
+
- $marshal
- $marshal === null
+
+
+
+
+
+
+
+
+
+
- $value
+
getters]]>
@@ -587,24 +703,82 @@
name]]>
+ name]]>
-
- toTypeDto()]]>
-
+
+
+
- $type
+ name]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getSeconds(), $input->getNanos() / 1000),
+ )]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getDetails()]]>
+ getSummary()]]>
+
-
- \is_array($value)
-
- $current
- $value
- $value
+
+
@@ -613,15 +787,20 @@
format]]>
+
+
format)->totalMicroseconds * 1000]]>
+
+
+
+
+
+
-
- \UnitEnum|null
-
- $class
+
classFQCN::from($value)]]>
@@ -630,21 +809,26 @@
- new \ReflectionClass($class ?? stdClass::class)
+
- reflection->getName() === stdClass::class
- ? (object)$data
+ reflection->getName() === \stdClass::class
+ ? (object) $data
: $this->marshaller->unmarshal($data, $this->reflection->newInstanceWithoutConstructor())]]>
- TClass
+
+
+
+
+
+
- $typeClass
- $typeClass
+
+
@@ -652,32 +836,31 @@
getDefaultMatchers()]]>
- $matcher::match($type)
+
+ : null]]>
- ?string
- >]]>
+
- $result
+
- ?string
+
- protected array $commands = [];
+
- interface QueueInterface extends \IteratorAggregate, \Countable
+
- \IteratorAggregate
+
@@ -690,39 +873,44 @@
- interface RepositoryInterface extends \IteratorAggregate, \Countable
+
-
- callable(TEntry): bool
-
- \IteratorAggregate
+
+
+
+
+
+
+
+
+
+
+
-
- totalSeconds]]>
-
-
- AVAILABLE_FORMATS = [
- self::FORMAT_YEARS,
- self::FORMAT_MONTHS,
- self::FORMAT_WEEKS,
- self::FORMAT_DAYS,
- self::FORMAT_HOURS,
- self::FORMAT_MINUTES,
- self::FORMAT_SECONDS,
- self::FORMAT_MILLISECONDS,
- self::FORMAT_MICROSECONDS,
- self::FORMAT_NANOSECONDS,
- ]
-
-
- $interval / 1000
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
new \DateTimeImmutable($time, $tz),
\DateTime::class => new \DateTime($time, $tz),
@@ -731,57 +919,85 @@
}]]>
- CarbonInterface
+
- $time
- $time
- $tz
- $tz
+
+
-
- $time
-
+
+
+
- $_
+
+
+ getName()]]>
+
|null]]>
- private static ?object $ctx = null;
- public static function getCurrentContext(): object
+
+
- $implements
- $used
+
+
- new static()
+
+
+
+
+
+
-
- self::ERROR_REQUEST_ID_DUPLICATION
- self::ERROR_REQUEST_NOT_FOUND
-
-
- fetch
- fetch
- fetch
- get
- request
-
-
- queue]]>
- requests]]>
-
+
+ getID()]]>
+ getID()]]>
+ getID()]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ wrapContext($onFulfilledOrRejected)]]>
+ wrapContext($onRejected)]]>
+
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
@@ -790,388 +1006,285 @@
- $process === null
+
-
- cancel
-
-
- $process === null
-
-
- cancel
-
-
- pull
-
-
-
-
- function (WorkflowPrototype $workflow) {
- []]>
-
- getID
+
-
- getFinalizer
-
+
+
+
-
- getPayloads())]]>
-
+
+ getID()]]>
+
+
+ getOptions()['name']]]>
+
- getQueryHandlerNames
+
+
+
+
+
+ getID()]]>
+ getID()]]>
+
+
+ getOptions()['name']]]>
+
+
+
+
+ getID()]]>
+
-
-
+ getOptions()['name']]]>
+ getOptions()['updateId']]]>
+
+
+
+
+
-
- getContext
-
-
-
-
+
+ getID()]]>
+
+
+
+
+
+
+
+
+
+
- $process
+ running->find($runId) ?? throw new \LogicException(
+ \sprintf(self::ERROR_PROCESS_NOT_FOUND, $runId),
+ )]]>
- Process
+
-
- $result
- $result
-
+
+
+
+
+
+
+
+
+
+
+ getID()]]>
+ getID()]]>
+
+
+
-
- $returnType
-
+
+
+
+
request($request), $returnType)]]>
- PromiseInterface
+
+
+
+
getReturnType()]]>
-
- signal
-
+
+ workflow]]>
+
- then(
+ execution->promise()->then(
function (WorkflowExecution $execution) use ($name, $args) {
$request = new SignalExternalWorkflow(
$this->getOptions()->namespace,
$execution->getID(),
- $execution->getRunID(),
+ null,
$name,
EncodedValues::fromValues($args),
- true
+ true,
);
return $this->request($request);
- }
+ },
)]]>
start(...$args)->then(fn() => $this->getResult($returnType))]]>
- EncodedValues::decodePromise($started)
+
-
- function (ValuesInterface $values) {
-
- $returnType
+
- PromiseInterface
- PromiseInterface
- PromiseInterface
+
+
+
result]]>
-
-
- request($request)]]>
-
-
- PromiseInterface
-
+
+
+
+
+
+
+
+
+
-
- Scope
- parent::__construct($services, $ctx)
- parent::start($handler, $values)
-
-
- createScope
- getContext
- makeCurrent
- onClose
- parent::__construct($services, $ctx)
- parent::start($handler, $values)
- promise
- start
-
-
- mixed|string
-
-
- $result
-
-
- $result
-
- Process
+
-
- getRunId
- getSignalQueue
- getWorkflowInstance
- isContinuedAsNew
-
-
- context]]>
-
-
- services, $this->context)]]>
-
-
- attach
- call
- createScope
- createScope
- defer
- defer
- handleError
- handleError
- makeCurrent
- makeCurrent
- makeCurrent
- makeCurrent
- makeCurrent
- makeCurrent
- makeCurrent
- services, $this->context)]]>
- next
- next
- next
- next
- nextPromise
- nextPromise
- nextPromise
- nextPromise
- onClose
- onException
- onException
- onException
- onResult
- start
-
-
- detached]]>
- layer]]>
- cancelID]]>
- cancelID]]>
- cancelID]]>
- cancelID]]>
- cancelled]]>
- context]]>
- coroutine]]>
- coroutine]]>
- deferred]]>
- exception]]>
- onCancel]]>
- onCancel]]>
- onCancel]]>
- onCancel]]>
- onClose]]>
- result]]>
- scopeContext]]>
- services]]>
-
-
- context]]>
-
-
- $result
-
-
- function ($result) {
-
-
- WorkflowContext
-
- $coroutine
+
- getClient
- getClient
- getClient
- getClient
- getClient
- resolveConditions
- resolveConditions
- resolveConditions
- resolveConditions
- resolveConditions
- resolveConditions
- resolveConditions
+
+
-
-
-
- $process === null
-
+
+
+
- __call
+
- getName
+
-
- getLayer
- getLayer
- isCancelled
- onAwait
- startScope
- startScope
-
+
+
+
- $onRequest
- $parent
- $scope
+
+
+
-
- parent->awaits]]>
-
- $conditionGroupId
- $context
- $maxSupported
- $minSupported
+ maxSupported]]>
+ minSupported]]>
+ type]]>
+
+
-
- $returnType
-
+
+ input->info->typedSearchAttributes]]>
+
+
+
+
- string
+
- new ActivityProxy(
- $class,
- $activities,
- $options ?? ActivityOptions::new(),
- $this
- )
- new ChildWorkflowProxy(
+
- new ContinueAsNewProxy($class, $workflow, $options, $this)
- new ExternalWorkflowProxy($class, $workflow, $stub)
+ $this,
+ )]]>
+
+
- object
- object
- object
- object
+
+
+
- $reason
- $result
+
+
- function ($result) use ($conditionGroupId) {
+
+
+
+
input->info->execution->getRunID()]]>
+
+ awaits = &$this->awaits]]>
+ trace = &$this->trace]]>
+
+
+
+
- $promisesOrValues
+
-
- $promiseOrValue
- $promiseOrValue
-
-
-
-
- $value
-
-
-
-
- errorMessage)]]>
-
-
- errorMessage)]]>
-
-
- Throwable
-
+
+
+
+
+ ]]>
+ ]]>
+ |T>]]>
+
- toValue
+
- $dataConverter
+
-
- $value
-
getOptions()['name']]]>
- $cacheName
- $host
+
+
- $value
+
getOptions()['name']]]>
@@ -1179,7 +1292,7 @@
- EventListenerInterface
+
@@ -1193,12 +1306,21 @@
+
+ $this->parseRequest($command, $info),
+ isset($command['failure']) => $this->parseFailureResponse($command, $info),
+ default => $this->parseResponse($command, $info),
+ }]]>
+
+
+
+
-
@@ -1211,46 +1333,82 @@
getCode()]]>
getCode()]]>
+
+
+
-
- getId()]]>
- getId()]]>
-
+
+ getCommand()]]>
+
getFailure()]]>
getPayloads()]]>
getPayloads()]]>
+
+
+
+
+ getOptions(), JSON_INVALID_UTF8_IGNORE | JSON_UNESCAPED_UNICODE)]]>
+
+
getFailure()]]>
+
+
+
+
+
+ failure]]>
+
+
+
+
+
+
+
+ values]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
getRPCAddress()]]>
- $method
+
-
-
- $payload
-
-
getRelayAddress()]]>
- $payload === null
+
- new Payload($frame, $json)
+
- new Payload($frame, $json)
+
body]]>
@@ -1263,101 +1421,163 @@
getCode()]]>
- $result
+
- encode
+
- []
+
- $type
+
- EventEmitterTrait
- EventListenerInterface
+
+
-
- addFinalizer
-
- run
+
-
-
- new self()
-
-
- static
-
-
+
+
+
+
+
+
- responses, $this)]]>
+ responses)]]>
- responses, $this)]]>
+ responses)]]>
- queues]]>
+ onRequest(...)]]>
-
- new ArrayRepository()
-
-
- ]]>
-
-
- RepositoryInterface
- ]]>
-
+
+
+
- EventEmitterTrait
+
-
- messages]]>
-
+
+ ]]>
+
- $headers[self::HEADER_TASK_QUEUE]
+
- $codec
+
-
- responses, $this)]]>
-
- dispatch
- dispatch
- dispatch
- update
+
+
+
- new static(
+
+ $rpc ?? Goridge::create(),
+ $credentials,
+ )]]>
+
+
+ newActivityStub($class, $options)]]>
+ registerQuery($queryType, $handler)]]>
+ registerSignal($name, $handler)]]>
+
+
+
+
+
+
+
+ ]]>
+ ]]>
+ ]]>
+ ]]>
+ ]]>
+ ]]>
+ ]]>
+ ]]>
+
+
+
+
+
+
+
- mergeWith
+
- $returnType
+
+
+
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
getCode()]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ]]>
+ ]]>
+ ]]>
+ ]]>
+ ]]>
+ ]]>
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/psalm.xml b/psalm.xml
index 81411b352..42dc8dff0 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -22,16 +22,7 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
diff --git a/resources/client.meta-storm.xml b/resources/client.meta-storm.xml
new file mode 100644
index 000000000..a3a54236a
--- /dev/null
+++ b/resources/client.meta-storm.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/collections.meta-storm.xml b/resources/collections.meta-storm.xml
new file mode 100644
index 000000000..602dd84c2
--- /dev/null
+++ b/resources/collections.meta-storm.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
diff --git a/resources/protocol.proto b/resources/protocol.proto
deleted file mode 100644
index 8227e8430..000000000
--- a/resources/protocol.proto
+++ /dev/null
@@ -1,27 +0,0 @@
-syntax = "proto3";
-
-package temporal.roadrunner.internal;
-
-import "temporal/api/common/v1/message.proto";
-import "temporal/api/failure/v1/message.proto";
-
-message Frame {
- repeated Message messages = 1;
-}
-
-// Single communication message.
-message Message {
- uint64 id = 1;
-
- // command name (if any)
- string command = 2;
-
- // command options in json format.
- bytes options = 3;
-
- // error response.
- temporal.api.failure.v1.Failure failure = 4;
-
- // invocation or result payloads.
- temporal.api.common.v1.Payloads payloads = 5;
-}
diff --git a/resources/scripts/generate-client.php b/resources/scripts/generate-client.php
index 8bfed39ef..852a49a86 100644
--- a/resources/scripts/generate-client.php
+++ b/resources/scripts/generate-client.php
@@ -7,10 +7,13 @@
* file that was distributed with this source code.
*/
-use \Laminas\Code\Generator;
-use Laminas\Code\Generator\MethodGenerator;
-use \Temporal\Api\Workflowservice;
use Grpc\BaseStub;
+use Laminas\Code\Generator;
+use Laminas\Code\Generator\MethodGenerator;
+use Temporal\Api\Workflowservice;
+use Temporal\Client\Common\ServerCapabilities;
+use Temporal\Client\GRPC\Connection\ConnectionInterface;
+use Temporal\Client\GRPC\ContextInterface;
require __DIR__ . '/../../vendor/autoload.php';
@@ -86,6 +89,48 @@
$interface = new Generator\InterfaceGenerator('ServiceClientInterface');
+
+// getContext(): ContextInterface
+$m = new MethodGenerator(
+ 'getContext',
+ [],
+ MethodGenerator::FLAG_PUBLIC,
+);
+$m->setReturnType(ContextInterface::class);
+$interface->addMethodFromGenerator($m);
+// withContext(ContextInterface $context): static
+$m = new MethodGenerator(
+ 'withContext',
+ [Generator\ParameterGenerator::fromArray(['type' => ContextInterface::class, 'name' => 'context'])],
+ MethodGenerator::FLAG_PUBLIC,
+);
+$m->setReturnType('static');
+$interface->addMethodFromGenerator($m);
+// withAuthKey(string $key): static
+$m = new MethodGenerator(
+ 'withAuthKey',
+ [Generator\ParameterGenerator::fromArray(['type' => '\Stringable|string', 'name' => 'key'])],
+ MethodGenerator::FLAG_PUBLIC,
+);
+$m->setReturnType('static');
+$interface->addMethodFromGenerator($m);
+// public function getConnection(): ConnectionInterface
+$m = new MethodGenerator(
+ 'getConnection',
+ [],
+ MethodGenerator::FLAG_PUBLIC,
+);
+$m->setReturnType(ConnectionInterface::class);
+$interface->addMethodFromGenerator($m);
+// Add Capability methods
+$m = new MethodGenerator(
+ 'getServerCapabilities',
+ [],
+ MethodGenerator::FLAG_PUBLIC,
+);
+$m->setReturnType('?' . ServerCapabilities::class);
+$interface->addMethodFromGenerator($m);
+
foreach ($methods as $method => $options) {
$m = new MethodGenerator($method);
@@ -112,24 +157,10 @@
$interface->addMethodFromGenerator($m);
echo "[OK]\n";
-
-$docBlock = new Generator\DocBlockGenerator(
- join(
- "\n",
- [
- 'This file is part of Temporal package.',
- '',
- 'For the full copyright and license information, please view the LICENSE',
- 'file that was distributed with this source code.'
- ]
- )
-);
-
echo "writing interface: ";
$file = new Generator\FileGenerator();
$file->setNamespace('Temporal\\Client\\GRPC');
-$file->setDocBlock($docBlock);
$file->setClass($interface);
$file->setUses(
[
@@ -178,7 +209,6 @@
$file = new Generator\FileGenerator();
$file->setNamespace('Temporal\\Client\\GRPC');
-$file->setDocBlock($docBlock);
$file->setClass($impl);
$file->setUses(
[
diff --git a/resources/scripts/generate-proto.php b/resources/scripts/generate-proto.php
deleted file mode 100644
index 5efe8f3c6..000000000
--- a/resources/scripts/generate-proto.php
+++ /dev/null
@@ -1,152 +0,0 @@
-getMessage() . "\n";
- return;
-}
-
-try {
- echo 'grpc_php_plugin: ';
- $plugin = Process::run('which', 'grpc_php_plugin');
- if (trim($plugin) === '') {
- echo "not found\n";
- return;
- }
-
- echo "{$plugin} [OK]\n";
-} catch (ProcessFailedException $e) {
- echo $e->getMessage() . "\n";
- return;
-}
-
-
-echo 'api dir: ';
-if (is_dir('api')) {
- echo "exists\n";
-} else {
- mkdir('api');
- echo "created\n";
-}
-
-echo "\nCompiling protobuf client...\n";
-
-chdir(__DIR__ . '/../../');
-
-try {
- echo "proto files lookup: ";
- $files = Process::run(
- 'find',
- 'proto/temporal',
- '-iname',
- '*.proto'
- );
-
- $files = explode("\n", $files);
-
- echo "[OK]\n";
-} catch (ProcessFailedException $e) {
- echo $e->getMessage() . "\n";
- return;
-}
-
-try {
- echo "generating client files: ";
- $result = exec(
- sprintf(
- 'protoc --php_out=api/v1 --plugin=protoc-gen-grpc=%s --grpc_out=./api/v1 -Iproto %s',
- $plugin,
- join(' ', $files)
- )
- );
-
- if (trim($result) !== '') {
- throw new Error($result);
- }
-
- echo "[OK]\n";
-} catch (Error $e) {
- echo $e->getMessage() . "\n";
- return;
-}
-
-$gogo = file_get_contents('proto/dependencies/gogoproto/gogo.proto');
-
-try {
- echo "generating dependencies: ";
-
- // PHP does not support Syntax2
- file_put_contents(
- 'proto/dependencies/gogoproto/gogo.proto',
- str_replace('syntax = "proto2";', 'syntax = "proto3";', $gogo)
- );
-
- $result = exec(
- sprintf(
- 'protoc --php_out=api/v1 --plugin=protoc-gen-grpc=%s --grpc_out=./api/v1 -Iproto %s',
- $plugin,
- 'proto/dependencies/gogoproto/gogo.proto'
- )
- );
-
- if (trim($result) !== '') {
- throw new Error($result);
- }
-
- echo "[OK]\n";
-} catch (Error $e) {
- echo $e->getMessage() . "\n";
- return;
-} finally {
- // restoring original file
- file_put_contents('proto/dependencies/gogoproto/gogo.proto', $gogo);
-}
-
-
-copy('resources/protocol.proto', 'proto/protocol.proto');
-
-try {
- echo "generating roadrunner prototol (php): ";
-
- $result = exec(
- sprintf(
- 'protoc --php_out=api/v1 --plugin=protoc-gen-grpc=%s --grpc_out=./api/v1 -Iproto %s',
- $plugin,
- 'proto/protocol.proto'
- )
- );
-
- if (trim($result) !== '') {
- throw new Error($result);
- }
-
- echo "[OK]\n";
-} catch (Error $e) {
- echo $e->getMessage() . "\n";
- return;
-} finally {
- // restoring original file
- unlink('proto/protocol.proto');
-}
diff --git a/resources/workflow.meta-storm.xml b/resources/workflow.meta-storm.xml
new file mode 100644
index 000000000..64cddeb7a
--- /dev/null
+++ b/resources/workflow.meta-storm.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/runtime/.gitignore b/runtime/.gitignore
new file mode 100644
index 000000000..72e8ffc0d
--- /dev/null
+++ b/runtime/.gitignore
@@ -0,0 +1 @@
+*
diff --git a/src/Activity.php b/src/Activity.php
index 7ee68159d..5e7b989ad 100644
--- a/src/Activity.php
+++ b/src/Activity.php
@@ -26,7 +26,6 @@ final class Activity extends Facade
/**
* Returns information about current activity execution.
*
- * @return ActivityInfo
* @throws OutOfContextException in the absence of the activity execution context.
*/
public static function getInfo(): ActivityInfo
@@ -42,7 +41,7 @@ public static function getInfo(): ActivityInfo
*
* The data is equivalent to what is passed to the activity method handler.
*
- *
+ * ```php
* #[ActivityMethod]
* public function activityMethod(int $first, string $second)
* {
@@ -51,9 +50,8 @@ public static function getInfo(): ActivityInfo
* Assert::assertTrue($first, $arguments->getValue(0, Type::TYPE_INT));
* Assert::assertTrue($second, $arguments->getValue(1, Type::TYPE_STRING));
* }
- *
+ * ```
*
- * @return ValuesInterface
* @throws OutOfContextException in the absence of the activity execution context.
*/
public static function getInput(): ValuesInterface
@@ -65,10 +63,10 @@ public static function getInput(): ValuesInterface
}
/**
- * Returns {@see true} when heartbeat's ({@see Activity::heartbeat()}) first
- * argument has been passed.
+ * Check if the heartbeat's first argument has been passed.
+ *
+ * This method returns **true** if the first argument has been passed to the {@see Activity::heartbeat()} method.
*
- * @return bool
* @throws OutOfContextException in the absence of the activity execution context.
*/
public static function hasHeartbeatDetails(): bool
@@ -80,8 +78,9 @@ public static function hasHeartbeatDetails(): bool
}
/**
- * The method returns payload that has been passed into last
- * heartbeat ({@see Activity::heartbeat()}) method.
+ * Returns the payload passed into the last heartbeat.
+ *
+ * This method retrieves the payload that was passed into the last call of the {@see Activity::heartbeat()} method.
*
* @param Type|string|\ReflectionType|\ReflectionClass|null $type
* @return mixed
@@ -96,6 +95,8 @@ public static function getHeartbeatDetails($type = null)
}
/**
+ * Marks the activity as incomplete for asynchronous completion.
+ *
* If this method is called during an activity execution then activity is
* not going to complete when its method returns. It is expected to be
* completed asynchronously using {@see ActivityCompletionClientInterface::complete()}.
@@ -113,7 +114,7 @@ public static function doNotCompleteOnReturn(): void
/**
* Use to notify workflow that activity execution is alive.
*
- *
+ * ```php
* public function activityMethod()
* {
* // An example method of deferred request
@@ -127,7 +128,7 @@ public static function doNotCompleteOnReturn(): void
* // Returns response of deferred request
* return $query->getResult();
* }
- *
+ * ```
*
* @param mixed $details In case of activity timeout details are returned
* as a field of the exception thrown.
@@ -140,4 +141,15 @@ public static function heartbeat($details): void
$context->heartbeat($details);
}
+
+ /**
+ * Get the currently running activity instance.
+ */
+ public static function getInstance(): object
+ {
+ /** @var ActivityContextInterface $context */
+ $context = self::getCurrentContext();
+
+ return $context->getInstance();
+ }
}
diff --git a/src/Activity/ActivityCancellationType.php b/src/Activity/ActivityCancellationType.php
index ef459a76f..dd5d05d12 100644
--- a/src/Activity/ActivityCancellationType.php
+++ b/src/Activity/ActivityCancellationType.php
@@ -15,12 +15,13 @@
use Temporal\Internal\Marshaller\Type\Type;
/**
- * Defines behaviour of the parent workflow when {@see CancellationScope} that
- * wraps child workflow execution request is canceled. The result of the
- * cancellation independently of the type is a {@see FailedCancellationException}
+ * Defines behaviour of the parent workflow when `CancellationScope` that
+ * wraps child workflow execution request is canceled.
+ *
+ * The result of the cancellation independently of the type is a {@see FailedCancellationException}
* thrown from the child workflow method.
*/
-final class ActivityCancellationType extends Type
+enum ActivityCancellationType: int
{
/**
* Wait for activity cancellation completion. Note that activity must
@@ -28,43 +29,41 @@ final class ActivityCancellationType extends Type
* cancellation for a long time if activity doesn't heartbeat or chooses to
* ignore the cancellation request.
*/
- public const WAIT_CANCELLATION_COMPLETED = 0x00;
+ case WaitCancellationCompleted = 0;
/**
* Initiate a cancellation request and immediately report cancellation to
* the workflow.
*/
- public const TRY_CANCEL = 0x01;
+ case TryCancel = 1;
/**
* Do not request cancellation of the activity and immediately report
* cancellation to the workflow.
+ *
+ * Note: currently not supported.
*/
- public const ABANDON = 0x02;
+ case Abandon = 2;
/**
- * {@inheritDoc}
+ * Wait for activity cancellation completion. Note that activity must
+ * heartbeat to receive a cancellation notification. This can block the
+ * cancellation for a long time if activity doesn't heartbeat or chooses to
+ * ignore the cancellation request.
*/
- public function parse($value, $current)
- {
- return $value ? self::WAIT_CANCELLATION_COMPLETED : self::TRY_CANCEL;
- }
+ public const WAIT_CANCELLATION_COMPLETED = 0x00;
/**
- * {@inheritDoc}
+ * Initiate a cancellation request and immediately report cancellation to
+ * the workflow.
*/
- public function serialize($value)
- {
- switch ($value) {
- case self::WAIT_CANCELLATION_COMPLETED:
- return true;
-
- case self::TRY_CANCEL:
- return false;
+ public const TRY_CANCEL = 0x01;
- default:
- $error = "Option #{$value} is currently not supported";
- throw new \InvalidArgumentException($error);
- }
- }
+ /**
+ * Do not request cancellation of the activity and immediately report
+ * cancellation to the workflow.
+ *
+ * Note: currently not supported.
+ */
+ public const ABANDON = 0x02;
}
diff --git a/src/Activity/ActivityContextInterface.php b/src/Activity/ActivityContextInterface.php
index 2a0b1bc4b..64ef08e65 100644
--- a/src/Activity/ActivityContextInterface.php
+++ b/src/Activity/ActivityContextInterface.php
@@ -18,27 +18,29 @@
interface ActivityContextInterface
{
/**
- * @see Activity::getInfo()
+ * Returns information about current activity execution.
*
- * @return ActivityInfo
+ * @see Activity::getInfo()
*/
public function getInfo(): ActivityInfo;
/**
- * @see Activity::getInput()
+ * Returns activity execution input arguments.
*
- * @return ValuesInterface
+ * @see Activity::getInput()
*/
public function getInput(): ValuesInterface;
/**
- * @see Activity::hasHeartbeatDetails()
+ * Check if the heartbeat's first argument has been passed.
*
- * @return bool
+ * @see Activity::hasHeartbeatDetails()
*/
public function hasHeartbeatDetails(): bool;
/**
+ * Returns the payload passed into the last heartbeat.
+ *
* @see Activity::getHeartbeatDetails()
*
* @param Type|string $type
@@ -47,16 +49,25 @@ public function hasHeartbeatDetails(): bool;
public function getHeartbeatDetails($type = null);
/**
- * @see Activity::doNotCompleteOnReturn()
+ * Marks the activity as incomplete for asynchronous completion.
*
- * @return void
+ * @see Activity::doNotCompleteOnReturn()
*/
public function doNotCompleteOnReturn(): void;
/**
+ * Use to notify workflow that activity execution is alive.
+ *
* @see Activity::heartbeat()
*
* @param mixed $details
*/
public function heartbeat($details): void;
+
+ /**
+ * Get the currently running activity instance.
+ *
+ * @see Activity::getInstance()
+ */
+ public function getInstance(): object;
}
diff --git a/src/Activity/ActivityInfo.php b/src/Activity/ActivityInfo.php
index c509476f9..f7350be2d 100644
--- a/src/Activity/ActivityInfo.php
+++ b/src/Activity/ActivityInfo.php
@@ -34,83 +34,60 @@
final class ActivityInfo
{
/**
- * A correlation token that can be used to complete the activity
- * through {@see ActivityCompletionClientInterface::complete()}.
+ * A correlation token that can be used to complete the activity through `complete` method.
*
- * @var string
+ * @see ActivityCompletionClientInterface::complete()
*/
#[Marshal(name: 'TaskToken')]
public string $taskToken;
- /**
- * @var WorkflowType|null
- */
#[Marshal(name: 'WorkflowType', type: NullableType::class, of: WorkflowType::class)]
public ?WorkflowType $workflowType = null;
- /**
- * @var string
- */
#[Marshal(name: 'WorkflowNamespace')]
public string $workflowNamespace = 'default';
- /**
- * @var WorkflowExecution|null
- */
#[Marshal(name: 'WorkflowExecution', type: NullableType::class, of: WorkflowExecution::class)]
public ?WorkflowExecution $workflowExecution = null;
/**
* An ID of the activity. This identifier can be used to complete the
- * activity through {@see ActivityCompletionClientInterface::complete()}.
+ * activity through `complete` method.
*
- * @var string
+ * @see ActivityCompletionClientInterface::complete()
*/
#[Marshal(name: 'ActivityID')]
public string $id;
/**
* Type (name) of the activity.
- *
- * @var ActivityType
*/
#[Marshal(name: 'ActivityType', type: ObjectType::class, of: ActivityType::class)]
public ActivityType $type;
- /**
- * @var string
- */
#[Marshal(name: 'TaskQueue')]
public string $taskQueue = WorkerFactoryInterface::DEFAULT_TASK_QUEUE;
/**
* Maximum time between heartbeats. 0 means no heartbeat needed.
- *
- * @var \DateInterval
*/
#[Marshal(name: 'HeartbeatTimeout', type: DateIntervalType::class)]
public \DateInterval $heartbeatTimeout;
/**
* Time of activity scheduled by a workflow
- *
- * @var \DateTimeInterface
*/
#[Marshal(name: 'ScheduledTime', type: DateTimeType::class)]
public \DateTimeInterface $scheduledTime;
/**
* Time of activity start
- *
- * @var \DateTimeInterface
*/
#[Marshal(name: 'StartedTime', type: DateTimeType::class)]
public \DateTimeInterface $startedTime;
/**
* Time of activity timeout
- *
- * @var \DateTimeInterface
*/
#[Marshal(name: 'Deadline', type: DateTimeType::class)]
public \DateTimeInterface $deadline;
@@ -118,8 +95,6 @@ final class ActivityInfo
/**
* Attempt starts from 1, and increased by 1 for every retry if
* retry policy is specified.
- *
- * @var int
*/
#[Marshal(name: 'Attempt')]
public int $attempt = 1;
diff --git a/src/Activity/ActivityInterface.php b/src/Activity/ActivityInterface.php
index e0daf750d..fe2fbb6c9 100644
--- a/src/Activity/ActivityInterface.php
+++ b/src/Activity/ActivityInterface.php
@@ -16,10 +16,10 @@
use Spiral\Attributes\NamedArgumentConstructor;
/**
- * Indicates that an interface is an activity interface. Only interfaces
- * annotated with this annotation can be used as parameters
- * to {@see Workflow::activity()}
- * and {@see WorkflowContextInterface::newActivityStub()} methods.
+ * Indicates that an interface is an activity interface.
+ *
+ * Only interfaces annotated with this annotation can be used as parameters
+ * to {@see Workflow::activity()} and {@see WorkflowContextInterface::newActivityStub()} methods.
*
* Each method of the interface annotated with {@see ActivityInterface}
* including inherited from interfaces is a separate activity. By default the
@@ -49,9 +49,6 @@ class ActivityInterface
#[Immutable]
public string $prefix = '';
- /**
- * @param string $prefix
- */
public function __construct(string $prefix = '')
{
$this->prefix = $prefix;
diff --git a/src/Activity/ActivityMethod.php b/src/Activity/ActivityMethod.php
index 884ee38db..4942402b1 100644
--- a/src/Activity/ActivityMethod.php
+++ b/src/Activity/ActivityMethod.php
@@ -33,10 +33,7 @@ final class ActivityMethod
#[Immutable]
public ?string $name = null;
- /**
- * @param string|null $name
- */
- public function __construct(string $name = null)
+ public function __construct(?string $name = null)
{
$this->name = $name;
}
diff --git a/src/Activity/ActivityOptions.php b/src/Activity/ActivityOptions.php
index 882a66426..4c08cad42 100644
--- a/src/Activity/ActivityOptions.php
+++ b/src/Activity/ActivityOptions.php
@@ -15,8 +15,8 @@
use JetBrains\PhpStorm\Pure;
use Temporal\Common\MethodRetry;
use Temporal\Common\RetryOptions;
-use Temporal\Internal\Assert;
use Temporal\Internal\Marshaller\Meta\Marshal;
+use Temporal\Internal\Marshaller\Type\ActivityCancellationType as ActivityCancellationMarshallerType;
use Temporal\Internal\Marshaller\Type\DateIntervalType;
use Temporal\Internal\Marshaller\Type\NullableType;
use Temporal\Internal\Support\DateInterval;
@@ -24,9 +24,10 @@
/**
* ActivityOptions stores all activity-specific parameters that will be stored
- * inside of a context. The current timeout resolution implementation is in
- * seconds and uses `ceil($interval->s)` as the duration. But is subjected to
- * change in the future.
+ * inside of a context.
+ *
+ * The current timeout resolution implementation is in seconds and uses `ceil($interval->s)` as the duration.
+ * But is subjected to change in the future.
*
* @psalm-import-type DateIntervalValue from DateInterval
*/
@@ -64,8 +65,8 @@ class ActivityOptions extends Options implements ActivityOptionsInterface
public \DateInterval $startToCloseTimeout;
/**
- * The periodic timeout while the activity is in execution. This is the max
- * interval the server needs to hear at-least one ping from the activity.
+ * The periodic timeout while the activity is in execution.
+ * This is the max interval the server needs to hear at-least one ping from the activity.
*/
#[Marshal(name: 'HeartbeatTimeout', type: DateIntervalType::class)]
public \DateInterval $heartbeatTimeout;
@@ -74,22 +75,25 @@ class ActivityOptions extends Options implements ActivityOptionsInterface
* Whether to wait for canceled activity to be completed(activity can be
* failed, completed, cancel accepted).
*
- * @psalm-var ActivityCancellationType::*
+ * @psalm-var int<0, 2>
+ * @see ActivityCancellationType
*/
- #[Marshal(name: 'WaitForCancellation', type: ActivityCancellationType::class)]
+ #[Marshal(name: 'WaitForCancellation', type: ActivityCancellationMarshallerType::class)]
public int $cancellationType = ActivityCancellationType::TRY_CANCEL;
/**
* Business level activity ID, this is not needed for most of the cases if
- * you have to specify this then talk to temporal team. This is something
- * will be done in future.
+ * you have to specify this then talk to temporal team.
+ *
+ * This is something will be done in the future.
*/
#[Marshal(name: 'ActivityID')]
public string $activityId = '';
/**
- * RetryPolicy specifies how to retry an Activity if an error occurs. More
- * details are available at {@link https://docs.temporal.io/docs/concepts/activities}. RetryPolicy
+ * RetryPolicy specifies how to retry an Activity if an error occurs.
+ *
+ * More details are available at {@link https://docs.temporal.io/docs/concepts/activities}. RetryPolicy
* is optional. If one is not specified a default RetryPolicy is provided
* by the server.
*
@@ -119,10 +123,9 @@ public function __construct()
}
/**
- * @param MethodRetry|null $retry
* @return $this
*/
- public function mergeWith(MethodRetry $retry = null): self
+ public function mergeWith(?MethodRetry $retry = null): self
{
$self = clone $this;
@@ -134,10 +137,10 @@ public function mergeWith(MethodRetry $retry = null): self
}
/**
- * Task queue to use when dispatching activity task to a worker. By default
- * it is the same task list name the workflow was started with.
+ * Task queue to use when dispatching activity task to a worker.
+ *
+ * By default, it is the same task list name the workflow was started with.
*
- * @param string|null $taskQueue
* @return $this
*/
#[Pure]
@@ -152,6 +155,7 @@ public function withTaskQueue(?string $taskQueue): self
/**
* Overall timeout workflow is willing to wait for activity to complete.
+ *
* It includes time in a task queue:
*
* - Use {@see ActivityOptions::withScheduleToStartTimeout($timeout)} to limit it.
@@ -171,9 +175,9 @@ public function withTaskQueue(?string $taskQueue): self
#[Pure]
public function withScheduleToCloseTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0);
+ \assert($timeout->totalMicroseconds >= 0);
$self = clone $this;
$self->scheduleToCloseTimeout = $timeout;
@@ -182,6 +186,7 @@ public function withScheduleToCloseTimeout($timeout): self
/**
* Time activity can stay in task queue before it is picked up by a worker.
+ *
* If schedule to close is not provided then both this and start to close
* are required.
*
@@ -193,9 +198,9 @@ public function withScheduleToCloseTimeout($timeout): self
#[Pure]
public function withScheduleToStartTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0);
+ \assert($timeout->totalMicroseconds >= 0);
$self = clone $this;
$self->scheduleToStartTimeout = $timeout;
@@ -203,9 +208,9 @@ public function withScheduleToStartTimeout($timeout): self
}
/**
- * Maximum activity execution time after it was sent to a worker. If
- * schedule to close is not provided then both this and schedule to start
- * are required.
+ * Maximum activity execution time after it was sent to a worker.
+ *
+ * If schedule to close is not provided then both this and schedule to start are required.
*
* @psalm-suppress ImpureMethodCall
*
@@ -215,9 +220,9 @@ public function withScheduleToStartTimeout($timeout): self
#[Pure]
public function withStartToCloseTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0);
+ \assert($timeout->totalMicroseconds >= 0);
$self = clone $this;
$self->startToCloseTimeout = $timeout;
@@ -225,8 +230,9 @@ public function withStartToCloseTimeout($timeout): self
}
/**
- * Heartbeat interval. Activity must heartbeat before this interval passes
- * after a last heartbeat or activity start.
+ * Heartbeat interval.
+ *
+ * Activity must heartbeat before this interval passes after a last heartbeat or activity start.
*
* @psalm-suppress ImpureMethodCall
*
@@ -236,9 +242,9 @@ public function withStartToCloseTimeout($timeout): self
#[Pure]
public function withHeartbeatTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0);
+ \assert($timeout->totalMicroseconds >= 0);
$self = clone $this;
$self->heartbeatTimeout = $timeout;
@@ -248,21 +254,19 @@ public function withHeartbeatTimeout($timeout): self
/**
* @psalm-suppress ImpureMethodCall
*
- * @param int $type
* @return $this
*/
#[Pure]
- public function withCancellationType(int $type): self
+ public function withCancellationType(ActivityCancellationType|int $type): self
{
- assert(Assert::enum($type, ActivityCancellationType::class));
+ \is_int($type) and $type = ActivityCancellationType::from($type);
$self = clone $this;
- $self->cancellationType = $type;
+ $self->cancellationType = $type->value;
return $self;
}
/**
- * @param string $activityId
* @return $this
*/
#[Pure]
@@ -276,7 +280,6 @@ public function withActivityId(string $activityId): self
}
/**
- * @param RetryOptions|null $options
* @return $this
*/
#[Pure]
diff --git a/src/Activity/ActivityOptionsInterface.php b/src/Activity/ActivityOptionsInterface.php
index b70e124b1..c3caf5f20 100644
--- a/src/Activity/ActivityOptionsInterface.php
+++ b/src/Activity/ActivityOptionsInterface.php
@@ -2,7 +2,6 @@
declare(strict_types=1);
-
namespace Temporal\Activity;
use Temporal\Common\MethodRetry;
@@ -12,5 +11,5 @@
*/
interface ActivityOptionsInterface
{
- public function mergeWith(MethodRetry $retry = null): self;
+ public function mergeWith(?MethodRetry $retry = null): self;
}
diff --git a/src/Activity/ActivityType.php b/src/Activity/ActivityType.php
index faedf2555..6b9fab4ef 100644
--- a/src/Activity/ActivityType.php
+++ b/src/Activity/ActivityType.php
@@ -21,7 +21,6 @@ class ActivityType
/**
* @psalm-readonly
* @psalm-allow-private-mutation
- * @var string
*/
#[Marshal(name: 'Name')]
public string $name = '';
diff --git a/src/Activity/LocalActivityInterface.php b/src/Activity/LocalActivityInterface.php
index a39118889..9ed095586 100644
--- a/src/Activity/LocalActivityInterface.php
+++ b/src/Activity/LocalActivityInterface.php
@@ -16,9 +16,9 @@
use Spiral\Attributes\NamedArgumentConstructor;
/**
- * Indicates that an interface is a local activity interface. Only interfaces
- * annotated with this annotation can be used as parameters
- * to {@see Workflow::activity()}
+ * Indicates that an interface is a local activity interface.
+ *
+ * Only interfaces annotated with this annotation can be used as parameters to {@see Workflow::activity()}
* and {@see WorkflowContextInterface::newActivityStub()} methods.
*
* Each method of the interface annotated with {@see LocalActivityInterface}
@@ -49,9 +49,6 @@ final class LocalActivityInterface extends ActivityInterface
#[Immutable]
public string $prefix = '';
- /**
- * @param string $prefix
- */
public function __construct(string $prefix = '')
{
$this->prefix = $prefix;
diff --git a/src/Activity/LocalActivityOptions.php b/src/Activity/LocalActivityOptions.php
index 85e801cd5..4099b1bd2 100644
--- a/src/Activity/LocalActivityOptions.php
+++ b/src/Activity/LocalActivityOptions.php
@@ -23,9 +23,10 @@
/**
* LocalActivityOptions stores all local activity-specific parameters that will be stored
- * inside of a context. The current timeout resolution implementation is in
- * seconds and uses `ceil($interval->s)` as the duration. But is subjected to
- * change in the future.
+ * inside of a context.
+ *
+ * The current timeout resolution implementation is in seconds and uses `ceil($interval->s)` as the duration.
+ * But is subjected to change in the future.
*
* @psalm-import-type DateIntervalValue from DateInterval
*/
@@ -48,8 +49,9 @@ class LocalActivityOptions extends Options implements ActivityOptionsInterface
public \DateInterval $startToCloseTimeout;
/**
- * RetryPolicy specifies how to retry an Activity if an error occurs. More
- * details are available at {@link https://docs.temporal.io/docs/concepts/activities}. RetryPolicy
+ * RetryPolicy specifies how to retry an Activity if an error occurs.
+ *
+ * More details are available at {@link https://docs.temporal.io/docs/concepts/activities}. RetryPolicy
* is optional. If one is not specified a default RetryPolicy is provided
* by the server.
*
@@ -77,10 +79,9 @@ public function __construct()
}
/**
- * @param MethodRetry|null $retry
* @return $this
*/
- public function mergeWith(MethodRetry $retry = null): self
+ public function mergeWith(?MethodRetry $retry = null): self
{
$self = clone $this;
@@ -108,9 +109,9 @@ public function mergeWith(MethodRetry $retry = null): self
#[Pure]
public function withScheduleToCloseTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0);
+ \assert($timeout->totalMicroseconds >= 0);
$self = clone $this;
$self->scheduleToCloseTimeout = $timeout;
@@ -130,9 +131,9 @@ public function withScheduleToCloseTimeout($timeout): self
#[Pure]
public function withStartToCloseTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0);
+ \assert($timeout->totalMicroseconds >= 0);
$self = clone $this;
$self->startToCloseTimeout = $timeout;
@@ -140,7 +141,6 @@ public function withStartToCloseTimeout($timeout): self
}
/**
- * @param RetryOptions|null $options
* @return $this
*/
#[Pure]
diff --git a/src/Client/ActivityCompletionClientInterface.php b/src/Client/ActivityCompletionClientInterface.php
index 5b9718a7d..2e125db1f 100644
--- a/src/Client/ActivityCompletionClientInterface.php
+++ b/src/Client/ActivityCompletionClientInterface.php
@@ -20,61 +20,34 @@
interface ActivityCompletionClientInterface
{
/**
- * @param string $workflowId
- * @param string|null $runId
- * @param string $activityId
* @param mixed $result
*/
public function complete(string $workflowId, ?string $runId, string $activityId, $result = null): void;
/**
- * @param string $taskToken
* @param mixed $result
*/
public function completeByToken(string $taskToken, $result = null): void;
- /**
- * @param string $workflowId
- * @param string|null $runId
- * @param string $activityId
- * @param \Throwable $error
- */
public function completeExceptionally(
string $workflowId,
?string $runId,
string $activityId,
- \Throwable $error
+ \Throwable $error,
): void;
- /**
- * @param string $taskToken
- * @param \Throwable $error
- */
public function completeExceptionallyByToken(string $taskToken, \Throwable $error): void;
- /**
- * @param string $workflowId
- * @param string|null $runId
- * @param string $activityId
- * @param $details
- */
public function reportCancellation(
string $workflowId,
?string $runId,
string $activityId,
- $details = null
+ $details = null,
): void;
- /**
- * @param string $taskToken
- * @param $details
- */
public function reportCancellationByToken(string $taskToken, $details = null): void;
/**
- * @param string $workflowId
- * @param string|null $runId
- * @param string $activityId
* @param mixed $details
*
* @throw ActivityCanceledException
@@ -83,11 +56,10 @@ public function recordHeartbeat(
string $workflowId,
?string $runId,
string $activityId,
- $details = null
+ $details = null,
);
/**
- * @param string $taskToken
* @param mixed $details
*
* @throw ActivityCanceledException
diff --git a/src/Client/ClientOptions.php b/src/Client/ClientOptions.php
index bb3a4d169..bfb4d5a46 100644
--- a/src/Client/ClientOptions.php
+++ b/src/Client/ClientOptions.php
@@ -27,18 +27,12 @@ class ClientOptions
public const DEFAULT_NAMESPACE = 'default';
/**
- * @var string
+ * @var non-empty-string
*/
public string $namespace = self::DEFAULT_NAMESPACE;
- /**
- * @var string
- */
public string $identity;
- /**
- * @var int
- */
#[ExpectedValues(valuesFromClass: QueryRejectCondition::class)]
public int $queryRejectionCondition = QueryRejectCondition::QUERY_REJECT_CONDITION_NONE;
@@ -47,11 +41,11 @@ class ClientOptions
*/
public function __construct()
{
- $this->identity = \sprintf('%d@%s', \getmypid(), \gethostname());
+ $this->identity = \sprintf('%d@%s', (string) \getmypid(), (string) \gethostname());
}
/**
- * @param string $namespace
+ * @param non-empty-string $namespace
* @return $this
*/
#[Pure]
@@ -65,7 +59,6 @@ public function withNamespace(string $namespace): self
}
/**
- * @param string $identity
* @return $this
*/
#[Pure]
@@ -87,9 +80,9 @@ public function withIdentity(string $identity): self
#[Pure]
public function withQueryRejectionCondition(
#[ExpectedValues(valuesFromClass: QueryRejectCondition::class)]
- int $condition
+ int $condition,
): self {
- assert(Assert::enum($condition, QueryRejectCondition::class));
+ \assert(Assert::enum($condition, QueryRejectCondition::class));
$self = clone $this;
diff --git a/src/Client/Common/BackoffThrottler.php b/src/Client/Common/BackoffThrottler.php
new file mode 100644
index 000000000..d9ca2dfae
--- /dev/null
+++ b/src/Client/Common/BackoffThrottler.php
@@ -0,0 +1,88 @@
+calculateSleepTime(failureCount: 1, baseInterval: 1000);
+ *
+ * // Second retry
+ * // There 500 is a common initial interval for all other exceptions
+ * $throttler->calculateSleepTime(failureCount: 2, baseInterval: 500);
+ * ```
+ *
+ * @internal
+ */
+final class BackoffThrottler
+{
+ /**
+ * @param int $maxInterval Maximum sleep interval in milliseconds. Must be greater than 0.
+ * @param float $maxJitterCoefficient Maximum jitter to apply. Must be in the range [0.0, 1.0).
+ * 0.1 means that actual retry time can be +/- 10% of the calculated time.
+ * @param float $backoffCoefficient Coefficient used to calculate the next retry backoff interval.
+ * The next retry interval is previous interval multiplied by this coefficient.
+ * Must be greater than 1.0.
+ */
+ public function __construct(
+ private readonly int $maxInterval,
+ private readonly float $maxJitterCoefficient,
+ private readonly float $backoffCoefficient,
+ ) {
+ $maxJitterCoefficient >= 0 && $maxJitterCoefficient < 1 or throw new \InvalidArgumentException(
+ '$jitterCoefficient must be in the range [0.0, 1.0).',
+ );
+ $this->maxInterval > 0 or throw new \InvalidArgumentException('$maxInterval must be greater than 0.');
+ $this->backoffCoefficient >= 1.0 or throw new \InvalidArgumentException(
+ '$backoffCoefficient must be greater than 1.',
+ );
+ }
+
+ /**
+ * Calculates the next sleep interval in milliseconds.
+ *
+ * @param int $failureCount number of failures
+ * @param int $initialInterval in milliseconds
+ *
+ * @return int<0, max>
+ *
+ * @psalm-assert int<1, max> $failureCount
+ * @psalm-assert int<1, max> $initialInterval
+ *
+ * @psalm-suppress InvalidOperand
+ */
+ public function calculateSleepTime(int $failureCount, int $initialInterval): int
+ {
+ $failureCount > 0 or throw new \InvalidArgumentException('$failureCount must be greater than 0.');
+ $initialInterval > 0 or throw new \InvalidArgumentException('$initialInterval must be greater than 0.');
+
+ // Choose a random number in the range -maxJitterCoefficient ... +maxJitterCoefficient
+ $jitter = \random_int(-1000, 1000) * $this->maxJitterCoefficient / 1000;
+ $sleepTime = \min(
+ \pow($this->backoffCoefficient, $failureCount - 1) * $initialInterval * (1.0 + $jitter),
+ $this->maxInterval,
+ );
+
+ return \abs((int) $sleepTime);
+ }
+}
diff --git a/src/Client/Common/ClientContextInterface.php b/src/Client/Common/ClientContextInterface.php
new file mode 100644
index 000000000..0996d47ad
--- /dev/null
+++ b/src/Client/Common/ClientContextInterface.php
@@ -0,0 +1,29 @@
+> $metadata
+ */
+ public function withMetadata(array $metadata): static;
+}
diff --git a/src/Client/Common/ClientContextTrait.php b/src/Client/Common/ClientContextTrait.php
new file mode 100644
index 000000000..57f6e2f32
--- /dev/null
+++ b/src/Client/Common/ClientContextTrait.php
@@ -0,0 +1,69 @@
+client->getContext();
+ // Convert to milliseconds
+ /** @psalm-suppress InvalidOperand */
+ $timeout *= 1000;
+ $new->client = $new->client->withContext(
+ $context->withTimeout((int) $timeout, DateInterval::FORMAT_MILLISECONDS),
+ );
+
+ return $new;
+ }
+
+ /**
+ * Set the deadline for any service requests
+ */
+ public function withDeadline(\DateTimeInterface $deadline): static
+ {
+ $new = clone $this;
+ $context = $new->client->getContext();
+ $new->client = $new->client->withContext($context->withDeadline($deadline));
+ return $new;
+ }
+
+ public function withRetryOptions(RpcRetryOptions $options): static
+ {
+ $new = clone $this;
+ $context = $new->client->getContext();
+ $new->client = $new->client->withContext($context->withRetryOptions($options));
+ return $new;
+ }
+
+ /**
+ * A metadata map to send to the server
+ *
+ * @param array> $metadata
+ */
+ public function withMetadata(array $metadata): static
+ {
+ $new = clone $this;
+ $context = $new->client->getContext();
+ $new->client = $new->client->withContext($context->withMetadata($metadata));
+ return $new;
+ }
+}
diff --git a/src/Client/Paginator.php b/src/Client/Common/Paginator.php
similarity index 78%
rename from src/Client/Paginator.php
rename to src/Client/Common/Paginator.php
index 92154a640..08044e8e3 100644
--- a/src/Client/Paginator.php
+++ b/src/Client/Common/Paginator.php
@@ -2,13 +2,9 @@
declare(strict_types=1);
-namespace Temporal\Client;
+namespace Temporal\Client\Common;
-use Closure;
-use Countable;
-use Generator;
use IteratorAggregate;
-use Traversable;
/**
* Paginator that allows to iterate over all pages.
@@ -16,23 +12,25 @@
* @template TItem
* @implements IteratorAggregate
*/
-final class Paginator implements IteratorAggregate, Countable
+final class Paginator implements \IteratorAggregate, \Countable
{
/** @var list */
private array $collection;
+
/** @var self|null */
private ?self $nextPage = null;
+
private ?int $totalItems = null;
/**
- * @param Generator> $loader
+ * @param \Generator> $loader
* @param int<1, max> $pageNumber
- * @param null|Closure(): int<0, max> $counter
+ * @param null|\Closure(): int<0, max> $counter
*/
private function __construct(
- private readonly Generator $loader,
+ private readonly \Generator $loader,
private readonly int $pageNumber,
- private ?Closure $counter,
+ private ?\Closure $counter,
) {
$this->collection = $loader->current();
}
@@ -40,12 +38,14 @@ private function __construct(
/**
* @template TInitItem
*
- * @param Generator> $loader
+ * @param \Generator> $loader
* @param null|callable(): int<0, max> $counter Returns total number of items.
*
* @return self
+ *
+ * @internal
*/
- public static function createFromGenerator(Generator $loader, ?callable $counter): self
+ public static function createFromGenerator(\Generator $loader, ?callable $counter): self
{
return new self($loader, 1, $counter === null ? null : $counter(...));
}
@@ -66,8 +66,8 @@ public function getNextPage(): ?self
return null;
}
$this->nextPage = new self($this->loader, $this->pageNumber + 1, $this->counter);
- /** @var @psalm-suppress UnsupportedPropertyReferenceUsage */
- $this->nextPage->counter = &$this->nextPage;
+ /** @psalm-suppress UnsupportedPropertyReferenceUsage */
+ $this->nextPage->counter = &$this->counter;
return $this->nextPage;
}
@@ -83,9 +83,9 @@ public function getPageItems(): array
/**
* Iterate all items from current page and all next pages.
*
- * @return Traversable
+ * @return \Traversable
*/
- public function getIterator(): Traversable
+ public function getIterator(): \Traversable
{
$paginator = $this;
while ($paginator !== null) {
@@ -111,7 +111,6 @@ public function getPageNumber(): int
* Note: the method may call yet another RPC to get total number of items.
* It means that the result may be different from the number of items at the moment of the pagination start.
*
- * @return int
* @throws \LogicException If counter is not set.
*/
public function count(): int
diff --git a/src/Client/Common/RpcRetryOptions.php b/src/Client/Common/RpcRetryOptions.php
new file mode 100644
index 000000000..f241706f3
--- /dev/null
+++ b/src/Client/Common/RpcRetryOptions.php
@@ -0,0 +1,91 @@
+withInitialInterval($options->initialInterval)
+ ->withBackoffCoefficient($options->backoffCoefficient)
+ ->withMaximumInterval($options->maximumInterval)
+ ->withMaximumAttempts($options->maximumAttempts)
+ ->withNonRetryableExceptions($options->nonRetryableExceptions);
+ }
+
+ /**
+ * Interval of the first retry, on congestion related failures (i.e. RESOURCE_EXHAUSTED errors).
+ * If coefficient is 1.0 then it is used for all retries. Defaults to 1000ms.
+ *
+ * @param mixed $interval Interval to wait on first retry, on congestion failures.
+ * Defaults to 1000ms, which is used if set to {@see null}.
+ * Can be parseable string, int|float in seconds, {@see \DateInterval}, or {@see Duration}
+ * @return static
+ *
+ * @psalm-assert DateIntervalValue|null $interval
+ * @psalm-suppress ImpureMethodCall
+ */
+ #[Pure]
+ public function withCongestionInitialInterval(mixed $interval): self
+ {
+ $interval === null || DateInterval::assert($interval) or throw new \InvalidArgumentException(
+ 'Invalid interval value.',
+ );
+
+ $self = clone $this;
+ $self->congestionInitialInterval = DateInterval::parseOrNull($interval, DateInterval::FORMAT_SECONDS);
+ return $self;
+ }
+
+ /**
+ * Maximum amount of jitter to apply.
+ *
+ * 0.2 means that actual retry time can be +/- 20% of the calculated time.
+ * Set to 0 to disable jitter. Must be lower than 1.
+ *
+ * @param null|float $coefficient Maximum amount of jitter.
+ * Default will be used if set to {@see null}.
+ */
+ #[Pure]
+ public function withMaximumJitterCoefficient(?float $coefficient): self
+ {
+ $coefficient === null || ($coefficient >= 0.0 && $coefficient < 1.0) or throw new \InvalidArgumentException(
+ 'Maximum jitter coefficient must be in range [0, 1).',
+ );
+
+ $self = clone $this;
+ $self->maximumJitterCoefficient = $coefficient ?? 0.1;
+ return $self;
+ }
+}
diff --git a/src/Client/Common/ServerCapabilities.php b/src/Client/Common/ServerCapabilities.php
new file mode 100644
index 000000000..08ecd5334
--- /dev/null
+++ b/src/Client/Common/ServerCapabilities.php
@@ -0,0 +1,88 @@
+signalAndQueryHeader;
+ }
+
+ /**
+ * True if internal errors are differentiated from other types of errors for purposes of
+ * retrying non-internal errors.
+ * When unset/false, clients retry all failures. When true, clients should only retry
+ * non-internal errors.
+ *
+ * @deprecated Use {@see self::$internalErrorDifferentiation} instead.
+ */
+ public function isInternalErrorDifferentiation(): bool
+ {
+ return $this->internalErrorDifferentiation;
+ }
+}
+
+\class_alias(ServerCapabilities::class, 'Temporal\Client\ServerCapabilities');
diff --git a/src/Client/CountWorkflowExecutions.php b/src/Client/CountWorkflowExecutions.php
new file mode 100644
index 000000000..5e2e9ea35
--- /dev/null
+++ b/src/Client/CountWorkflowExecutions.php
@@ -0,0 +1,12 @@
+workflowService = $workflowService;
- }
+ /** @var null|\Closure(string $method, object $arg, ContextInterface $ctx): object */
+ private ?\Closure $invokePipeline = null;
- /**
- * Close connection and destruct client.
- */
- public function __destruct()
- {
- $this->close();
- }
+ private Connection $connection;
+ private ContextInterface $context;
+ private \Stringable|string $apiKey = '';
/**
- * Close the communication channel associated with this stub.
+ * @param WorkflowServiceClient|\Closure(): WorkflowServiceClient $workflowService Service Client or its factory
+ *
+ * @private Use static factory methods instead
+ * @see self::create()
+ * @see self::createSSL()
*/
- public function close(): void
+ final public function __construct(WorkflowServiceClient|\Closure $workflowService)
{
- $this->workflowService->close();
+ if ($workflowService instanceof WorkflowServiceClient) {
+ \trigger_error(
+ 'Creating a ServiceClient instance via constructor is deprecated. Use static factory methods instead.',
+ \E_USER_DEPRECATED,
+ );
+ $workflowService = static fn(): WorkflowServiceClient => $workflowService;
+ }
+
+ $this->connection = new Connection($workflowService);
+ $this->context = Context::default();
}
/**
- * @param string $address
- * @return ServiceClientInterface
+ * @param non-empty-string $address Temporal service address in format `host:port`
* @psalm-suppress UndefinedClass
*/
- public static function create(string $address): ServiceClientInterface
+ public static function create(string $address): static
{
- $client = new WorkflowServiceClient(
- $address,
- ['credentials' => \Grpc\ChannelCredentials::createInsecure()]
- );
+ if (!\extension_loaded('grpc')) {
+ throw new \RuntimeException('The gRPC extension is required to use Temporal Client.');
+ }
- return new static($client);
+ return new static(static fn(): WorkflowServiceClient => new WorkflowServiceClient(
+ $address,
+ ['credentials' => \Grpc\ChannelCredentials::createInsecure()],
+ ));
}
/**
- * @param string $address
- * @param string $crt Certificate or cert file in x509 format.
- * @param string|null $clientKey
- * @param string|null $clientPem
- * @param string|null $overrideServerName
- * @return ServiceClientInterface
+ * @param non-empty-string $address Temporal service address in format `host:port`
+ * @param non-empty-string|null $crt Root certificates string or file in PEM format.
+ * If null provided, default gRPC root certificates are used.
+ * @param non-empty-string|null $clientKey Client private key string or file in PEM format.
+ * @param non-empty-string|null $clientPem Client certificate chain string or file in PEM format.
+ * @param non-empty-string|null $overrideServerName
*
* @psalm-suppress UndefinedClass
* @psalm-suppress UnusedVariable
*/
public static function createSSL(
string $address,
- string $crt,
- string $clientKey = null,
- string $clientPem = null,
- string $overrideServerName = null
- ): ServiceClientInterface
- {
+ ?string $crt = null,
+ ?string $clientKey = null,
+ ?string $clientPem = null,
+ ?string $overrideServerName = null,
+ ): static {
+ if (!\extension_loaded('grpc')) {
+ throw new \RuntimeException('The gRPC extension is required to use Temporal Client.');
+ }
+
+ $loadCert = static function (?string $cert): ?string {
+ return match (true) {
+ $cert === null, $cert === '' => null,
+ \is_file($cert) => false === ($content = \file_get_contents($cert))
+ ? throw new \InvalidArgumentException("Failed to load certificate from file `$cert`.")
+ : $content,
+ default => $cert,
+ };
+ };
+
$options = [
'credentials' => \Grpc\ChannelCredentials::createSsl(
- \is_file($crt) ? \file_get_contents($crt) : null,
- \is_file($clientKey) ? \file_get_contents($clientKey) : null,
- \is_file($clientPem) ? \file_get_contents($clientPem) : null
- )
+ $loadCert($crt),
+ $loadCert($clientKey),
+ $loadCert($clientPem),
+ ),
];
if ($overrideServerName !== null) {
@@ -97,45 +123,161 @@ public static function createSSL(
$options['grpc.ssl_target_name_override'] = $overrideServerName;
}
- $client = new WorkflowServiceClient($address, $options);
+ return new static(static fn(): WorkflowServiceClient => new WorkflowServiceClient($address, $options));
+ }
+
+ public function getContext(): ContextInterface
+ {
+ return $this->context;
+ }
+
+ public function withContext(ContextInterface $context): static
+ {
+ $clone = clone $this;
+ $clone->context = $context;
+ return $clone;
+ }
- return new static($client);
+ /**
+ * Set the authentication token for the service client.
+ *
+ * This is the equivalent of providing an "Authorization" header with "Bearer " + the given key.
+ * This will overwrite any "Authorization" header that may be on the context before each request to the
+ * Temporal service.
+ * You may pass your own {@see \Stringable} implementation to be able to change the key dynamically.
+ *
+ * @link https://docs.temporal.io/cloud/api-keys
+ */
+ public function withAuthKey(\Stringable|string $key): static
+ {
+ $clone = clone $this;
+ $clone->apiKey = $key;
+ return $clone;
+ }
+
+ /**
+ * Close the communication channel associated with this stub.
+ */
+ public function close(): void
+ {
+ $this->connection->disconnect();
+ }
+
+ /**
+ * @param null|Pipeline $pipeline
+ */
+ final public function withInterceptorPipeline(?Pipeline $pipeline): static
+ {
+ $clone = clone $this;
+ /** @see GrpcClientInterceptor::interceptCall() */
+ $callable = $pipeline?->with($clone->call(...), 'interceptCall');
+ $clone->invokePipeline = $callable === null ? null : $callable(...);
+ return $clone;
+ }
+
+ public function getServerCapabilities(): ?ServerCapabilities
+ {
+ if ($this->connection->capabilities !== null) {
+ return $this->connection->capabilities;
+ }
+
+ try {
+ $systemInfo = $this->getSystemInfo(new GetSystemInfoRequest());
+ $capabilities = $systemInfo->getCapabilities();
+
+ if ($capabilities === null) {
+ return null;
+ }
+
+ return $this->connection->capabilities = new ServerCapabilities(
+ signalAndQueryHeader: $capabilities->getSignalAndQueryHeader(),
+ internalErrorDifferentiation: $capabilities->getInternalErrorDifferentiation(),
+ activityFailureIncludeHeartbeat: $capabilities->getActivityFailureIncludeHeartbeat(),
+ supportsSchedules: $capabilities->getSupportsSchedules(),
+ encodedFailureAttributes: $capabilities->getEncodedFailureAttributes(),
+ buildIdBasedVersioning: $capabilities->getBuildIdBasedVersioning(),
+ upsertMemo: $capabilities->getUpsertMemo(),
+ eagerWorkflowStart: $capabilities->getEagerWorkflowStart(),
+ sdkMetadata: $capabilities->getSdkMetadata(),
+ countGroupByExecutionStatus: $capabilities->getCountGroupByExecutionStatus(),
+ nexus: $capabilities->getNexus(),
+ );
+ } catch (ServiceClientException $e) {
+ if ($e->getCode() === StatusCode::UNIMPLEMENTED) {
+ return null;
+ }
+
+ throw $e;
+ }
+ }
+
+ /**
+ * @deprecated
+ */
+ public function setServerCapabilities(ServerCapabilities $capabilities): void
+ {
+ \trigger_error(
+ 'Method ' . __METHOD__ . ' is deprecated and will be removed in the next major release.',
+ \E_USER_DEPRECATED,
+ );
+ }
+
+ /**
+ * Note: Experimental
+ */
+ public function getConnection(): ConnectionInterface
+ {
+ return $this->connection;
}
/**
* @param non-empty-string $method RPC method name
- * @param object $arg
- * @param ContextInterface|null $ctx
- * @return mixed
*
* @throw ClientException
*/
- protected function invoke(string $method, object $arg, ContextInterface $ctx = null)
+ protected function invoke(string $method, object $arg, ?ContextInterface $ctx = null): mixed
{
- $ctx = $ctx ?? Context::default();
-
- $attempt = 0;
- $retryOption = $ctx->getRetryOptions();
+ $ctx ??= $this->getContext();
- $maxInterval = null;
- if ($retryOption->maximumInterval !== null) {
- $maxInterval = CarbonInterval::create($retryOption->maximumInterval);
+ // Add the API key to the context
+ $key = (string) $this->apiKey;
+ if ($key !== '') {
+ $ctx = $ctx->withMetadata([
+ 'Authorization' => ["Bearer $key"],
+ ] + $ctx->getMetadata());
}
- $waitRetry = $retryOption->initialInterval ?? CarbonInterval::millisecond(500);
- $waitRetry = CarbonInterval::create($waitRetry);
+ return $this->invokePipeline !== null
+ ? ($this->invokePipeline)($method, $arg, $ctx)
+ : $this->call($method, $arg, $ctx);
+ }
+
+ /**
+ * Call a gRPC method.
+ * Used in {@see withInterceptorPipeline()}
+ *
+ * @param non-empty-string $method
+ *
+ * @throws \Exception
+ */
+ private function call(string $method, object $arg, ContextInterface $ctx): object
+ {
+ $attempt = 0;
+ $retryOption = RpcRetryOptions::fromRetryOptions($ctx->getRetryOptions());
+ $initialIntervalMs = $congestionInitialIntervalMs = $throttler = null;
do {
- $attempt++;
+ ++$attempt;
try {
$options = $ctx->getOptions();
- if ($ctx->getDeadline() !== null) {
- $diff = (new \DateTime())->diff($ctx->getDeadline());
+ $deadline = $ctx->getDeadline();
+ if ($deadline !== null) {
+ $diff = (new \DateTime())->diff($deadline);
$options['timeout'] = CarbonInterval::instance($diff)->totalMicroseconds;
}
/** @var UnaryCall $call */
- $call = $this->workflowService->{$method}($arg, $ctx->getMetadata(), $options);
+ $call = $this->connection->getWorkflowService()->{$method}($arg, $ctx->getMetadata(), $options);
[$result, $status] = $call->wait();
if ($status->code !== 0) {
@@ -149,29 +291,67 @@ protected function invoke(string $method, object $arg, ContextInterface $ctx = n
throw new TimeoutException($e->getMessage(), $e->getCode(), $e);
}
+ if ($e->getCode() === StatusCode::CANCELLED) {
+ throw new CanceledException($e->getMessage(), $e->getCode(), $e);
+ }
+
// non retryable
throw $e;
}
if ($retryOption->maximumAttempts !== 0 && $attempt >= $retryOption->maximumAttempts) {
+ // Reached maximum attempts
throw $e;
}
- if ($ctx->getDeadline() !== null && $ctx->getDeadline()->getTimestamp() > time()) {
+ if ($ctx->getDeadline() !== null && new \DateTimeImmutable() > $ctx->getDeadline()) {
+ // Deadline is reached
throw new TimeoutException('Call timeout has been reached');
}
- // wait till next call
- \usleep((int)$waitRetry->totalMicroseconds);
+ // Init interval values in milliseconds
+ $initialIntervalMs ??= $retryOption->initialInterval === null
+ ? (int) CarbonInterval::millisecond(50)->totalMilliseconds
+ : (int) (new CarbonInterval($retryOption->initialInterval))->totalMilliseconds;
+ $congestionInitialIntervalMs ??= $retryOption->congestionInitialInterval === null
+ ? (int) CarbonInterval::millisecond(1000)->totalMilliseconds
+ : (int) (new CarbonInterval($retryOption->congestionInitialInterval))->totalMilliseconds;
- $waitRetry = CarbonInterval::millisecond(
- $waitRetry->totalMilliseconds + $retryOption->backoffCoefficient
+ $throttler ??= new BackoffThrottler(
+ maxInterval: $retryOption->maximumInterval !== null
+ ? (int) (new CarbonInterval($retryOption->maximumInterval))->totalMilliseconds
+ : $initialIntervalMs * 200,
+ maxJitterCoefficient: $retryOption->maximumJitterCoefficient,
+ backoffCoefficient: $retryOption->backoffCoefficient,
);
- if ($maxInterval !== null && $maxInterval->totalMilliseconds < $waitRetry->totalMilliseconds) {
- $waitRetry = $maxInterval;
- }
+ // Initial interval always depends on the *most recent* failure.
+ $baseInterval = $e->getCode() === StatusCode::RESOURCE_EXHAUSTED
+ ? $congestionInitialIntervalMs
+ : $initialIntervalMs;
+
+ $wait = $throttler->calculateSleepTime(failureCount: $attempt, initialInterval: $baseInterval) * 1000;
+
+ // wait till the next call
+ $this->usleep($wait);
}
} while (true);
}
+
+ /**
+ * @param int<0, max> $param Delay in microseconds
+ */
+ private function usleep(int $param): void
+ {
+ if (\Fiber::getCurrent() === null) {
+ \usleep($param);
+ return;
+ }
+
+ $deadline = \microtime(true) + (float) ($param / 1_000_000);
+
+ while (\microtime(true) < $deadline) {
+ \Fiber::suspend();
+ }
+ }
}
diff --git a/src/Client/GRPC/Connection/Connection.php b/src/Client/GRPC/Connection/Connection.php
new file mode 100644
index 000000000..de6db09f3
--- /dev/null
+++ b/src/Client/GRPC/Connection/Connection.php
@@ -0,0 +1,134 @@
+initClient();
+ }
+
+ public function isConnected(): bool
+ {
+ return ConnectionState::from($this->workflowService->getConnectivityState(false)) === ConnectionState::Ready;
+ }
+
+ public function connect(float $timeout): void
+ {
+ $deadline = \microtime(true) + $timeout;
+ $this->initClient();
+
+ try {
+ if ($this->isConnected()) {
+ return;
+ }
+ } catch (\RuntimeException) {
+ $this->disconnect();
+ $this->initClient();
+ }
+
+ // Start connecting
+ $this->getState(true);
+ $isFiber = \Fiber::getCurrent() !== null;
+ do {
+ // Wait a bit
+ if ($isFiber) {
+ \Fiber::suspend();
+ } else {
+ $this->workflowService->waitForReady(50);
+ }
+
+ $alive = \microtime(true) < $deadline;
+ $state = $this->getState();
+ } while ($alive && $state === ConnectionState::Connecting);
+
+ $alive or throw new \RuntimeException('Failed to connect to Temporal service. Timeout exceeded.');
+ $state === ConnectionState::Idle and throw new \RuntimeException(
+ 'Failed to connect to Temporal service. Channel is in idle state.',
+ );
+ $state === ConnectionState::TransientFailure and throw new \RuntimeException(
+ 'Failed to connect to Temporal service. Channel is in transient failure state.',
+ );
+ $state === ConnectionState::Shutdown and throw new \RuntimeException(
+ 'Failed to connect to Temporal service. Channel is in shutdown state.',
+ );
+ }
+
+ public function disconnect(): void
+ {
+ if ($this->closed) {
+ return;
+ }
+
+ $this->closed = true;
+ $this->capabilities = null;
+ $this->workflowService->close();
+ }
+
+ /**
+ * @return WorkflowServiceClient Shouldn't be cached
+ */
+ public function getWorkflowService(): WorkflowServiceClient
+ {
+ $this->initClient();
+ return $this->workflowService;
+ }
+
+ public function __destruct()
+ {
+ $this->disconnect();
+ }
+
+ private function getState(bool $tryToConnect = false): ConnectionState
+ {
+ return ConnectionState::from($this->workflowService->getConnectivityState($tryToConnect));
+ }
+
+ /**
+ * Create a new client with a new channel
+ */
+ private function initClient(): void
+ {
+ if (!$this->closed) {
+ return;
+ }
+
+ $this->workflowService = ($this->clientFactory)();
+ $this->closed = false;
+ }
+
+ /**
+ * Wait for the channel to be ready.
+ *
+ * @param float $timeout in seconds
+ *
+ * @return bool true if channel is ready
+ * @throws \Exception if channel is in FATAL_ERROR state
+ */
+ private function waitForReady(float $timeout): bool
+ {
+ /** @psalm-suppress InvalidOperand */
+ return $this->workflowService->waitForReady((int) ($timeout * 1_000_000));
+ }
+}
diff --git a/src/Client/GRPC/Connection/ConnectionInterface.php b/src/Client/GRPC/Connection/ConnectionInterface.php
new file mode 100644
index 000000000..0d199aecd
--- /dev/null
+++ b/src/Client/GRPC/Connection/ConnectionInterface.php
@@ -0,0 +1,27 @@
+retryOptions = RetryOptions::new()
+ $this->retryOptions = RpcRetryOptions::new()
->withMaximumAttempts(0)
->withInitialInterval(CarbonInterval::millisecond(500));
@@ -39,37 +37,31 @@ private function __construct()
];
}
- /**
- * @param DateInterval|int $timeout
- * @param string $format
- * @return $this
- */
+ public static function default(): self
+ {
+ return new self();
+ }
+
public function withTimeout($timeout, string $format = DateInterval::FORMAT_SECONDS): self
{
$internal = DateInterval::parse($timeout, $format);
$ctx = clone $this;
- $ctx->deadline = (new \DateTimeImmutable())->add($internal);
+ $ctx->timeout = $internal;
+ $ctx->deadline = null;
return $ctx;
}
- /**
- * @param \DateTimeInterface $deadline
- * @return $this
- */
public function withDeadline(\DateTimeInterface $deadline): self
{
$ctx = clone $this;
$ctx->deadline = $deadline;
+ $ctx->timeout = null;
return $ctx;
}
- /**
- * @param array $options
- * @return $this
- */
public function withOptions(array $options): self
{
$ctx = clone $this;
@@ -78,10 +70,6 @@ public function withOptions(array $options): self
return $ctx;
}
- /**
- * @param array $metadata
- * @return $this
- */
public function withMetadata(array $metadata): self
{
$ctx = clone $this;
@@ -90,10 +78,6 @@ public function withMetadata(array $metadata): self
return $ctx;
}
- /**
- * @param RetryOptions $options
- * @return ContextInterface
- */
public function withRetryOptions(RetryOptions $options): ContextInterface
{
$ctx = clone $this;
@@ -102,43 +86,27 @@ public function withRetryOptions(RetryOptions $options): ContextInterface
return $ctx;
}
- /**
- * @return array
- */
public function getOptions(): array
{
return $this->options;
}
- /**
- * @return array
- */
public function getMetadata(): array
{
return $this->metadata;
}
- /**
- * @return \DateTimeInterface|null
- */
public function getDeadline(): ?\DateTimeInterface
{
- return $this->deadline;
+ return match (true) {
+ $this->deadline !== null => $this->deadline,
+ $this->timeout !== null => (new \DateTime())->add($this->timeout),
+ default => null,
+ };
}
- /**
- * @return RetryOptions
- */
public function getRetryOptions(): RetryOptions
{
return $this->retryOptions;
}
-
- /**
- * @return Context
- */
- public static function default()
- {
- return new self();
- }
}
diff --git a/src/Client/GRPC/ContextInterface.php b/src/Client/GRPC/ContextInterface.php
index b6cd65028..8f33b51ef 100644
--- a/src/Client/GRPC/ContextInterface.php
+++ b/src/Client/GRPC/ContextInterface.php
@@ -14,56 +14,33 @@
use Temporal\Common\RetryOptions;
use Temporal\Internal\Support\DateInterval;
+/**
+ * @psalm-import-type DateIntervalValue from DateInterval
+ */
interface ContextInterface
{
/**
- * @param DateInterval|int $timeout
- * @param string $format
+ * @param DateIntervalValue $timeout
* @return $this
*/
public function withTimeout($timeout, string $format = DateInterval::FORMAT_SECONDS): ContextInterface;
/**
- * @param \DateTimeInterface $deadline
* @return $this
*/
public function withDeadline(\DateTimeInterface $deadline): ContextInterface;
- /**
- * @param array $options
- * @return ContextInterface
- */
public function withOptions(array $options): ContextInterface;
- /**
- * @param array $metadata
- * @return ContextInterface
- */
public function withMetadata(array $metadata): ContextInterface;
- /**
- * @param RetryOptions $options
- * @return ContextInterface
- */
public function withRetryOptions(RetryOptions $options): ContextInterface;
- /**
- * @return array
- */
public function getOptions(): array;
- /**
- * @return array
- */
public function getMetadata(): array;
- /**
- * @return \DateTimeInterface|null
- */
public function getDeadline(): ?\DateTimeInterface;
- /**
- * @return RetryOptions
- */
public function getRetryOptions(): RetryOptions;
}
diff --git a/src/Client/GRPC/ServiceClient.php b/src/Client/GRPC/ServiceClient.php
index 6a62344b8..75f905d2d 100644
--- a/src/Client/GRPC/ServiceClient.php
+++ b/src/Client/GRPC/ServiceClient.php
@@ -1,20 +1,12 @@
invoke("RegisterNamespace", $arg, $ctx);
}
@@ -43,12 +32,9 @@ public function RegisterNamespace(V1\RegisterNamespaceRequest $arg, ContextInter
* DescribeNamespace returns the information and configuration for a registered
* namespace.
*
- * @param V1\DescribeNamespaceRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\DescribeNamespaceResponse
* @throws ServiceClientException
*/
- public function DescribeNamespace(V1\DescribeNamespaceRequest $arg, ContextInterface $ctx = null) : V1\DescribeNamespaceResponse
+ public function DescribeNamespace(V1\DescribeNamespaceRequest $arg, ?ContextInterface $ctx = null): V1\DescribeNamespaceResponse
{
return $this->invoke("DescribeNamespace", $arg, $ctx);
}
@@ -56,12 +42,9 @@ public function DescribeNamespace(V1\DescribeNamespaceRequest $arg, ContextInter
/**
* ListNamespaces returns the information and configuration for all namespaces.
*
- * @param V1\ListNamespacesRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\ListNamespacesResponse
* @throws ServiceClientException
*/
- public function ListNamespaces(V1\ListNamespacesRequest $arg, ContextInterface $ctx = null) : V1\ListNamespacesResponse
+ public function ListNamespaces(V1\ListNamespacesRequest $arg, ?ContextInterface $ctx = null): V1\ListNamespacesResponse
{
return $this->invoke("ListNamespaces", $arg, $ctx);
}
@@ -71,17 +54,9 @@ public function ListNamespaces(V1\ListNamespacesRequest $arg, ContextInterface $
* registered
* namespace.
*
- * (-- api-linter: core::0134::method-signature=disabled
- * aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)
- * (-- api-linter: core::0134::response-message-name=disabled
- * aip.dev/not-precedent: UpdateNamespace RPC doesn't follow Google API format. --)
- *
- * @param V1\UpdateNamespaceRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\UpdateNamespaceResponse
* @throws ServiceClientException
*/
- public function UpdateNamespace(V1\UpdateNamespaceRequest $arg, ContextInterface $ctx = null) : V1\UpdateNamespaceResponse
+ public function UpdateNamespace(V1\UpdateNamespaceRequest $arg, ?ContextInterface $ctx = null): V1\UpdateNamespaceResponse
{
return $this->invoke("UpdateNamespace", $arg, $ctx);
}
@@ -95,12 +70,12 @@ public function UpdateNamespace(V1\UpdateNamespaceRequest $arg, ContextInterface
* workflow executions will continue to run on deprecated namespaces.
* Deprecated.
*
- * @param V1\DeprecateNamespaceRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\DeprecateNamespaceResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: Deprecated --)
+ *
* @throws ServiceClientException
*/
- public function DeprecateNamespace(V1\DeprecateNamespaceRequest $arg, ContextInterface $ctx = null) : V1\DeprecateNamespaceResponse
+ public function DeprecateNamespace(V1\DeprecateNamespaceRequest $arg, ?ContextInterface $ctx = null): V1\DeprecateNamespaceResponse
{
return $this->invoke("DeprecateNamespace", $arg, $ctx);
}
@@ -114,27 +89,41 @@ public function DeprecateNamespace(V1\DeprecateNamespaceRequest $arg, ContextInt
* `WorkflowExecutionAlreadyStarted`, if an
* instance already exists with same workflow id.
*
- * @param V1\StartWorkflowExecutionRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\StartWorkflowExecutionResponse
* @throws ServiceClientException
*/
- public function StartWorkflowExecution(V1\StartWorkflowExecutionRequest $arg, ContextInterface $ctx = null) : V1\StartWorkflowExecutionResponse
+ public function StartWorkflowExecution(V1\StartWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\StartWorkflowExecutionResponse
{
return $this->invoke("StartWorkflowExecution", $arg, $ctx);
}
+ /**
+ * ExecuteMultiOperation executes multiple operations within a single workflow.
+ *
+ * Operations are started atomically, meaning if *any* operation fails to be
+ * started, none are,
+ * and the request fails. Upon start, the API returns only when *all* operations
+ * have a response.
+ *
+ * Upon failure, it returns `MultiOperationExecutionFailure` where the status code
+ * equals the status code of the *first* operation that failed to be started.
+ *
+ * NOTE: Experimental API.
+ *
+ * @throws ServiceClientException
+ */
+ public function ExecuteMultiOperation(V1\ExecuteMultiOperationRequest $arg, ?ContextInterface $ctx = null): V1\ExecuteMultiOperationResponse
+ {
+ return $this->invoke("ExecuteMultiOperation", $arg, $ctx);
+ }
+
/**
* GetWorkflowExecutionHistory returns the history of specified workflow execution.
* Fails with
* `NotFound` if the specified workflow execution is unknown to the service.
*
- * @param V1\GetWorkflowExecutionHistoryRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\GetWorkflowExecutionHistoryResponse
* @throws ServiceClientException
*/
- public function GetWorkflowExecutionHistory(V1\GetWorkflowExecutionHistoryRequest $arg, ContextInterface $ctx = null) : V1\GetWorkflowExecutionHistoryResponse
+ public function GetWorkflowExecutionHistory(V1\GetWorkflowExecutionHistoryRequest $arg, ?ContextInterface $ctx = null): V1\GetWorkflowExecutionHistoryResponse
{
return $this->invoke("GetWorkflowExecutionHistory", $arg, $ctx);
}
@@ -146,14 +135,9 @@ public function GetWorkflowExecutionHistory(V1\GetWorkflowExecutionHistoryReques
* execution is
* unknown to the service.
*
- * @param
- * V1\GetWorkflowExecutionHistoryReverseRequest $arg
- * @param ContextInterface|null $ctx
- * @return
- * V1\GetWorkflowExecutionHistoryReverseResponse
* @throws ServiceClientException
*/
- public function GetWorkflowExecutionHistoryReverse(V1\GetWorkflowExecutionHistoryReverseRequest $arg, ContextInterface $ctx = null) : V1\GetWorkflowExecutionHistoryReverseResponse
+ public function GetWorkflowExecutionHistoryReverse(V1\GetWorkflowExecutionHistoryReverseRequest $arg, ?ContextInterface $ctx = null): V1\GetWorkflowExecutionHistoryReverseResponse
{
return $this->invoke("GetWorkflowExecutionHistoryReverse", $arg, $ctx);
}
@@ -169,12 +153,12 @@ public function GetWorkflowExecutionHistoryReverse(V1\GetWorkflowExecutionHistor
* the history for
* this task before handing it to the worker.
*
- * @param V1\PollWorkflowTaskQueueRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\PollWorkflowTaskQueueResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
* @throws ServiceClientException
*/
- public function PollWorkflowTaskQueue(V1\PollWorkflowTaskQueueRequest $arg, ContextInterface $ctx = null) : V1\PollWorkflowTaskQueueResponse
+ public function PollWorkflowTaskQueue(V1\PollWorkflowTaskQueueRequest $arg, ?ContextInterface $ctx = null): V1\PollWorkflowTaskQueueResponse
{
return $this->invoke("PollWorkflowTaskQueue", $arg, $ctx);
}
@@ -190,12 +174,12 @@ public function PollWorkflowTaskQueue(V1\PollWorkflowTaskQueueRequest $arg, Cont
* while
* executing the task (ex timer started, activity task scheduled, etc).
*
- * @param V1\RespondWorkflowTaskCompletedRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\RespondWorkflowTaskCompletedResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
* @throws ServiceClientException
*/
- public function RespondWorkflowTaskCompleted(V1\RespondWorkflowTaskCompletedRequest $arg, ContextInterface $ctx = null) : V1\RespondWorkflowTaskCompletedResponse
+ public function RespondWorkflowTaskCompleted(V1\RespondWorkflowTaskCompletedRequest $arg, ?ContextInterface $ctx = null): V1\RespondWorkflowTaskCompletedResponse
{
return $this->invoke("RespondWorkflowTaskCompleted", $arg, $ctx);
}
@@ -215,12 +199,12 @@ public function RespondWorkflowTaskCompleted(V1\RespondWorkflowTaskCompletedRequ
* workflow execution
* for consecutive failures.
*
- * @param V1\RespondWorkflowTaskFailedRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\RespondWorkflowTaskFailedResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
* @throws ServiceClientException
*/
- public function RespondWorkflowTaskFailed(V1\RespondWorkflowTaskFailedRequest $arg, ContextInterface $ctx = null) : V1\RespondWorkflowTaskFailedResponse
+ public function RespondWorkflowTaskFailed(V1\RespondWorkflowTaskFailedRequest $arg, ?ContextInterface $ctx = null): V1\RespondWorkflowTaskFailedResponse
{
return $this->invoke("RespondWorkflowTaskFailed", $arg, $ctx);
}
@@ -246,12 +230,12 @@ public function RespondWorkflowTaskFailed(V1\RespondWorkflowTaskFailedRequest $a
* This is done to
* avoid writing many events in the case of a failure/retry loop.
*
- * @param V1\PollActivityTaskQueueRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\PollActivityTaskQueueResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
* @throws ServiceClientException
*/
- public function PollActivityTaskQueue(V1\PollActivityTaskQueueRequest $arg, ContextInterface $ctx = null) : V1\PollActivityTaskQueueResponse
+ public function PollActivityTaskQueue(V1\PollActivityTaskQueueRequest $arg, ?ContextInterface $ctx = null): V1\PollActivityTaskQueueResponse
{
return $this->invoke("PollActivityTaskQueue", $arg, $ctx);
}
@@ -269,12 +253,9 @@ public function PollActivityTaskQueue(V1\PollActivityTaskQueueRequest $arg, Cont
* such situations, in that event, the SDK should request cancellation of the
* activity.
*
- * @param V1\RecordActivityTaskHeartbeatRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\RecordActivityTaskHeartbeatResponse
* @throws ServiceClientException
*/
- public function RecordActivityTaskHeartbeat(V1\RecordActivityTaskHeartbeatRequest $arg, ContextInterface $ctx = null) : V1\RecordActivityTaskHeartbeatResponse
+ public function RecordActivityTaskHeartbeat(V1\RecordActivityTaskHeartbeatRequest $arg, ?ContextInterface $ctx = null): V1\RecordActivityTaskHeartbeatResponse
{
return $this->invoke("RecordActivityTaskHeartbeat", $arg, $ctx);
}
@@ -287,13 +268,9 @@ public function RecordActivityTaskHeartbeat(V1\RecordActivityTaskHeartbeatReques
* (-- api-linter: core::0136::prepositions=disabled
* aip.dev/not-precedent: "By" is used to indicate request type. --)
*
- * @param V1\RecordActivityTaskHeartbeatByIdRequest
- * $arg
- * @param ContextInterface|null $ctx
- * @return V1\RecordActivityTaskHeartbeatByIdResponse
* @throws ServiceClientException
*/
- public function RecordActivityTaskHeartbeatById(V1\RecordActivityTaskHeartbeatByIdRequest $arg, ContextInterface $ctx = null) : V1\RecordActivityTaskHeartbeatByIdResponse
+ public function RecordActivityTaskHeartbeatById(V1\RecordActivityTaskHeartbeatByIdRequest $arg, ?ContextInterface $ctx = null): V1\RecordActivityTaskHeartbeatByIdResponse
{
return $this->invoke("RecordActivityTaskHeartbeatById", $arg, $ctx);
}
@@ -310,12 +287,9 @@ public function RecordActivityTaskHeartbeatById(V1\RecordActivityTaskHeartbeatBy
* no longer valid due to activity timeout, already being completed, or never
* having existed.
*
- * @param V1\RespondActivityTaskCompletedRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\RespondActivityTaskCompletedResponse
* @throws ServiceClientException
*/
- public function RespondActivityTaskCompleted(V1\RespondActivityTaskCompletedRequest $arg, ContextInterface $ctx = null) : V1\RespondActivityTaskCompletedResponse
+ public function RespondActivityTaskCompleted(V1\RespondActivityTaskCompletedRequest $arg, ?ContextInterface $ctx = null): V1\RespondActivityTaskCompletedResponse
{
return $this->invoke("RespondActivityTaskCompleted", $arg, $ctx);
}
@@ -328,14 +302,9 @@ public function RespondActivityTaskCompleted(V1\RespondActivityTaskCompletedRequ
* (-- api-linter: core::0136::prepositions=disabled
* aip.dev/not-precedent: "By" is used to indicate request type. --)
*
- * @param V1\RespondActivityTaskCompletedByIdRequest
- * $arg
- * @param ContextInterface|null $ctx
- * @return
- * V1\RespondActivityTaskCompletedByIdResponse
* @throws ServiceClientException
*/
- public function RespondActivityTaskCompletedById(V1\RespondActivityTaskCompletedByIdRequest $arg, ContextInterface $ctx = null) : V1\RespondActivityTaskCompletedByIdResponse
+ public function RespondActivityTaskCompletedById(V1\RespondActivityTaskCompletedByIdRequest $arg, ?ContextInterface $ctx = null): V1\RespondActivityTaskCompletedByIdResponse
{
return $this->invoke("RespondActivityTaskCompletedById", $arg, $ctx);
}
@@ -351,12 +320,9 @@ public function RespondActivityTaskCompletedById(V1\RespondActivityTaskCompleted
* longer valid due to activity timeout, already being completed, or never having
* existed.
*
- * @param V1\RespondActivityTaskFailedRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\RespondActivityTaskFailedResponse
* @throws ServiceClientException
*/
- public function RespondActivityTaskFailed(V1\RespondActivityTaskFailedRequest $arg, ContextInterface $ctx = null) : V1\RespondActivityTaskFailedResponse
+ public function RespondActivityTaskFailed(V1\RespondActivityTaskFailedRequest $arg, ?ContextInterface $ctx = null): V1\RespondActivityTaskFailedResponse
{
return $this->invoke("RespondActivityTaskFailed", $arg, $ctx);
}
@@ -369,13 +335,9 @@ public function RespondActivityTaskFailed(V1\RespondActivityTaskFailedRequest $a
* (-- api-linter: core::0136::prepositions=disabled
* aip.dev/not-precedent: "By" is used to indicate request type. --)
*
- * @param V1\RespondActivityTaskFailedByIdRequest
- * $arg
- * @param ContextInterface|null $ctx
- * @return V1\RespondActivityTaskFailedByIdResponse
* @throws ServiceClientException
*/
- public function RespondActivityTaskFailedById(V1\RespondActivityTaskFailedByIdRequest $arg, ContextInterface $ctx = null) : V1\RespondActivityTaskFailedByIdResponse
+ public function RespondActivityTaskFailedById(V1\RespondActivityTaskFailedByIdRequest $arg, ?ContextInterface $ctx = null): V1\RespondActivityTaskFailedByIdResponse
{
return $this->invoke("RespondActivityTaskFailedById", $arg, $ctx);
}
@@ -391,12 +353,9 @@ public function RespondActivityTaskFailedById(V1\RespondActivityTaskFailedByIdRe
* no longer valid due to activity timeout, already being completed, or never
* having existed.
*
- * @param V1\RespondActivityTaskCanceledRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\RespondActivityTaskCanceledResponse
* @throws ServiceClientException
*/
- public function RespondActivityTaskCanceled(V1\RespondActivityTaskCanceledRequest $arg, ContextInterface $ctx = null) : V1\RespondActivityTaskCanceledResponse
+ public function RespondActivityTaskCanceled(V1\RespondActivityTaskCanceledRequest $arg, ?ContextInterface $ctx = null): V1\RespondActivityTaskCanceledResponse
{
return $this->invoke("RespondActivityTaskCanceled", $arg, $ctx);
}
@@ -409,13 +368,9 @@ public function RespondActivityTaskCanceled(V1\RespondActivityTaskCanceledReques
* (-- api-linter: core::0136::prepositions=disabled
* aip.dev/not-precedent: "By" is used to indicate request type. --)
*
- * @param V1\RespondActivityTaskCanceledByIdRequest
- * $arg
- * @param ContextInterface|null $ctx
- * @return V1\RespondActivityTaskCanceledByIdResponse
* @throws ServiceClientException
*/
- public function RespondActivityTaskCanceledById(V1\RespondActivityTaskCanceledByIdRequest $arg, ContextInterface $ctx = null) : V1\RespondActivityTaskCanceledByIdResponse
+ public function RespondActivityTaskCanceledById(V1\RespondActivityTaskCanceledByIdRequest $arg, ?ContextInterface $ctx = null): V1\RespondActivityTaskCanceledByIdResponse
{
return $this->invoke("RespondActivityTaskCanceledById", $arg, $ctx);
}
@@ -425,19 +380,16 @@ public function RespondActivityTaskCanceledById(V1\RespondActivityTaskCanceledBy
* cancellation of
* a workflow execution.
*
- * This result in a new `WORKFLOW_EXECUTION_CANCEL_REQUESTED` event being written
+ * This results in a new `WORKFLOW_EXECUTION_CANCEL_REQUESTED` event being written
* to the
- * workflow history and a new workflow task created for the workflow. Fails with
- * `NotFound` if
- * the workflow is already completed or doesn't exist.
+ * workflow history and a new workflow task created for the workflow. It returns
+ * success if the requested
+ * workflow is already closed. It fails with 'NotFound' if the requested workflow
+ * doesn't exist.
*
- * @param V1\RequestCancelWorkflowExecutionRequest
- * $arg
- * @param ContextInterface|null $ctx
- * @return V1\RequestCancelWorkflowExecutionResponse
* @throws ServiceClientException
*/
- public function RequestCancelWorkflowExecution(V1\RequestCancelWorkflowExecutionRequest $arg, ContextInterface $ctx = null) : V1\RequestCancelWorkflowExecutionResponse
+ public function RequestCancelWorkflowExecution(V1\RequestCancelWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\RequestCancelWorkflowExecutionResponse
{
return $this->invoke("RequestCancelWorkflowExecution", $arg, $ctx);
}
@@ -450,12 +402,9 @@ public function RequestCancelWorkflowExecution(V1\RequestCancelWorkflowExecution
* and a workflow
* task being created for the execution.
*
- * @param V1\SignalWorkflowExecutionRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\SignalWorkflowExecutionResponse
* @throws ServiceClientException
*/
- public function SignalWorkflowExecution(V1\SignalWorkflowExecutionRequest $arg, ContextInterface $ctx = null) : V1\SignalWorkflowExecutionResponse
+ public function SignalWorkflowExecution(V1\SignalWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\SignalWorkflowExecutionResponse
{
return $this->invoke("SignalWorkflowExecution", $arg, $ctx);
}
@@ -477,14 +426,9 @@ public function SignalWorkflowExecution(V1\SignalWorkflowExecutionRequest $arg,
* (-- api-linter: core::0136::prepositions=disabled
* aip.dev/not-precedent: "With" is used to indicate combined operation. --)
*
- * @param V1\SignalWithStartWorkflowExecutionRequest
- * $arg
- * @param ContextInterface|null $ctx
- * @return
- * V1\SignalWithStartWorkflowExecutionResponse
* @throws ServiceClientException
*/
- public function SignalWithStartWorkflowExecution(V1\SignalWithStartWorkflowExecutionRequest $arg, ContextInterface $ctx = null) : V1\SignalWithStartWorkflowExecutionResponse
+ public function SignalWithStartWorkflowExecution(V1\SignalWithStartWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\SignalWithStartWorkflowExecutionResponse
{
return $this->invoke("SignalWithStartWorkflowExecution", $arg, $ctx);
}
@@ -497,12 +441,9 @@ public function SignalWithStartWorkflowExecution(V1\SignalWithStartWorkflowExecu
* TODO: Does exclusive here mean *just* the completed event, or also WFT started?
* Otherwise the task is doomed to time out?
*
- * @param V1\ResetWorkflowExecutionRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\ResetWorkflowExecutionResponse
* @throws ServiceClientException
*/
- public function ResetWorkflowExecution(V1\ResetWorkflowExecutionRequest $arg, ContextInterface $ctx = null) : V1\ResetWorkflowExecutionResponse
+ public function ResetWorkflowExecution(V1\ResetWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\ResetWorkflowExecutionResponse
{
return $this->invoke("ResetWorkflowExecution", $arg, $ctx);
}
@@ -514,26 +455,42 @@ public function ResetWorkflowExecution(V1\ResetWorkflowExecutionRequest $arg, Co
* the
* execution instance.
*
- * @param V1\TerminateWorkflowExecutionRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\TerminateWorkflowExecutionResponse
* @throws ServiceClientException
*/
- public function TerminateWorkflowExecution(V1\TerminateWorkflowExecutionRequest $arg, ContextInterface $ctx = null) : V1\TerminateWorkflowExecutionResponse
+ public function TerminateWorkflowExecution(V1\TerminateWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\TerminateWorkflowExecutionResponse
{
return $this->invoke("TerminateWorkflowExecution", $arg, $ctx);
}
+ /**
+ * DeleteWorkflowExecution asynchronously deletes a specific Workflow Execution
+ * (when
+ * WorkflowExecution.run_id is provided) or the latest Workflow Execution (when
+ * WorkflowExecution.run_id is not provided). If the Workflow Execution is Running,
+ * it will be
+ * terminated before deletion.
+ *
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: Workflow deletion not exposed to HTTP, users should use
+ * cancel or terminate. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function DeleteWorkflowExecution(V1\DeleteWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\DeleteWorkflowExecutionResponse
+ {
+ return $this->invoke("DeleteWorkflowExecution", $arg, $ctx);
+ }
+
/**
* ListOpenWorkflowExecutions is a visibility API to list the open executions in a
* specific namespace.
*
- * @param V1\ListOpenWorkflowExecutionsRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\ListOpenWorkflowExecutionsResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --)
+ *
* @throws ServiceClientException
*/
- public function ListOpenWorkflowExecutions(V1\ListOpenWorkflowExecutionsRequest $arg, ContextInterface $ctx = null) : V1\ListOpenWorkflowExecutionsResponse
+ public function ListOpenWorkflowExecutions(V1\ListOpenWorkflowExecutionsRequest $arg, ?ContextInterface $ctx = null): V1\ListOpenWorkflowExecutionsResponse
{
return $this->invoke("ListOpenWorkflowExecutions", $arg, $ctx);
}
@@ -542,12 +499,12 @@ public function ListOpenWorkflowExecutions(V1\ListOpenWorkflowExecutionsRequest
* ListClosedWorkflowExecutions is a visibility API to list the closed executions
* in a specific namespace.
*
- * @param V1\ListClosedWorkflowExecutionsRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\ListClosedWorkflowExecutionsResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --)
+ *
* @throws ServiceClientException
*/
- public function ListClosedWorkflowExecutions(V1\ListClosedWorkflowExecutionsRequest $arg, ContextInterface $ctx = null) : V1\ListClosedWorkflowExecutionsResponse
+ public function ListClosedWorkflowExecutions(V1\ListClosedWorkflowExecutionsRequest $arg, ?ContextInterface $ctx = null): V1\ListClosedWorkflowExecutionsResponse
{
return $this->invoke("ListClosedWorkflowExecutions", $arg, $ctx);
}
@@ -556,12 +513,9 @@ public function ListClosedWorkflowExecutions(V1\ListClosedWorkflowExecutionsRequ
* ListWorkflowExecutions is a visibility API to list workflow executions in a
* specific namespace.
*
- * @param V1\ListWorkflowExecutionsRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\ListWorkflowExecutionsResponse
* @throws ServiceClientException
*/
- public function ListWorkflowExecutions(V1\ListWorkflowExecutionsRequest $arg, ContextInterface $ctx = null) : V1\ListWorkflowExecutionsResponse
+ public function ListWorkflowExecutions(V1\ListWorkflowExecutionsRequest $arg, ?ContextInterface $ctx = null): V1\ListWorkflowExecutionsResponse
{
return $this->invoke("ListWorkflowExecutions", $arg, $ctx);
}
@@ -570,13 +524,9 @@ public function ListWorkflowExecutions(V1\ListWorkflowExecutionsRequest $arg, Co
* ListArchivedWorkflowExecutions is a visibility API to list archived workflow
* executions in a specific namespace.
*
- * @param V1\ListArchivedWorkflowExecutionsRequest
- * $arg
- * @param ContextInterface|null $ctx
- * @return V1\ListArchivedWorkflowExecutionsResponse
* @throws ServiceClientException
*/
- public function ListArchivedWorkflowExecutions(V1\ListArchivedWorkflowExecutionsRequest $arg, ContextInterface $ctx = null) : V1\ListArchivedWorkflowExecutionsResponse
+ public function ListArchivedWorkflowExecutions(V1\ListArchivedWorkflowExecutionsRequest $arg, ?ContextInterface $ctx = null): V1\ListArchivedWorkflowExecutionsResponse
{
return $this->invoke("ListArchivedWorkflowExecutions", $arg, $ctx);
}
@@ -585,12 +535,12 @@ public function ListArchivedWorkflowExecutions(V1\ListArchivedWorkflowExecutions
* ScanWorkflowExecutions is a visibility API to list large amount of workflow
* executions in a specific namespace without order.
*
- * @param V1\ScanWorkflowExecutionsRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\ScanWorkflowExecutionsResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: HTTP users should use ListWorkflowExecutions instead. --)
+ *
* @throws ServiceClientException
*/
- public function ScanWorkflowExecutions(V1\ScanWorkflowExecutionsRequest $arg, ContextInterface $ctx = null) : V1\ScanWorkflowExecutionsResponse
+ public function ScanWorkflowExecutions(V1\ScanWorkflowExecutionsRequest $arg, ?ContextInterface $ctx = null): V1\ScanWorkflowExecutionsResponse
{
return $this->invoke("ScanWorkflowExecutions", $arg, $ctx);
}
@@ -599,12 +549,9 @@ public function ScanWorkflowExecutions(V1\ScanWorkflowExecutionsRequest $arg, Co
* CountWorkflowExecutions is a visibility API to count of workflow executions in a
* specific namespace.
*
- * @param V1\CountWorkflowExecutionsRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\CountWorkflowExecutionsResponse
* @throws ServiceClientException
*/
- public function CountWorkflowExecutions(V1\CountWorkflowExecutionsRequest $arg, ContextInterface $ctx = null) : V1\CountWorkflowExecutionsResponse
+ public function CountWorkflowExecutions(V1\CountWorkflowExecutionsRequest $arg, ?ContextInterface $ctx = null): V1\CountWorkflowExecutionsResponse
{
return $this->invoke("CountWorkflowExecutions", $arg, $ctx);
}
@@ -613,12 +560,13 @@ public function CountWorkflowExecutions(V1\CountWorkflowExecutionsRequest $arg,
* GetSearchAttributes is a visibility API to get all legal keys that could be used
* in list APIs
*
- * @param V1\GetSearchAttributesRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\GetSearchAttributesResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose this search attribute API to HTTP (but
+ * may expose on OperatorService). --)
+ *
* @throws ServiceClientException
*/
- public function GetSearchAttributes(V1\GetSearchAttributesRequest $arg, ContextInterface $ctx = null) : V1\GetSearchAttributesResponse
+ public function GetSearchAttributes(V1\GetSearchAttributesRequest $arg, ?ContextInterface $ctx = null): V1\GetSearchAttributesResponse
{
return $this->invoke("GetSearchAttributes", $arg, $ctx);
}
@@ -632,12 +580,12 @@ public function GetSearchAttributes(V1\GetSearchAttributesRequest $arg, ContextI
* `QueryWorkflow` and return
* the query result a response.
*
- * @param V1\RespondQueryTaskCompletedRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\RespondQueryTaskCompletedResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
* @throws ServiceClientException
*/
- public function RespondQueryTaskCompleted(V1\RespondQueryTaskCompletedRequest $arg, ContextInterface $ctx = null) : V1\RespondQueryTaskCompletedResponse
+ public function RespondQueryTaskCompleted(V1\RespondQueryTaskCompletedRequest $arg, ?ContextInterface $ctx = null): V1\RespondQueryTaskCompletedResponse
{
return $this->invoke("RespondQueryTaskCompleted", $arg, $ctx);
}
@@ -653,25 +601,44 @@ public function RespondQueryTaskCompleted(V1\RespondQueryTaskCompletedRequest $a
* 1. StickyTaskQueue
* 2. StickyScheduleToStartTimeout
*
- * @param V1\ResetStickyTaskQueueRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\ResetStickyTaskQueueResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
* @throws ServiceClientException
*/
- public function ResetStickyTaskQueue(V1\ResetStickyTaskQueueRequest $arg, ContextInterface $ctx = null) : V1\ResetStickyTaskQueueResponse
+ public function ResetStickyTaskQueue(V1\ResetStickyTaskQueueRequest $arg, ?ContextInterface $ctx = null): V1\ResetStickyTaskQueueResponse
{
return $this->invoke("ResetStickyTaskQueue", $arg, $ctx);
}
+ /**
+ * ShutdownWorker is used to indicate that the given sticky task
+ * queue is no longer being polled by its worker. Following the completion of
+ * ShutdownWorker, newly-added workflow tasks will instead be placed
+ * in the normal task queue, eligible for any worker to pick up.
+ *
+ * ShutdownWorker should be called by workers while shutting down,
+ * after they've shut down their pollers. If another sticky poll
+ * request is issued, the sticky task queue will be revived.
+ *
+ * As of Temporal Server v1.25.0, ShutdownWorker hasn't yet been implemented.
+ *
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function ShutdownWorker(V1\ShutdownWorkerRequest $arg, ?ContextInterface $ctx = null): V1\ShutdownWorkerResponse
+ {
+ return $this->invoke("ShutdownWorker", $arg, $ctx);
+ }
+
/**
* QueryWorkflow requests a query be executed for a specified workflow execution.
*
- * @param V1\QueryWorkflowRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\QueryWorkflowResponse
* @throws ServiceClientException
*/
- public function QueryWorkflow(V1\QueryWorkflowRequest $arg, ContextInterface $ctx = null) : V1\QueryWorkflowResponse
+ public function QueryWorkflow(V1\QueryWorkflowRequest $arg, ?ContextInterface $ctx = null): V1\QueryWorkflowResponse
{
return $this->invoke("QueryWorkflow", $arg, $ctx);
}
@@ -680,25 +647,23 @@ public function QueryWorkflow(V1\QueryWorkflowRequest $arg, ContextInterface $ct
* DescribeWorkflowExecution returns information about the specified workflow
* execution.
*
- * @param V1\DescribeWorkflowExecutionRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\DescribeWorkflowExecutionResponse
* @throws ServiceClientException
*/
- public function DescribeWorkflowExecution(V1\DescribeWorkflowExecutionRequest $arg, ContextInterface $ctx = null) : V1\DescribeWorkflowExecutionResponse
+ public function DescribeWorkflowExecution(V1\DescribeWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\DescribeWorkflowExecutionResponse
{
return $this->invoke("DescribeWorkflowExecution", $arg, $ctx);
}
/**
- * DescribeTaskQueue returns information about the target task queue.
+ * DescribeTaskQueue returns the following information about the target task queue,
+ * broken down by Build ID:
+ * - List of pollers
+ * - Workflow Reachability status
+ * - Backlog info for Workflow and/or Activity tasks
*
- * @param V1\DescribeTaskQueueRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\DescribeTaskQueueResponse
* @throws ServiceClientException
*/
- public function DescribeTaskQueue(V1\DescribeTaskQueueRequest $arg, ContextInterface $ctx = null) : V1\DescribeTaskQueueResponse
+ public function DescribeTaskQueue(V1\DescribeTaskQueueRequest $arg, ?ContextInterface $ctx = null): V1\DescribeTaskQueueResponse
{
return $this->invoke("DescribeTaskQueue", $arg, $ctx);
}
@@ -706,12 +671,9 @@ public function DescribeTaskQueue(V1\DescribeTaskQueueRequest $arg, ContextInter
/**
* GetClusterInfo returns information about temporal cluster
*
- * @param V1\GetClusterInfoRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\GetClusterInfoResponse
* @throws ServiceClientException
*/
- public function GetClusterInfo(V1\GetClusterInfoRequest $arg, ContextInterface $ctx = null) : V1\GetClusterInfoResponse
+ public function GetClusterInfo(V1\GetClusterInfoRequest $arg, ?ContextInterface $ctx = null): V1\GetClusterInfoResponse
{
return $this->invoke("GetClusterInfo", $arg, $ctx);
}
@@ -719,25 +681,506 @@ public function GetClusterInfo(V1\GetClusterInfoRequest $arg, ContextInterface $
/**
* GetSystemInfo returns information about the system.
*
- * @param V1\GetSystemInfoRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\GetSystemInfoResponse
* @throws ServiceClientException
*/
- public function GetSystemInfo(V1\GetSystemInfoRequest $arg, ContextInterface $ctx = null) : V1\GetSystemInfoResponse
+ public function GetSystemInfo(V1\GetSystemInfoRequest $arg, ?ContextInterface $ctx = null): V1\GetSystemInfoResponse
{
return $this->invoke("GetSystemInfo", $arg, $ctx);
}
/**
- * @param V1\ListTaskQueuePartitionsRequest $arg
- * @param ContextInterface|null $ctx
- * @return V1\ListTaskQueuePartitionsResponse
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose this low-level API to HTTP. --)
+ *
* @throws ServiceClientException
*/
- public function ListTaskQueuePartitions(V1\ListTaskQueuePartitionsRequest $arg, ContextInterface $ctx = null) : V1\ListTaskQueuePartitionsResponse
+ public function ListTaskQueuePartitions(V1\ListTaskQueuePartitionsRequest $arg, ?ContextInterface $ctx = null): V1\ListTaskQueuePartitionsResponse
{
return $this->invoke("ListTaskQueuePartitions", $arg, $ctx);
}
-}
+ /**
+ * Creates a new schedule.
+ *
+ * @throws ServiceClientException
+ */
+ public function CreateSchedule(V1\CreateScheduleRequest $arg, ?ContextInterface $ctx = null): V1\CreateScheduleResponse
+ {
+ return $this->invoke("CreateSchedule", $arg, $ctx);
+ }
+
+ /**
+ * Returns the schedule description and current state of an existing schedule.
+ *
+ * @throws ServiceClientException
+ */
+ public function DescribeSchedule(V1\DescribeScheduleRequest $arg, ?ContextInterface $ctx = null): V1\DescribeScheduleResponse
+ {
+ return $this->invoke("DescribeSchedule", $arg, $ctx);
+ }
+
+ /**
+ * Changes the configuration or state of an existing schedule.
+ *
+ * @throws ServiceClientException
+ */
+ public function UpdateSchedule(V1\UpdateScheduleRequest $arg, ?ContextInterface $ctx = null): V1\UpdateScheduleResponse
+ {
+ return $this->invoke("UpdateSchedule", $arg, $ctx);
+ }
+
+ /**
+ * Makes a specific change to a schedule or triggers an immediate action.
+ *
+ * @throws ServiceClientException
+ */
+ public function PatchSchedule(V1\PatchScheduleRequest $arg, ?ContextInterface $ctx = null): V1\PatchScheduleResponse
+ {
+ return $this->invoke("PatchSchedule", $arg, $ctx);
+ }
+
+ /**
+ * Lists matching times within a range.
+ *
+ * @throws ServiceClientException
+ */
+ public function ListScheduleMatchingTimes(V1\ListScheduleMatchingTimesRequest $arg, ?ContextInterface $ctx = null): V1\ListScheduleMatchingTimesResponse
+ {
+ return $this->invoke("ListScheduleMatchingTimes", $arg, $ctx);
+ }
+
+ /**
+ * Deletes a schedule, removing it from the system.
+ *
+ * @throws ServiceClientException
+ */
+ public function DeleteSchedule(V1\DeleteScheduleRequest $arg, ?ContextInterface $ctx = null): V1\DeleteScheduleResponse
+ {
+ return $this->invoke("DeleteSchedule", $arg, $ctx);
+ }
+
+ /**
+ * List all schedules in a namespace.
+ *
+ * @throws ServiceClientException
+ */
+ public function ListSchedules(V1\ListSchedulesRequest $arg, ?ContextInterface $ctx = null): V1\ListSchedulesResponse
+ {
+ return $this->invoke("ListSchedules", $arg, $ctx);
+ }
+
+ /**
+ * Deprecated. Use `UpdateWorkerVersioningRules`.
+ *
+ * Allows users to specify sets of worker build id versions on a per task queue
+ * basis. Versions
+ * are ordered, and may be either compatible with some extant version, or a new
+ * incompatible
+ * version, forming sets of ids which are incompatible with each other, but whose
+ * contained
+ * members are compatible with one another.
+ *
+ * A single build id may be mapped to multiple task queues using this API for cases
+ * where a single process hosts
+ * multiple workers.
+ *
+ * To query which workers can be retired, use the `GetWorkerTaskReachability` API.
+ *
+ * NOTE: The number of task queues mapped to a single build id is limited by the
+ * `limit.taskQueuesPerBuildId`
+ * (default is 20), if this limit is exceeded this API will error with a
+ * FailedPrecondition.
+ *
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do yet expose versioning API to HTTP. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function UpdateWorkerBuildIdCompatibility(V1\UpdateWorkerBuildIdCompatibilityRequest $arg, ?ContextInterface $ctx = null): V1\UpdateWorkerBuildIdCompatibilityResponse
+ {
+ return $this->invoke("UpdateWorkerBuildIdCompatibility", $arg, $ctx);
+ }
+
+ /**
+ * Deprecated. Use `GetWorkerVersioningRules`.
+ * Fetches the worker build id versioning sets for a task queue.
+ *
+ * @throws ServiceClientException
+ */
+ public function GetWorkerBuildIdCompatibility(V1\GetWorkerBuildIdCompatibilityRequest $arg, ?ContextInterface $ctx = null): V1\GetWorkerBuildIdCompatibilityResponse
+ {
+ return $this->invoke("GetWorkerBuildIdCompatibility", $arg, $ctx);
+ }
+
+ /**
+ * Use this API to manage Worker Versioning Rules for a given Task Queue. There are
+ * two types of
+ * rules: Build ID Assignment rules and Compatible Build ID Redirect rules.
+ *
+ * Assignment rules determine how to assign new executions to a Build IDs. Their
+ * primary
+ * use case is to specify the latest Build ID but they have powerful features for
+ * gradual rollout
+ * of a new Build ID.
+ *
+ * Once a workflow execution is assigned to a Build ID and it completes its first
+ * Workflow Task,
+ * the workflow stays on the assigned Build ID regardless of changes in assignment
+ * rules. This
+ * eliminates the need for compatibility between versions when you only care about
+ * using the new
+ * version for new workflows and let existing workflows finish in their own
+ * version.
+ *
+ * Activities, Child Workflows and Continue-as-New executions have the option to
+ * inherit the
+ * Build ID of their parent/previous workflow or use the latest assignment rules to
+ * independently
+ * select a Build ID.
+ *
+ * Redirect rules should only be used when you want to move workflows and
+ * activities assigned to
+ * one Build ID (source) to another compatible Build ID (target). You are
+ * responsible to make sure
+ * the target Build ID of a redirect rule is able to process event histories made
+ * by the source
+ * Build ID by using [Patching](https://docs.temporal.io/workflows#patching) or
+ * other means.
+ *
+ * WARNING: Worker Versioning is not yet stable and the API and behavior may change
+ * incompatibly.
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do yet expose versioning API to HTTP. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function UpdateWorkerVersioningRules(V1\UpdateWorkerVersioningRulesRequest $arg, ?ContextInterface $ctx = null): V1\UpdateWorkerVersioningRulesResponse
+ {
+ return $this->invoke("UpdateWorkerVersioningRules", $arg, $ctx);
+ }
+
+ /**
+ * Fetches the Build ID assignment and redirect rules for a Task Queue.
+ * WARNING: Worker Versioning is not yet stable and the API and behavior may change
+ * incompatibly.
+ *
+ * @throws ServiceClientException
+ */
+ public function GetWorkerVersioningRules(V1\GetWorkerVersioningRulesRequest $arg, ?ContextInterface $ctx = null): V1\GetWorkerVersioningRulesResponse
+ {
+ return $this->invoke("GetWorkerVersioningRules", $arg, $ctx);
+ }
+
+ /**
+ * Deprecated. Use `DescribeTaskQueue`.
+ *
+ * Fetches task reachability to determine whether a worker may be retired.
+ * The request may specify task queues to query for or let the server fetch all
+ * task queues mapped to the given
+ * build IDs.
+ *
+ * When requesting a large number of task queues or all task queues associated with
+ * the given build ids in a
+ * namespace, all task queues will be listed in the response but some of them may
+ * not contain reachability
+ * information due to a server enforced limit. When reaching the limit, task queues
+ * that reachability information
+ * could not be retrieved for will be marked with a single
+ * TASK_REACHABILITY_UNSPECIFIED entry. The caller may issue
+ * another call to get the reachability for those task queues.
+ *
+ * Open source users can adjust this limit by setting the server's dynamic config
+ * value for
+ * `limit.reachabilityTaskQueueScan` with the caveat that this call can strain the
+ * visibility store.
+ *
+ * @throws ServiceClientException
+ */
+ public function GetWorkerTaskReachability(V1\GetWorkerTaskReachabilityRequest $arg, ?ContextInterface $ctx = null): V1\GetWorkerTaskReachabilityResponse
+ {
+ return $this->invoke("GetWorkerTaskReachability", $arg, $ctx);
+ }
+
+ /**
+ * Describes a worker deployment.
+ * Experimental. This API might significantly change or be removed in a future
+ * release.
+ *
+ * @throws ServiceClientException
+ */
+ public function DescribeDeployment(V1\DescribeDeploymentRequest $arg, ?ContextInterface $ctx = null): V1\DescribeDeploymentResponse
+ {
+ return $this->invoke("DescribeDeployment", $arg, $ctx);
+ }
+
+ /**
+ * Lists worker deployments in the namespace. Optionally can filter based on
+ * deployment series
+ * name.
+ * Experimental. This API might significantly change or be removed in a future
+ * release.
+ *
+ * @throws ServiceClientException
+ */
+ public function ListDeployments(V1\ListDeploymentsRequest $arg, ?ContextInterface $ctx = null): V1\ListDeploymentsResponse
+ {
+ return $this->invoke("ListDeployments", $arg, $ctx);
+ }
+
+ /**
+ * Returns the reachability level of a worker deployment to help users decide when
+ * it is time
+ * to decommission a deployment. Reachability level is calculated based on the
+ * deployment's
+ * `status` and existing workflows that depend on the given deployment for their
+ * execution.
+ * Calculating reachability is relatively expensive. Therefore, server might return
+ * a recently
+ * cached value. In such a case, the `last_update_time` will inform you about the
+ * actual
+ * reachability calculation time.
+ * Experimental. This API might significantly change or be removed in a future
+ * release.
+ *
+ * @throws ServiceClientException
+ */
+ public function GetDeploymentReachability(V1\GetDeploymentReachabilityRequest $arg, ?ContextInterface $ctx = null): V1\GetDeploymentReachabilityResponse
+ {
+ return $this->invoke("GetDeploymentReachability", $arg, $ctx);
+ }
+
+ /**
+ * Returns the current deployment (and its info) for a given deployment series.
+ * Experimental. This API might significantly change or be removed in a future
+ * release.
+ *
+ * @throws ServiceClientException
+ */
+ public function GetCurrentDeployment(V1\GetCurrentDeploymentRequest $arg, ?ContextInterface $ctx = null): V1\GetCurrentDeploymentResponse
+ {
+ return $this->invoke("GetCurrentDeployment", $arg, $ctx);
+ }
+
+ /**
+ * Sets a deployment as the current deployment for its deployment series. Can
+ * optionally update
+ * the metadata of the deployment as well.
+ * Experimental. This API might significantly change or be removed in a future
+ * release.
+ *
+ * @throws ServiceClientException
+ */
+ public function SetCurrentDeployment(V1\SetCurrentDeploymentRequest $arg, ?ContextInterface $ctx = null): V1\SetCurrentDeploymentResponse
+ {
+ return $this->invoke("SetCurrentDeployment", $arg, $ctx);
+ }
+
+ /**
+ * Invokes the specified Update function on user Workflow code.
+ *
+ * @throws ServiceClientException
+ */
+ public function UpdateWorkflowExecution(V1\UpdateWorkflowExecutionRequest $arg, ?ContextInterface $ctx = null): V1\UpdateWorkflowExecutionResponse
+ {
+ return $this->invoke("UpdateWorkflowExecution", $arg, $ctx);
+ }
+
+ /**
+ * Polls a Workflow Execution for the outcome of a Workflow Update
+ * previously issued through the UpdateWorkflowExecution RPC. The effective
+ * timeout on this call will be shorter of the the caller-supplied gRPC
+ * timeout and the server's configured long-poll timeout.
+ *
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We don't expose update polling API to HTTP in favor of a
+ * potential future non-blocking form. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function PollWorkflowExecutionUpdate(V1\PollWorkflowExecutionUpdateRequest $arg, ?ContextInterface $ctx = null): V1\PollWorkflowExecutionUpdateResponse
+ {
+ return $this->invoke("PollWorkflowExecutionUpdate", $arg, $ctx);
+ }
+
+ /**
+ * StartBatchOperation starts a new batch operation
+ *
+ * @throws ServiceClientException
+ */
+ public function StartBatchOperation(V1\StartBatchOperationRequest $arg, ?ContextInterface $ctx = null): V1\StartBatchOperationResponse
+ {
+ return $this->invoke("StartBatchOperation", $arg, $ctx);
+ }
+
+ /**
+ * StopBatchOperation stops a batch operation
+ *
+ * @throws ServiceClientException
+ */
+ public function StopBatchOperation(V1\StopBatchOperationRequest $arg, ?ContextInterface $ctx = null): V1\StopBatchOperationResponse
+ {
+ return $this->invoke("StopBatchOperation", $arg, $ctx);
+ }
+
+ /**
+ * DescribeBatchOperation returns the information about a batch operation
+ *
+ * @throws ServiceClientException
+ */
+ public function DescribeBatchOperation(V1\DescribeBatchOperationRequest $arg, ?ContextInterface $ctx = null): V1\DescribeBatchOperationResponse
+ {
+ return $this->invoke("DescribeBatchOperation", $arg, $ctx);
+ }
+
+ /**
+ * ListBatchOperations returns a list of batch operations
+ *
+ * @throws ServiceClientException
+ */
+ public function ListBatchOperations(V1\ListBatchOperationsRequest $arg, ?ContextInterface $ctx = null): V1\ListBatchOperationsResponse
+ {
+ return $this->invoke("ListBatchOperations", $arg, $ctx);
+ }
+
+ /**
+ * PollNexusTaskQueue is a long poll call used by workers to receive Nexus tasks.
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function PollNexusTaskQueue(V1\PollNexusTaskQueueRequest $arg, ?ContextInterface $ctx = null): V1\PollNexusTaskQueueResponse
+ {
+ return $this->invoke("PollNexusTaskQueue", $arg, $ctx);
+ }
+
+ /**
+ * RespondNexusTaskCompleted is called by workers to respond to Nexus tasks
+ * received via PollNexusTaskQueue.
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function RespondNexusTaskCompleted(V1\RespondNexusTaskCompletedRequest $arg, ?ContextInterface $ctx = null): V1\RespondNexusTaskCompletedResponse
+ {
+ return $this->invoke("RespondNexusTaskCompleted", $arg, $ctx);
+ }
+
+ /**
+ * RespondNexusTaskFailed is called by workers to fail Nexus tasks received via
+ * PollNexusTaskQueue.
+ * (-- api-linter: core::0127::http-annotation=disabled
+ * aip.dev/not-precedent: We do not expose worker API to HTTP. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function RespondNexusTaskFailed(V1\RespondNexusTaskFailedRequest $arg, ?ContextInterface $ctx = null): V1\RespondNexusTaskFailedResponse
+ {
+ return $this->invoke("RespondNexusTaskFailed", $arg, $ctx);
+ }
+
+ /**
+ * UpdateActivityOptionsById is called by the client to update the options of an
+ * activity
+ * (-- api-linter: core::0136::prepositions=disabled
+ * aip.dev/not-precedent: "By" is used to indicate request type. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function UpdateActivityOptionsById(V1\UpdateActivityOptionsByIdRequest $arg, ?ContextInterface $ctx = null): V1\UpdateActivityOptionsByIdResponse
+ {
+ return $this->invoke("UpdateActivityOptionsById", $arg, $ctx);
+ }
+
+ /**
+ * UpdateWorkflowExecutionOptions partially updates the WorkflowExecutionOptions of
+ * an existing workflow execution.
+ *
+ * @throws ServiceClientException
+ */
+ public function UpdateWorkflowExecutionOptions(V1\UpdateWorkflowExecutionOptionsRequest $arg, ?ContextInterface $ctx = null): V1\UpdateWorkflowExecutionOptionsResponse
+ {
+ return $this->invoke("UpdateWorkflowExecutionOptions", $arg, $ctx);
+ }
+
+ /**
+ * PauseActivityById pauses the execution of an activity specified by its ID.
+ * Returns a `NotFound` error if there is no pending activity with the provided ID.
+ *
+ * Pausing an activity means:
+ * - If the activity is currently waiting for a retry or is running and
+ * subsequently fails,
+ * it will not be rescheduled until it is unpaused.
+ * - If the activity is already paused, calling this method will have no effect.
+ * - If the activity is running and finishes successfully, the activity will be
+ * completed.
+ * - If the activity is running and finishes with failure:
+ * if there is no retry left - the activity will be completed.
+ * if there are more retries left - the activity will be paused.
+ * For long-running activities:
+ * - activities in paused state will send a cancellation with "activity_paused" set
+ * to 'true' in response to 'RecordActivityTaskHeartbeat'.
+ * - The activity should respond to the cancellation accordingly.
+ * (-- api-linter: core::0136::prepositions=disabled
+ * aip.dev/not-precedent: "By" is used to indicate request type. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function PauseActivityById(V1\PauseActivityByIdRequest $arg, ?ContextInterface $ctx = null): V1\PauseActivityByIdResponse
+ {
+ return $this->invoke("PauseActivityById", $arg, $ctx);
+ }
+
+ /**
+ * UnpauseActivityById unpauses the execution of an activity specified by its ID.
+ * Returns a `NotFound` error if there is no pending activity with the provided ID.
+ * There are two 'modes' of unpausing an activity:
+ * 'resume' - If the activity is paused, it will be resumed and scheduled for
+ * execution.
+ * If the activity is currently running Unpause with 'resume' has no effect.
+ * if 'no_wait' flag is set and the activity is waiting, the activity will be
+ * scheduled immediately.
+ * 'reset' - If the activity is paused, it will be reset to its initial state and
+ * (depending on parameters) scheduled for execution.
+ * If the activity is currently running, Unpause with 'reset' will reset the number
+ * of attempts.
+ * if 'no_wait' flag is set, the activity will be scheduled immediately.
+ * if 'reset_heartbeats' flag is set, the activity heartbeat timer and heartbeats
+ * will be reset.
+ * If the activity is in waiting for retry and past it retry timeout, it will be
+ * scheduled immediately.
+ * Once the activity is unpaused, all timeout timers will be regenerated.
+ * (-- api-linter: core::0136::prepositions=disabled
+ * aip.dev/not-precedent: "By" is used to indicate request type. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function UnpauseActivityById(V1\UnpauseActivityByIdRequest $arg, ?ContextInterface $ctx = null): V1\UnpauseActivityByIdResponse
+ {
+ return $this->invoke("UnpauseActivityById", $arg, $ctx);
+ }
+
+ /**
+ * ResetActivityById unpauses the execution of an activity specified by its ID.
+ * Returns a `NotFound` error if there is no pending activity with the provided ID.
+ * Resetting an activity means:
+ * number of attempts will be reset to 0.
+ * activity timeouts will be resetted.
+ * If the activity currently running:
+ * if 'no_wait' flag is provided, a new instance of the activity will be scheduled
+ * immediately.
+ * if 'no_wait' flag is not provided, a new instance of the activity will be
+ * scheduled after current instance completes if needed.
+ * If 'reset_heartbeats' flag is set, the activity heartbeat timer and heartbeats
+ * will be reset.
+ * (-- api-linter: core::0136::prepositions=disabled
+ * aip.dev/not-precedent: "By" is used to indicate request type. --)
+ *
+ * @throws ServiceClientException
+ */
+ public function ResetActivityById(V1\ResetActivityByIdRequest $arg, ?ContextInterface $ctx = null): V1\ResetActivityByIdResponse
+ {
+ return $this->invoke("ResetActivityById", $arg, $ctx);
+ }
+}
diff --git a/src/Client/GRPC/ServiceClientInterface.php b/src/Client/GRPC/ServiceClientInterface.php
index b07a96be9..678139746 100644
--- a/src/Client/GRPC/ServiceClientInterface.php
+++ b/src/Client/GRPC/ServiceClientInterface.php
@@ -1,11 +1,6 @@
serviceClient->getServerCapabilities();
+
+ return $next($method, $arg, $ctx);
+ }
+}
diff --git a/src/Client/Schedule/Action/ScheduleAction.php b/src/Client/Schedule/Action/ScheduleAction.php
new file mode 100644
index 000000000..d073a39b4
--- /dev/null
+++ b/src/Client/Schedule/Action/ScheduleAction.php
@@ -0,0 +1,12 @@
+workflowId = Uuid::v4();
+ $this->workflowType = $workflowType;
+ $this->taskQueue = TaskQueue::new('default');
+ $this->input = EncodedValues::empty();
+ $this->workflowExecutionTimeout = new \DateInterval('PT0S');
+ $this->workflowRunTimeout = new \DateInterval('PT0S');
+ $this->workflowTaskTimeout = new \DateInterval('PT0S');
+ $this->workflowIdReusePolicy = IdReusePolicy::Unspecified;
+ $this->retryPolicy = RetryOptions::new();
+ $this->memo = EncodedCollection::empty();
+ $this->searchAttributes = EncodedCollection::empty();
+ $this->header = \Temporal\Interceptor\Header::empty();
+ $this->userMetadata = new UserMetadata('', '');
+ }
+
+ public static function new(string|WorkflowType $workflowType): self
+ {
+ \is_string($workflowType) and $workflowType = self::createWorkflowType($workflowType);
+
+ return new self($workflowType);
+ }
+
+ public function withWorkflowId(string $workflowId): self
+ {
+ $workflowId !== '' or throw new \InvalidArgumentException('Workflow ID cannot be empty.');
+
+ /** @see self::$workflowId */
+ return $this->with('workflowId', $workflowId);
+ }
+
+ public function withWorkflowType(string|WorkflowType $workflowType): self
+ {
+ \is_string($workflowType) and $workflowType = self::createWorkflowType($workflowType);
+
+ /** @see self::$workflowType */
+ return $this->with('workflowType', $workflowType);
+ }
+
+ public function withTaskQueue(string|TaskQueue $taskQueue): self
+ {
+ \is_string($taskQueue) and $taskQueue = TaskQueue::new($taskQueue);
+
+ /** @see self::$taskQueue */
+ return $this->with('taskQueue', $taskQueue);
+ }
+
+ /**
+ * Arguments to the workflow
+ *
+ * @param list|ValuesInterface $values
+ */
+ public function withInput(array|ValuesInterface $values): self
+ {
+ $values instanceof ValuesInterface or $values = EncodedValues::fromValues($values);
+
+ /** @see self::$input */
+ return $this->with('input', $values);
+ }
+
+ /**
+ * Total workflow execution timeout including retries and continue as new
+ *
+ * @param DateIntervalValue $timeout
+ */
+ public function withWorkflowExecutionTimeout(mixed $timeout): self
+ {
+ $timeout = $timeout === null
+ ? new \DateInterval('PT0S')
+ : DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
+
+ /** @see self::$workflowExecutionTimeout */
+ return $this->with('workflowExecutionTimeout', $timeout);
+ }
+
+ /**
+ * Timeout of a single workflow run
+ *
+ * @param DateIntervalValue $timeout
+ */
+ public function withWorkflowRunTimeout(mixed $timeout): self
+ {
+ $timeout = $timeout === null
+ ? new \DateInterval('PT0S')
+ : DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
+
+ /** @see self::$workflowRunTimeout */
+ return $this->with('workflowRunTimeout', $timeout);
+ }
+
+ /**
+ * Timeout of a single workflow task
+ *
+ * @param DateIntervalValue $timeout
+ */
+ public function withWorkflowTaskTimeout(mixed $timeout): self
+ {
+ $timeout = $timeout === null
+ ? new \DateInterval('PT0S')
+ : DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
+
+ /** @see self::$workflowTaskTimeout */
+ return $this->with('workflowTaskTimeout', $timeout);
+ }
+
+ public function withWorkflowIdReusePolicy(IdReusePolicy $policy): self
+ {
+ /** @see self::$workflowIdReusePolicy */
+ return $this->with('workflowIdReusePolicy', $policy);
+ }
+
+ /**
+ * The retry policy for the workflow. Will never exceed {@see self::$workflowExecutionTimeout}
+ */
+ public function withRetryPolicy(RetryOptions $retryPolicy): self
+ {
+ /** @see self::$retryPolicy */
+ return $this->with('retryPolicy', $retryPolicy);
+ }
+
+ /**
+ * Memo
+ *
+ * @param iterable|EncodedCollection $values
+ */
+ public function withMemo(iterable|EncodedCollection $values): self
+ {
+ $values instanceof EncodedCollection or $values = EncodedCollection::fromValues($values);
+
+ /** @see self::$memo */
+ return $this->with('memo', $values);
+ }
+
+ /**
+ * Search attributes
+ *
+ * @param iterable|EncodedCollection $values
+ */
+ public function withSearchAttributes(iterable|EncodedCollection $values): self
+ {
+ $values instanceof EncodedCollection or $values = EncodedCollection::fromValues($values);
+
+ /** @see self::$searchAttributes */
+ return $this->with('searchAttributes', $values);
+ }
+
+ /**
+ * Header
+ *
+ * @param iterable|HeaderInterface $values
+ */
+ public function withHeader(iterable|HeaderInterface $values): self
+ {
+ $values instanceof HeaderInterface or $values = \Temporal\Interceptor\Header::fromValues($values);
+
+ /** @see self::$header */
+ return $this->with('header', $values);
+ }
+
+ /**
+ * Single-line fixed summary for this workflow execution that will appear in UI/CLI.
+ *
+ * This can be in single-line Temporal Markdown format.
+ *
+ * @experimental This feature is not stable and may change in the future.
+ */
+ public function withStaticSummary(string $summary): self
+ {
+ /** @see self::$userMetadata */
+ return $this->with('userMetadata', $this->userMetadata->withSummary($summary));
+ }
+
+ /**
+ * General fixed details for this workflow execution that will appear in UI/CLI.
+ *
+ * This can be in Temporal Markdown format and can span multiple lines. This is a fixed value on the workflow
+ * that cannot be updated.
+ *
+ * @experimental This feature is not stable and may change in the future.
+ */
+ public function withStaticDetails(string $details): self
+ {
+ /** @see self::$userMetadata */
+ return $this->with('userMetadata', $this->userMetadata->withDetails($details));
+ }
+
+ private static function createWorkflowType(string $name): WorkflowType
+ {
+ $workflowType = new WorkflowType();
+ $workflowType->name = $name;
+ return $workflowType;
+ }
+}
diff --git a/src/Client/Schedule/BackfillPeriod.php b/src/Client/Schedule/BackfillPeriod.php
new file mode 100644
index 000000000..53679f934
--- /dev/null
+++ b/src/Client/Schedule/BackfillPeriod.php
@@ -0,0 +1,74 @@
+with('startTime', DateTime::parse($dateTime, class: \DateTimeImmutable::class));
+ }
+
+ /**
+ * End of the range to evaluate schedule in.
+ */
+ public function withEndTime(\DateTimeInterface|string $dateTime): self
+ {
+ /** @see self::$endTime */
+ return $this->with('endTime', DateTime::parse($dateTime, class: \DateTimeImmutable::class));
+ }
+
+ /**
+ * Policy for overlaps.
+ */
+ public function withOverlapPolicy(ScheduleOverlapPolicy $overlapPolicy): self
+ {
+ /** @see self::$overlapPolicy */
+ return $this->with('overlapPolicy', $overlapPolicy);
+ }
+}
diff --git a/src/Client/Schedule/Info/ScheduleActionResult.php b/src/Client/Schedule/Info/ScheduleActionResult.php
new file mode 100644
index 000000000..0623a82b8
--- /dev/null
+++ b/src/Client/Schedule/Info/ScheduleActionResult.php
@@ -0,0 +1,40 @@
+
+ */
+ #[Marshal(name: 'action_count')]
+ public readonly int $numActions;
+
+ /**
+ * Number of times a scheduled Action was skipped due to missing the catchup window.
+ */
+ #[Marshal(name: 'missed_catchup_window')]
+ public readonly int $numActionsMissedCatchupWindow;
+
+ /**
+ * Number of Actions skipped due to overlap.
+ */
+ #[Marshal(name: 'overlap_skipped')]
+ public readonly int $numActionsSkippedOverlap;
+
+ /**
+ * Currently-running workflows started by this schedule. (There might be
+ * more than one if the overlap policy allows overlaps.)
+ *
+ * @var WorkflowExecution
+ */
+ #[MarshalArray(name: 'running_workflows', of: WorkflowExecution::class)]
+ public readonly array $runningWorkflows;
+
+ /**
+ * Most recent 10 Actions started (including manual triggers).
+ * Sorted from older start time to newer.
+ *
+ * @var ScheduleActionResult[]
+ */
+ #[MarshalArray(name: 'recent_actions', of: ScheduleActionResult::class)]
+ public readonly array $recentActions;
+
+ /**
+ * Next 10 scheduled Action times.
+ *
+ * @var \DateTimeImmutable[]
+ */
+ #[MarshalArray(name: 'future_action_times', of: \DateTimeImmutable::class)]
+ public readonly array $nextActionTimes;
+
+ /**
+ * When the schedule was created.
+ */
+ #[Marshal(name: 'create_time')]
+ public readonly \DateTimeImmutable $createdAt;
+
+ /**
+ * When a schedule was last updated.
+ */
+ #[Marshal(name: 'update_time')]
+ public readonly ?\DateTimeImmutable $lastUpdateAt;
+
+ /**
+ * The DTO is a result of a query, so it is not possible to create it manually.
+ */
+ private function __construct() {}
+}
diff --git a/src/Client/Schedule/Info/ScheduleListEntry.php b/src/Client/Schedule/Info/ScheduleListEntry.php
new file mode 100644
index 000000000..0e388bf5f
--- /dev/null
+++ b/src/Client/Schedule/Info/ScheduleListEntry.php
@@ -0,0 +1,45 @@
+
+ */
+ #[MarshalArray(name: 'recent_actions', of: ScheduleActionResult::class)]
+ public readonly array $recentActions;
+
+ /**
+ * Future action times
+ *
+ * @var list<\DateTimeImmutable>
+ */
+ #[MarshalArray(name: 'future_action_times', of: \DateTimeImmutable::class)]
+ public readonly array $futureActionTimes;
+
+ /**
+ * The DTO is a result of a query, so it is not possible to create it manually.
+ */
+ private function __construct() {}
+}
diff --git a/src/Client/Schedule/Policy/ScheduleOverlapPolicy.php b/src/Client/Schedule/Policy/ScheduleOverlapPolicy.php
new file mode 100644
index 000000000..7048efe9d
--- /dev/null
+++ b/src/Client/Schedule/Policy/ScheduleOverlapPolicy.php
@@ -0,0 +1,52 @@
+overlapPolicy = ScheduleOverlapPolicy::Unspecified;
+ $this->catchupWindow = new \DateInterval('PT60S');
+ $this->pauseOnFailure = false;
+ }
+
+ public static function new(): self
+ {
+ return new self();
+ }
+
+ /**
+ * Policy for overlaps.
+ * Note that this can be changed after a schedule has taken some actions,
+ * and some changes might produce unintuitive results. In general, the later
+ * policy overrides the earlier policy.
+ */
+ public function withOverlapPolicy(ScheduleOverlapPolicy $overlapPolicy): self
+ {
+ return $this->with('overlapPolicy', $overlapPolicy);
+ }
+
+ /**
+ * Policy for catchups:
+ * If the Temporal server misses an action due to one or more components
+ * being down, and comes back up, the action will be run if the scheduled
+ * time is within this window from the current time.
+ * This value defaults to 60 seconds, and can't be less than 10 seconds.
+ *
+ * @param DateIntervalValue $interval
+ */
+ public function withCatchupWindow(mixed $interval): self
+ {
+ \assert(DateInterval::assert($interval));
+ $interval = DateInterval::parse($interval, DateInterval::FORMAT_SECONDS);
+ // Can't be less than 10 seconds.
+ \assert($interval->totalSeconds >= 10);
+
+ return $this->with('catchupWindow', $interval);
+ }
+
+ /**
+ * If true, and a workflow run fails or times out, turn on "paused".
+ * This applies after retry policies: the full chain of retries must fail to
+ * trigger a pause here.
+ */
+ public function withPauseOnFailure(bool $pauseOnFailure = true): self
+ {
+ return $this->with('pauseOnFailure', $pauseOnFailure);
+ }
+}
diff --git a/src/Client/Schedule/Schedule.php b/src/Client/Schedule/Schedule.php
new file mode 100644
index 000000000..9e1d4d80d
--- /dev/null
+++ b/src/Client/Schedule/Schedule.php
@@ -0,0 +1,83 @@
+ StartWorkflowAction::class],
+ of: ScheduleAction::class,
+ nullable: true,
+ )]
+ public readonly ?ScheduleAction $action;
+
+ #[Marshal]
+ public readonly SchedulePolicies $policies;
+
+ #[Marshal]
+ public readonly ScheduleState $state;
+
+ private function __construct()
+ {
+ $this->action = null;
+ $this->spec = ScheduleSpec::new();
+ $this->policies = SchedulePolicies::new();
+ $this->state = ScheduleState::new();
+ }
+
+ public static function new(): self
+ {
+ return new self();
+ }
+
+ /**
+ * Returns a new instance with the specified action.
+ *
+ * Available types of actions:
+ * - {@see StartWorkflowAction} - start a Workflow
+ */
+ public function withAction(?ScheduleAction $action): self
+ {
+ /** @see self::$action */
+ return $this->with('action', $action);
+ }
+
+ public function withSpec(ScheduleSpec $spec): self
+ {
+ /** @see self::$spec */
+ return $this->with('spec', $spec);
+ }
+
+ public function withPolicies(SchedulePolicies $policies): self
+ {
+ /** @see self::$policies */
+ return $this->with('policies', $policies);
+ }
+
+ public function withState(ScheduleState $state): self
+ {
+ /** @see self::$state */
+ return $this->with('state', $state);
+ }
+}
diff --git a/src/Client/Schedule/ScheduleHandle.php b/src/Client/Schedule/ScheduleHandle.php
new file mode 100644
index 000000000..1e5cbaaea
--- /dev/null
+++ b/src/Client/Schedule/ScheduleHandle.php
@@ -0,0 +1,263 @@
+client = $client;
+ }
+
+ /**
+ * GetID returns the schedule ID associated with this handle.
+ */
+ public function getID(): string
+ {
+ return $this->id;
+ }
+
+ /**
+ * Update the Schedule.
+ *
+ * Examples:
+ *
+ * Add a search attribute to the schedule:
+ * ```
+ * $handle->update(function (ScheduleUpdateInput $input): ScheduleUpdate {
+ * return ScheduleUpdate::new($input->description->schedule)
+ * ->withSearchAttributes($input->description->searchAttributes
+ * ->withValue('foo', 'bar'),
+ * ->withValue('bar', 42),
+ * );
+ * });
+ * ```
+ *
+ * Pause a described schedule:
+ * ```
+ * $description = $handle->describe();
+ * $schedule = $description->schedule;
+ * $handle->update(
+ * $schedule
+ * ->withState($schedule->state->withPaused(true)),
+ * $description->conflictToken,
+ * );
+ * ```
+ *
+ * NOTE: If two Update calls are made in parallel to the same Schedule there is the potential
+ * for a race condition. Use $conflictToken to avoid this.
+ *
+ * @param Schedule|\Closure(ScheduleUpdateInput): ScheduleUpdate $schedule The new Schedule to update to or
+ * a closure that will be passed the current ScheduleDescription and should return a ScheduleUpdate.
+ * @param string|null $conflictToken Can be the value of {@see ScheduleDescription::$conflictToken},
+ * which will cause this request to fail if the schedule has been modified
+ * between the {@see self::describe()} and this Update.
+ * If missing, the schedule will be updated unconditionally.
+ */
+ public function update(
+ Schedule|\Closure $schedule,
+ ?string $conflictToken = null,
+ ): void {
+ $request = (new UpdateScheduleRequest())
+ ->setScheduleId($this->id)
+ ->setNamespace($this->namespace)
+ ->setConflictToken((string) $conflictToken)
+ ->setIdentity($this->clientOptions->identity)
+ ->setRequestId(Uuid::v4());
+
+ if ($schedule instanceof \Closure) {
+ $description = $this->describe();
+ $update = $schedule(new ScheduleUpdateInput($description));
+ $update instanceof ScheduleUpdate or throw new InvalidArgumentException(
+ 'Closure for the schedule update method must return a ScheduleUpdate.',
+ );
+
+ $schedule = $update->schedule;
+
+ // Search attributes
+ if ($update->searchAttributes !== null) {
+ $update->searchAttributes->setDataConverter($this->converter);
+ $payloads = $update->searchAttributes->toPayloadArray();
+ $encodedSa = (new SearchAttributes())->setIndexedFields($payloads);
+ $request->setSearchAttributes($encodedSa);
+ }
+ }
+
+ $mapper = new ScheduleMapper($this->converter, $this->marshaller);
+ $scheduleMessage = $mapper->toMessage($schedule);
+ $request->setSchedule($scheduleMessage);
+
+
+ $this->client->UpdateSchedule($request);
+ }
+
+ /**
+ * Describe fetches the Schedule's description from the Server
+ */
+ public function describe(): ScheduleDescription
+ {
+ $request = (new DescribeScheduleRequest())
+ ->setScheduleId($this->id)
+ ->setNamespace($this->namespace);
+
+ $response = $this->client->DescribeSchedule($request);
+ $values = $this->protoConverter->convert($response);
+ $dto = new ScheduleDescription();
+
+ return $this->marshaller->unmarshal($values, $dto);
+ }
+
+ /**
+ * Lists matching times within a range.
+ *
+ * @return \Countable&\Traversable
+ */
+ public function listScheduleMatchingTimes(
+ \DateTimeInterface $startTime,
+ \DateTimeInterface $endTime,
+ ): \Countable&\Traversable {
+ $request = (new ListScheduleMatchingTimesRequest())
+ ->setScheduleId($this->id)
+ ->setNamespace($this->namespace)
+ ->setStartTime((new Timestamp())->setSeconds($startTime->getTimestamp()))
+ ->setEndTime((new Timestamp())->setSeconds($endTime->getTimestamp()));
+
+ $response = $this->client->ListScheduleMatchingTimes($request);
+ /** @var list<\DateTimeInterface> $list */
+ $list = [];
+ foreach ($response->getStartTime() as $timestamp) {
+ \assert($timestamp instanceof Timestamp);
+
+ $list[] = new \DateTimeImmutable("@{$timestamp->getSeconds()}");
+ }
+
+ return new \ArrayIterator($list);
+ }
+
+ /**
+ * Backfill the schedule by going though the specified time periods and taking Actions as if that
+ * time passed by right now, all at once.
+ *
+ * @param iterable $periods Time periods to backfill the schedule.
+ */
+ public function backfill(iterable $periods): void
+ {
+ $backfill = [];
+ foreach ($periods as $period) {
+ $period instanceof BackfillPeriod or throw new InvalidArgumentException(
+ 'Backfill periods must be of type BackfillPeriod.',
+ );
+
+ $backfill[] = (new BackfillRequest())
+ ->setOverlapPolicy($period->overlapPolicy->value)
+ ->setStartTime((new Timestamp())->setSeconds($period->startTime->getTimestamp()))
+ ->setEndTime((new Timestamp())->setSeconds($period->endTime->getTimestamp()));
+ }
+
+ $request = $this->patch((new SchedulePatch())->setBackfillRequest($backfill));
+ $this->client->PatchSchedule($request);
+ }
+
+ /**
+ * Trigger an Action to be taken immediately. Will override the schedules default policy
+ * with the one specified here. If overlap is {@see ScheduleOverlapPolicy::Unspecified} the Schedule
+ * policy will be used.
+ *
+ * @param ScheduleOverlapPolicy $overlapPolicy If specified, policy to override the Schedules
+ * default overlap policy.
+ */
+ public function trigger(ScheduleOverlapPolicy $overlapPolicy = ScheduleOverlapPolicy::Unspecified): void
+ {
+ $request = $this->patch(
+ (new SchedulePatch())->setTriggerImmediately(
+ (new TriggerImmediatelyRequest())->setOverlapPolicy($overlapPolicy->value),
+ ),
+ );
+ $this->client->PatchSchedule($request);
+ }
+
+ /**
+ * Pause the Schedule will also overwrite the Schedules current note with the new note.
+ *
+ * @param string $note Informative human-readable message with contextual notes.
+ * @psalm-assert non-empty-string $note
+ */
+ public function pause(string $note = 'Paused via PHP SDK'): void
+ {
+ $note === '' and throw new InvalidArgumentException('Pause note cannot be empty.');
+
+ $request = $this->patch((new SchedulePatch())->setPause($note));
+ $this->client->PatchSchedule($request);
+ }
+
+ /**
+ * Unpause the Schedule will also overwrite the Schedules current note with the new note.
+ *
+ * @param string $note Informative human-readable message with contextual notes.
+ * @psalm-assert non-empty-string $note
+ */
+ public function unpause(string $note = 'Unpaused via PHP SDK'): void
+ {
+ $note === '' and throw new InvalidArgumentException('Unpause note cannot be empty.');
+
+ $request = $this->patch((new SchedulePatch())->setUnpause($note));
+ $this->client->PatchSchedule($request);
+ }
+
+ /**
+ * Delete the Schedule.
+ */
+ public function delete(): void
+ {
+ $request = (new DeleteScheduleRequest())
+ ->setNamespace($this->namespace)
+ ->setScheduleId($this->id)
+ ->setIdentity($this->clientOptions->identity);
+
+ $this->client->DeleteSchedule($request);
+ }
+
+ private function patch(SchedulePatch $patch): PatchScheduleRequest
+ {
+ return (new PatchScheduleRequest())
+ ->setScheduleId($this->id)
+ ->setNamespace($this->namespace)
+ ->setRequestId(Uuid::v4())
+ ->setPatch($patch);
+ }
+}
diff --git a/src/Client/Schedule/ScheduleOptions.php b/src/Client/Schedule/ScheduleOptions.php
new file mode 100644
index 000000000..247b8a9f3
--- /dev/null
+++ b/src/Client/Schedule/ScheduleOptions.php
@@ -0,0 +1,118 @@
+
+ */
+ public readonly array $backfills;
+
+ public readonly bool $triggerImmediately;
+ public readonly EncodedCollection $memo;
+ public readonly EncodedCollection $searchAttributes;
+
+ private function __construct()
+ {
+ $this->namespace = null;
+ $this->triggerImmediately = false;
+ $this->backfills = [];
+ $this->memo = EncodedCollection::empty();
+ $this->searchAttributes = EncodedCollection::empty();
+ }
+
+ public static function new(): self
+ {
+ return new self();
+ }
+
+ /**
+ * @deprecated Configure the namespace on the {@see \Temporal\Client\ClientOptions} instead
+ * when creating the {@see \Temporal\Client\ScheduleClient}.
+ */
+ public function withNamespace(string $namespace): self
+ {
+ /** @see self::$namespace */
+ return $this->with('namespace', $namespace);
+ }
+
+ /**
+ * Trigger one Action immediately on creating the Schedule.
+ */
+ public function withTriggerImmediately(bool $value): self
+ {
+ /** @see self::$triggerImmediately */
+ return $this->with('triggerImmediately', $value);
+ }
+
+ /**
+ * Returns a new instance with the replaced backfill list.
+ *
+ * Runs though the specified time periods and takes Actions as if that time passed by right now, all at once.
+ * The overlap policy can be overridden for the scope of the Schedule Backfill.
+ */
+ public function withBackfills(BackfillPeriod ...$values): self
+ {
+ /** @see self::$backfills */
+ return $this->with('backfills', $values);
+ }
+
+ /**
+ * Adds a new backfill period to the list.
+ *
+ * Runs though the specified time periods and takes Actions as if that time passed by right now, all at once.
+ * The overlap policy can be overridden for the scope of the Schedule Backfill.
+ */
+ public function withAddedBackfill(BackfillPeriod $value): self
+ {
+ /** @see self::$backfills */
+ return $this->with('backfills', [...$this->backfills, $value]);
+ }
+
+ /**
+ * Optional non-indexed info that will be shown in list schedules.
+ *
+ * @param iterable|EncodedCollection $values
+ */
+ public function withMemo(iterable|EncodedCollection $values): self
+ {
+ $values instanceof EncodedCollection or $values = EncodedCollection::fromValues($values);
+
+ /** @see self::$memo */
+ return $this->with('memo', $values);
+ }
+
+ /**
+ * Optional indexed info that can be used in query of List schedules APIs.
+ * The key and value type must be registered on Temporal server side. Use GetSearchAttributes API
+ * to get valid key and corresponding value type. For supported operations on different server
+ * versions see {@link https://docs.temporal.io/visibility}.
+ *
+ * @param iterable|EncodedCollection $values
+ */
+ public function withSearchAttributes(iterable|EncodedCollection $values): self
+ {
+ $values instanceof EncodedCollection or $values = EncodedCollection::fromValues($values);
+
+ /** @see self::$searchAttributes */
+ return $this->with('searchAttributes', $values);
+ }
+}
diff --git a/src/Client/Schedule/Spec/CalendarSpec.php b/src/Client/Schedule/Spec/CalendarSpec.php
new file mode 100644
index 000000000..287188358
--- /dev/null
+++ b/src/Client/Schedule/Spec/CalendarSpec.php
@@ -0,0 +1,129 @@
+with('second', (string) $second);
+ }
+
+ public function withMinute(string|int $minute): self
+ {
+ return $this->with('minute', (string) $minute);
+ }
+
+ public function withHour(string|int $hour): self
+ {
+ return $this->with('hour', (string) $hour);
+ }
+
+ public function withDayOfMonth(string|int $dayOfMonth): self
+ {
+ return $this->with('dayOfMonth', (string) $dayOfMonth);
+ }
+
+ public function withMonth(string|int $month): self
+ {
+ return $this->with('month', (string) $month);
+ }
+
+ public function withYear(string|int $year): self
+ {
+ return $this->with('year', (string) $year);
+ }
+
+ public function withDayOfWeek(string|int $dayOfWeek): self
+ {
+ return $this->with('dayOfWeek', (string) $dayOfWeek);
+ }
+
+ public function withComment(string $comment): self
+ {
+ /** @see self::$comment */
+ return $this->with('comment', $comment);
+ }
+}
diff --git a/src/Client/Schedule/Spec/IntervalSpec.php b/src/Client/Schedule/Spec/IntervalSpec.php
new file mode 100644
index 000000000..0a624e4b7
--- /dev/null
+++ b/src/Client/Schedule/Spec/IntervalSpec.php
@@ -0,0 +1,63 @@
+with('interval', $interval);
+ }
+
+ public function withPhase(mixed $phase): self
+ {
+ \assert(DateInterval::assert($phase));
+ $phase = DateInterval::parse($phase, DateInterval::FORMAT_SECONDS);
+
+ return $this->with('phase', $phase);
+ }
+}
diff --git a/src/Client/Schedule/Spec/Range.php b/src/Client/Schedule/Spec/Range.php
new file mode 100644
index 000000000..e09c8c76d
--- /dev/null
+++ b/src/Client/Schedule/Spec/Range.php
@@ -0,0 +1,73 @@
+with('start', $start);
+ }
+
+ /**
+ * @param int $end End of range (inclusive).
+ */
+ public function withEnd(int $end): self
+ {
+ \assert($end >= $this->start, 'End must be greater than or equal to start.');
+ return $this->with('end', $end);
+ }
+
+ /**
+ * @param positive-int $step Step (optional, default 1).
+ */
+ public function withStep(int $step): self
+ {
+ \assert($step > 0, 'Step must be greater than 0.');
+ return $this->with('step', $step);
+ }
+}
diff --git a/src/Client/Schedule/Spec/ScheduleSpec.php b/src/Client/Schedule/Spec/ScheduleSpec.php
new file mode 100644
index 000000000..5e6c74047
--- /dev/null
+++ b/src/Client/Schedule/Spec/ScheduleSpec.php
@@ -0,0 +1,367 @@
+
+ */
+ #[MarshalArray(name: 'structured_calendar', of: StructuredCalendarSpec::class)]
+ public readonly array $structuredCalendarList;
+
+ /**
+ * A cronStringList item holds a traditional cron specification as a string.
+ * It accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
+ * same way as CalendarSpec.
+ *
+ * @var list
+ */
+ #[MarshalArray(name: 'cron_string')]
+ public readonly array $cronStringList;
+
+ /**
+ * Calendar-based specifications of times.
+ *
+ * @var list
+ */
+ #[MarshalArray(name: 'calendar', of: CalendarSpec::class)]
+ public readonly array $calendarList;
+
+ /**
+ * Interval-based specifications of times.
+ *
+ * @var list
+ */
+ #[MarshalArray(name: 'interval', of: IntervalSpec::class)]
+ public readonly array $intervalList;
+
+ /**
+ * Any timestamps matching any of exclude* will be skipped.
+ *
+ * @var list
+ *
+ * @deprecated
+ */
+ #[MarshalArray(name: 'exclude_calendar', of: CalendarSpec::class)]
+ public readonly array $excludeCalendarList;
+
+ /**
+ * Any timestamps matching any of exclude* will be skipped.
+ *
+ * @var list
+ */
+ #[MarshalArray(name: 'exclude_structured_calendar', of: StructuredCalendarSpec::class)]
+ public readonly array $excludeStructuredCalendarList;
+
+ /**
+ * If startTime is set, any timestamps before startTime will be skipped.
+ * (Together, startTime and endTime make an inclusive interval.)
+ */
+ #[MarshalDateTime(name: 'start_time', to: Timestamp::class, nullable: true)]
+ public readonly ?\DateTimeInterface $startTime;
+
+ /**
+ * If endTime is set, any timestamps after endTime will be skipped.
+ */
+ #[MarshalDateTime(name: 'end_time', to: Timestamp::class, nullable: true)]
+ public readonly ?\DateTimeInterface $endTime;
+
+ /**
+ * All timestamps will be incremented by a random value from 0 to this
+ * amount of jitter.
+ */
+ #[Marshal(name: 'jitter', of: Duration::class)]
+ public readonly \DateInterval $jitter;
+
+ /**
+ * Time zone to interpret all calendar-based specs in.
+ */
+ #[Marshal(name: 'timezone_name')]
+ public readonly string $timezoneName;
+
+ #[Marshal(name: 'timezone_data')]
+ public readonly string $timezoneData;
+
+ private function __construct()
+ {
+ $this->structuredCalendarList = [];
+ $this->cronStringList = [];
+ $this->calendarList = [];
+ $this->intervalList = [];
+ $this->excludeCalendarList = [];
+ $this->excludeStructuredCalendarList = [];
+ $this->startTime = null;
+ $this->endTime = null;
+ $this->jitter = new \DateInterval('PT0S');
+ $this->timezoneName = '';
+ $this->timezoneData = '';
+ }
+
+ public static function new(): self
+ {
+ return new self();
+ }
+
+ /**
+ * Returns a new instance with the replaced structured calendar list.
+ */
+ public function withStructuredCalendarList(StructuredCalendarSpec ...$structuredCalendar): self
+ {
+ /** @see self::$structuredCalendarList */
+ return $this->with('structuredCalendarList', $structuredCalendar);
+ }
+
+ /**
+ * Calendar-based specifications of times.
+ */
+ public function withAddedStructuredCalendar(StructuredCalendarSpec $structuredCalendar): self
+ {
+ $value = $this->structuredCalendarList;
+ $value[] = $structuredCalendar;
+
+ /** @see self::$structuredCalendarList */
+ return $this->with('structuredCalendarList', $value);
+ }
+
+ /**
+ * Returns a new instance with the replaced cron string list.
+ */
+ public function withCronStringList(\Stringable|string ...$cron): self
+ {
+ /** @see self::$cronStringList */
+ return $this->with('cronStringList', \array_map(static fn($item) => (string) $item, $cron));
+ }
+
+ /**
+ * A traditional cron specification as a string.
+ * It accepts 5, 6, or 7 fields, separated by spaces, and interprets them the
+ * same way as CalendarSpec.
+ *
+ * @param \Stringable|non-empty-string $cron
+ */
+ public function withAddedCronString(\Stringable|string $cron): self
+ {
+ $value = $this->cronStringList;
+ $value[] = (string) $cron;
+
+ /** @see self::$cronStringList */
+ return $this->with('cronStringList', $value);
+ }
+
+ /**
+ * Returns a new instance with the replaced calendar list.
+ */
+ public function withCalendarList(CalendarSpec ...$calendar): self
+ {
+ /** @see self::$calendarList */
+ return $this->with('calendarList', \array_values($calendar));
+ }
+
+ /**
+ * Calendar-based specifications of times.
+ */
+ public function withAddedCalendar(CalendarSpec $calendar): self
+ {
+ $value = $this->calendarList;
+ $value[] = $calendar;
+
+ /** @see self::$calendarList */
+ return $this->with('calendarList', $value);
+ }
+
+ /**
+ * Returns a new instance with the replaced interval list.
+ *
+ * @param DateIntervalValue|IntervalSpec ...$interval
+ */
+ public function withIntervalList(mixed ...$interval): self
+ {
+ foreach ($interval as $key => $item) {
+ if ($item instanceof IntervalSpec) {
+ $interval[$key] = $item;
+ continue;
+ }
+
+ $interval[$key] = IntervalSpec::new($item);
+ }
+
+ /** @see self::$intervalList */
+ return $this->with('intervalList', $interval);
+ }
+
+ /**
+ * Interval-based specifications of times.
+ *
+ * @param DateIntervalValue|IntervalSpec $interval
+ */
+ public function withAddedInterval(mixed $interval): self
+ {
+ $value = $this->intervalList;
+ if ($interval instanceof IntervalSpec) {
+ $value[] = $interval;
+ } else {
+ \assert(DateInterval::assert($interval));
+ $value[] = IntervalSpec::new($interval);
+ }
+
+ /** @see self::$intervalList */
+ return $this->with('intervalList', $value);
+ }
+
+ /**
+ * Returns a new instance with the replaced exclude calendar list.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major release.
+ */
+ public function withExcludeCalendarList(CalendarSpec ...$calendar): self
+ {
+ @\trigger_error('ScheduleSpec::withExcludeCalendarList() is deprecated', E_USER_DEPRECATED);
+
+ /** @see self::$excludeCalendarList */
+ return $this->with('excludeCalendarList', $calendar);
+ }
+
+ /**
+ * Any timestamps matching any of exclude* will be skipped.
+ *
+ * @deprecated This method is deprecated and will be removed in the next major release.
+ */
+ public function withAddedExcludeCalendar(CalendarSpec $calendar): self
+ {
+ @\trigger_error('ScheduleSpec::withAddedExcludeCalendar() is deprecated', E_USER_DEPRECATED);
+ $value = $this->excludeCalendarList;
+ $value[] = $calendar;
+
+ /** @see self::$excludeCalendarList */
+ return $this->with('excludeCalendarList', $value);
+ }
+
+ /**
+ * Returns a new instance with the replaced exclude structured calendar list.
+ */
+ public function withExcludeStructuredCalendarList(StructuredCalendarSpec ...$structuredCalendar): self
+ {
+ /** @see self::$excludeStructuredCalendarList */
+ return $this->with('excludeStructuredCalendarList', $structuredCalendar);
+ }
+
+ /**
+ * Any timestamps matching any of exclude* will be skipped.
+ */
+ public function withAddedExcludeStructuredCalendar(StructuredCalendarSpec $structuredCalendar): self
+ {
+ $value = $this->excludeStructuredCalendarList;
+ $value[] = $structuredCalendar;
+
+ /** @see self::$excludeStructuredCalendarList */
+ return $this->with('excludeStructuredCalendarList', $value);
+ }
+
+ /**
+ * If startTime is set, any timestamps before startTime will be skipped.
+ * (Together, startTime and endTime make an inclusive interval.)
+ */
+ public function withStartTime(\DateTimeInterface|string|null $dateTime): self
+ {
+ /** @see self::$startTime */
+ return $this->with('startTime', $dateTime === null ? null : DateTime::parse($dateTime));
+ }
+
+ /**
+ * If endTime is set, any timestamps after endTime will be skipped.
+ */
+ public function withEndTime(\DateTimeInterface|string|null $dateTime): self
+ {
+ /** @see self::$endTime */
+ return $this->with('endTime', $dateTime === null ? null : DateTime::parse($dateTime));
+ }
+
+ /**
+ * All timestamps will be incremented by a random value from 0 to this
+ * amount of jitter.
+ *
+ * @param DateIntervalValue|null $interval Int value means seconds
+ */
+ public function withJitter(mixed $interval): self
+ {
+ /** @psalm-suppress RiskyTruthyFalsyComparison */
+ if (empty($interval)) {
+ /** @see self::$jitter */
+ return $this->with('jitter', new \DateInterval('PT0S'));
+ }
+
+ \assert(DateInterval::assert($interval));
+ $interval = DateInterval::parse($interval, DateInterval::FORMAT_SECONDS);
+
+ /** @see self::$jitter */
+ return $this->with('jitter', $interval);
+ }
+
+ /**
+ * Time zone to interpret all calendar-based specs in.
+ * If unset, defaults to UTC. We recommend using UTC for your application if
+ * at all possible, to avoid various surprising properties of time zones.
+ * Time zones may be provided by name, corresponding to names in the IANA
+ * time zone database (see https://www.iana.org/time-zones). The definition
+ * will be loaded by the Temporal server from the environment it runs in.
+ * If your application requires more control over the time zone definition
+ * used, it may pass in a complete definition in the form of a TZif file
+ * from the time zone database. If present, this will be used instead of
+ * loading anything from the environment. You are then responsible for
+ * updating {@see self::$timezoneData} when the definition changes.
+ * Calendar spec matching is based on literal matching of the clock time
+ * with no special handling of DST: if you write a calendar spec that fires
+ * at 2:30am and specify a time zone that follows DST, that action will not
+ * be triggered on the day that has no 2:30am. Similarly, an action that
+ * fires at 1:30am will be triggered twice on the day that has two 1:30s.
+ * Also note that no actions are taken on leap-seconds (e.g. 23:59:60 UTC).
+ */
+ public function withTimezoneName(string $timezoneName): self
+ {
+ /** @see self::$timezoneName */
+ return $this->with('timezoneName', $timezoneName);
+ }
+
+ public function withTimezoneData(string $timezoneData): self
+ {
+ /** @see self::$timezoneData */
+ return $this->with('timezoneData', $timezoneData);
+ }
+}
diff --git a/src/Client/Schedule/Spec/ScheduleState.php b/src/Client/Schedule/Spec/ScheduleState.php
new file mode 100644
index 000000000..8572d163e
--- /dev/null
+++ b/src/Client/Schedule/Spec/ScheduleState.php
@@ -0,0 +1,103 @@
+notes = '';
+ $this->paused = false;
+ $this->limitedActions = false;
+ $this->remainingActions = 0;
+ }
+
+ public static function new(): self
+ {
+ return new self();
+ }
+
+ /**
+ * Informative human-readable message with contextual notes, e.g. the reason
+ * a schedule is paused. The system may overwrite this message on certain
+ * conditions, e.g. when pause-on-failure happens.
+ */
+ public function withNotes(string $notes): self
+ {
+ return $this->with('notes', $notes);
+ }
+
+ /**
+ * If true, do not take any actions based on the schedule spec.
+ */
+ public function withPaused(bool $paused): self
+ {
+ return $this->with('paused', $paused);
+ }
+
+ /**
+ * Set whether limited actions are enabled.
+ *
+ * If {@see self::$limitedActions} is true, decrement {@see self::$remainingActions} after each
+ * action, and do not take any more scheduled actions if {@see self::$remainingActions}
+ * is zero. Actions may still be taken by explicit request (i.e. trigger
+ * immediately or backfill). Skipped actions (due to overlap policy) do not
+ * count against remaining actions.
+ */
+ public function withLimitedActions(bool $limitedActions): self
+ {
+ return $this->with('limitedActions', $limitedActions);
+ }
+
+ /**
+ * The Actions remaining in this Schedule. Once this number hits 0, no further Actions are taken.
+ */
+ public function withRemainingActions(int $remainingActions): self
+ {
+ return $this->with('remainingActions', $remainingActions);
+ }
+}
diff --git a/src/Client/Schedule/Spec/StructuredCalendarSpec.php b/src/Client/Schedule/Spec/StructuredCalendarSpec.php
new file mode 100644
index 000000000..945675ce5
--- /dev/null
+++ b/src/Client/Schedule/Spec/StructuredCalendarSpec.php
@@ -0,0 +1,179 @@
+seconds = [];
+ $this->minutes = [];
+ $this->hours = [];
+ $this->daysOfMonth = [];
+ $this->months = [];
+ $this->years = [];
+ $this->daysOfWeek = [];
+ $this->comment = '';
+ }
+
+ public static function new(): self
+ {
+ return new self();
+ }
+
+ public function withSeconds(Range ...$seconds): self
+ {
+ return $this->with('seconds', $seconds);
+ }
+
+ public function withAddedSecond(Range $second): self
+ {
+ $value = $this->seconds;
+ $value[] = $second;
+ return $this->with('seconds', $value);
+ }
+
+ public function withMinutes(Range ...$minutes): self
+ {
+ return $this->with('minutes', $minutes);
+ }
+
+ public function withAddedMinute(Range $minute): self
+ {
+ $value = $this->minutes;
+ $value[] = $minute;
+ return $this->with('minutes', $value);
+ }
+
+ public function withHours(Range ...$hours): self
+ {
+ return $this->with('hours', $hours);
+ }
+
+ public function withAddedHour(Range $hour): self
+ {
+ $value = $this->hours;
+ $value[] = $hour;
+ return $this->with('hours', $value);
+ }
+
+ public function withDaysOfMonth(Range ...$daysOfMonth): self
+ {
+ return $this->with('daysOfMonth', $daysOfMonth);
+ }
+
+ public function withAddedDayOfMonth(Range $dayOfMonth): self
+ {
+ $value = $this->daysOfMonth;
+ $value[] = $dayOfMonth;
+ return $this->with('daysOfMonth', $value);
+ }
+
+ public function withMonths(Range ...$months): self
+ {
+ return $this->with('months', $months);
+ }
+
+ public function withAddedMonth(Range $month): self
+ {
+ $value = $this->months;
+ $value[] = $month;
+ return $this->with('months', $value);
+ }
+
+ public function withYears(Range ...$years): self
+ {
+ return $this->with('years', $years);
+ }
+
+ public function withAddedYear(Range $year): self
+ {
+ $value = $this->years;
+ $value[] = $year;
+ return $this->with('years', $value);
+ }
+
+ public function withDaysOfWeek(Range ...$daysOfWeek): self
+ {
+ return $this->with('daysOfWeek', $daysOfWeek);
+ }
+
+ public function withAddedDayOfWeek(Range $dayOfWeek): self
+ {
+ $value = $this->daysOfWeek;
+ $value[] = $dayOfWeek;
+ return $this->with('daysOfWeek', $value);
+ }
+
+ public function withComment(string $comment): self
+ {
+ return $this->with('comment', $comment);
+ }
+}
diff --git a/src/Client/Schedule/Update/ScheduleUpdate.php b/src/Client/Schedule/Update/ScheduleUpdate.php
new file mode 100644
index 000000000..afb66be6a
--- /dev/null
+++ b/src/Client/Schedule/Update/ScheduleUpdate.php
@@ -0,0 +1,59 @@
+searchAttributes = null;
+ }
+
+ /**
+ * @param Schedule $schedule Schedule to replace the existing schedule with.
+ */
+ public static function new(Schedule $schedule): self
+ {
+ return new self($schedule);
+ }
+
+ public function withSchedule(Schedule $schedule): self
+ {
+ /** @see self::$schedule */
+ return $this->with('schedule', $schedule);
+ }
+
+ /**
+ * @param ?EncodedCollection $searchAttributes Search attributes to replace the existing search attributes with.
+ * If null, it will not change the existing search attributes.
+ */
+ public function withSearchAttributes(?EncodedCollection $searchAttributes = null): self
+ {
+ /** @see self::$searchAttributes */
+ return $this->with('searchAttributes', $searchAttributes);
+ }
+}
diff --git a/src/Client/Schedule/Update/ScheduleUpdateInput.php b/src/Client/Schedule/Update/ScheduleUpdateInput.php
new file mode 100644
index 000000000..37a11216b
--- /dev/null
+++ b/src/Client/Schedule/Update/ScheduleUpdateInput.php
@@ -0,0 +1,24 @@
+clientOptions = $options ?? new ClientOptions();
+ $this->converter = $converter ?? DataConverter::createDefault();
+ $this->marshaller = new Marshaller(
+ new AttributeMapperFactory(new AttributeReader()),
+ );
+ $this->protoConverter = new ProtoToArrayConverter($this->converter);
+
+ // Set Temporal-Namespace metadata
+ $context = $serviceClient->getContext();
+ $this->client = $serviceClient->withContext(
+ $context->withMetadata(
+ ['Temporal-Namespace' => [$this->clientOptions->namespace]] + $context->getMetadata(),
+ ),
+ );
+ }
+
+ public static function create(
+ ServiceClientInterface $serviceClient,
+ ?ClientOptions $options = null,
+ ?DataConverterInterface $converter = null,
+ ): ScheduleClientInterface {
+ return new self($serviceClient, $options, $converter);
+ }
+
+ public function createSchedule(
+ Schedule $schedule,
+ ?ScheduleOptions $options = null,
+ ?string $scheduleId = null,
+ ): ScheduleHandle {
+ $scheduleId ??= Uuid::v4();
+ $options ??= ScheduleOptions::new();
+ $options->memo->setDataConverter($this->converter);
+ $options->searchAttributes->setDataConverter($this->converter);
+
+ $request = new CreateScheduleRequest();
+ $request
+ ->setRequestId(Uuid::v4())
+ ->setNamespace($options->namespace ?? $this->clientOptions->namespace)
+ ->setScheduleId($scheduleId)
+ ->setIdentity($this->clientOptions->identity);
+
+ // Initial Patch
+ $backfillRequests = [];
+ foreach ($options->backfills as $period) {
+ $period instanceof BackfillPeriod or throw new \InvalidArgumentException(
+ 'Backfill periods must be of type BackfillPeriod.',
+ );
+
+ $backfillRequests[] = (new BackfillRequest())
+ ->setOverlapPolicy($period->overlapPolicy->value)
+ ->setStartTime((new Timestamp())->setSeconds($period->startTime->getTimestamp()))
+ ->setEndTime((new Timestamp())->setSeconds($period->endTime->getTimestamp()));
+ }
+
+ $initialPatch = (new SchedulePatch())->setBackfillRequest($backfillRequests);
+ if ($options->triggerImmediately) {
+ $overlap = $schedule->policies->overlapPolicy->value;
+ $initialPatch
+ ->setTriggerImmediately((new TriggerImmediatelyRequest())->setOverlapPolicy($overlap));
+ }
+
+ $mapper = new ScheduleMapper($this->converter, $this->marshaller);
+ $scheduleMessage = $mapper->toMessage($schedule);
+
+ $request
+ ->setSchedule($scheduleMessage)
+ ->setInitialPatch($initialPatch)
+ ->setMemo((new Memo())->setFields($options->memo->toPayloadArray()))
+ ->setSearchAttributes(
+ (new SearchAttributes())->setIndexedFields($options->searchAttributes->toPayloadArray()),
+ );
+ $this->client->CreateSchedule($request);
+
+ return new ScheduleHandle(
+ $this->client,
+ $this->clientOptions,
+ $this->converter,
+ $this->marshaller,
+ $this->protoConverter,
+ $options->namespace ?? $this->clientOptions->namespace,
+ $scheduleId,
+ );
+ }
+
+ public function getHandle(string $scheduleID, ?string $namespace = null): ScheduleHandle
+ {
+ return new ScheduleHandle(
+ $this->client,
+ $this->clientOptions,
+ $this->converter,
+ $this->marshaller,
+ $this->protoConverter,
+ $namespace ?? $this->clientOptions->namespace,
+ $scheduleID,
+ );
+ }
+
+ public function listSchedules(
+ ?string $namespace = null,
+ int $pageSize = 0,
+ string $query = '',
+ ): Paginator {
+ // Build request
+ $request = (new ListSchedulesRequest())
+ ->setNamespace($namespace ?? $this->clientOptions->namespace)
+ ->setMaximumPageSize($pageSize)
+ ->setQuery($query);
+
+ $loader = function (ListSchedulesRequest $request): \Generator {
+ do {
+ $response = $this->client->ListSchedules($request);
+ $nextPageToken = $response->getNextPageToken();
+
+ $page = [];
+ foreach ($response->getSchedules() as $message) {
+ \assert($message instanceof \Temporal\Api\Schedule\V1\ScheduleListEntry);
+ $values = $this->protoConverter->convert($message);
+ $dto = new ScheduleListEntry();
+
+ $page[] = $this->marshaller->unmarshal($values, $dto);
+ }
+
+ yield $page;
+ $request->setNextPageToken($nextPageToken);
+ } while ($nextPageToken !== '');
+ };
+ return Paginator::createFromGenerator($loader($request), null);
+ }
+}
diff --git a/src/Client/ScheduleClientInterface.php b/src/Client/ScheduleClientInterface.php
new file mode 100644
index 000000000..db7241dff
--- /dev/null
+++ b/src/Client/ScheduleClientInterface.php
@@ -0,0 +1,54 @@
+ $pageSize Maximum number of Schedule info per page.
+ * @param string $query Temporal Visibility Query. {@link https://docs.temporal.io/visibility#list-filter}
+ *
+ * @return Paginator
+ */
+ public function listSchedules(?string $namespace = null, int $pageSize = 0, string $query = ''): Paginator;
+}
diff --git a/src/Client/ServerCapabilities.php b/src/Client/ServerCapabilities.php
new file mode 100644
index 000000000..08867c5bc
--- /dev/null
+++ b/src/Client/ServerCapabilities.php
@@ -0,0 +1,19 @@
+execution;
+ }
+
+ /**
+ * Gets the unique ID of this update.
+ */
+ public function getId(): string
+ {
+ return $this->updateId;
+ }
+
+ /**
+ * Check there is a cached accepted result or failure for this update request.
+ */
+ public function hasResult(): bool
+ {
+ return $this->result !== null;
+ }
+
+ /**
+ * Fetch and decode the result of this update request.
+ *
+ * @param int|float|null $timeout Timeout in seconds. Accuracy to milliseconds.
+ *
+ * @throws WorkflowUpdateException
+ * @throws WorkflowUpdateRPCTimeoutOrCanceledException
+ */
+ public function getResult(int|float|null $timeout = null): mixed
+ {
+ return $this->getEncodedValues($timeout)->getValue(0, $this->resultType);
+ }
+
+ /**
+ * Fetch and return the encoded result of this update request.
+ *
+ * @param int|float|null $timeout Timeout in seconds. Accuracy to milliseconds.
+ *
+ * @throws WorkflowUpdateException
+ * @throws WorkflowUpdateRPCTimeoutOrCanceledException
+ */
+ public function getEncodedValues(int|float|null $timeout = null): ValuesInterface
+ {
+ if ($this->result === null) {
+ $this->fetchResult($timeout);
+ }
+
+ return $this->result instanceof WorkflowUpdateException
+ ? throw $this->result
+ : $this->result;
+ }
+
+ /**
+ * @param int|float|null $timeout Timeout in seconds. Accuracy to milliseconds.
+ *
+ * @psalm-assert !null $this->result
+ * @throws WorkflowUpdateRPCTimeoutOrCanceledException
+ */
+ private function fetchResult(int|float|null $timeout = null): void
+ {
+ $request = (new PollWorkflowExecutionUpdateRequest())
+ ->setUpdateRef(
+ (new \Temporal\Api\Update\V1\UpdateRef())
+ ->setUpdateId($this->getId())
+ ->setWorkflowExecution($this->getExecution()->toProtoWorkflowExecution()),
+ )
+ ->setNamespace($this->clientOptions->namespace)
+ ->setIdentity($this->clientOptions->identity)
+ ->setWaitPolicy(
+ (new \Temporal\Api\Update\V1\WaitPolicy())->setLifecycleStage(LifecycleStage::StageCompleted->value),
+ );
+
+
+ $context = $timeout === null
+ ? $this->client->getContext()
+ : $this->client->getContext()->withTimeout($timeout);
+ $deadline = $context->getDeadline();
+
+ // Convert request timeout into deadline
+ $deadline === null or $context = $context->withDeadline($deadline);
+
+ do {
+ try {
+ $response = $this->client->PollWorkflowExecutionUpdate($request, $context);
+ } catch (TimeoutException|CanceledException $e) {
+ throw WorkflowUpdateRPCTimeoutOrCanceledException::fromTimeoutOrCanceledException($e);
+ }
+
+ // Workflow Uprate accepted
+ $result = $response->getOutcome();
+
+ /**
+ * Retry the request.
+ *
+ * TimeoutException will be thrown in {@see \Temporal\Client\GRPC\BaseClient::call()} method
+ * because the deadline is provided in the context.
+ * That's why the deadline condition is not checked here.
+ */
+ } while ($result === null);
+
+ // Accepted with result
+ $success = $result->getSuccess();
+ if ($success !== null) {
+ $this->result = EncodedValues::fromPayloads($success, $this->converter);
+ return;
+ }
+
+ // Accepted with failure
+ $failure = $result->getFailure();
+ \assert($failure !== null);
+ $e = FailureConverter::mapFailureToException($failure, $this->converter);
+
+ $this->result = new WorkflowUpdateException(
+ $e->getMessage(),
+ execution: $this->getExecution(),
+ workflowType: $this->workflowType,
+ updateId: $this->getId(),
+ updateName: $this->updateName,
+ previous: $e,
+ );
+ }
+}
diff --git a/src/Client/Update/UpdateOptions.php b/src/Client/Update/UpdateOptions.php
new file mode 100644
index 000000000..393c05ffa
--- /dev/null
+++ b/src/Client/Update/UpdateOptions.php
@@ -0,0 +1,89 @@
+updateId = null;
+ $this->firstExecutionRunId = null;
+ $this->waitPolicy = WaitPolicy::new()->withLifecycleStage($lifecycleStage);
+ $this->resultType = null;
+ }
+
+ /**
+ * @param non-empty-string $updateName Name of the update handler. Usually it is a method name.
+ * @param LifecycleStage $lifecycleStage Specifies at what point in the update request life cycles
+ * this request should return. By default, it is set to {@see LifecycleStage::StageAccepted} that
+ * means that the handle will return immediately after successful validation of the Update call.
+ * However, also note that the processing Workflow worker must be available. Otherwise, the request
+ * may block indefinitely or fail due to a timeout.
+ *
+ * @link https://docs.temporal.io/workflows#update
+ */
+ public static function new(string $updateName, LifecycleStage $lifecycleStage = LifecycleStage::StageAccepted): self
+ {
+ return new self($updateName, $lifecycleStage);
+ }
+
+ /**
+ * Name of the update handler. Usually it is a method name.
+ */
+ public function withUpdateName(string $name): self
+ {
+ /** @see self::$updateName */
+ return $this->with('updateName', $name);
+ }
+
+ /**
+ * Specifies at what point in the update request life cycles this request should return.
+ */
+ public function withWaitPolicy(WaitPolicy $policy): self
+ {
+ /** @see self::$waitPolicy */
+ return $this->with('waitPolicy', $policy);
+ }
+
+ /**
+ * The update ID is an application-layer identifier for the requested update. It must be unique
+ * within the scope of a workflow execution.
+ */
+ public function withUpdateId(?string $id): self
+ {
+ /** @see self::$updateId */
+ return $this->with('updateId', $id);
+ }
+
+ /**
+ * The RunID expected to identify the first run in the workflow execution chain. If this
+ * expectation does not match then the server will reject the update request with an error.
+ */
+ public function withFirstExecutionRunId(?string $runId): self
+ {
+ /** @see self::$firstExecutionRunId */
+ return $this->with('firstExecutionRunId', $runId);
+ }
+
+ /**
+ * The type of the update return value.
+ */
+ public function withResultType(mixed $type): self
+ {
+ /** @see self::$resultType */
+ return $this->with('resultType', $type);
+ }
+}
diff --git a/src/Client/Update/WaitPolicy.php b/src/Client/Update/WaitPolicy.php
new file mode 100644
index 000000000..20d8655a5
--- /dev/null
+++ b/src/Client/Update/WaitPolicy.php
@@ -0,0 +1,44 @@
+lifecycleStage = LifecycleStage::StageUnspecified;
+ }
+
+ public static function new(): self
+ {
+ return new self();
+ }
+
+ /**
+ * Indicates the update lifecycle stage that the gRPC call should wait for before returning.
+ */
+ public function withLifecycleStage(LifecycleStage $value): self
+ {
+ /** @see self::$lifecycleStage */
+ return $this->with('lifecycleStage', $value);
+ }
+}
diff --git a/src/Client/Workflow/CountWorkflowExecutions.php b/src/Client/Workflow/CountWorkflowExecutions.php
new file mode 100644
index 000000000..9c987abd8
--- /dev/null
+++ b/src/Client/Workflow/CountWorkflowExecutions.php
@@ -0,0 +1,21 @@
+with('summary', $summary);
+ }
+
+ public function withDetails(string $details): self
+ {
+ /** @see self::$details */
+ return $this->with('details', $details);
+ }
+}
diff --git a/src/Client/Workflow/WorkflowExecutionDescription.php b/src/Client/Workflow/WorkflowExecutionDescription.php
new file mode 100644
index 000000000..2d86304da
--- /dev/null
+++ b/src/Client/Workflow/WorkflowExecutionDescription.php
@@ -0,0 +1,24 @@
+
+ * @internal
+ */
+final class WorkflowExecutionHistory implements \IteratorAggregate
+{
+ /**
+ * @param Paginator $paginator
+ */
+ public function __construct(
+ private readonly Paginator $paginator,
+ ) {}
+
+ /**
+ * Returns an iterator of HistoryEvent objects.
+ *
+ * @return \Generator
+ */
+ public function getEvents(): \Generator
+ {
+ foreach ($this->paginator as $response) {
+ $history = $response->getHistory();
+ if ($history === null) {
+ return;
+ }
+ /** @var HistoryEvent $event */
+ foreach ($history->getEvents() as $event) {
+ yield $event;
+ }
+ }
+ }
+
+ /**
+ * @return \Traversable
+ */
+ public function getIterator(): \Traversable
+ {
+ return $this->getEvents();
+ }
+
+ /**
+ * Returns history object with all the events inside.
+ * The returned object may be used to replay the workflow via {@see WorkflowReplayer::replayHistory()}.
+ *
+ * @see History
+ */
+ public function getHistory(): History
+ {
+ $events = \iterator_to_array($this->getEvents(), false);
+ $history = new History();
+ $history->setEvents($events);
+
+ return $history;
+ }
+}
diff --git a/src/Client/WorkflowClient.php b/src/Client/WorkflowClient.php
index 09dff1ab0..03e308a8d 100644
--- a/src/Client/WorkflowClient.php
+++ b/src/Client/WorkflowClient.php
@@ -12,90 +12,100 @@
namespace Temporal\Client;
use Doctrine\Common\Annotations\Reader;
-use Generator;
+use JetBrains\PhpStorm\Deprecated;
use Spiral\Attributes\AnnotationReader;
use Spiral\Attributes\AttributeReader;
use Spiral\Attributes\Composite\SelectiveReader;
use Spiral\Attributes\ReaderInterface;
+use Temporal\Api\Enums\V1\HistoryEventFilterType;
use Temporal\Api\Workflow\V1\WorkflowExecutionInfo;
use Temporal\Api\Workflowservice\V1\CountWorkflowExecutionsRequest;
+use Temporal\Api\Workflowservice\V1\GetWorkflowExecutionHistoryRequest;
use Temporal\Api\Workflowservice\V1\ListWorkflowExecutionsRequest;
+use Temporal\Client\Common\ClientContextTrait;
+use Temporal\Client\Common\Paginator;
use Temporal\Client\GRPC\ServiceClientInterface;
+use Temporal\Client\Update\LifecycleStage;
+use Temporal\Client\Update\UpdateHandle;
+use Temporal\Client\Update\UpdateOptions;
+use Temporal\Client\Workflow\CountWorkflowExecutions;
+use Temporal\Client\Workflow\WorkflowExecutionHistory;
use Temporal\DataConverter\DataConverter;
use Temporal\DataConverter\DataConverterInterface;
+use Temporal\DataConverter\Type;
use Temporal\Exception\InvalidArgumentException;
+use Temporal\Interceptor\PipelineProvider;
+use Temporal\Interceptor\SimplePipelineProvider;
+use Temporal\Interceptor\WorkflowClientCallsInterceptor;
use Temporal\Internal\Client\ActivityCompletionClient;
use Temporal\Internal\Client\WorkflowProxy;
use Temporal\Internal\Client\WorkflowRun;
use Temporal\Internal\Client\WorkflowStarter;
use Temporal\Internal\Client\WorkflowStub;
use Temporal\Internal\Declaration\Reader\WorkflowReader;
+use Temporal\Internal\Interceptor\Pipeline;
use Temporal\Internal\Mapper\WorkflowExecutionInfoMapper;
+use Temporal\Internal\Support\Reflection;
use Temporal\Workflow\WorkflowExecution;
use Temporal\Workflow\WorkflowRunInterface;
use Temporal\Workflow\WorkflowStub as WorkflowStubConverter;
class WorkflowClient implements WorkflowClientInterface
{
+ use ClientContextTrait;
+
private const ERROR_WORKFLOW_START_DUPLICATION =
'Cannot reuse a stub instance to start more than one workflow execution. ' .
'The stub points to already started execution. If you are trying to wait ' .
'for a workflow completion either change WorkflowIdReusePolicy from ' .
'AllowDuplicate or use WorkflowStub.getResult';
- private ServiceClientInterface $client;
private ClientOptions $clientOptions;
private DataConverterInterface $converter;
- private WorkflowStarter $starter;
+ private ?WorkflowStarter $starter = null;
private WorkflowReader $reader;
- /**
- * @param ServiceClientInterface $serviceClient
- * @param ClientOptions|null $options
- * @param DataConverterInterface|null $converter
- */
+ /** @var Pipeline */
+ private Pipeline $interceptorPipeline;
+
public function __construct(
ServiceClientInterface $serviceClient,
- ClientOptions $options = null,
- DataConverterInterface $converter = null
+ ?ClientOptions $options = null,
+ ?DataConverterInterface $converter = null,
+ ?PipelineProvider $interceptorProvider = null,
) {
- $this->client = $serviceClient;
+ $this->interceptorPipeline = ($interceptorProvider ?? new SimplePipelineProvider())
+ ->getPipeline(WorkflowClientCallsInterceptor::class);
$this->clientOptions = $options ?? new ClientOptions();
$this->converter = $converter ?? DataConverter::createDefault();
- $this->starter = new WorkflowStarter($serviceClient, $this->converter, $this->clientOptions);
$this->reader = new WorkflowReader($this->createReader());
+
+ // Set Temporal-Namespace metadata
+ $context = $serviceClient->getContext();
+ $this->client = $serviceClient->withContext(
+ $context->withMetadata(
+ ['Temporal-Namespace' => [$this->clientOptions->namespace]] + $context->getMetadata(),
+ ),
+ );
}
/**
- * @param ServiceClientInterface $serviceClient
- * @param ClientOptions|null $options
- * @param DataConverterInterface|null $converter
* @return static
*/
public static function create(
ServiceClientInterface $serviceClient,
- ClientOptions $options = null,
- DataConverterInterface $converter = null
+ ?ClientOptions $options = null,
+ ?DataConverterInterface $converter = null,
+ ?PipelineProvider $interceptorProvider = null,
): self {
- return new self($serviceClient, $options, $converter);
+ return new self($serviceClient, $options, $converter, $interceptorProvider);
}
- /**
- * @return ServiceClientInterface
- */
public function getServiceClient(): ServiceClientInterface
{
return $this->client;
}
- /**
- * Starts workflow in async mode. Returns WorkflowRun object which can be used to wait for the execution result.
- * WorkflowRun objects created by typed workflow stubs will attempt to type the execution result as well.
- *
- * @param object|WorkflowStubInterface $workflow
- * @param mixed ...$args
- * @return WorkflowRunInterface
- */
public function start($workflow, ...$args): WorkflowRunInterface
{
if ($workflow instanceof WorkflowProxy && !$workflow->hasHandler()) {
@@ -107,11 +117,16 @@ public function start($workflow, ...$args): WorkflowRunInterface
$returnType = null;
if ($workflow instanceof WorkflowProxy) {
$returnType = $workflow->__getReturnType();
+ $method = $workflow->getHandlerReflection();
+
+ $args = Reflection::orderArguments($method, $args);
}
- if ($workflowStub->getWorkflowType() === null) {
+ $workflowType = $workflowStub->getWorkflowType();
+
+ if ($workflowType === null) {
throw new InvalidArgumentException(
- \sprintf('Unable to start untyped workflow without given workflowType')
+ \sprintf('Unable to start untyped workflow without given workflowType'),
);
}
@@ -119,44 +134,55 @@ public function start($workflow, ...$args): WorkflowRunInterface
throw new InvalidArgumentException(self::ERROR_WORKFLOW_START_DUPLICATION);
}
- $execution = $this->starter->start(
- $workflowStub->getWorkflowType(),
+ $execution = $this->getStarter()->start(
+ $workflowType,
$workflowStub->getOptions() ?? WorkflowOptions::new(),
- $args
+ $args,
);
$workflowStub->setExecution($execution);
- return new WorkflowRun($workflowStub, $returnType);
+ return new WorkflowRun(
+ stub: $workflowStub,
+ returnType: $returnType !== null ? Type::create($returnType) : null,
+ );
}
- /**
- * @param object|WorkflowStubInterface $workflow
- * @param string $signal
- * @param array $signalArgs
- * @param array $startArgs
- * @return WorkflowRunInterface
- */
- public function startWithSignal(
+ public function signalWithStart(
$workflow,
string $signal,
array $signalArgs = [],
- array $startArgs = []
+ array $startArgs = [],
): WorkflowRunInterface {
if ($workflow instanceof WorkflowProxy && !$workflow->hasHandler()) {
throw new InvalidArgumentException('Unable to start workflow without workflow handler');
}
+ if ($signal === '') {
+ throw new InvalidArgumentException('Signal name cannot be empty');
+ }
+
$workflowStub = WorkflowStubConverter::fromWorkflow($workflow);
$returnType = null;
if ($workflow instanceof WorkflowProxy) {
$returnType = $workflow->__getReturnType();
+ $handler = $workflow->getHandlerReflection();
+
+ $startArgs = Reflection::orderArguments($handler, $startArgs);
+
+ $signalReflection = $workflow->findSignalReflection($signal);
+
+ if ($signalReflection !== null) {
+ $signalArgs = Reflection::orderArguments($signalReflection, $signalArgs);
+ }
}
- if ($workflowStub->getWorkflowType() === null) {
+ $workflowType = $workflowStub->getWorkflowType();
+
+ if ($workflowType === null) {
throw new InvalidArgumentException(
- \sprintf('Unable to start untyped workflow without given workflowType')
+ \sprintf('Unable to start untyped workflow without given workflowType'),
);
}
@@ -164,52 +190,95 @@ public function startWithSignal(
throw new InvalidArgumentException(self::ERROR_WORKFLOW_START_DUPLICATION);
}
- $execution = $this->starter->signalWithStart(
- $workflowStub->getWorkflowType(),
+ $execution = $this->getStarter()->signalWithStart(
+ $workflowType,
$workflowStub->getOptions() ?? WorkflowOptions::new(),
$signal,
$signalArgs,
- $startArgs
+ $startArgs,
);
$workflowStub->setExecution($execution);
- return new WorkflowRun($workflowStub, $returnType);
+ return new WorkflowRun(
+ stub: $workflowStub,
+ returnType: $returnType !== null ? Type::create($returnType) : null,
+ );
+ }
+
+ #[Deprecated(replacement: '%class%->signalWithStart(%parametersList%)')]
+ public function startWithSignal(
+ $workflow,
+ string $signal,
+ array $signalArgs = [],
+ array $startArgs = [],
+ ): WorkflowRunInterface {
+ return $this->signalWithStart($workflow, $signal, $signalArgs, $startArgs);
}
- /**
- * {@inheritDoc}
- */
- public function newWorkflowStub(string $class, WorkflowOptions $options = null): object
- {
+ public function updateWithStart(
+ $workflow,
+ string|UpdateOptions $update,
+ array $updateArgs = [],
+ array $startArgs = [],
+ ): UpdateHandle {
+ $workflow instanceof WorkflowProxy && !$workflow->hasHandler() && throw new InvalidArgumentException(
+ 'Unable to start workflow without workflow handler',
+ );
+
+ $update = \is_string($update) ? UpdateOptions::new($update, LifecycleStage::StageAccepted) : $update;
+
+ $workflowStub = WorkflowStubConverter::fromWorkflow($workflow);
+
+ $workflowType = $workflowStub->getWorkflowType() ?? throw new InvalidArgumentException(
+ 'Unable to start untyped workflow without given workflowType',
+ );
+ $workflowStub->hasExecution() and throw new InvalidArgumentException(self::ERROR_WORKFLOW_START_DUPLICATION);
+
+ $output = $this->getStarter()->updateWithStart(
+ $workflowType,
+ $workflowStub->getOptions() ?? WorkflowOptions::new(),
+ $update,
+ $updateArgs,
+ $startArgs,
+ );
+
+ $workflowStub->setExecution($output->execution);
+
+ return $output->handle instanceof UpdateHandle
+ ? $output->handle
+ : throw $output->handle;
+ }
+
+ public function newWorkflowStub(
+ string $class,
+ ?WorkflowOptions $options = null,
+ ): object {
$workflow = $this->reader->fromClass($class);
return new WorkflowProxy(
$this,
$this->newUntypedWorkflowStub($workflow->getID(), $options),
- $workflow
+ $workflow,
);
}
- /**
- * {@inheritDoc}
- */
- public function newUntypedWorkflowStub(string $workflowType, WorkflowOptions $options = null): WorkflowStubInterface
- {
+ public function newUntypedWorkflowStub(
+ string $workflowType,
+ ?WorkflowOptions $options = null,
+ ): WorkflowStubInterface {
$options ??= new WorkflowOptions();
return new WorkflowStub(
$this->client,
$this->clientOptions,
$this->converter,
+ $this->interceptorPipeline,
$workflowType,
- $options
+ $options,
);
}
- /**
- * {@inheritDoc}
- */
public function newRunningWorkflowStub(string $class, string $workflowID, ?string $runID = null): object
{
$workflow = $this->reader->fromClass($class);
@@ -217,43 +286,41 @@ public function newRunningWorkflowStub(string $class, string $workflowID, ?strin
return new WorkflowProxy(
$this,
$this->newUntypedRunningWorkflowStub($workflowID, $runID, $workflow->getID()),
- $workflow
+ $workflow,
);
}
- /**
- * {@inheritDoc}
- */
public function newUntypedRunningWorkflowStub(
string $workflowID,
?string $runID = null,
- ?string $workflowType = null
+ ?string $workflowType = null,
): WorkflowStubInterface {
- $untyped = new WorkflowStub($this->client, $this->clientOptions, $this->converter, $workflowType);
+ $untyped = new WorkflowStub(
+ $this->client,
+ $this->clientOptions,
+ $this->converter,
+ $this->interceptorPipeline,
+ $workflowType,
+ );
$untyped->setExecution(new WorkflowExecution($workflowID, $runID));
return $untyped;
}
- /**
- * {@inheritDoc}
- */
public function newActivityCompletionClient(): ActivityCompletionClientInterface
{
return new ActivityCompletionClient($this->client, $this->clientOptions, $this->converter);
}
- /**
- * @inheritDoc
- */
public function listWorkflowExecutions(
string $query,
- string $namespace = 'default',
+ ?string $namespace = null,
int $pageSize = 10,
): Paginator {
if ($pageSize <= 0) {
throw new InvalidArgumentException('Page size must be greater than 0.');
}
+ $namespace ??= $this->clientOptions->namespace;
$request = (new ListWorkflowExecutionsRequest())
->setNamespace($namespace)
@@ -261,7 +328,7 @@ public function listWorkflowExecutions(
->setQuery($query);
$mapper = new WorkflowExecutionInfoMapper($this->converter);
- $loader = function (ListWorkflowExecutionsRequest $request) use ($mapper): Generator {
+ $loader = function (ListWorkflowExecutionsRequest $request) use ($mapper): \Generator {
do {
$response = $this->client->ListWorkflowExecutions($request);
$nextPageToken = $response->getNextPageToken();
@@ -276,20 +343,71 @@ public function listWorkflowExecutions(
$request->setNextPageToken($nextPageToken);
} while ($nextPageToken !== '');
};
- $counter = function () use ($namespace, $query): int {
- $response = $this->client->CountWorkflowExecutions((new CountWorkflowExecutionsRequest())
- ->setNamespace($namespace)
- ->setQuery($query));
+ $counter = fn(): int => $this->countWorkflowExecutions($query, $namespace)->count;
+
+ return Paginator::createFromGenerator($loader($request), $counter);
+ }
+
+ public function countWorkflowExecutions(
+ string $query,
+ ?string $namespace = null,
+ ): CountWorkflowExecutions {
+ $namespace ??= $this->clientOptions->namespace;
+ $response = $this->client
+ ->CountWorkflowExecutions(
+ (new CountWorkflowExecutionsRequest())->setNamespace($namespace)->setQuery($query),
+ );
- return (int)$response->getCount();
+ return new CountWorkflowExecutions(
+ count: (int) $response->getCount(),
+ );
+ }
+
+ public function getWorkflowHistory(
+ WorkflowExecution $execution,
+ ?string $namespace = null,
+ bool $waitNewEvent = false,
+ int $historyEventFilterType = HistoryEventFilterType::HISTORY_EVENT_FILTER_TYPE_ALL_EVENT,
+ bool $skipArchival = false,
+ int $pageSize = 0,
+ ): WorkflowExecutionHistory {
+ $namespace ??= $this->clientOptions->namespace;
+ // Build request
+ $request = (new GetWorkflowExecutionHistoryRequest())
+ ->setNamespace($namespace)
+ ->setWaitNewEvent($waitNewEvent)
+ ->setHistoryEventFilterType($historyEventFilterType)
+ ->setSkipArchival($skipArchival)
+ ->setMaximumPageSize($pageSize)
+ ->setExecution(
+ (new \Temporal\Api\Common\V1\WorkflowExecution())
+ ->setWorkflowId($execution->getID())
+ ->setRunId(
+ $execution->getRunID() ?? throw new InvalidArgumentException('Execution Run ID is required.'),
+ ),
+ );
+
+ $loader = function (GetWorkflowExecutionHistoryRequest $request): \Generator {
+ do {
+ $response = $this->client->GetWorkflowExecutionHistory($request);
+ $nextPageToken = $response->getNextPageToken();
+
+ yield [$response];
+
+ $request->setNextPageToken($nextPageToken);
+ } while ($nextPageToken !== '');
};
- return Paginator::createFromGenerator($loader($request), $counter);
+ $paginator = Paginator::createFromGenerator($loader($request), null);
+
+ return new WorkflowExecutionHistory($paginator);
+ }
+
+ public function __clone()
+ {
+ $this->starter = null;
}
- /**
- * @return ReaderInterface
- */
private function createReader(): ReaderInterface
{
if (\interface_exists(Reader::class)) {
@@ -298,4 +416,14 @@ private function createReader(): ReaderInterface
return new AttributeReader();
}
+
+ private function getStarter(): WorkflowStarter
+ {
+ return $this->starter ??= new WorkflowStarter(
+ $this->client,
+ $this->converter,
+ $this->clientOptions,
+ $this->interceptorPipeline,
+ );
+ }
}
diff --git a/src/Client/WorkflowClientInterface.php b/src/Client/WorkflowClientInterface.php
index 30eaf5304..c7d6b48dd 100644
--- a/src/Client/WorkflowClientInterface.php
+++ b/src/Client/WorkflowClientInterface.php
@@ -11,23 +11,31 @@
namespace Temporal\Client;
+use JetBrains\PhpStorm\Deprecated;
+use Temporal\Api\Enums\V1\HistoryEventFilterType;
+use Temporal\Client\Common\ClientContextInterface;
+use Temporal\Client\Common\Paginator;
use Temporal\Client\GRPC\ServiceClientInterface;
+use Temporal\Client\Update\UpdateHandle;
+use Temporal\Client\Update\UpdateOptions;
+use Temporal\Client\Workflow\CountWorkflowExecutions;
+use Temporal\Client\Workflow\WorkflowExecutionHistory;
+use Temporal\Workflow\WorkflowExecution;
use Temporal\Workflow\WorkflowExecutionInfo as WorkflowExecutionInfoDto;
use Temporal\Workflow\WorkflowRunInterface;
-interface WorkflowClientInterface
+interface WorkflowClientInterface extends ClientContextInterface
{
- /**
- * @return ServiceClientInterface
- */
public function getServiceClient(): ServiceClientInterface;
/**
- * Starts untyped and typed workflow stubs in async mode.
+ * Starts workflow in async mode.
+ *
+ * Returns WorkflowRun object which can be used to wait for the execution result.
+ * WorkflowRun objects created by typed workflow stubs will attempt to type the execution result as well.
*
* @param WorkflowStubInterface|object $workflow
- * @param mixed $args
- * @return WorkflowRunInterface
+ * @param mixed ...$args
*/
public function start($workflow, ...$args): WorkflowRunInterface;
@@ -35,22 +43,48 @@ public function start($workflow, ...$args): WorkflowRunInterface;
* Starts untyped and typed workflow stubs in async mode. Sends signal on start.
*
* @param object|WorkflowStubInterface $workflow
- * @param string $signal
- * @param array $signalArgs
- * @param array $startArgs
- * @return WorkflowRunInterface
+ * @param non-empty-string $signal
+ *
+ * @since SDK 2.12.0
+ */
+ public function signalWithStart(
+ $workflow,
+ string $signal,
+ array $signalArgs = [],
+ array $startArgs = [],
+ ): WorkflowRunInterface;
+
+ /**
+ * @deprecated Use {@see self::signalWithStart()} instead.
*/
+ #[Deprecated(replacement: '%class%->signalWithStart(%parametersList%)')]
public function startWithSignal(
$workflow,
string $signal,
array $signalArgs = [],
- array $startArgs = []
+ array $startArgs = [],
): WorkflowRunInterface;
/**
- * Creates workflow client stub that can be used to start a single workflow
- * execution. The first call must be to a method annotated
- * with {@see WorkflowMethod}. After workflow is started it can be also
+ * Starts untyped and typed workflow stubs in async mode. Sends Update on start.
+ *
+ * @param object|WorkflowStubInterface $workflow
+ * @param non-empty-string|UpdateOptions $update Name of the update handler or update options.
+ *
+ * @note Experimental feature.
+ * @since SDK 2.12.0
+ */
+ public function updateWithStart(
+ $workflow,
+ string|UpdateOptions $update,
+ array $updateArgs = [],
+ array $startArgs = [],
+ ): UpdateHandle;
+
+ /**
+ * Creates workflow client stub that can be used to start a single workflow execution.
+ *
+ * The first call must be to a method annotated with {@see WorkflowMethod}. After workflow is started it can be also
* used to send signals or queries to it.
*
* Use WorkflowClient->start($workflowStub, ...$args) to start workflow asynchronously.
@@ -60,10 +94,12 @@ public function startWithSignal(
*
* @psalm-template T of object
* @param class-string $class
- * @param WorkflowOptions|null $options
* @return T
*/
- public function newWorkflowStub(string $class, WorkflowOptions $options = null): object;
+ public function newWorkflowStub(
+ string $class,
+ ?WorkflowOptions $options = null,
+ ): object;
/**
* Creates workflow untyped client stub that can be used to start a single
@@ -74,51 +110,41 @@ public function newWorkflowStub(string $class, WorkflowOptions $options = null):
*
* IMPORTANT! Stub is per workflow instance. So new stub should be created
* for each new one.
- *
- * @param string $workflowType
- * @param WorkflowOptions|null $options
- * @return WorkflowStubInterface
*/
public function newUntypedWorkflowStub(
string $workflowType,
- WorkflowOptions $options = null
+ ?WorkflowOptions $options = null,
): WorkflowStubInterface;
/**
* Returns workflow stub associated with running workflow.
*
* @psalm-template T of object
- * @param string $class
- * @param string $workflowID
- * @param string|null $runID
+ * @param class-string $class
* @return T
*/
public function newRunningWorkflowStub(
string $class,
string $workflowID,
- ?string $runID = null
+ ?string $runID = null,
): object;
/**
* Returns untyped workflow stub associated with running workflow.
- *
- * @param string $workflowID
- * @param string|null $runID
- * @param string|null $workflowType
- * @return WorkflowStubInterface
*/
public function newUntypedRunningWorkflowStub(
string $workflowID,
?string $runID = null,
- ?string $workflowType = null
+ ?string $workflowType = null,
): WorkflowStubInterface;
/**
- * Creates new {@link ActivityCompletionClient} that can be used to complete activities
- * asynchronously. Only relevant for activity implementations that called {@link
- * ActivityContext->doNotCompleteOnReturn()}.
+ * Creates a new `ActivityCompletionClient` that can be used to complete activities
+ * asynchronously.
*
- * @return ActivityCompletionClientInterface
+ * Only relevant for activity implementations that called {@see ActivityContext::doNotCompleteOnReturn()}.
+ *
+ * @see ActivityCompletionClient
*/
public function newActivityCompletionClient(): ActivityCompletionClientInterface;
@@ -126,21 +152,60 @@ public function newActivityCompletionClient(): ActivityCompletionClientInterface
* Get paginated list of workflow executions using List Filter Query syntax.
* Query example:
*
- *
+ * ```
* WorkflowType='MyWorkflow' and StartTime between '2022-08-22T15:04:05+00:00' and '2023-08-22T15:04:05+00:00'
- *
+ * ```
*
* @link https://docs.temporal.io/visibility
+ * @see self::countWorkflowExecutions()
*
* @param non-empty-string $query
- * @param non-empty-string $namespace
- * @param int $pageSize
+ * @param non-empty-string|null $namespace If null, the preconfigured namespace will be used.
+ * @param int<0, max> $pageSize Maximum number of workflow info per page.
*
* @return Paginator
*/
public function listWorkflowExecutions(
string $query,
- string $namespace = 'default',
+ ?string $namespace = null,
int $pageSize = 10,
): Paginator;
+
+ /**
+ * Get count of workflow executions using List Filter Query syntax.
+ * Query example:
+ *
+ * ```
+ * WorkflowType='MyWorkflow' and StartTime between '2022-08-22T15:04:05+00:00' and '2023-08-22T15:04:05+00:00'
+ * ```
+ *
+ * @link https://docs.temporal.io/visibility
+ * @see self::listWorkflowExecutions()
+ *
+ * @param non-empty-string $query
+ * @param non-empty-string|null $namespace If null, the preconfigured namespace will be used.
+ */
+ public function countWorkflowExecutions(
+ string $query,
+ ?string $namespace = null,
+ ): CountWorkflowExecutions;
+
+ /**
+ * @param non-empty-string|null $namespace If null, the preconfigured namespace will be used.
+ * @param bool $waitNewEvent If set to true, the RPC call will not resolve until there is a new event which matches,
+ * the $historyEventFilterType, or a timeout is hit. The RPC call will be resolved immediately if the
+ * workflow was already finished.
+ * @param int<0, 2>| $historyEventFilterType Filter returned events such that they match the specified filter type.
+ * Available values are {@see HistoryEventFilterType} constants.
+ * @param int<0, max> $pageSize Size of the pages to be requested. It affects internal queries only. Use it if you
+ * want to load limited number of events from the history.
+ */
+ public function getWorkflowHistory(
+ WorkflowExecution $execution,
+ ?string $namespace = null,
+ bool $waitNewEvent = false,
+ int $historyEventFilterType = HistoryEventFilterType::HISTORY_EVENT_FILTER_TYPE_ALL_EVENT,
+ bool $skipArchival = false,
+ int $pageSize = 0,
+ ): WorkflowExecutionHistory;
}
diff --git a/src/Client/WorkflowOptions.php b/src/Client/WorkflowOptions.php
index 806f6b64e..9b4396375 100644
--- a/src/Client/WorkflowOptions.php
+++ b/src/Client/WorkflowOptions.php
@@ -12,7 +12,6 @@
namespace Temporal\Client;
use Carbon\CarbonInterval;
-use JetBrains\PhpStorm\ExpectedValues;
use JetBrains\PhpStorm\Pure;
use Temporal\Api\Common\V1\Memo;
use Temporal\Api\Common\V1\SearchAttributes;
@@ -20,9 +19,11 @@
use Temporal\Common\IdReusePolicy;
use Temporal\Common\MethodRetry;
use Temporal\Common\RetryOptions;
+use Temporal\Common\SearchAttributes\SearchAttributeKey;
+use Temporal\Common\TypedSearchAttributes;
use Temporal\Common\Uuid;
+use Temporal\Common\WorkflowIdConflictPolicy;
use Temporal\DataConverter\DataConverterInterface;
-use Temporal\Internal\Assert;
use Temporal\Internal\Marshaller\Meta\Marshal;
use Temporal\Internal\Marshaller\Type\ArrayType;
use Temporal\Internal\Marshaller\Type\CronType;
@@ -37,7 +38,7 @@
* WorkflowOptions configuration parameters for starting a workflow execution.
*
* @psalm-import-type DateIntervalValue from DateInterval
- * @psalm-import-type IdReusePolicyEnum from IdReusePolicy
+ * @psalm-immutable
*/
final class WorkflowOptions extends Options
{
@@ -57,6 +58,13 @@ final class WorkflowOptions extends Options
#[Marshal(name: 'TaskQueue')]
public string $taskQueue = WorkerFactoryInterface::DEFAULT_TASK_QUEUE;
+ /**
+ * Eager Workflow Dispatch is a mechanism that minimizes the duration from starting a workflow to the
+ * processing of the first workflow task, making Temporal more suitable for latency sensitive applications.
+ */
+ #[Marshal(name: 'EnableEagerStart')]
+ public bool $eagerStart = false;
+
/**
* The timeout for duration of workflow execution.
*
@@ -76,6 +84,12 @@ final class WorkflowOptions extends Options
#[Marshal(name: 'WorkflowRunTimeout', type: DateIntervalType::class)]
public \DateInterval $workflowRunTimeout;
+ /**
+ * Time to wait before dispatching the first Workflow task.
+ */
+ #[Marshal(name: 'WorkflowStartDelay', type: DateIntervalType::class)]
+ public \DateInterval $workflowStartDelay;
+
/**
* The timeout for processing workflow task from the time the worker pulled
* this task. If a workflow task is lost, it is retried after this timeout.
@@ -86,14 +100,21 @@ final class WorkflowOptions extends Options
public \DateInterval $workflowTaskTimeout;
/**
- * Whether server allow reuse of workflow ID, can be useful for dedup logic
- * if set to {@see IdReusePolicy::POLICY_REJECT_DUPLICATE}.
+ * Whether server allow reuse of workflow ID.
+ *
+ * Can be useful for deduplication logic if set to {@see IdReusePolicy::POLICY_REJECT_DUPLICATE}.
*
- * @psalm-var IdReusePolicyEnum
+ * @psalm-var IdReusePolicy::POLICY_*
*/
#[Marshal(name: 'WorkflowIDReusePolicy')]
public int $workflowIdReusePolicy = IdReusePolicy::POLICY_ALLOW_DUPLICATE_FAILED_ONLY;
+ /**
+ * Defines how to resolve an ID conflict with a *running* workflow.
+ */
+ #[Marshal(name: 'WorkflowIdConflictPolicy')]
+ public WorkflowIdConflictPolicy $workflowIdConflictPolicy = WorkflowIdConflictPolicy::Unspecified;
+
/**
* Optional retry policy for workflow. If a retry policy is specified, in
* case of workflow failure server will start new workflow execution if
@@ -124,11 +145,35 @@ final class WorkflowOptions extends Options
* ElasticSearch). The key and value type must be registered on Temporal
* server side.
*
- * @psalm-var array|null
+ * @psalm-var array|null
*/
#[Marshal(name: 'SearchAttributes', type: NullableType::class, of: ArrayType::class)]
public ?array $searchAttributes = null;
+ /**
+ * Optional indexed info that can be used in query of List/Scan/Count
+ * workflow APIs (only supported when Temporal server is using
+ * ElasticSearch). The key and value type must be registered on Temporal
+ * server side.
+ */
+ public ?TypedSearchAttributes $typedSearchAttributes = null;
+
+ /**
+ * General fixed details for this workflow execution that will appear in UI/CLI.
+ *
+ * @experimental This feature is not stable and may change in the future.
+ */
+ #[Marshal(name: 'StaticDetails')]
+ public string $staticDetails = '';
+
+ /**
+ * Single-line fixed summary for this workflow execution that will appear in UI/CLI.
+ *
+ * @experimental This feature is not stable and may change in the future.
+ */
+ #[Marshal(name: 'StaticSummary')]
+ public string $staticSummary = '';
+
/**
* @throws \Exception
*/
@@ -138,16 +183,15 @@ public function __construct()
$this->workflowExecutionTimeout = CarbonInterval::seconds(0);
$this->workflowRunTimeout = CarbonInterval::seconds(0);
$this->workflowTaskTimeout = CarbonInterval::seconds(0);
+ $this->workflowStartDelay = CarbonInterval::seconds(0);
parent::__construct();
}
/**
- * @param MethodRetry|null $retry
- * @param CronSchedule|null $cron
- * @return $this
+ * @return self return a new {@see self} instance with merged options
*/
- public function mergeWith(MethodRetry $retry = null, CronSchedule $cron = null): self
+ public function mergeWith(?MethodRetry $retry = null, ?CronSchedule $cron = null): self
{
$self = clone $this;
@@ -168,7 +212,6 @@ public function mergeWith(MethodRetry $retry = null, CronSchedule $cron = null):
* deduplication will happen based on the generated id. So prefer assigning
* business meaningful ids if possible.
*
- * @param string $workflowId
* @return $this
*/
#[Pure]
@@ -186,7 +229,6 @@ public function withWorkflowId(string $workflowId): self
* specified when creating a {@see Worker} that hosts the
* workflow code.
*
- * @param string $taskQueue
* @return $this
*/
#[Pure]
@@ -199,6 +241,25 @@ public function withTaskQueue(string $taskQueue): self
return $self;
}
+ /**
+ * Eager Workflow Dispatch is a mechanism that minimizes the duration from starting a workflow to the
+ * processing of the first workflow task, making Temporal more suitable for latency sensitive applications.
+ *
+ * Eager Workflow Dispatch can be enabled if the server supports it and a local worker
+ * is available the task is fed directly to the worker.
+ *
+ * @return $this
+ */
+ #[Pure]
+ public function withEagerStart(bool $value = true): self
+ {
+ $self = clone $this;
+
+ $self->eagerStart = $value;
+
+ return $self;
+ }
+
/**
* The maximum time that parent workflow is willing to wait for a child
* execution (which includes retries and continue as new calls). If exceeded
@@ -212,9 +273,9 @@ public function withTaskQueue(string $taskQueue): self
#[Pure]
public function withWorkflowExecutionTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0);
+ \assert($timeout->totalMicroseconds >= 0);
$self = clone $this;
$self->workflowExecutionTimeout = $timeout;
@@ -234,9 +295,9 @@ public function withWorkflowExecutionTimeout($timeout): self
#[Pure]
public function withWorkflowRunTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0);
+ \assert($timeout->totalMicroseconds >= 0);
$self = clone $this;
$self->workflowRunTimeout = $timeout;
@@ -255,9 +316,9 @@ public function withWorkflowRunTimeout($timeout): self
#[Pure]
public function withWorkflowTaskTimeout($timeout): self
{
- assert(DateInterval::assert($timeout));
+ \assert(DateInterval::assert($timeout));
$timeout = DateInterval::parse($timeout, DateInterval::FORMAT_SECONDS);
- assert($timeout->totalMicroseconds >= 0 && $timeout->totalSeconds <= 60);
+ \assert($timeout->totalMicroseconds >= 0 && $timeout->totalSeconds <= 60);
$self = clone $this;
$self->workflowTaskTimeout = $timeout;
@@ -265,34 +326,68 @@ public function withWorkflowTaskTimeout($timeout): self
}
/**
- * Specifies server behavior if a completed workflow with the same id
- * exists. Note that under no conditions Temporal allows two workflows
+ * Time to wait before dispatching the first Workflow task.
+ * If the Workflow gets a Signal before the delay, a Workflow task will be dispatched and the rest
+ * of the delay will be ignored. A Signal from {@see WorkflowClientInterface::startWithSignal()} won't
+ * trigger a workflow task. Cannot be set the same time as a {@see $cronSchedule}.
+ *
+ * @psalm-suppress ImpureMethodCall
+ *
+ * @param DateIntervalValue $delay
+ * @return $this
+ */
+ #[Pure]
+ public function withWorkflowStartDelay($delay): self
+ {
+ \assert(DateInterval::assert($delay));
+ $delay = DateInterval::parse($delay, DateInterval::FORMAT_SECONDS);
+
+ $self = clone $this;
+ $self->workflowStartDelay = $delay;
+ return $self;
+ }
+
+ /**
+ * Specifies server behavior if a *closed* workflow with the same id exists.
+ * Note that under no conditions Temporal allows two workflows
* with the same namespace and workflow id run simultaneously.
*
- * - {@see IdReusePolicy::POLICY_ALLOW_DUPLICATE_FAILED_ONLY}: Is a default
+ * - {@see IdReusePolicy::AllowDuplicateFailedOnly}: Is a default
* value. It means that workflow can start if previous run failed or was
* canceled or terminated.
*
- * - {@see IdReusePolicy::POLICY_ALLOW_DUPLICATE}: Allows new run
+ * - {@see IdReusePolicy::AllowDuplicate}: Allows new run
* independently of the previous run closure status.
*
- * - {@see IdReusePolicy::POLICY_REJECT_DUPLICATE}: Doesn't allow new run
+ * - {@see IdReusePolicy::RejectDuplicate}: Doesn't allow new run
* independently of the previous run closure status.
*
* @psalm-suppress ImpureMethodCall
*
- * @param IdReusePolicyEnum $policy
* @return $this
*/
#[Pure]
- public function withWorkflowIdReusePolicy(
- #[ExpectedValues(valuesFromClass: IdReusePolicy::class)]
- int $policy
- ): self {
- assert(Assert::enum($policy, IdReusePolicy::class));
+ public function withWorkflowIdReusePolicy(IdReusePolicy|int $policy): self
+ {
+ \is_int($policy) and $policy = IdReusePolicy::from($policy);
$self = clone $this;
- $self->workflowIdReusePolicy = $policy;
+ $self->workflowIdReusePolicy = $policy->value;
+ return $self;
+ }
+
+ /**
+ * Defines how to resolve an ID conflict with a *running* workflow.
+ *
+ * @psalm-suppress ImpureMethodCall
+ *
+ * @return $this
+ */
+ #[Pure]
+ public function withWorkflowIdConflictPolicy(WorkflowIdConflictPolicy $policy): self
+ {
+ $self = clone $this;
+ $self->workflowIdConflictPolicy = $policy;
return $self;
}
@@ -300,7 +395,6 @@ public function withWorkflowIdReusePolicy(
* RetryOptions that define how child workflow is retried in case of
* failure. Default is null which is no reties.
*
- * @param RetryOptions|null $options
* @return $this
*/
#[Pure]
@@ -314,7 +408,6 @@ public function withRetryOptions(?RetryOptions $options): self
}
/**
- * @param string|null $expression
* @return $this
*/
#[Pure]
@@ -330,7 +423,6 @@ public function withCronSchedule(?string $expression): self
/**
* Specifies additional non-indexed information in result of list workflow.
*
- * @param array|null $memo
* @return $this
*/
#[Pure]
@@ -346,27 +438,86 @@ public function withMemo(?array $memo): self
/**
* Specifies additional indexed information in result of list workflow.
*
- * @param array|null $searchAttributes
+ * The search attributes can be used in query of List/Scan/Count workflow APIs.
+ * The key and its value type must be registered on Temporal server side.
+ *
* @return $this
*/
#[Pure]
public function withSearchAttributes(?array $searchAttributes): self
{
- $self = clone $this;
+ if ($this->typedSearchAttributes !== null) {
+ throw new \LogicException('Cannot have typed search attributes and search attributes.');
+ }
+ $self = clone $this;
$self->searchAttributes = $searchAttributes;
+ return $self;
+ }
+
+ /**
+ * Specifies Search Attributes that will be attached to the Workflow.
+ *
+ * Search Attributes are additional indexed information attributed to workflow and used for search and visibility.
+ *
+ * The search attributes can be used in query of List/Scan/Count workflow APIs.
+ * The key and its value type must be registered on Temporal server side.
+ *
+ * @return $this
+ */
+ #[Pure]
+ public function withTypedSearchAttributes(TypedSearchAttributes $attributes): self
+ {
+ if ($this->searchAttributes !== null) {
+ throw new \LogicException('Cannot have typed search attributes and search attributes.');
+ }
+ $self = clone $this;
+ $self->typedSearchAttributes = $attributes;
+ return $self;
+ }
+
+ /**
+ * Single-line fixed summary for this workflow execution that will appear in UI/CLI.
+ *
+ * This can be in single-line Temporal Markdown format.
+ *
+ * @return $this
+ * @since SDK 2.14.0
+ * @experimental This API might change in the future.
+ */
+ #[Pure]
+ public function withStaticSummary(string $summary): self
+ {
+ $self = clone $this;
+ $self->staticSummary = $summary;
+ return $self;
+ }
+
+ /**
+ * General fixed details for this workflow execution that will appear in UI/CLI.
+ *
+ * This can be in Temporal Markdown format and can span multiple lines.
+ * This is a fixed value on the workflow that cannot be updated.
+ *
+ * @return $this
+ * @since SDK 2.14.0
+ * @experimental This API might change in the future.
+ */
+ #[Pure]
+ public function withStaticDetails(string $details): self
+ {
+ $self = clone $this;
+ $self->staticDetails = $details;
return $self;
}
/**
- * @param DataConverterInterface $converter
- * @return Memo|null
* @internal
*/
public function toMemo(DataConverterInterface $converter): ?Memo
{
- if ($this->memo === null) {
+ if ($this->memo === null || $this->memo === []) {
return null;
}
@@ -383,24 +534,32 @@ public function toMemo(DataConverterInterface $converter): ?Memo
}
/**
- * @param DataConverterInterface $converter
- * @return SearchAttributes|null
* @internal
*/
public function toSearchAttributes(DataConverterInterface $converter): ?SearchAttributes
{
- if ($this->searchAttributes === null) {
+ if ($this->searchAttributes === null && $this->typedSearchAttributes === null) {
return null;
}
$fields = [];
- foreach ($this->searchAttributes as $key => $value) {
- $fields[$key] = $converter->toPayload($value);
+ $search = new SearchAttributes();
+
+ // Untyped SA
+ if ($this->searchAttributes !== null) {
+ foreach ($this->searchAttributes as $key => $value) {
+ $fields[$key] = $converter->toPayload($value);
+ }
+
+ return $search->setIndexedFields($fields);
}
- $search = new SearchAttributes();
- $search->setIndexedFields($fields);
+ // Typed SA
+ /** @var SearchAttributeKey $key For the IDE */
+ foreach ($this->typedSearchAttributes as $key => $value) {
+ $fields[$key->getName()] = $converter->toPayload($value);
+ }
- return $search;
+ return $search->setIndexedFields($fields);
}
}
diff --git a/src/Client/WorkflowStubInterface.php b/src/Client/WorkflowStubInterface.php
index a6f48a866..dd373066a 100644
--- a/src/Client/WorkflowStubInterface.php
+++ b/src/Client/WorkflowStubInterface.php
@@ -11,30 +11,35 @@
namespace Temporal\Client;
-use Temporal\DataConverter\EncodedValues;
+use Temporal\Client\Update\UpdateHandle;
+use Temporal\Client\Update\UpdateOptions;
+use Temporal\DataConverter\Type;
+use Temporal\DataConverter\ValuesInterface;
+use Temporal\Exception\Client\WorkflowUpdateException;
+use Temporal\Exception\Client\WorkflowUpdateRPCTimeoutOrCanceledException;
use Temporal\Exception\IllegalStateException;
use Temporal\Workflow\CancellationScopeInterface;
use Temporal\Workflow\QueryMethod;
+use Temporal\Workflow\UpdateMethod;
use Temporal\Workflow\WorkflowExecution;
use Temporal\Workflow\WorkflowRunInterface;
/**
- * WorkflowStub is a client side stub to a single workflow instance. It can be
- * used to start, signal, query, wait for completion and cancel a workflow
+ * WorkflowStub is a client side stub to a single workflow instance.
+ *
+ * It can be used to start, signal, query, wait for completion and cancel a workflow
* execution. Created through {@see WorkflowClient::newUntypedWorkflowStub()}.
*/
interface WorkflowStubInterface extends WorkflowRunInterface
{
/**
- * @return string|null
+ * @return non-empty-string|null
*/
public function getWorkflowType(): ?string;
/**
* Returns associated workflow options. Empty for running workflows. Workflow options are immutable and can
* not be changed after the workflow was created.
- *
- * @return WorkflowOptions|null
*/
public function getOptions(): ?WorkflowOptions;
@@ -46,36 +51,67 @@ public function getOptions(): ?WorkflowOptions;
public function getExecution(): WorkflowExecution;
/**
- * Check if workflow was stater and has associated execution.
- *
- * @return bool
+ * Check if workflow was started and has associated execution.
*/
public function hasExecution(): bool;
/**
* Attaches running workflow context to the workflow stub.
- *
- * @param WorkflowExecution $execution
*/
public function setExecution(WorkflowExecution $execution): void;
/**
* Sends named signal to the workflow execution.
*
- * @param string $name
- * @param ...mixed $args
+ * @param mixed ...$args
*/
public function signal(string $name, ...$args): void;
/**
- * Synchronously queries workflow by invoking its query handler. Usually a
- * query handler is a method annotated with {@see QueryMethod}.
+ * Synchronously queries workflow by invoking its query handler.
+ *
+ * Usually a query handler is a method annotated with {@see QueryMethod}.
+ *
+ * @param mixed ...$args
+ */
+ public function query(string $name, ...$args): ?ValuesInterface;
+
+ /**
+ * Synchronously update a workflow execution by invoking its update handler.
+ *
+ * Usually an update handler is a method annotated with the {@see UpdateMethod} attribute.
+ *
+ * @param non-empty-string $name Name of the update handler.
+ * @param mixed ...$args Arguments to pass to the update handler.
+ * @throws WorkflowUpdateException
+ * @throws WorkflowUpdateRPCTimeoutOrCanceledException
+ */
+ public function update(string $name, ...$args): ?ValuesInterface;
+
+ /**
+ * Update a workflow execution by invoking its update handler and returning a
+ * handle to the update request.
*
- * @param string $name
- * @param ...mixed $args
- * @return EncodedValues|null
+ * By default, WaitPolicy is set to {@see \Temporal\Client\Update\LifecycleStage::StageAccepted},
+ * which means that the handle will return immediately after successful validation of the Update call.
+ * However, also note that the processing Workflow worker must be available. Otherwise, the request
+ * may block indefinitely or fail due to a timeout.
+ *
+ * Usually an update handler is a method annotated with the {@see UpdateMethod} attribute.
+ *
+ * @param non-empty-string|UpdateOptions $nameOrOptions Name of the update handler or update options.
+ * @param mixed ...$args Arguments to pass to the update handler.
+ * @throws WorkflowUpdateRPCTimeoutOrCanceledException
*/
- public function query(string $name, ...$args): ?EncodedValues;
+ public function startUpdate(string|UpdateOptions $nameOrOptions, ...$args): UpdateHandle;
+
+ /**
+ * Get a handle to an existing update request.
+ *
+ * @param non-empty-string $updateId
+ * @param string|\ReflectionClass|\ReflectionType|Type|null $resultType
+ */
+ public function getUpdateHandle(string $updateId, mixed $resultType = null): UpdateHandle;
/**
* Request cancellation of a workflow execution.
@@ -83,8 +119,6 @@ public function query(string $name, ...$args): ?EncodedValues;
* Cancellation cancels {@see CancellationScopeInterface} that wraps the
* main workflow method. Note that workflow can take long time to get
* canceled or even completely ignore the cancellation request.
- *
- * @return void
*/
public function cancel(): void;
@@ -93,10 +127,6 @@ public function cancel(): void;
*
* Termination is a hard stop of a workflow execution which doesn't give
* workflow code any chance to perform cleanup.
- *
- * @param string $reason
- * @param array $details
- * @return void
*/
public function terminate(string $reason, array $details = []): void;
}
diff --git a/src/Common/CronSchedule.php b/src/Common/CronSchedule.php
index f858ac098..3a9ef7587 100644
--- a/src/Common/CronSchedule.php
+++ b/src/Common/CronSchedule.php
@@ -39,7 +39,7 @@ final class CronSchedule implements \Stringable
/**
* The cron spec is as following:
*
- *
+ * ```
* ┌───────────── minute (0 - 59)
* │ ┌───────────── hour (0 - 23)
* │ │ ┌───────────── day of the month (1 - 31)
@@ -48,26 +48,18 @@ final class CronSchedule implements \Stringable
* │ │ │ │ │
* │ │ │ │ │
* * * * * *
- *
- *
- * @var string
+ * ```
*/
#[Immutable]
public string $interval;
- /**
- * @param string $interval
- */
public function __construct(string $interval)
{
$this->interval = $interval;
}
- /**
- * {@inheritDoc}
- */
public function __toString(): string
{
- return (string)$this->interval;
+ return (string) $this->interval;
}
}
diff --git a/src/Common/IdReusePolicy.php b/src/Common/IdReusePolicy.php
index 6b69bc351..9f64fde86 100644
--- a/src/Common/IdReusePolicy.php
+++ b/src/Common/IdReusePolicy.php
@@ -12,10 +12,38 @@
namespace Temporal\Common;
/**
- * @psalm-type IdReusePolicyEnum = IdReusePolicy::POLICY_*
+ * Defines how new runs of a workflow with a particular ID may or may not be allowed. Note that
+ * it is *never* valid to have two actively running instances of the same workflow id.
+ *
+ * @see \Temporal\Api\Enums\V1\WorkflowIdReusePolicy
*/
-final class IdReusePolicy
+enum IdReusePolicy: int
{
+ case Unspecified = 0;
+
+ /**
+ * Allow starting a workflow execution using the same workflow id.
+ */
+ case AllowDuplicate = 1;
+
+ /**
+ * Allow starting a workflow execution using the same workflow id, only when the last
+ * execution's final state is one of [terminated, cancelled, timed out, failed].
+ */
+ case AllowDuplicateFailedOnly = 2;
+
+ /**
+ * Do not permit re-use of the workflow id for this workflow. Future start workflow requests
+ * could potentially change the policy, allowing re-use of the workflow id.
+ */
+ case RejectDuplicate = 3;
+
+ /**
+ * If a workflow is running using the same workflow ID, terminate it and start a new one.
+ * If no running workflow, then the behavior is the same as ALLOW_DUPLICATE
+ */
+ case TerminateIfRunning = 4;
+
/**
* @var int
*/
@@ -39,4 +67,10 @@ final class IdReusePolicy
* Id at all.
*/
public const POLICY_REJECT_DUPLICATE = 3;
+
+ /**
+ * Do not allow start a workflow execution using the same workflow
+ * Id at all.
+ */
+ public const POLICY_TERMINATE_IF_RUNNING = 4;
}
diff --git a/src/Common/MethodRetry.php b/src/Common/MethodRetry.php
index 221853df7..d488b1234 100644
--- a/src/Common/MethodRetry.php
+++ b/src/Common/MethodRetry.php
@@ -36,8 +36,7 @@ final class MethodRetry extends RetryOptions
/**
* @param DateIntervalValue|null $initialInterval
* @param DateIntervalValue|null $maximumInterval
- * @param positive-int|0 $maximumAttempts
- * @param float $backoffCoefficient
+ * @param int<0, max> $maximumAttempts
* @param ExceptionsList $nonRetryableExceptions
*/
public function __construct(
@@ -45,7 +44,7 @@ public function __construct(
$maximumInterval = self::DEFAULT_MAXIMUM_INTERVAL,
int $maximumAttempts = self::DEFAULT_MAXIMUM_ATTEMPTS,
float $backoffCoefficient = self::DEFAULT_BACKOFF_COEFFICIENT,
- array $nonRetryableExceptions = self::DEFAULT_NON_RETRYABLE_EXCEPTIONS
+ array $nonRetryableExceptions = self::DEFAULT_NON_RETRYABLE_EXCEPTIONS,
) {
parent::__construct();
diff --git a/src/Common/RetryOptions.php b/src/Common/RetryOptions.php
index 5b0f4fa87..c90e9a9fa 100644
--- a/src/Common/RetryOptions.php
+++ b/src/Common/RetryOptions.php
@@ -11,13 +11,13 @@
namespace Temporal\Common;
+use Google\Protobuf\Duration;
use JetBrains\PhpStorm\Pure;
use Temporal\Activity\ActivityOptions;
use Temporal\Api\Common\V1\RetryPolicy;
use Temporal\Internal\Assert;
use Temporal\Internal\Marshaller\Meta\Marshal;
-use Temporal\Internal\Marshaller\Type\DateIntervalType;
-use Temporal\Internal\Marshaller\Type\NullableType;
+use Temporal\Internal\Marshaller\Type\DurationJsonType;
use Temporal\Internal\Support\DateInterval;
use Temporal\Internal\Support\Options;
@@ -33,6 +33,8 @@
*
* @psalm-type ExceptionsList = array>
* @psalm-import-type DateIntervalValue from DateInterval
+ * @psalm-immutable
+ * @see RetryPolicy
*/
class RetryOptions extends Options
{
@@ -52,7 +54,7 @@ class RetryOptions extends Options
public const DEFAULT_MAXIMUM_INTERVAL = null;
/**
- * @var positive-int|0
+ * @var int<0, max>
*/
public const DEFAULT_MAXIMUM_ATTEMPTS = 0;
@@ -65,7 +67,7 @@ class RetryOptions extends Options
* Backoff interval for the first retry. If {@see RetryOptions::$backoffCoefficient}
* is 1.0 then it is used for all retries.
*/
- #[Marshal(name: 'initial_interval', type: NullableType::class, of: DateIntervalType::class)]
+ #[Marshal(name: 'initial_interval', type: DurationJsonType::class, nullable: true)]
public ?\DateInterval $initialInterval = self::DEFAULT_INITIAL_INTERVAL;
/**
@@ -83,7 +85,7 @@ class RetryOptions extends Options
*
* Default is 100x of {@see $initialInterval}.
*/
- #[Marshal(name: 'maximum_interval', type: NullableType::class, of: DateIntervalType::class)]
+ #[Marshal(name: 'maximum_interval', type: DurationJsonType::class, nullable: true)]
public ?\DateInterval $maximumInterval = self::DEFAULT_MAXIMUM_INTERVAL;
/**
@@ -91,7 +93,7 @@ class RetryOptions extends Options
* expired yet. If not set or set to 0, it means unlimited, and rely on
* activity {@see ActivityOptions::$scheduleToCloseTimeout} to stop.
*
- * @var positive-int|0
+ * @var int<0, max>
*/
#[Marshal(name: 'maximum_attempts')]
public int $maximumAttempts = self::DEFAULT_MAXIMUM_ATTEMPTS;
@@ -105,14 +107,7 @@ class RetryOptions extends Options
#[Marshal(name: 'non_retryable_error_types')]
public array $nonRetryableExceptions = self::DEFAULT_NON_RETRYABLE_EXCEPTIONS;
- /** @var bool */
- private bool $maximumAttempsSet = false;
-
- /**
- * @param MethodRetry|null $retry
- * @return $this
- */
- public function mergeWith(MethodRetry $retry = null): self
+ public function mergeWith(?MethodRetry $retry = null): self
{
$self = clone $this;
@@ -128,13 +123,14 @@ public function mergeWith(MethodRetry $retry = null): self
/**
* @psalm-suppress ImpureMethodCall
*
- * @param DateIntervalValue|null $interval
- * @return $this
+ * @param mixed $interval parseable string, null, int|float in seconds, {@see \DateInterval}, or {@see Duration}
+ * @return static
+ * @psalm-assert DateIntervalValue|null $interval
*/
#[Pure]
- public function withInitialInterval($interval): self
+ public function withInitialInterval(mixed $interval): self
{
- assert(DateInterval::assert($interval) || $interval === null);
+ \assert(DateInterval::assert($interval) || $interval === null);
$self = clone $this;
$self->initialInterval = DateInterval::parseOrNull($interval, DateInterval::FORMAT_SECONDS);
@@ -144,13 +140,12 @@ public function withInitialInterval($interval): self
/**
* @psalm-suppress ImpureMethodCall
*
- * @param float $coefficient
- * @return $this
+ * @return static
*/
#[Pure]
public function withBackoffCoefficient(float $coefficient): self
{
- assert($coefficient >= 1.0);
+ \assert($coefficient >= 1.0);
$self = clone $this;
$self->backoffCoefficient = $coefficient;
@@ -160,13 +155,14 @@ public function withBackoffCoefficient(float $coefficient): self
/**
* @psalm-suppress ImpureMethodCall
*
- * @param DateIntervalValue|null $interval
- * @return $this
+ * @param mixed $interval parseable string, null, int|float in seconds, {@see \DateInterval}, or {@see Duration}
+ * @return static
+ * @psalm-assert DateIntervalValue|null $interval
*/
#[Pure]
- public function withMaximumInterval($interval): self
+ public function withMaximumInterval(mixed $interval): self
{
- assert(DateInterval::assert($interval) || $interval === null);
+ \assert(DateInterval::assert($interval) || $interval === null);
$self = clone $this;
$self->maximumInterval = DateInterval::parseOrNull($interval, DateInterval::FORMAT_SECONDS);
@@ -176,13 +172,13 @@ public function withMaximumInterval($interval): self
/**
* @psalm-suppress ImpureMethodCall
*
- * @param int $attempts
- * @return $this
+ * @param int<0, max> $attempts
+ * @return static
*/
#[Pure]
public function withMaximumAttempts(int $attempts): self
{
- assert($attempts >= 0);
+ \assert($attempts >= 0);
$self = clone $this;
$self->maximumAttempts = $attempts;
@@ -194,12 +190,12 @@ public function withMaximumAttempts(int $attempts): self
* @psalm-suppress ImpureMethodCall
*
* @param ExceptionsList $exceptions
- * @return $this
+ * @return static
*/
#[Pure]
public function withNonRetryableExceptions(array $exceptions): self
{
- assert(Assert::valuesSubclassOfOrSameClass($exceptions, \Throwable::class));
+ \assert(Assert::valuesSubclassOfOrSameClass($exceptions, \Throwable::class));
$self = clone $this;
$self->nonRetryableExceptions = $exceptions;
@@ -209,7 +205,7 @@ public function withNonRetryableExceptions(array $exceptions): self
/**
* Converts DTO to protobuf object
*
- * @return RetryPolicy
+ * @psalm-suppress ImpureMethodCall
*/
public function toWorkflowRetryPolicy(): RetryPolicy
{
diff --git a/src/Common/SearchAttributes/SearchAttributeKey.php b/src/Common/SearchAttributes/SearchAttributeKey.php
new file mode 100644
index 000000000..2e1ef048e
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeKey.php
@@ -0,0 +1,120 @@
+ self::forBool($name),
+ ValueType::Int => self::forInteger($name),
+ ValueType::Float => self::forFloat($name),
+ ValueType::Keyword => self::forKeyword($name),
+ ValueType::Text => self::forText($name),
+ ValueType::Datetime => self::forDatetime($name),
+ ValueType::KeywordList => self::forKeywordList($name),
+ };
+ }
+
+ /**
+ * @return non-empty-string
+ */
+ public function getName(): string
+ {
+ return $this->name;
+ }
+
+ public function valueUnset(): SearchAttributeUpdate
+ {
+ return SearchAttributeUpdate::valueUnset($this->name, $this->getType());
+ }
+
+ abstract public function getType(): ValueType;
+
+ protected function prepareValueSet(mixed $value): SearchAttributeUpdate
+ {
+ return SearchAttributeUpdate::valueSet($this->name, $this->getType(), $value);
+ }
+}
diff --git a/src/Common/SearchAttributes/SearchAttributeKey/BoolValue.php b/src/Common/SearchAttributes/SearchAttributeKey/BoolValue.php
new file mode 100644
index 000000000..0cd183fc7
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeKey/BoolValue.php
@@ -0,0 +1,25 @@
+prepareValueSet($value);
+ }
+
+ public function getType(): ValueType
+ {
+ return ValueType::Bool;
+ }
+}
diff --git a/src/Common/SearchAttributes/SearchAttributeKey/DatetimeValue.php b/src/Common/SearchAttributes/SearchAttributeKey/DatetimeValue.php
new file mode 100644
index 000000000..dbc2349af
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeKey/DatetimeValue.php
@@ -0,0 +1,32 @@
+prepareValueSet(match (true) {
+ \is_string($value) => new \DateTimeImmutable($value),
+ $value instanceof \DateTimeImmutable => $value,
+ default => \DateTimeImmutable::createFromInterface($value),
+ });
+ }
+
+ public function getType(): ValueType
+ {
+ return ValueType::Datetime;
+ }
+}
diff --git a/src/Common/SearchAttributes/SearchAttributeKey/FloatValue.php b/src/Common/SearchAttributes/SearchAttributeKey/FloatValue.php
new file mode 100644
index 000000000..4242162e2
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeKey/FloatValue.php
@@ -0,0 +1,25 @@
+prepareValueSet($value);
+ }
+
+ public function getType(): ValueType
+ {
+ return ValueType::Float;
+ }
+}
diff --git a/src/Common/SearchAttributes/SearchAttributeKey/IntValue.php b/src/Common/SearchAttributes/SearchAttributeKey/IntValue.php
new file mode 100644
index 000000000..6300e48df
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeKey/IntValue.php
@@ -0,0 +1,25 @@
+prepareValueSet($value);
+ }
+
+ public function getType(): ValueType
+ {
+ return ValueType::Int;
+ }
+}
diff --git a/src/Common/SearchAttributes/SearchAttributeKey/KeywordListValue.php b/src/Common/SearchAttributes/SearchAttributeKey/KeywordListValue.php
new file mode 100644
index 000000000..45b8d5f70
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeKey/KeywordListValue.php
@@ -0,0 +1,33 @@
+ $value
+ */
+ public function valueSet(array $value): SearchAttributeUpdate
+ {
+ $values = [];
+ foreach ($value as $v) {
+ $values[] = (string) $v;
+ }
+
+ return $this->prepareValueSet($values);
+ }
+
+ public function getType(): ValueType
+ {
+ return ValueType::KeywordList;
+ }
+}
diff --git a/src/Common/SearchAttributes/SearchAttributeKey/KeywordValue.php b/src/Common/SearchAttributes/SearchAttributeKey/KeywordValue.php
new file mode 100644
index 000000000..1e4e438aa
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeKey/KeywordValue.php
@@ -0,0 +1,25 @@
+prepareValueSet((string) $value);
+ }
+
+ public function getType(): ValueType
+ {
+ return ValueType::Keyword;
+ }
+}
diff --git a/src/Common/SearchAttributes/SearchAttributeKey/TextValue.php b/src/Common/SearchAttributes/SearchAttributeKey/TextValue.php
new file mode 100644
index 000000000..98c934b74
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeKey/TextValue.php
@@ -0,0 +1,25 @@
+prepareValueSet((string) $value);
+ }
+
+ public function getType(): ValueType
+ {
+ return ValueType::Text;
+ }
+}
diff --git a/src/Common/SearchAttributes/SearchAttributeUpdate.php b/src/Common/SearchAttributes/SearchAttributeUpdate.php
new file mode 100644
index 000000000..bb25c8e74
--- /dev/null
+++ b/src/Common/SearchAttributes/SearchAttributeUpdate.php
@@ -0,0 +1,39 @@
+name = $name;
+ }
+
+ public static function new(string $name): self
+ {
+ return new self($name);
+ }
+
+ public function withName(string $name): self
+ {
+ /** @see self::$name */
+ return $this->with('name', $name);
+ }
+
+ public function __toString(): string
+ {
+ return $this->name;
+ }
+}
diff --git a/src/Common/TypedSearchAttributes.php b/src/Common/TypedSearchAttributes.php
new file mode 100644
index 000000000..a3ee97155
--- /dev/null
+++ b/src/Common/TypedSearchAttributes.php
@@ -0,0 +1,185 @@
+
+ */
+class TypedSearchAttributes implements \IteratorAggregate, \Countable
+{
+ /**
+ * @param null|\SplObjectStorage $collection
+ */
+ private function __construct(
+ private readonly ?\SplObjectStorage $collection = null,
+ ) {}
+
+ public static function empty(): self
+ {
+ return new self();
+ }
+
+ /**
+ * Create a new instance from the provided collection of untyped Search Attributes.
+ *
+ * @param array $array
+ */
+ public static function fromCollection(array $array): self
+ {
+ $result = self::empty();
+ foreach ($array as $name => $value) {
+ $result = $result->withUntypedValue($name, $value);
+ }
+
+ return $result;
+ }
+
+ /**
+ * @param array $array
+ *
+ * ```php
+ * [
+ * "foo" => [
+ * "value" => "bar",
+ * "type" => "keyword",
+ * ],
+ * ]
+ * ```
+ *
+ * @internal
+ */
+ public static function fromJsonArray(array $array): self
+ {
+ if ($array === []) {
+ return self::empty();
+ }
+
+ $collection = new \SplObjectStorage();
+ foreach ($array as $name => ['type' => $type, 'value' => $value]) {
+ try {
+ $vt = ValueType::from($type);
+ $key = SearchAttributeKey::for($vt, $name);
+ $collection->offsetSet($key, $key->valueSet($value)->value);
+ } catch (\Throwable) {
+ // Ignore invalid values.
+ }
+ }
+
+ return new self($collection);
+ }
+
+ /**
+ * @throws \LogicException If key type mismatch.
+ */
+ public function get(SearchAttributeKey $key): mixed
+ {
+ $found = $this->getKeyByName($key->getName());
+
+ return match (true) {
+ $found === null => null,
+ $found->getType() === $key->getType() => $this->collection[$found],
+ default => throw new \LogicException('Search Attribute type mismatch.'),
+ };
+ }
+
+ public function hasKey(SearchAttributeKey $key): bool
+ {
+ return $this->getKeyByName($key->getName()) !== null;
+ }
+
+ public function withValue(SearchAttributeKey $key, mixed $value): self
+ {
+ $collection = $this->withoutValue($key)->collection ?? new \SplObjectStorage();
+ $collection->offsetSet($key, $value);
+ return new self($collection);
+ }
+
+ /**
+ * @param non-empty-string $name
+ *
+ * @throws \InvalidArgumentException If the value type is not supported.
+ */
+ public function withUntypedValue(string $name, mixed $value): self
+ {
+ return match (true) {
+ \is_bool($value) => $this->withValue(SearchAttributeKey::forBool($name), $value),
+ \is_int($value) => $this->withValue(SearchAttributeKey::forInteger($name), $value),
+ \is_float($value) => $this->withValue(SearchAttributeKey::forFloat($name), $value),
+ \is_array($value) => $this->withValue(SearchAttributeKey::forKeywordList($name), $value),
+ $value instanceof \Stringable,
+ \is_string($value) => $this->withValue(SearchAttributeKey::forText($name), $value),
+ $value instanceof \DateTimeInterface => $this->withValue(SearchAttributeKey::forDatetime($name), $value),
+ default => throw new \InvalidArgumentException('Unsupported value type.'),
+ };
+ }
+
+ /**
+ * @param SearchAttributeKey|non-empty-string $key
+ */
+ public function withoutValue(SearchAttributeKey|string $key): self
+ {
+ $found = $this->getKeyByName(\is_string($key) ? $key : $key->getName());
+ if ($found === null) {
+ return new self($this->collection === null ? null : clone $this->collection);
+ }
+
+ $collection = clone $this->collection;
+ $collection->offsetUnset($found);
+ return new self($collection);
+ }
+
+ /**
+ * @return int<0, max>
+ */
+ public function count(): int
+ {
+ $count = (int) $this->collection?->count();
+ \assert($count >= 0);
+ return $count;
+ }
+
+ /**
+ * @return \Traversable
+ */
+ public function getIterator(): \Traversable
+ {
+ if ($this->collection === null) {
+ return;
+ }
+
+ foreach ($this->collection as $key) {
+ yield $key => $this->collection[$key];
+ }
+ }
+
+ /**
+ * Get the value associated with the Search Attribute name.
+ *
+ * @param non-empty-string $name
+ */
+ public function offsetGet(string $name): mixed
+ {
+ $key = $this->getKeyByName($name);
+
+ return $key === null ? null : $this->collection[$key];
+ }
+
+ /**
+ * @param non-empty-string $name
+ */
+ private function getKeyByName(string $name): ?SearchAttributeKey
+ {
+ foreach ($this->collection ?? [] as $item) {
+ if ($item->getName() === $name) {
+ return $item;
+ }
+ }
+
+ return null;
+ }
+}
diff --git a/src/Common/Uuid.php b/src/Common/Uuid.php
index d792a50cd..da62b5e62 100644
--- a/src/Common/Uuid.php
+++ b/src/Common/Uuid.php
@@ -25,9 +25,6 @@ final class Uuid
*/
public const NIL = '00000000-0000-0000-0000-000000000000';
- /**
- * @return string
- */
public static function nil(): string
{
return self::NIL;
@@ -39,7 +36,7 @@ public static function nil(): string
*
* @link http://tools.ietf.org/html/rfc4122
*
- * @return string
+ * @return non-empty-string
* @throws \Exception
*/
public static function v4(): string
@@ -56,17 +53,18 @@ public static function v4(): string
}
/**
- * @return string
* @throws \Exception
*/
private static function bytes(): string
{
$bytes = \random_bytes(16);
- $timeHi = (int)\unpack('n*', \substr($bytes, 6, 2))[1];
+ /** @psalm-suppress PossiblyInvalidArrayAccess */
+ $timeHi = (int) \unpack('n*', \substr($bytes, 6, 2))[1];
$timeHiAndVersion = \pack('n*', self::version($timeHi, 4));
- $clockSeqHi = (int)\unpack('n*', \substr($bytes, 8, 2))[1];
+ /** @psalm-suppress PossiblyInvalidArrayAccess */
+ $clockSeqHi = (int) \unpack('n*', \substr($bytes, 8, 2))[1];
$clockSeqHiAndReserved = \pack('n*', self::variant($clockSeqHi));
$bytes = \substr_replace($bytes, $timeHiAndVersion, 6, 2);
@@ -81,9 +79,6 @@ private static function bytes(): string
* @see http://tools.ietf.org/html/rfc4122#section-4.1.3
*
* @psalm-pure
- * @param int $timeHi
- * @param int $version
- * @return int
*/
private static function version(int $timeHi, int $version): int
{
@@ -96,8 +91,6 @@ private static function version(int $timeHi, int $version): int
* @see http://tools.ietf.org/html/rfc4122#section-4.1.1
*
* @psalm-pure
- * @param int $clockSeq
- * @return int
*/
private static function variant(int $clockSeq): int
{
diff --git a/src/Common/WorkerVersionStamp.php b/src/Common/WorkerVersionStamp.php
index f0975bd3c..d34365a13 100644
--- a/src/Common/WorkerVersionStamp.php
+++ b/src/Common/WorkerVersionStamp.php
@@ -17,8 +17,8 @@ final class WorkerVersionStamp
{
public function __construct(
public string $buildId = '',
+ /** @deprecated that field was removed {@link https://github.com/temporalio/api/pull/393} */
public string $bundleId = '',
public bool $useVersioning = false,
- ) {
- }
+ ) {}
}
diff --git a/src/Common/WorkflowIdConflictPolicy.php b/src/Common/WorkflowIdConflictPolicy.php
new file mode 100644
index 000000000..98a122bb5
--- /dev/null
+++ b/src/Common/WorkflowIdConflictPolicy.php
@@ -0,0 +1,39 @@
+data = $data;
}
- /**
- * @return string
- */
- public function __toString()
+ public function getSize(): int
{
- return $this->data;
+ return \strlen($this->data);
}
- /**
- * @return int
- */
- public function getSize(): int
+ public function getData(): string
{
- return strlen($this->data);
+ return $this->data;
}
/**
* @return string
*/
- public function getData(): string
+ public function __toString()
{
return $this->data;
}
diff --git a/src/DataConverter/Converter.php b/src/DataConverter/Converter.php
index f6aa05d44..abb6dd2fd 100644
--- a/src/DataConverter/Converter.php
+++ b/src/DataConverter/Converter.php
@@ -15,10 +15,6 @@
abstract class Converter implements PayloadConverterInterface
{
- /**
- * @param string $data
- * @return Payload
- */
protected function create(string $data): Payload
{
$payload = new Payload();
diff --git a/src/DataConverter/DataConverter.php b/src/DataConverter/DataConverter.php
index 47cb3e108..d3ea48b55 100644
--- a/src/DataConverter/DataConverter.php
+++ b/src/DataConverter/DataConverter.php
@@ -21,9 +21,6 @@ final class DataConverter implements DataConverterInterface
*/
private array $converters = [];
- /**
- * @param PayloadConverterInterface ...$converter
- */
public function __construct(PayloadConverterInterface ...$converter)
{
foreach ($converter as $c) {
@@ -31,9 +28,17 @@ public function __construct(PayloadConverterInterface ...$converter)
}
}
- /**
- * {@inheritDoc}
- */
+ public static function createDefault(): DataConverterInterface
+ {
+ return new DataConverter(
+ new NullConverter(),
+ new BinaryConverter(),
+ new ProtoJsonConverter(),
+ new ProtoConverter(),
+ new JsonConverter(),
+ );
+ }
+
public function fromPayload(Payload $payload, $type)
{
/** @var \ArrayAccess $meta */
@@ -42,12 +47,12 @@ public function fromPayload(Payload $payload, $type)
$encoding = $meta[EncodingKeys::METADATA_ENCODING_KEY];
if (!isset($this->converters[$encoding])) {
- throw new DataConverterException(sprintf('Undefined payload encoding %s', $encoding));
+ throw new DataConverterException(\sprintf('Undefined payload encoding %s', $encoding));
}
$type = Type::create($type);
- if (\in_array($type->getName(), [Type::TYPE_VOID, Type::TYPE_NULL, Type::TYPE_FALSE, Type::TYPE_TRUE], true)) {
- return match($type->getName()) {
+ if (\in_array($type->getName(), [Type::TYPE_VOID, Type::TYPE_NULL, Type::TYPE_FALSE, Type::TYPE_TRUE], true)) {
+ return match ($type->getName()) {
Type::TYPE_VOID, Type::TYPE_NULL => null,
Type::TYPE_TRUE => true,
Type::TYPE_FALSE => false,
@@ -59,7 +64,6 @@ public function fromPayload(Payload $payload, $type)
/**
* @param mixed $value
- * @return Payload
*
* @throws DataConverterException
*/
@@ -74,20 +78,7 @@ public function toPayload($value): Payload
}
throw new DataConverterException(
- \sprintf('Unable to convert value of type %s to Payload', \get_debug_type($value))
- );
- }
-
- /**
- * @return DataConverterInterface
- */
- public static function createDefault(): DataConverterInterface
- {
- return new DataConverter(
- new NullConverter(),
- new BinaryConverter(),
- new ProtoJsonConverter(),
- new JsonConverter()
+ \sprintf('Unable to convert value of type %s to Payload', \get_debug_type($value)),
);
}
}
diff --git a/src/DataConverter/DataConverterInterface.php b/src/DataConverter/DataConverterInterface.php
index 424174c29..0033d0f98 100644
--- a/src/DataConverter/DataConverterInterface.php
+++ b/src/DataConverter/DataConverterInterface.php
@@ -17,17 +17,16 @@
interface DataConverterInterface
{
/**
- * @param Payload $payload
- * @param string|\ReflectionClass|\ReflectionType|Type $type
+ * @param string|\ReflectionClass|\ReflectionType|Type|null $type
* @return mixed
*
+ * @psalm-mutation-free
* @throws DataConverterException
*/
public function fromPayload(Payload $payload, $type);
/**
* @param mixed $value
- * @return Payload
*
* @throws DataConverterException
*/
diff --git a/src/DataConverter/EncodedCollection.php b/src/DataConverter/EncodedCollection.php
index 4bb583633..75ef277dd 100644
--- a/src/DataConverter/EncodedCollection.php
+++ b/src/DataConverter/EncodedCollection.php
@@ -13,44 +13,73 @@
use Temporal\Api\Common\V1\Payload;
-class EncodedCollection
+/**
+ * Assoc collection of typed values.
+ *
+ * @psalm-type TKey = array-key
+ * @psalm-type TValue = mixed
+ * @psalm-type TPayloadsCollection = \Traversable&\ArrayAccess&\Countable
+ *
+ * @implements \IteratorAggregate
+ */
+class EncodedCollection implements \IteratorAggregate, \Countable
{
- /**
- * @var DataConverterInterface|null
- */
private ?DataConverterInterface $converter = null;
/**
- * @var Payload[]
+ * @var TPayloadsCollection|null
*/
- private ?array $payloads = null;
+ private ?\ArrayAccess $payloads = null;
- /**
- * @var array|null
- */
- private ?array $values = null;
+ /** @var array */
+ private array $values = [];
/**
- * Can not be constructed directly.
+ * Cannot be constructed directly.
*/
- private function __construct()
+ final private function __construct() {}
+
+ public static function empty(): static
{
+ $ev = new static();
+ $ev->values = [];
+
+ return $ev;
}
/**
- * @return int
+ * @param iterable $values
*/
- public function count(): int
+ public static function fromValues(iterable $values, ?DataConverterInterface $dataConverter = null): static
{
- if ($this->values !== null) {
- return \count($this->values);
+ $ev = new static();
+ foreach ($values as $key => $value) {
+ $ev->values[$key] = $value;
}
+ $ev->converter = $dataConverter;
- if ($this->payloads !== null) {
- return \count($this->payloads);
- }
+ return $ev;
+ }
- return 0;
+ /**
+ * @param array|TPayloadsCollection $payloads
+ */
+ public static function fromPayloadCollection(
+ array|\ArrayAccess $payloads,
+ DataConverterInterface $dataConverter,
+ ): static {
+ $ev = new static();
+ $ev->payloads = \is_array($payloads)
+ ? new \ArrayIterator($payloads)
+ : $payloads;
+ $ev->converter = $dataConverter;
+
+ return $ev;
+ }
+
+ public function count(): int
+ {
+ return \count($this->values) + ($this->payloads?->count() ?? 0);
}
public function isEmpty(): bool
@@ -61,15 +90,17 @@ public function isEmpty(): bool
/**
* @param array-key $name
* @param Type|string|null $type
- *
- * @return mixed
*/
- public function getValue(int|string $name, $type = null): mixed
+ public function getValue(int|string $name, mixed $type = null): mixed
{
- if (\is_array($this->values) && \array_key_exists($name, $this->values)) {
+ if (\array_key_exists($name, $this->values)) {
return $this->values[$name];
}
+ if ($this->payloads === null || !$this->payloads->offsetExists($name)) {
+ return null;
+ }
+
if ($this->converter === null) {
throw new \LogicException('DataConverter is not set.');
}
@@ -79,24 +110,31 @@ public function getValue(int|string $name, $type = null): mixed
public function getValues(): array
{
- if (\is_array($this->values)) {
- return $this->values;
- }
+ $result = $this->values;
- if ($this->converter === null) {
- throw new \LogicException('DataConverter is not set.');
+ if (empty($this->payloads)) {
+ return $result;
}
- if ($this->payloads === null) {
- return [];
- }
+ $this->converter === null and throw new \LogicException('DataConverter is not set.');
- $data = [];
foreach ($this->payloads as $key => $payload) {
- $data[$key] = $this->converter->fromPayload($payload, null);
+ $result[$key] = $this->converter->fromPayload($payload, null);
}
- return $data;
+ return $result;
+ }
+
+ public function getIterator(): \Traversable
+ {
+ yield from $this->values;
+ if ($this->payloads !== null && $this->payloads->count() > 0) {
+ $this->converter === null and throw new \LogicException('DataConverter is not set.');
+
+ foreach ($this->payloads as $key => $payload) {
+ yield $key => $this->converter->fromPayload($payload, null);
+ }
+ }
}
/**
@@ -104,15 +142,16 @@ public function getValues(): array
*/
public function toPayloadArray(): array
{
- if ($this->payloads !== null) {
- return $this->payloads;
- }
+ $data = $this->payloads !== null
+ ? \iterator_to_array($this->payloads)
+ : [];
- if ($this->converter === null) {
- throw new \LogicException('DataConverter is not set');
+ if (empty($this->values)) {
+ return $data;
}
- $data = [];
+ $this->converter === null and throw new \LogicException('DataConverter is not set.');
+
foreach ($this->values as $key => $value) {
$data[$key] = $this->converter->toPayload($value);
}
@@ -121,53 +160,34 @@ public function toPayloadArray(): array
}
/**
- * @param DataConverterInterface $converter
+ * @param TKey $name
+ * @param TValue $value
*/
- public function setDataConverter(DataConverterInterface $converter): void
+ public function withValue(int|string $name, mixed $value): static
{
- $this->converter = $converter;
- }
-
- /**
- * @return EncodedValues
- */
- public static function empty(): EncodedCollection
- {
- $ev = new self();
- $ev->values = [];
+ $clone = clone $this;
+ if ($value instanceof Payload) {
+ $clone->payloads ??= new \ArrayIterator();
+ $clone->payloads->offsetSet($name, $value);
+ unset($clone->values[$name]);
+ return $clone;
+ }
- return $ev;
+ // The value is not a Payload
+ $clone->values[$name] = $value;
+ $clone->payloads?->offsetUnset($name);
+ return $clone;
}
- /**
- * @param array $values
- * @param DataConverterInterface|null $dataConverter
- *
- * @return EncodedValues
- */
- public static function fromValues(array $values, DataConverterInterface $dataConverter = null): EncodedCollection
+ public function setDataConverter(DataConverterInterface $converter): void
{
- $ev = new self();
- $ev->values = $values;
- $ev->converter = $dataConverter;
-
- return $ev;
+ $this->converter = $converter;
}
- /**
- * @param iterable $payloads
- * @param DataConverterInterface $dataConverter
- *
- * @return EncodedValues
- */
- public static function fromPayloadCollection(
- iterable $payloads,
- DataConverterInterface $dataConverter,
- ): EncodedCollection {
- $ev = new self();
- $ev->payloads = \is_array($payloads) ? $payloads : \iterator_to_array($payloads);
- $ev->converter = $dataConverter;
-
- return $ev;
+ public function __clone()
+ {
+ if ($this->payloads !== null) {
+ $this->payloads = clone $this->payloads;
+ }
}
}
diff --git a/src/DataConverter/EncodedValues.php b/src/DataConverter/EncodedValues.php
index 6ea6daeba..81e371d4e 100644
--- a/src/DataConverter/EncodedValues.php
+++ b/src/DataConverter/EncodedValues.php
@@ -11,183 +11,215 @@
namespace Temporal\DataConverter;
+use ArrayAccess;
+use Countable;
use React\Promise\PromiseInterface;
+use Temporal\Api\Common\V1\Payload;
use Temporal\Api\Common\V1\Payloads;
+use Temporal\Workflow\ReturnType;
+use Traversable;
+/**
+ * List of typed values.
+ *
+ * @psalm-type TPayloadsCollection = Traversable&ArrayAccess&Countable
+ * @psalm-type TKey = int
+ * @psalm-type TValue = string
+ */
class EncodedValues implements ValuesInterface
{
/**
- * @var DataConverterInterface|null
+ * @var TPayloadsCollection|null
*/
- private ?DataConverterInterface $converter = null;
+ protected ?\Traversable $payloads = null;
/**
- * @var Payloads|null
+ * @var array|null
*/
- private ?Payloads $payloads = null;
+ protected ?array $values = null;
- /**
- * @var array|null
- */
- private ?array $values = null;
+ private ?DataConverterInterface $converter = null;
/**
* Can not be constructed directly.
*/
- private function __construct()
+ private function __construct() {}
+
+ public static function empty(): static
+ {
+ $ev = new static();
+ $ev->values = [];
+
+ return $ev;
+ }
+
+ public static function fromPayloads(Payloads $payloads, DataConverterInterface $dataConverter): EncodedValues
{
+ return static::fromPayloadCollection($payloads->getPayloads(), $dataConverter);
+ }
+
+ public static function sliceValues(
+ DataConverterInterface $converter,
+ ValuesInterface $values,
+ int $offset,
+ ?int $length = null,
+ ): ValuesInterface {
+ $payloads = $values->toPayloads();
+ $newPayloads = new Payloads();
+ $newPayloads->setPayloads(\array_slice(\iterator_to_array($payloads->getPayloads()), $offset, $length));
+
+ return self::fromPayloads($newPayloads, $converter);
}
/**
- * @return int
+ * Decode promise response upon returning it to the domain layer.
+ *
+ * @param string|\ReflectionClass|\ReflectionType|Type|null $type
*/
- public function count(): int
+ public static function decodePromise(PromiseInterface $promise, $type = null): PromiseInterface
{
- if ($this->values !== null) {
- return count($this->values);
- }
-
- if ($this->payloads !== null) {
- return $this->payloads->getPayloads()->count();
- }
+ return $promise->then(
+ static function (mixed $value) use ($type) {
+ if (!$value instanceof ValuesInterface || $value instanceof \Throwable) {
+ return $value;
+ }
- return 0;
+ return $value->getValue(0, $type);
+ },
+ );
}
- public function isEmpty(): bool
+ public static function fromValues(array $values, ?DataConverterInterface $dataConverter = null): static
{
- return $this->count() === 0;
+ $ev = new static();
+ $ev->values = \array_values($values);
+ $ev->converter = $dataConverter;
+
+ return $ev;
}
/**
- * @param int $index
- * @param Type|string|null $type
- * @return mixed
+ * @param TPayloadsCollection $payloads
*/
- public function getValue(int $index, $type = null)
+ public static function fromPayloadCollection(
+ \Traversable $payloads,
+ ?DataConverterInterface $dataConverter = null,
+ ): static {
+ $ev = new static();
+ $ev->payloads = $payloads;
+ $ev->converter = $dataConverter;
+
+ return $ev;
+ }
+
+ public function toPayloads(): Payloads
{
- if (is_array($this->values) && array_key_exists($index, $this->values)) {
+ return new Payloads(['payloads' => $this->toProtoCollection()]);
+ }
+
+ public function getValue(int|string $index, $type = null): mixed
+ {
+ if (\is_array($this->values) && \array_key_exists($index, $this->values)) {
return $this->values[$index];
}
- if ($this->converter === null) {
- throw new \LogicException('DataConverter is not set');
+ $count = $this->count();
+ // External SDKs might return an empty array with metadata, alias to null
+ // Most likely this is a void type
+ if ($index === 0 && $count === 0 && $this->isVoidType($type)) {
+ return null;
}
- /** @var \ArrayAccess $payloads */
- $payloads = $this->payloads->getPayloads();
+ $count > $index or throw new \OutOfBoundsException("Index {$index} is out of bounds.");
+ $this->converter === null and throw new \LogicException('DataConverter is not set.');
- return $this->converter->fromPayload($payloads[$index], $type);
+ \assert($this->payloads !== null);
+ return $this->converter->fromPayload(
+ $this->payloads[$index],
+ $type,
+ );
}
- /**
- * @return Payloads
- */
- public function toPayloads(): Payloads
+ public function getValues(): array
{
- if ($this->payloads !== null) {
- return $this->payloads;
- }
+ $result = (array) $this->values;
- if ($this->converter === null) {
- throw new \LogicException('DataConverter is not set');
+ if (empty($this->payloads)) {
+ return $result;
}
- $data = [];
- foreach ($this->values as $value) {
- $data[] = $this->converter->toPayload($value);
- }
+ $this->converter === null and throw new \LogicException('DataConverter is not set.');
- $payloads = new Payloads();
- $payloads->setPayloads($data);
+ foreach ($this->payloads as $key => $payload) {
+ $result[$key] = $this->converter->fromPayload($payload, null);
+ }
- return $payloads;
+ return $result;
}
- /**
- * @param DataConverterInterface $converter
- */
public function setDataConverter(DataConverterInterface $converter): void
{
$this->converter = $converter;
}
/**
- * @return EncodedValues
+ * @return int<0, max>
*/
- public static function empty(): EncodedValues
+ public function count(): int
{
- $ev = new self();
- $ev->values = [];
-
- return $ev;
+ return match (true) {
+ $this->values !== null => \count($this->values),
+ $this->payloads !== null => \count($this->payloads),
+ default => 0,
+ };
}
- /**
- * @param array $values
- * @param DataConverterInterface|null $dataConverter
- * @return EncodedValues
- */
- public static function fromValues(array $values, DataConverterInterface $dataConverter = null): EncodedValues
+ public function isEmpty(): bool
{
- $ev = new self();
- $ev->values = array_values($values);
- $ev->converter = $dataConverter;
-
- return $ev;
+ return $this->count() === 0;
}
- /**
- * @param Payloads $payloads
- * @param DataConverterInterface $dataConverter
- * @return EncodedValues
- */
- public static function fromPayloads(Payloads $payloads, DataConverterInterface $dataConverter): EncodedValues
+ private function isVoidType(mixed $type = null): bool
{
- $ev = new self();
- $ev->payloads = $payloads;
- $ev->converter = $dataConverter;
-
- return $ev;
+ return match (true) {
+ $type === null => true,
+ \is_string($type) => \in_array($type, [Type::TYPE_VOID, Type::TYPE_NULL, Type::TYPE_ANY], true),
+ $type instanceof Type => $type->allowsNull(),
+ $type instanceof ReturnType => $type->nullable,
+ $type instanceof \ReflectionNamedType => $type->getName() === Type::TYPE_VOID || $type->allowsNull(),
+ $type instanceof \ReflectionUnionType => $type->allowsNull(),
+ default => false,
+ };
}
/**
- * Decode promise response upon returning it to the domain layer.
+ * Returns collection of {@see Payloads}.
*
- * @param PromiseInterface $promise
- * @param Type|string|null $type
- * @return PromiseInterface
+ * @return array
*/
- public static function decodePromise(PromiseInterface $promise, $type = null): PromiseInterface
+ private function toProtoCollection(): array
{
- return $promise->then(
- function ($value) use ($type) {
- if (!$value instanceof ValuesInterface || $value instanceof \Throwable) {
- return $value;
- }
+ $data = [];
- return $value->getValue(0, $type);
+ if ($this->payloads !== null) {
+ foreach ($this->payloads as $key => $payload) {
+ $data[$key] = $payload;
}
- );
- }
+ return $data;
+ }
- /**
- * @param DataConverterInterface $converter
- * @param ValuesInterface $values
- * @param int $offset
- * @param int|null $length
- * @return ValuesInterface
- */
- public static function sliceValues(
- DataConverterInterface $converter,
- ValuesInterface $values,
- int $offset,
- int $length = null
- ): ValuesInterface {
- $payloads = $values->toPayloads();
- $newPayloads = new Payloads();
- $newPayloads->setPayloads(array_slice(iterator_to_array($payloads->getPayloads()), $offset, $length));
+ foreach ($this->values as $key => $value) {
+ $data[$key] = $this->valueToPayload($value);
+ }
- return self::fromPayloads($newPayloads, $converter);
+ return $data;
+ }
+
+ private function valueToPayload(mixed $value): Payload
+ {
+ if ($this->converter === null) {
+ throw new \LogicException('DataConverter is not set');
+ }
+ return $this->converter->toPayload($value);
}
}
diff --git a/src/DataConverter/EncodingKeys.php b/src/DataConverter/EncodingKeys.php
index a4d87f643..a858c1818 100644
--- a/src/DataConverter/EncodingKeys.php
+++ b/src/DataConverter/EncodingKeys.php
@@ -14,11 +14,10 @@
final class EncodingKeys
{
public const METADATA_ENCODING_KEY = 'encoding';
-
+ public const METADATA_MESSAGE_TYPE = 'messageType';
public const METADATA_ENCODING_NULL = 'binary/null';
public const METADATA_ENCODING_RAW = 'binary/plain';
public const METADATA_ENCODING_JSON = 'json/plain';
-
public const METADATA_ENCODING_PROTOBUF_JSON = 'json/protobuf';
public const METADATA_ENCODING_PROTOBUF = 'binary/protobuf';
}
diff --git a/src/DataConverter/JsonConverter.php b/src/DataConverter/JsonConverter.php
index cea3e3ede..a7d447d75 100644
--- a/src/DataConverter/JsonConverter.php
+++ b/src/DataConverter/JsonConverter.php
@@ -12,6 +12,8 @@
namespace Temporal\DataConverter;
use Doctrine\Common\Annotations\Reader;
+use Ramsey\Uuid\Uuid;
+use Ramsey\Uuid\UuidInterface;
use Spiral\Attributes\AnnotationReader;
use Spiral\Attributes\AttributeReader;
use Spiral\Attributes\Composite\SelectiveReader;
@@ -32,22 +34,13 @@ class JsonConverter extends Converter
*/
public const JSON_FLAGS = \JSON_THROW_ON_ERROR | \JSON_PRESERVE_ZERO_FRACTION;
- /**
- * @var MarshallerInterface
- */
private MarshallerInterface $marshaller;
- /**
- * @param MarshallerInterface|null $marshaller
- */
- public function __construct(MarshallerInterface $marshaller = null)
+ public function __construct(?MarshallerInterface $marshaller = null)
{
$this->marshaller = $marshaller ?? self::createDefaultMarshaller();
}
- /**
- * @return string
- */
public function getEncodingType(): string
{
return EncodingKeys::METADATA_ENCODING_JSON;
@@ -55,15 +48,17 @@ public function getEncodingType(): string
/**
* @param mixed $value
- * @return Payload|null
* @throws DataConverterException
*/
public function toPayload($value): ?Payload
{
if (\is_object($value)) {
- $value = $value instanceof \stdClass
- ? $value
- : $this->marshaller->marshal($value);
+ $value = match (true) {
+ $value instanceof \stdClass => $value,
+ $value instanceof UuidInterface => $value->toString(),
+ $value instanceof \DateTimeInterface => $value->format(\DateTimeInterface::RFC3339),
+ default => $this->marshaller->marshal($value),
+ };
}
try {
@@ -74,8 +69,6 @@ public function toPayload($value): ?Payload
}
/**
- * @param Payload $payload
- * @param Type $type
* @return mixed|void
* @throws DataConverterException
*/
@@ -86,12 +79,16 @@ public function fromPayload(Payload $payload, Type $type)
$payload->getData(),
$type->getName() === Type::TYPE_ARRAY,
512,
- self::JSON_FLAGS
+ self::JSON_FLAGS,
);
} catch (\Throwable $e) {
throw new DataConverterException($e->getMessage(), $e->getCode(), $e);
}
+ if ($data === null && $type->allowsNull()) {
+ return null;
+ }
+
switch ($type->getName()) {
case Type::TYPE_ANY:
return $data;
@@ -131,6 +128,17 @@ public function fromPayload(Payload $payload, Type $type)
return $data;
+ case UuidInterface::class:
+ if (!\is_string($data) || !Uuid::isValid($data)) {
+ throw $this->errorInvalidType($type, $data);
+ }
+
+ return Uuid::fromString($data);
+
+ case \DateTimeImmutable::class:
+ case \DateTimeInterface::class:
+ \is_string($data) or throw $this->errorInvalidType($type, $data);
+ return new \DateTimeImmutable($data);
case Type::TYPE_OBJECT:
if (!\is_object($data)) {
throw $this->errorInvalidType($type, $data);
@@ -164,14 +172,27 @@ public function fromPayload(Payload $payload, Type $type)
throw $this->errorInvalidTypeName($type);
}
+ private static function createDefaultMarshaller(): MarshallerInterface
+ {
+ return new Marshaller(new AttributeMapperFactory(self::createDefaultReader()));
+ }
+
+ private static function createDefaultReader(): ReaderInterface
+ {
+ if (\interface_exists(Reader::class)) {
+ return new SelectiveReader([new AnnotationReader(), new AttributeReader()]);
+ }
+
+ return new AttributeReader();
+ }
+
/**
* @param object|array $context
- * @return array
*/
private function toHashMap($context): array
{
if (\is_object($context)) {
- $context = (array)$context;
+ $context = (array) $context;
}
foreach ($context as $key => $value) {
@@ -183,10 +204,6 @@ private function toHashMap($context): array
return $context;
}
- /**
- * @param Type $type
- * @return DataConverterException
- */
private function errorInvalidTypeName(Type $type): DataConverterException
{
$message = \vsprintf('Type named "%s" is not a valid type name', [
@@ -197,9 +214,7 @@ private function errorInvalidTypeName(Type $type): DataConverterException
}
/**
- * @param Type $type
* @param mixed $data
- * @return DataConverterException
*/
private function errorInvalidType(Type $type, $data): DataConverterException
{
@@ -211,30 +226,9 @@ private function errorInvalidType(Type $type, $data): DataConverterException
return new DataConverterException($message);
}
- /**
- * @return MarshallerInterface
- */
- private static function createDefaultMarshaller(): MarshallerInterface
- {
- return new Marshaller(new AttributeMapperFactory(self::createDefaultReader()));
- }
-
- /**
- * @return ReaderInterface
- */
- private static function createDefaultReader(): ReaderInterface
- {
- if (\interface_exists(Reader::class)) {
- return new SelectiveReader([new AnnotationReader(), new AttributeReader()]);
- }
-
- return new AttributeReader();
- }
-
/**
* @template T of object
*
- * @param object|array $data
* @param \ReflectionClass $reflection
*
* @return T
diff --git a/src/DataConverter/NullConverter.php b/src/DataConverter/NullConverter.php
index de2afb435..588a5fe89 100644
--- a/src/DataConverter/NullConverter.php
+++ b/src/DataConverter/NullConverter.php
@@ -16,9 +16,6 @@
class NullConverter extends Converter
{
- /**
- * @return string
- */
public function getEncodingType(): string
{
return EncodingKeys::METADATA_ENCODING_NULL;
@@ -26,7 +23,6 @@ public function getEncodingType(): string
/**
* @param mixed $value
- * @return Payload|null
*/
public function toPayload($value): ?Payload
{
@@ -38,8 +34,6 @@ public function toPayload($value): ?Payload
}
/**
- * @param Payload $payload
- * @param Type $type
* @return null
*/
public function fromPayload(Payload $payload, Type $type)
diff --git a/src/DataConverter/PayloadConverterInterface.php b/src/DataConverter/PayloadConverterInterface.php
index e28629737..24b125787 100644
--- a/src/DataConverter/PayloadConverterInterface.php
+++ b/src/DataConverter/PayloadConverterInterface.php
@@ -18,8 +18,6 @@ interface PayloadConverterInterface
{
/**
* Returns associated encoding type.
- *
- * @return string
*/
public function getEncodingType(): string;
@@ -27,15 +25,12 @@ public function getEncodingType(): string;
* Implements conversion of a single value to Payload. Must return null if value can't be encoded.
*
* @param mixed $value
- * @return Payload|null
*
* @throws DataConverterException
*/
public function toPayload($value): ?Payload;
/**
- * @param Payload $payload
- * @param Type $type
* @return mixed
*
* @throws DataConverterException
diff --git a/src/DataConverter/ProtoConverter.php b/src/DataConverter/ProtoConverter.php
index 6d085d4b0..a29276505 100644
--- a/src/DataConverter/ProtoConverter.php
+++ b/src/DataConverter/ProtoConverter.php
@@ -17,9 +17,6 @@
class ProtoConverter extends Converter
{
- /**
- * @return string
- */
public function getEncodingType(): string
{
return EncodingKeys::METADATA_ENCODING_PROTOBUF;
@@ -27,7 +24,6 @@ public function getEncodingType(): string
/**
* @param mixed $value
- * @return Payload|null
*/
public function toPayload($value): ?Payload
{
@@ -35,12 +31,19 @@ public function toPayload($value): ?Payload
return null;
}
- return $this->create($value->serializeToString());
+ $payload = $this->create($value->serializeToString());
+
+ $payload->setMetadata([
+ EncodingKeys::METADATA_ENCODING_KEY => $this->getEncodingType(),
+ EncodingKeys::METADATA_MESSAGE_TYPE => \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool()
+ ->getDescriptorByClassName($value::class)
+ ?->getFullName(),
+ ]);
+
+ return $payload;
}
/**
- * @param Payload $payload
- * @param Type $type
* @return Message
* @throws DataConverterException
*/
diff --git a/src/DataConverter/ProtoJsonConverter.php b/src/DataConverter/ProtoJsonConverter.php
index bb230733f..34daf6599 100644
--- a/src/DataConverter/ProtoJsonConverter.php
+++ b/src/DataConverter/ProtoJsonConverter.php
@@ -17,9 +17,6 @@
class ProtoJsonConverter extends Converter
{
- /**
- * @return string
- */
public function getEncodingType(): string
{
return EncodingKeys::METADATA_ENCODING_PROTOBUF_JSON;
@@ -27,7 +24,6 @@ public function getEncodingType(): string
/**
* @param mixed $value
- * @return Payload|null
*/
public function toPayload($value): ?Payload
{
@@ -35,12 +31,19 @@ public function toPayload($value): ?Payload
return null;
}
- return $this->create($value->serializeToJsonString());
+ $payload = $this->create($value->serializeToJsonString());
+
+ $payload->setMetadata([
+ EncodingKeys::METADATA_ENCODING_KEY => $this->getEncodingType(),
+ EncodingKeys::METADATA_MESSAGE_TYPE => \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool()
+ ->getDescriptorByClassName($value::class)
+ ?->getFullName(),
+ ]);
+
+ return $payload;
}
/**
- * @param Payload $payload
- * @param Type $type
* @return Message
* @throws DataConverterException
*/
diff --git a/src/DataConverter/Type.php b/src/DataConverter/Type.php
index caeb9ee0d..70af788ee 100644
--- a/src/DataConverter/Type.php
+++ b/src/DataConverter/Type.php
@@ -30,19 +30,14 @@ final class Type
public const TYPE_TRUE = 'true';
public const TYPE_FALSE = 'false';
- /**
- * @var bool
- */
private readonly bool $allowsNull;
/**
* @param TypeEnum|string $name
- * @param bool|null $allowsNull
- * @param bool $isArrayOf
*/
public function __construct(
private readonly string $name = Type::TYPE_ANY,
- bool $allowsNull = null,
+ ?bool $allowsNull = null,
private readonly bool $isArrayOf = false,
) {
$this->allowsNull = $allowsNull ?? (
@@ -55,52 +50,11 @@ public static function arrayOf(string $class): self
return new self($class, null, true);
}
- /**
- * @return string
- */
- public function getName(): string
- {
- return $this->name;
- }
-
- /**
- * @return bool
- */
- public function allowsNull(): bool
- {
- return $this->allowsNull;
- }
-
- /**
- * @return bool
- */
- public function isUntyped(): bool
- {
- return $this->name === self::TYPE_ANY;
- }
-
- /**
- * @return bool
- */
- public function isClass(): bool
- {
- return \class_exists($this->name);
- }
-
- /**
- * @param \ReflectionClass $class
- * @param bool $nullable
- * @return Type
- */
public static function fromReflectionClass(\ReflectionClass $class, bool $nullable = false): self
{
return new self($class->getName(), $nullable);
}
- /**
- * @param \ReflectionType $type
- * @return Type
- */
public static function fromReflectionType(\ReflectionType $type): self
{
if ($type instanceof \ReflectionNamedType) {
@@ -122,7 +76,6 @@ public static function fromReflectionType(\ReflectionType $type): self
/**
* @param string|\ReflectionClass|\ReflectionType|Type|ReturnType $type
- * @return Type
*/
public static function create($type): Type
{
@@ -147,6 +100,26 @@ public static function create($type): Type
}
}
+ public function getName(): string
+ {
+ return $this->name;
+ }
+
+ public function allowsNull(): bool
+ {
+ return $this->allowsNull;
+ }
+
+ public function isUntyped(): bool
+ {
+ return $this->name === self::TYPE_ANY;
+ }
+
+ public function isClass(): bool
+ {
+ return \class_exists($this->name);
+ }
+
public function isArrayOf(): bool
{
return $this->isArrayOf;
diff --git a/src/DataConverter/ValuesInterface.php b/src/DataConverter/ValuesInterface.php
index fbf8361cb..f1d3a662e 100644
--- a/src/DataConverter/ValuesInterface.php
+++ b/src/DataConverter/ValuesInterface.php
@@ -15,34 +15,31 @@
/**
* @psalm-import-type TypeEnum from Type
+ *
+ * @method mixed[] getValues() Returns all values as array.
*/
interface ValuesInterface extends \Countable
{
/**
* Checks if any value present.
- *
- * @return bool
*/
public function isEmpty(): bool;
- /**
- * @param DataConverterInterface $converter
- */
public function setDataConverter(DataConverterInterface $converter);
/**
* Get value by it's index.
*
- * @param int $index
- * @param Type|TypeEnum|mixed $type
+ * Returns {@see null} if there are no values and $type has null value
+ * like {@see null}, {@see Type::TYPE_VOID} or {@see Type::TYPE_NULL}.
+ *
+ * @param string|\ReflectionClass|\ReflectionType|Type|null $type
* @return mixed
*/
public function getValue(int $index, $type);
/**
* Returns associated payloads.
- *
- * @return Payloads
*/
public function toPayloads(): Payloads;
}
diff --git a/src/Exception/Client/ActivityCanceledException.php b/src/Exception/Client/ActivityCanceledException.php
index 2cdf4f843..97cf19688 100644
--- a/src/Exception/Client/ActivityCanceledException.php
+++ b/src/Exception/Client/ActivityCanceledException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception\Client;
-class ActivityCanceledException extends ActivityCompletionException
-{
-}
+class ActivityCanceledException extends ActivityCompletionException {}
diff --git a/src/Exception/Client/ActivityCompletionException.php b/src/Exception/Client/ActivityCompletionException.php
index 1759a7f5d..daeed894c 100644
--- a/src/Exception/Client/ActivityCompletionException.php
+++ b/src/Exception/Client/ActivityCompletionException.php
@@ -22,39 +22,6 @@ class ActivityCompletionException extends TemporalException
private ?string $activityId = null;
/**
- * @return string|null
- */
- public function getWorkflowId(): ?string
- {
- return $this->workflowId;
- }
-
- /**
- * @return string|null
- */
- public function getRunId(): ?string
- {
- return $this->runId;
- }
-
- /**
- * @return string|null
- */
- public function getActivityType(): ?string
- {
- return $this->activityType;
- }
-
- /**
- * @return string|null
- */
- public function getActivityId(): ?string
- {
- return $this->activityId;
- }
-
- /**
- * @param \Throwable $e
* @return static
*/
public static function fromPrevious(\Throwable $e): self
@@ -62,13 +29,11 @@ public static function fromPrevious(\Throwable $e): self
return new static(
$e->getMessage(),
$e->getCode(),
- $e
+ $e,
);
}
/**
- * @param string $activityId
- * @param \Throwable $e
* @return static
*/
public static function fromPreviousWithActivityId(string $activityId, \Throwable $e): self
@@ -80,11 +45,9 @@ public static function fromPreviousWithActivityId(string $activityId, \Throwable
}
/**
- * @param ActivityInfo $info
- * @param \Throwable|null $e
* @return static
*/
- public static function fromActivityInfo(ActivityInfo $info, \Throwable $e = null): self
+ public static function fromActivityInfo(ActivityInfo $info, ?\Throwable $e = null): self
{
$e = new static(
self::buildMessage(
@@ -93,10 +56,10 @@ public static function fromActivityInfo(ActivityInfo $info, \Throwable $e = null
'runId' => $info->workflowExecution->getRunID(),
'activityId' => $info->id,
'activityType' => $info->type->name,
- ]
+ ],
),
$e === null ? 0 : $e->getCode(),
- $e
+ $e,
);
$e->activityId = $info->id;
@@ -106,4 +69,24 @@ public static function fromActivityInfo(ActivityInfo $info, \Throwable $e = null
return $e;
}
+
+ public function getWorkflowId(): ?string
+ {
+ return $this->workflowId;
+ }
+
+ public function getRunId(): ?string
+ {
+ return $this->runId;
+ }
+
+ public function getActivityType(): ?string
+ {
+ return $this->activityType;
+ }
+
+ public function getActivityId(): ?string
+ {
+ return $this->activityId;
+ }
}
diff --git a/src/Exception/Client/ActivityCompletionFailureException.php b/src/Exception/Client/ActivityCompletionFailureException.php
index a1f44a66d..534d02320 100644
--- a/src/Exception/Client/ActivityCompletionFailureException.php
+++ b/src/Exception/Client/ActivityCompletionFailureException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception\Client;
-class ActivityCompletionFailureException extends ActivityCompletionException
-{
-}
+class ActivityCompletionFailureException extends ActivityCompletionException {}
diff --git a/src/Exception/Client/ActivityNotExistsException.php b/src/Exception/Client/ActivityNotExistsException.php
index 96379f5be..a5313a8bc 100644
--- a/src/Exception/Client/ActivityNotExistsException.php
+++ b/src/Exception/Client/ActivityNotExistsException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception\Client;
-class ActivityNotExistsException extends ActivityCompletionException
-{
-}
+class ActivityNotExistsException extends ActivityCompletionException {}
diff --git a/src/Exception/Client/ActivityWorkerShutdownException.php b/src/Exception/Client/ActivityWorkerShutdownException.php
index 3d182178f..5eddeeb3b 100644
--- a/src/Exception/Client/ActivityWorkerShutdownException.php
+++ b/src/Exception/Client/ActivityWorkerShutdownException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception\Client;
-class ActivityWorkerShutdownException extends ActivityCompletionException
-{
-}
+class ActivityWorkerShutdownException extends ActivityCompletionException {}
diff --git a/src/Exception/Client/CanceledException.php b/src/Exception/Client/CanceledException.php
new file mode 100644
index 000000000..944f15261
--- /dev/null
+++ b/src/Exception/Client/CanceledException.php
@@ -0,0 +1,19 @@
+&RepeatedField $details
+ */
+ private function __construct(
+ private readonly \Traversable $details,
+ private readonly string $message,
+ ) {}
+
+ public static function fromMessage(OperationStatusMessage $message): self
+ {
+ return new self($message->getDetails(), $message->getMessage());
+ }
+
+ public function getMessage(): string
+ {
+ return $this->message;
+ }
+
+ /**
+ * @return \ArrayAccess&RepeatedField
+ */
+ private function getDetails(): \Traversable
+ {
+ return $this->details;
+ }
+}
diff --git a/src/Exception/Client/ServiceClientException.php b/src/Exception/Client/ServiceClientException.php
index cca9679ab..fbd2df4f3 100644
--- a/src/Exception/Client/ServiceClientException.php
+++ b/src/Exception/Client/ServiceClientException.php
@@ -14,21 +14,17 @@
use Google\Protobuf\Any;
use Google\Protobuf\Internal\RepeatedField;
use Google\Rpc\Status;
-use GPBMetadata\Temporal\Api\Errordetails\V1\Message;
class ServiceClientException extends \RuntimeException
{
- /**
- * @var Status
- */
+ use UnpackDetailsTrait;
+
private Status $status;
/**
- * @param \stdClass $status
- * @param \Throwable|null $previous
* @throws \Exception
*/
- public function __construct(\stdClass $status, \Throwable $previous = null)
+ public function __construct(\stdClass $status, ?\Throwable $previous = null)
{
$this->status = new Status();
@@ -36,49 +32,23 @@ public function __construct(\stdClass $status, \Throwable $previous = null)
$this->status->mergeFromString($status->metadata['grpc-status-details-bin'][0]);
}
- parent::__construct($status->details . " (code: $status->code)", $status->code, $previous);
+ parent::__construct(\sprintf(
+ "%s (code: %d)",
+ isset($status->details) ? (string) $status->details : '',
+ $status->code,
+ ), $status->code, $previous);
}
- /**
- * @return Status
- */
public function getStatus(): Status
{
return $this->status;
}
/**
- * @return RepeatedField
+ * @return \ArrayAccess&RepeatedField
*/
public function getDetails(): RepeatedField
{
return $this->status->getDetails();
}
-
- /**
- * @link https://dev.to/khepin/grpc-advanced-error-handling-from-go-to-php-1omc
- *
- * @param string $class
- * @return object|null
- * @throws \Exception
- */
- public function getFailure(string $class): ?object
- {
- $details = $this->getDetails();
- if ($details->count() === 0) {
- return null;
- }
-
- // ensures that message descriptor was added to the pool
- Message::initOnce();
-
- /** @var Any $detail */
- foreach ($details as $detail) {
- if ($detail->is($class)) {
- return $detail->unpack();
- }
- }
-
- return null;
- }
}
diff --git a/src/Exception/Client/TimeoutException.php b/src/Exception/Client/TimeoutException.php
index 93f135a48..52fcfae95 100644
--- a/src/Exception/Client/TimeoutException.php
+++ b/src/Exception/Client/TimeoutException.php
@@ -13,6 +13,7 @@
use Temporal\Exception\TemporalException;
-class TimeoutException extends TemporalException
-{
-}
+/**
+ * RPC timeout or cancellation.
+ */
+class TimeoutException extends TemporalException {}
diff --git a/src/Exception/Client/UnpackDetailsTrait.php b/src/Exception/Client/UnpackDetailsTrait.php
new file mode 100644
index 000000000..783400f79
--- /dev/null
+++ b/src/Exception/Client/UnpackDetailsTrait.php
@@ -0,0 +1,48 @@
+ $class
+ * @return T|null
+ * @throws \Exception
+ */
+ public function getFailure(string $class): ?object
+ {
+ $details = $this->getDetails();
+ if ($details->count() === 0) {
+ return null;
+ }
+
+ // ensures that message descriptor was added to the pool
+ Message::initOnce();
+
+ /** @var Any $detail */
+ foreach ($details as $detail) {
+ if ($detail->is($class)) {
+ return $detail->unpack();
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * @return \ArrayAccess&RepeatedField
+ */
+ abstract private function getDetails(): iterable;
+}
diff --git a/src/Exception/Client/WorkflowException.php b/src/Exception/Client/WorkflowException.php
index 4de40ab80..9b6bb869c 100644
--- a/src/Exception/Client/WorkflowException.php
+++ b/src/Exception/Client/WorkflowException.php
@@ -16,27 +16,14 @@
class WorkflowException extends TemporalException
{
- /**
- * @var WorkflowExecution
- */
private WorkflowExecution $execution;
-
- /**
- * @var string|null
- */
private ?string $type;
- /**
- * @param string|null $message
- * @param WorkflowExecution $execution
- * @param string|null $workflowType
- * @param \Throwable|null $previous
- */
public function __construct(
?string $message,
WorkflowExecution $execution,
- string $workflowType = null,
- \Throwable $previous = null
+ ?string $workflowType = null,
+ ?\Throwable $previous = null,
) {
parent::__construct(
self::buildMessage(
@@ -44,42 +31,30 @@ public function __construct(
'message' => $message,
'runId' => $execution->getRunID(),
'workflowType' => $workflowType,
- ]
+ ],
),
0,
- $previous
+ $previous,
);
$this->execution = $execution;
$this->type = $workflowType;
}
- /**
- * @return WorkflowExecution
- */
+ public static function withoutMessage(
+ WorkflowExecution $execution,
+ ?string $workflowType = null,
+ ?\Throwable $previous = null,
+ ): WorkflowException {
+ return new static(null, $execution, $workflowType, $previous);
+ }
+
public function getExecution(): WorkflowExecution
{
return $this->execution;
}
- /**
- * @return string|null
- */
public function getWorkflowType(): ?string
{
return $this->type;
}
-
- /**
- * @param WorkflowExecution $execution
- * @param string|null $workflowType
- * @param \Throwable|null $previous
- * @return WorkflowException
- */
- public static function withoutMessage(
- WorkflowExecution $execution,
- string $workflowType = null,
- \Throwable $previous = null
- ): WorkflowException {
- return new static(null, $execution, $workflowType, $previous);
- }
}
diff --git a/src/Exception/Client/WorkflowExecutionAlreadyStartedException.php b/src/Exception/Client/WorkflowExecutionAlreadyStartedException.php
index 54ca8b4d3..28c31e801 100644
--- a/src/Exception/Client/WorkflowExecutionAlreadyStartedException.php
+++ b/src/Exception/Client/WorkflowExecutionAlreadyStartedException.php
@@ -15,15 +15,10 @@
class WorkflowExecutionAlreadyStartedException extends WorkflowException
{
- /**
- * @param WorkflowExecution $execution
- * @param string|null $type
- * @param \Throwable|null $previous
- */
public function __construct(
WorkflowExecution $execution,
- string $type = null,
- \Throwable $previous = null
+ ?string $type = null,
+ ?\Throwable $previous = null,
) {
parent::__construct(null, $execution, $type, $previous);
}
diff --git a/src/Exception/Client/WorkflowFailedException.php b/src/Exception/Client/WorkflowFailedException.php
index 13b34fc6e..1307131d5 100644
--- a/src/Exception/Client/WorkflowFailedException.php
+++ b/src/Exception/Client/WorkflowFailedException.php
@@ -18,25 +18,16 @@ class WorkflowFailedException extends WorkflowException
private int $lastWorkflowTaskCompletedEventId;
/**
- * @param WorkflowExecution $execution
- * @param string|null $type
- * @param int $lastWorkflowTaskCompletedEventId
- * @param int $retryState
- * @param \Throwable|null $previous
+ * @param non-empty-string|null $type
*/
public function __construct(
WorkflowExecution $execution,
?string $type,
int $lastWorkflowTaskCompletedEventId,
int $retryState,
- \Throwable $previous = null
+ ?\Throwable $previous = null,
) {
- parent::__construct(
- null,
- $execution,
- $type,
- $previous
- );
+ parent::__construct(null, $execution, $type, $previous);
$this->message = self::buildMessage(
[
@@ -45,15 +36,12 @@ public function __construct(
'workflowType' => $type,
'workflowTaskCompletedEventId' => $lastWorkflowTaskCompletedEventId,
'retryState' => $retryState,
- ]
+ ],
);
$this->lastWorkflowTaskCompletedEventId = $lastWorkflowTaskCompletedEventId;
}
- /**
- * @return int
- */
public function getWorkflowTaskCompletedEventId(): int
{
return $this->lastWorkflowTaskCompletedEventId;
diff --git a/src/Exception/Client/WorkflowNotFoundException.php b/src/Exception/Client/WorkflowNotFoundException.php
index dca9f8f9e..58c056c70 100644
--- a/src/Exception/Client/WorkflowNotFoundException.php
+++ b/src/Exception/Client/WorkflowNotFoundException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception\Client;
-class WorkflowNotFoundException extends WorkflowException
-{
-}
+class WorkflowNotFoundException extends WorkflowException {}
diff --git a/src/Exception/Client/WorkflowQueryException.php b/src/Exception/Client/WorkflowQueryException.php
index 178667380..42014911d 100644
--- a/src/Exception/Client/WorkflowQueryException.php
+++ b/src/Exception/Client/WorkflowQueryException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception\Client;
-class WorkflowQueryException extends WorkflowException
-{
-}
+class WorkflowQueryException extends WorkflowException {}
diff --git a/src/Exception/Client/WorkflowQueryRejectedException.php b/src/Exception/Client/WorkflowQueryRejectedException.php
index 6081abe95..538644e13 100644
--- a/src/Exception/Client/WorkflowQueryRejectedException.php
+++ b/src/Exception/Client/WorkflowQueryRejectedException.php
@@ -15,42 +15,26 @@
class WorkflowQueryRejectedException extends WorkflowQueryException
{
- /**
- * @var int
- */
private int $queryRejectCondition;
private int $workflowExecutionStatus;
- /**
- * @param WorkflowExecution $execution
- * @param string $type
- * @param int $queryRejectCondition
- * @param int $workflowExecutionStatus
- * @param \Throwable|null $previous
- */
public function __construct(
WorkflowExecution $execution,
string $type,
int $queryRejectCondition,
int $workflowExecutionStatus,
- \Throwable $previous = null
+ ?\Throwable $previous = null,
) {
parent::__construct(null, $execution, $type, $previous);
$this->queryRejectCondition = $queryRejectCondition;
$this->workflowExecutionStatus = $workflowExecutionStatus;
}
- /**
- * @return int
- */
public function getQueryRejectCondition(): int
{
return $this->queryRejectCondition;
}
- /**
- * @return int
- */
public function getWorkflowExecutionStatus(): int
{
return $this->workflowExecutionStatus;
diff --git a/src/Exception/Client/WorkflowServiceException.php b/src/Exception/Client/WorkflowServiceException.php
index b67d10c6e..20d350609 100644
--- a/src/Exception/Client/WorkflowServiceException.php
+++ b/src/Exception/Client/WorkflowServiceException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception\Client;
-class WorkflowServiceException extends WorkflowException
-{
-}
+class WorkflowServiceException extends WorkflowException {}
diff --git a/src/Exception/Client/WorkflowUpdateException.php b/src/Exception/Client/WorkflowUpdateException.php
new file mode 100644
index 000000000..d269e6d4d
--- /dev/null
+++ b/src/Exception/Client/WorkflowUpdateException.php
@@ -0,0 +1,38 @@
+updateId;
+ }
+
+ public function getUpdateName(): string
+ {
+ return $this->updateName;
+ }
+}
diff --git a/src/Exception/Client/WorkflowUpdateRPCTimeoutOrCanceledException.php b/src/Exception/Client/WorkflowUpdateRPCTimeoutOrCanceledException.php
new file mode 100644
index 000000000..0958c66bb
--- /dev/null
+++ b/src/Exception/Client/WorkflowUpdateRPCTimeoutOrCanceledException.php
@@ -0,0 +1,33 @@
+getPrevious(),
+ );
+ }
+}
diff --git a/src/Exception/CompensationException.php b/src/Exception/CompensationException.php
index 8f5c7bfe3..2793aef77 100644
--- a/src/Exception/CompensationException.php
+++ b/src/Exception/CompensationException.php
@@ -18,9 +18,6 @@ class CompensationException extends TemporalException
*/
private array $suppressed = [];
- /**
- * @param \Throwable $e
- */
public function addSuppressed(\Throwable $e): void
{
$this->suppressed[] = $e;
diff --git a/src/Exception/DataConverterException.php b/src/Exception/DataConverterException.php
index 126d54509..593f6fdae 100644
--- a/src/Exception/DataConverterException.php
+++ b/src/Exception/DataConverterException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception;
-class DataConverterException extends TemporalException
-{
-}
+class DataConverterException extends TemporalException {}
diff --git a/src/Exception/DestructMemorizedInstanceException.php b/src/Exception/DestructMemorizedInstanceException.php
index 7ed5e08c3..3dff191d5 100644
--- a/src/Exception/DestructMemorizedInstanceException.php
+++ b/src/Exception/DestructMemorizedInstanceException.php
@@ -17,6 +17,4 @@
*
* @internal
*/
-class DestructMemorizedInstanceException extends TemporalException
-{
-}
+class DestructMemorizedInstanceException extends TemporalException {}
diff --git a/src/Exception/ExceptionInterceptor.php b/src/Exception/ExceptionInterceptor.php
index 4eb08aff8..b55c857f6 100644
--- a/src/Exception/ExceptionInterceptor.php
+++ b/src/Exception/ExceptionInterceptor.php
@@ -17,23 +17,21 @@
*/
class ExceptionInterceptor implements ExceptionInterceptorInterface
{
- /**
- * @var array
- */
private array $retryableErrors;
- /**
- * @param array $retryableErrors
- */
public function __construct(array $retryableErrors)
{
$this->retryableErrors = $retryableErrors;
}
/**
- * @param \Throwable $e
- * @return bool
+ * @return static
*/
+ public static function createDefault(): self
+ {
+ return new self([\Error::class]);
+ }
+
public function isRetryable(\Throwable $e): bool
{
foreach ($this->retryableErrors as $retryableError) {
@@ -44,12 +42,4 @@ public function isRetryable(\Throwable $e): bool
return false;
}
-
- /**
- * @return static
- */
- public static function createDefault(): self
- {
- return new self([\Error::class]);
- }
}
diff --git a/src/Exception/ExceptionInterceptorInterface.php b/src/Exception/ExceptionInterceptorInterface.php
index 2b7ffd9db..0fefdce5c 100644
--- a/src/Exception/ExceptionInterceptorInterface.php
+++ b/src/Exception/ExceptionInterceptorInterface.php
@@ -17,9 +17,5 @@
*/
interface ExceptionInterceptorInterface
{
- /**
- * @param \Throwable $e
- * @return bool
- */
public function isRetryable(\Throwable $e): bool;
}
diff --git a/src/Exception/FailedCancellationException.php b/src/Exception/FailedCancellationException.php
index 3992b7b7c..2d41dab3a 100644
--- a/src/Exception/FailedCancellationException.php
+++ b/src/Exception/FailedCancellationException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception;
-class FailedCancellationException extends TemporalException
-{
-}
+class FailedCancellationException extends TemporalException {}
diff --git a/src/Exception/Failure/ActivityFailure.php b/src/Exception/Failure/ActivityFailure.php
index a76906965..04adac67d 100644
--- a/src/Exception/Failure/ActivityFailure.php
+++ b/src/Exception/Failure/ActivityFailure.php
@@ -20,15 +20,6 @@ class ActivityFailure extends TemporalFailure
private string $identity;
private int $retryState;
- /**
- * @param int $scheduledEventId
- * @param int $startedEventId
- * @param string $activityType
- * @param string $activityId
- * @param int $retryState
- * @param string $identity
- * @param \Throwable|null $previous
- */
public function __construct(
int $scheduledEventId,
int $startedEventId,
@@ -36,7 +27,7 @@ public function __construct(
string $activityId,
int $retryState,
string $identity,
- \Throwable $previous = null
+ ?\Throwable $previous = null,
) {
parent::__construct(
self::buildMessage(
@@ -47,10 +38,10 @@ public function __construct(
'activityId' => $activityId,
'identity' => $identity,
'retryState' => $retryState,
- ]
+ ],
),
null,
- $previous
+ $previous,
);
$this->scheduledEventId = $scheduledEventId;
@@ -61,49 +52,31 @@ public function __construct(
$this->retryState = $retryState;
}
- /**
- * @return int
- */
public function getScheduledEventId(): int
{
return $this->scheduledEventId;
}
- /**
- * @return int
- */
public function getStartedEventId(): int
{
return $this->startedEventId;
}
- /**
- * @return string
- */
public function getActivityType(): string
{
return $this->activityType;
}
- /**
- * @return string
- */
public function getActivityId(): string
{
return $this->activityId;
}
- /**
- * @return string
- */
public function getIdentity(): string
{
return $this->identity;
}
- /**
- * @return int
- */
public function getRetryState(): int
{
return $this->retryState;
diff --git a/src/Exception/Failure/ApplicationFailure.php b/src/Exception/Failure/ApplicationFailure.php
index f781ff887..3aceb7cd9 100644
--- a/src/Exception/Failure/ApplicationFailure.php
+++ b/src/Exception/Failure/ApplicationFailure.php
@@ -47,23 +47,21 @@ class ApplicationFailure extends TemporalFailure
private bool $nonRetryable;
/**
- * @param string $message
- * @param string $type
- * @param bool $nonRetryable
- * @param ValuesInterface|null $details
- * @param \Throwable|null $previous
+ * @param ValuesInterface|null $details Optional details about the failure.
+ * @param \DateInterval|null $nextRetryDelay Delay before the next retry attempt.
*/
public function __construct(
string $message,
string $type,
bool $nonRetryable,
- ValuesInterface $details = null,
- \Throwable $previous = null
+ ?ValuesInterface $details = null,
+ ?\Throwable $previous = null,
+ private ?\DateInterval $nextRetryDelay = null,
) {
parent::__construct(
- self::buildMessage(compact('message', 'type', 'nonRetryable')),
+ self::buildMessage(\compact('message', 'type', 'nonRetryable')),
$message,
- $previous
+ $previous,
);
$this->type = $type;
@@ -71,43 +69,38 @@ public function __construct(
$this->details = $details ?? EncodedValues::empty();
}
- /**
- * @return string
- */
public function getType(): string
{
return $this->type;
}
- /**
- * @return ValuesInterface
- */
public function getDetails(): ValuesInterface
{
return $this->details;
}
- /**
- * @return bool
- */
+ public function getNextRetryDelay(): ?\DateInterval
+ {
+ return $this->nextRetryDelay;
+ }
+
public function isNonRetryable(): bool
{
return $this->nonRetryable;
}
- /**
- * @param bool $nonRetryable
- */
public function setNonRetryable(bool $nonRetryable): void
{
$this->nonRetryable = $nonRetryable;
}
- /**
- * @param DataConverterInterface $converter
- */
public function setDataConverter(DataConverterInterface $converter): void
{
$this->details->setDataConverter($converter);
}
+
+ public function setNextRetryDelay(?\DateInterval $nextRetryDelay): void
+ {
+ $this->nextRetryDelay = $nextRetryDelay;
+ }
}
diff --git a/src/Exception/Failure/CanceledFailure.php b/src/Exception/Failure/CanceledFailure.php
index 640f85213..6a983d940 100644
--- a/src/Exception/Failure/CanceledFailure.php
+++ b/src/Exception/Failure/CanceledFailure.php
@@ -19,28 +19,17 @@ class CanceledFailure extends TemporalFailure
{
private ValuesInterface $details;
- /**
- * @param string $message
- * @param ValuesInterface|null $details
- * @param \Throwable|null $previous
- */
- public function __construct(string $message, ValuesInterface $details = null, \Throwable $previous = null)
+ public function __construct(string $message, ?ValuesInterface $details = null, ?\Throwable $previous = null)
{
parent::__construct($message, '', $previous);
$this->details = $details ?? EncodedValues::empty();
}
- /**
- * @return ValuesInterface
- */
public function getDetails(): ValuesInterface
{
return $this->details;
}
- /**
- * @param DataConverterInterface $converter
- */
public function setDataConverter(DataConverterInterface $converter): void
{
$this->details->setDataConverter($converter);
diff --git a/src/Exception/Failure/ChildWorkflowFailure.php b/src/Exception/Failure/ChildWorkflowFailure.php
index 9480c0639..f01ebd5e0 100644
--- a/src/Exception/Failure/ChildWorkflowFailure.php
+++ b/src/Exception/Failure/ChildWorkflowFailure.php
@@ -22,15 +22,6 @@ class ChildWorkflowFailure extends TemporalFailure
private WorkflowExecution $execution;
private string $workflowType;
- /**
- * @param int $initiatedEventId
- * @param int $startedEventId
- * @param string $workflowType
- * @param WorkflowExecution $execution
- * @param string $namespace
- * @param int $retryState
- * @param \Throwable|null $previous
- */
public function __construct(
int $initiatedEventId,
int $startedEventId,
@@ -38,7 +29,7 @@ public function __construct(
WorkflowExecution $execution,
string $namespace,
int $retryState,
- \Throwable $previous = null
+ ?\Throwable $previous = null,
) {
parent::__construct(
self::buildMessage(
@@ -50,10 +41,10 @@ public function __construct(
'startedEventId' => $startedEventId,
'namespace' => $namespace,
'retryState' => $retryState,
- ]
+ ],
),
null,
- $previous
+ $previous,
);
$this->initiatedEventId = $initiatedEventId;
@@ -64,49 +55,31 @@ public function __construct(
$this->retryState = $retryState;
}
- /**
- * @return int
- */
public function getInitiatedEventId(): int
{
return $this->initiatedEventId;
}
- /**
- * @return int
- */
public function getStartedEventId(): int
{
return $this->startedEventId;
}
- /**
- * @return string
- */
public function getNamespace(): string
{
return $this->namespace;
}
- /**
- * @return int
- */
public function getRetryState(): int
{
return $this->retryState;
}
- /**
- * @return WorkflowExecution
- */
public function getExecution(): WorkflowExecution
{
return $this->execution;
}
- /**
- * @return string
- */
public function getWorkflowType(): string
{
return $this->workflowType;
diff --git a/src/Exception/Failure/FailureConverter.php b/src/Exception/Failure/FailureConverter.php
index 39b13db42..066b95529 100644
--- a/src/Exception/Failure/FailureConverter.php
+++ b/src/Exception/Failure/FailureConverter.php
@@ -11,7 +11,6 @@
namespace Temporal\Exception\Failure;
-use Psr\Log\LoggerInterface;
use Temporal\Api\Common\V1\ActivityType;
use Temporal\Api\Common\V1\WorkflowExecution;
use Temporal\Api\Common\V1\WorkflowType;
@@ -26,19 +25,10 @@
use Temporal\DataConverter\DataConverterInterface;
use Temporal\DataConverter\EncodedValues;
use Temporal\Exception\Client\ActivityCanceledException;
+use Temporal\Internal\Support\DateInterval;
final class FailureConverter
{
- /**
- * @var LoggerInterface|null
- */
- private static ?LoggerInterface $logger;
-
- /**
- * @param Failure $failure
- * @param DataConverterInterface $converter
- * @return TemporalFailure
- */
public static function mapFailureToException(Failure $failure, DataConverterInterface $converter): TemporalFailure
{
$e = self::createFailureException($failure, $converter);
@@ -51,11 +41,6 @@ public static function mapFailureToException(Failure $failure, DataConverterInte
return $e;
}
- /**
- * @param \Throwable $e
- * @param DataConverterInterface $converter
- * @return Failure
- */
public static function mapExceptionToFailure(\Throwable $e, DataConverterInterface $converter): Failure
{
$failure = new Failure();
@@ -74,7 +59,7 @@ public static function mapExceptionToFailure(\Throwable $e, DataConverterInterfa
$failure->setMessage($e->getMessage());
- $failure->setSource('PHP_SDK')->setStackTrace((string)$e);
+ $failure->setSource('PHP_SDK')->setStackTrace(self::generateStackTraceString($e));
if ($e->getPrevious() !== null) {
$failure->setCause(self::mapExceptionToFailure($e->getPrevious(), $converter));
@@ -86,6 +71,10 @@ public static function mapExceptionToFailure(\Throwable $e, DataConverterInterfa
$info->setType($e->getType());
$info->setNonRetryable($e->isNonRetryable());
+ // Set Next Retry Delay
+ $nextRetry = DateInterval::toDuration($e->getNextRetryDelay());
+ $nextRetry === null or $info->setNextRetryDelay($nextRetry);
+
if (!$e->getDetails()->isEmpty()) {
$info->setDetails($e->getDetails()->toPayloads());
}
@@ -126,7 +115,7 @@ public static function mapExceptionToFailure(\Throwable $e, DataConverterInterfa
$info
->setActivityId($e->getActivityId())
->setActivityType(new ActivityType([
- 'name' => $e->getActivityType()
+ 'name' => $e->getActivityType(),
]))
->setIdentity($e->getIdentity())
->setRetryState($e->getRetryState())
@@ -144,7 +133,7 @@ public static function mapExceptionToFailure(\Throwable $e, DataConverterInterfa
->setNamespace($e->getNamespace())
->setRetryState($e->getRetryState())
->setWorkflowType(new WorkflowType([
- 'name' => $e->getWorkflowType()
+ 'name' => $e->getWorkflowType(),
]))
->setWorkflowExecution(new WorkflowExecution([
'workflow_id' => $e->getExecution()->getID(),
@@ -160,7 +149,7 @@ public static function mapExceptionToFailure(\Throwable $e, DataConverterInterfa
default:
$info = new ApplicationFailureInfo();
- $info->setType(get_class($e));
+ $info->setType($e::class);
$info->setNonRetryable(false);
$failure->setApplicationFailureInfo($info);
}
@@ -168,19 +157,6 @@ public static function mapExceptionToFailure(\Throwable $e, DataConverterInterfa
return $failure;
}
- /**
- * @param LoggerInterface $logger
- */
- public function setLogger(LoggerInterface $logger): void
- {
- self::$logger = $logger;
- }
-
- /**
- * @param Failure $failure
- * @param DataConverterInterface $converter
- * @return TemporalFailure
- */
private static function createFailureException(Failure $failure, DataConverterInterface $converter): TemporalFailure
{
$previous = null;
@@ -192,22 +168,24 @@ private static function createFailureException(Failure $failure, DataConverterIn
switch (true) {
case $failure->hasApplicationFailureInfo():
$info = $failure->getApplicationFailureInfo();
+ \assert($info instanceof ApplicationFailureInfo);
$details = $info->hasDetails()
? EncodedValues::fromPayloads($info->getDetails(), $converter)
- : EncodedValues::empty()
- ;
+ : EncodedValues::empty();
return new ApplicationFailure(
$failure->getMessage(),
$info->getType(),
$info->getNonRetryable(),
$details,
- $previous
+ $previous,
+ DateInterval::parseOrNull($info->getNextRetryDelay()),
);
case $failure->hasTimeoutFailureInfo():
$info = $failure->getTimeoutFailureInfo();
+ \assert($info instanceof TimeoutFailureInfo);
$details = $info->hasLastHeartbeatDetails()
? EncodedValues::fromPayloads($info->getLastHeartbeatDetails(), $converter)
@@ -218,6 +196,7 @@ private static function createFailureException(Failure $failure, DataConverterIn
case $failure->hasCanceledFailureInfo():
$info = $failure->getCanceledFailureInfo();
+ \assert($info instanceof CanceledFailureInfo);
$details = $info->hasDetails()
? EncodedValues::fromPayloads($info->getDetails(), $converter)
@@ -231,25 +210,26 @@ private static function createFailureException(Failure $failure, DataConverterIn
case $failure->hasServerFailureInfo():
$info = $failure->getServerFailureInfo();
+ \assert($info instanceof ServerFailureInfo);
return new ServerFailure($failure->getMessage(), $info->getNonRetryable(), $previous);
case $failure->hasResetWorkflowFailureInfo():
$info = $failure->getResetWorkflowFailureInfo();
$details = $info->hasLastHeartbeatDetails()
? EncodedValues::fromPayloads($info->getLastHeartbeatDetails(), $converter)
- : EncodedValues::empty()
- ;
+ : EncodedValues::empty();
return new ApplicationFailure(
$failure->getMessage(),
'ResetWorkflow',
false,
$details,
- $previous
+ $previous,
);
case $failure->hasActivityFailureInfo():
$info = $failure->getActivityFailureInfo();
+ \assert($info instanceof ActivityFailureInfo);
return new ActivityFailure(
$info->getScheduledEventId(),
@@ -258,12 +238,13 @@ private static function createFailureException(Failure $failure, DataConverterIn
$info->getActivityId(),
$info->getRetryState(),
$info->getIdentity(),
- $previous
+ $previous,
);
case $failure->hasChildWorkflowExecutionFailureInfo():
$info = $failure->getChildWorkflowExecutionFailureInfo();
$execution = $info->getWorkflowExecution();
+ \assert($execution instanceof WorkflowExecution);
return new ChildWorkflowFailure(
$info->getInitiatedEventId(),
@@ -275,11 +256,107 @@ private static function createFailureException(Failure $failure, DataConverterIn
),
$info->getNamespace(),
$info->getRetryState(),
- $previous
+ $previous,
);
default:
throw new \InvalidArgumentException('Failure info not set');
}
}
+
+ private static function generateStackTraceString(\Throwable $e, bool $skipInternal = true): string
+ {
+ /** @var list|null,
+ * file?: non-empty-string|null,
+ * class?: class-string|null,
+ * object?: object|null,
+ * type?: string|null,
+ * args?: array|null
+ * }> $frames
+ */
+ $frames = $e->getTrace();
+
+ $numPad = \strlen((string) (\count($frames) - 1)) + 2;
+ // Skipped frames
+ $internals = [];
+ $isFirst = true;
+ $result = [];
+
+ foreach ($frames as $i => $frame) {
+ if (!\is_array($frame)) {
+ continue;
+ }
+
+ $renderer = static fn(): string => \sprintf(
+ "%s%s%s\n%s%s%s%s(%s)",
+ \str_pad("#$i", $numPad, ' '),
+ $frame['file'] ?? '[internal function]',
+ isset($frame['line']) ? ":{$frame['line']}" : '',
+ \str_repeat(' ', $numPad),
+ $frame['class'] ?? '',
+ $frame['type'] ?? '',
+ $frame['function'] ?? '',
+ self::renderTraceAttributes($frame['args'] ?? []),
+ );
+
+ if ($skipInternal && \str_starts_with($frame['class'] ?? '', 'Temporal\\')) {
+ if (!$isFirst) {
+ $internals[] = $renderer;
+ $isFirst = false;
+ continue;
+ }
+
+ $skipInternal = false;
+ }
+
+ $isFirst = false;
+ if (\count($internals) > 2) {
+ $result[] = \sprintf(
+ '[%d hidden internal calls]',
+ \count($internals),
+ );
+ } else {
+ $result = [...$result, ...\array_map(static fn(callable $renderer) => $renderer(), $internals)];
+ }
+
+ $internals = [];
+ $result[] = $renderer();
+ }
+
+ if ($internals !== []) {
+ $result[] = \sprintf('[%d hidden internal calls]', \count($internals));
+ }
+
+ return \implode("\n", $result);
+ }
+
+ private static function renderTraceAttributes(array $args): string
+ {
+ if ($args === []) {
+ return '';
+ }
+
+ $result = [];
+ foreach ($args as $arg) {
+ $result[] = match (true) {
+ $arg => 'true',
+ $arg === false => 'false',
+ $arg === null => 'null',
+ \is_array($arg) => 'array(' . \count($arg) . ')',
+ \is_object($arg) => \get_class($arg),
+ \is_string($arg) => (string) \json_encode(
+ \strlen($arg) > 50
+ ? \substr($arg, 0, 50) . '...'
+ : $arg,
+ JSON_UNESCAPED_UNICODE | JSON_INVALID_UTF8_SUBSTITUTE,
+ ),
+ \is_scalar($arg) => (string) $arg,
+ default => \get_debug_type($arg),
+ };
+ }
+
+ return \implode(',', $result);
+ }
}
diff --git a/src/Exception/Failure/ServerFailure.php b/src/Exception/Failure/ServerFailure.php
index 6c751f0f0..b61a66ae6 100644
--- a/src/Exception/Failure/ServerFailure.php
+++ b/src/Exception/Failure/ServerFailure.php
@@ -15,24 +15,16 @@ class ServerFailure extends TemporalFailure
{
private bool $nonRetryable;
- /**
- * @param string $message
- * @param bool $nonRetryable
- * @param \Throwable|null $previous
- */
- public function __construct(string $message, bool $nonRetryable, \Throwable $previous = null)
+ public function __construct(string $message, bool $nonRetryable, ?\Throwable $previous = null)
{
parent::__construct(
$message,
$message,
- $previous
+ $previous,
);
$this->nonRetryable = $nonRetryable;
}
- /**
- * @return bool
- */
public function isNonRetryable(): bool
{
return $this->nonRetryable;
diff --git a/src/Exception/Failure/TemporalFailure.php b/src/Exception/Failure/TemporalFailure.php
index bddc807ac..8fdee6c77 100644
--- a/src/Exception/Failure/TemporalFailure.php
+++ b/src/Exception/Failure/TemporalFailure.php
@@ -35,99 +35,71 @@ class TemporalFailure extends TemporalException implements \Stringable
private string $originalMessage;
private ?string $originalStackTrace = null;
- /**
- * @param string $message
- * @param string|null $originalMessage
- * @param \Throwable|null $previous
- */
- public function __construct(string $message, string $originalMessage = null, \Throwable $previous = null)
+ public function __construct(string $message, ?string $originalMessage = null, ?\Throwable $previous = null)
{
parent::__construct($message, 0, $previous);
$this->originalMessage = $originalMessage ?? '';
}
- /**
- * @return string
- */
- public function __toString(): string
- {
- if ($this->hasOriginalStackTrace()) {
- return (string)$this->getOriginalStackTrace();
- }
-
- return parent::__toString();
- }
-
- /**
- * @return Failure|null
- */
public function getFailure(): ?Failure
{
return $this->failure;
}
- /**
- * @param Failure|null $failure
- */
public function setFailure(?Failure $failure): void
{
$this->failure = $failure;
}
- /**
- * @return string
- */
public function getOriginalMessage(): string
{
return $this->originalMessage;
}
- /**
- * @param string $stackTrace
- */
public function setOriginalStackTrace(string $stackTrace): void
{
$this->originalStackTrace = $stackTrace;
- $this->message .= "\nOriginalStackTrace:\n" . $this->originalStackTrace;
+ $this->message .= "\nStackTrace:\n" . $this->originalStackTrace;
}
/**
- * @return bool
+ * @psalm-assert-if-true non-empty-string $this->originalStackTrace
+ * @psalm-assert-if-false null $this->originalStackTrace
*/
public function hasOriginalStackTrace(): bool
{
return $this->originalStackTrace !== null;
}
- /**
- * @return string|null
- */
public function getOriginalStackTrace(): ?string
{
return $this->originalStackTrace;
}
- /**
- * @param DataConverterInterface $converter
- */
public function setDataConverter(DataConverterInterface $converter): void
{
// typically handled by children
}
+ public function __toString(): string
+ {
+ if ($this->hasOriginalStackTrace()) {
+ return (string) $this->getOriginalStackTrace();
+ }
+
+ return parent::__toString();
+ }
+
/**
* Explain known types of key=>value pairs.
- *
- * @param array $values
- * @return string
*/
protected static function buildMessage(array $values): string
{
$mapped = [
- 'timeoutType' => fn ($value) => TimeoutType::name($value),
- 'timeoutWorkflowType' => fn ($value) => TimeoutType::name($value),
- 'retryState' => fn ($value) => RetryState::name($value),
+ 'timeoutType' => static fn($value) => TimeoutType::name($value),
+ 'timeoutWorkflowType' => static fn($value) => TimeoutType::name($value),
+ 'retryState' => static fn($value) => RetryState::name($value),
];
$result = [];
diff --git a/src/Exception/Failure/TerminatedFailure.php b/src/Exception/Failure/TerminatedFailure.php
index badfb7e82..396f65ea3 100644
--- a/src/Exception/Failure/TerminatedFailure.php
+++ b/src/Exception/Failure/TerminatedFailure.php
@@ -13,11 +13,7 @@
class TerminatedFailure extends TemporalFailure
{
- /**
- * @param string $message
- * @param \Throwable|null $previous
- */
- public function __construct(string $message, \Throwable $previous = null)
+ public function __construct(string $message, ?\Throwable $previous = null)
{
parent::__construct($message, $message, $previous);
}
diff --git a/src/Exception/Failure/TimeoutFailure.php b/src/Exception/Failure/TimeoutFailure.php
index b4f24c584..13d24fddc 100644
--- a/src/Exception/Failure/TimeoutFailure.php
+++ b/src/Exception/Failure/TimeoutFailure.php
@@ -19,47 +19,32 @@ class TimeoutFailure extends TemporalFailure
private ValuesInterface $lastHeartbeatDetails;
private int $timeoutType;
- /**
- * @param string $message
- * @param ValuesInterface $lastHeartbeatDetails
- * @param int $timeoutWorkflowType
- * @param \Throwable|null $previous
- */
public function __construct(
string $message,
ValuesInterface $lastHeartbeatDetails,
int $timeoutWorkflowType,
- \Throwable $previous = null
+ ?\Throwable $previous = null,
) {
parent::__construct(
- self::buildMessage(compact('message', 'timeoutWorkflowType')),
+ self::buildMessage(\compact('message', 'timeoutWorkflowType') + ['type' => 'TimeoutFailure']),
$message,
- $previous
+ $previous,
);
$this->lastHeartbeatDetails = $lastHeartbeatDetails;
$this->timeoutType = $timeoutWorkflowType;
}
- /**
- * @return int
- */
public function getTimeoutType(): int
{
return $this->timeoutType;
}
- /**
- * @return ValuesInterface
- */
public function getLastHeartbeatDetails(): ValuesInterface
{
return $this->lastHeartbeatDetails;
}
- /**
- * @param DataConverterInterface $converter
- */
public function setDataConverter(DataConverterInterface $converter): void
{
$this->lastHeartbeatDetails->setDataConverter($converter);
diff --git a/src/Exception/IllegalStateException.php b/src/Exception/IllegalStateException.php
index f37e9c23a..255052d9e 100644
--- a/src/Exception/IllegalStateException.php
+++ b/src/Exception/IllegalStateException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception;
-class IllegalStateException extends TemporalException
-{
-}
+class IllegalStateException extends TemporalException {}
diff --git a/src/Exception/InstantiationException.php b/src/Exception/InstantiationException.php
index 4581fd8bb..d0e380473 100644
--- a/src/Exception/InstantiationException.php
+++ b/src/Exception/InstantiationException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception;
-class InstantiationException extends TemporalException
-{
-}
+class InstantiationException extends TemporalException {}
diff --git a/src/Exception/InvalidArgumentException.php b/src/Exception/InvalidArgumentException.php
index a8f40f102..be87d0e66 100644
--- a/src/Exception/InvalidArgumentException.php
+++ b/src/Exception/InvalidArgumentException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception;
-class InvalidArgumentException extends TemporalException
-{
-}
+class InvalidArgumentException extends TemporalException {}
diff --git a/src/Exception/MarshallerException.php b/src/Exception/MarshallerException.php
new file mode 100644
index 000000000..b55e42514
--- /dev/null
+++ b/src/Exception/MarshallerException.php
@@ -0,0 +1,14 @@
+ $values
*/
protected static function buildMessage(array $values): string
{
+ $body = '';
$result = [];
+ if (isset($values['type'], $values['message'])) {
+ $body = "{$values['type']}: {$values['message']}\n";
+ unset($values['type'], $values['message']);
+
+ if (isset($values['file'], $values['line'])) {
+ $body .= "in {$values['file']}:{$values['line']}\n";
+ unset($values['file'], $values['line']);
+ }
+
+ $body .= "\n";
+ }
+
foreach ($values as $k => $value) {
if ($value) {
$result[] = \sprintf('%s=%s', $k, \var_export($value, true));
}
}
- return implode(', ', $result);
+ return \rtrim($body . \implode(', ', $result));
}
}
diff --git a/src/Exception/TransportException.php b/src/Exception/TransportException.php
index f9d6a1cf9..eb514eeba 100644
--- a/src/Exception/TransportException.php
+++ b/src/Exception/TransportException.php
@@ -11,6 +11,4 @@
namespace Temporal\Exception;
-class TransportException extends TemporalException
-{
-}
+class TransportException extends TemporalException {}
diff --git a/src/Exception/WorkflowExecutionFailedException.php b/src/Exception/WorkflowExecutionFailedException.php
index e9f9db736..73675d32c 100644
--- a/src/Exception/WorkflowExecutionFailedException.php
+++ b/src/Exception/WorkflowExecutionFailedException.php
@@ -15,26 +15,12 @@
class WorkflowExecutionFailedException extends TemporalException
{
- /**
- * @var Failure
- */
private Failure $failure;
-
- /**
- * @var int
- */
private int $lastWorkflowTaskCompletedEventId;
-
- /**
- * @var int
- */
private int $retryState;
/**
* WorkflowExecutionFailedException constructor.
- * @param Failure $failure
- * @param int $lastWorkflowTaskCompletedEventId
- * @param int $retryState
*/
public function __construct(Failure $failure, int $lastWorkflowTaskCompletedEventId, int $retryState)
{
@@ -44,25 +30,16 @@ public function __construct(Failure $failure, int $lastWorkflowTaskCompletedEven
$this->retryState = $retryState;
}
- /**
- * @return Failure
- */
public function getFailure(): Failure
{
return $this->failure;
}
- /**
- * @return int
- */
public function getWorkflowTaskCompletedEventId(): int
{
return $this->lastWorkflowTaskCompletedEventId;
}
- /**
- * @return int
- */
public function getRetryState(): int
{
return $this->retryState;
diff --git a/src/Interceptor/ActivityInbound/ActivityInput.php b/src/Interceptor/ActivityInbound/ActivityInput.php
new file mode 100644
index 000000000..2289bdeb1
--- /dev/null
+++ b/src/Interceptor/ActivityInbound/ActivityInput.php
@@ -0,0 +1,40 @@
+arguments,
+ $header ?? $this->header,
+ );
+ }
+}
diff --git a/src/Interceptor/ActivityInboundInterceptor.php b/src/Interceptor/ActivityInboundInterceptor.php
new file mode 100644
index 000000000..299b26971
--- /dev/null
+++ b/src/Interceptor/ActivityInboundInterceptor.php
@@ -0,0 +1,32 @@
+ $this->toPayloadArray()]);
+ }
+}
diff --git a/src/Interceptor/HeaderInterface.php b/src/Interceptor/HeaderInterface.php
new file mode 100644
index 000000000..6bd6497c1
--- /dev/null
+++ b/src/Interceptor/HeaderInterface.php
@@ -0,0 +1,46 @@
+
+ */
+interface HeaderInterface extends \Countable, IteratorAggregate
+{
+ /**
+ * Checks if any value present.
+ */
+ public function isEmpty(): bool;
+
+ /**
+ * @param TKey $name
+ * @param Type|TypeEnum|mixed $type
+ *
+ * @return mixed Returns {@see null} if value not found.
+ */
+ public function getValue(int|string $name, mixed $type = null): mixed;
+
+ /**
+ * @param TKey $name
+ * @param TValue $value
+ *
+ * @psalm-mutation-free
+ */
+ public function withValue(int|string $name, mixed $value): static;
+}
diff --git a/src/Interceptor/PipelineProvider.php b/src/Interceptor/PipelineProvider.php
new file mode 100644
index 000000000..f5c3afc72
--- /dev/null
+++ b/src/Interceptor/PipelineProvider.php
@@ -0,0 +1,33 @@
+ $interceptorClass Only interceptors of this type will be returned in pipeline.
+ *
+ * @return Pipeline
+ */
+ public function getPipeline(string $interceptorClass): Pipeline;
+}
diff --git a/src/Interceptor/SimplePipelineProvider.php b/src/Interceptor/SimplePipelineProvider.php
new file mode 100644
index 000000000..56360f6a1
--- /dev/null
+++ b/src/Interceptor/SimplePipelineProvider.php
@@ -0,0 +1,37 @@
+ $interceptors
+ */
+ public function __construct(
+ private iterable $interceptors = [],
+ ) {}
+
+ public function getPipeline(string $interceptorClass): Pipeline
+ {
+ return $this->cache[$interceptorClass] ??= Pipeline::prepare(
+ \array_filter(
+ $this->interceptors,
+ static fn(Interceptor $i): bool => $i instanceof $interceptorClass,
+ ),
+ );
+ }
+}
diff --git a/src/Interceptor/Trait/ActivityInboundInterceptorTrait.php b/src/Interceptor/Trait/ActivityInboundInterceptorTrait.php
new file mode 100644
index 000000000..125e907cc
--- /dev/null
+++ b/src/Interceptor/Trait/ActivityInboundInterceptorTrait.php
@@ -0,0 +1,33 @@
+ $this->executeActivityRequest($request, $next),
+ ExecuteLocalActivity::class => $this->executeLocalActivityRequest($request, $next),
+ ExecuteChildWorkflow::class => $this->executeChildWorkflowRequest($request, $next),
+ ContinueAsNew::class => $this->continueAsNewRequest($request, $next),
+ NewTimer::class => $this->newTimerRequest($request, $next),
+ CompleteWorkflow::class => $this->completeWorkflowRequest($request, $next),
+ SignalExternalWorkflow::class => $this->signalExternalWorkflowRequest($request, $next),
+ CancelExternalWorkflow::class => $this->cancelExternalWorkflowRequest($request, $next),
+ GetVersion::class => $this->getVersionRequest($request, $next),
+ Panic::class => $this->panicRequest($request, $next),
+ SideEffect::class => $this->sideEffectRequest($request, $next),
+ UpsertSearchAttributes::class => $this->upsertSearchAttributesRequest($request, $next),
+ Cancel::class => $this->cancelRequest($request, $next),
+ default => $next($request),
+ };
+ }
+
+ /**
+ * @param callable(ExecuteActivity): PromiseInterface $next
+ */
+ private function executeActivityRequest(ExecuteActivity $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(ExecuteLocalActivity): PromiseInterface $next
+ */
+ private function executeLocalActivityRequest(ExecuteLocalActivity $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(ExecuteChildWorkflow): PromiseInterface $next
+ */
+ private function executeChildWorkflowRequest(ExecuteChildWorkflow $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(NewTimer): PromiseInterface $next
+ */
+ private function newTimerRequest(NewTimer $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(ContinueAsNew): PromiseInterface $next
+ */
+ private function continueAsNewRequest(ContinueAsNew $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(SignalExternalWorkflow): PromiseInterface $next
+ */
+ private function signalExternalWorkflowRequest(SignalExternalWorkflow $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(CompleteWorkflow): PromiseInterface $next
+ */
+ private function completeWorkflowRequest(CompleteWorkflow $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(CancelExternalWorkflow): PromiseInterface $next
+ */
+ private function cancelExternalWorkflowRequest(CancelExternalWorkflow $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(GetVersion): PromiseInterface $next
+ */
+ private function getVersionRequest(GetVersion $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(Panic): PromiseInterface $next
+ */
+ private function panicRequest(Panic $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(SideEffect): PromiseInterface $next
+ */
+ private function sideEffectRequest(SideEffect $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(UpsertSearchAttributes): PromiseInterface $next
+ */
+ private function upsertSearchAttributesRequest(UpsertSearchAttributes $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+
+ /**
+ * @param callable(Cancel): PromiseInterface $next
+ */
+ private function cancelRequest(Cancel $request, callable $next): PromiseInterface
+ {
+ return $next($request);
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/CancelInput.php b/src/Interceptor/WorkflowClient/CancelInput.php
new file mode 100644
index 000000000..4e37ea0d4
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/CancelInput.php
@@ -0,0 +1,36 @@
+workflowExecution,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/DescribeInput.php b/src/Interceptor/WorkflowClient/DescribeInput.php
new file mode 100644
index 000000000..e616d6c84
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/DescribeInput.php
@@ -0,0 +1,39 @@
+workflowExecution,
+ $namespace ?? $this->namespace,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/GetResultInput.php b/src/Interceptor/WorkflowClient/GetResultInput.php
new file mode 100644
index 000000000..03febaf63
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/GetResultInput.php
@@ -0,0 +1,44 @@
+workflowExecution,
+ $workflowType ?? $this->workflowType,
+ $timeout ?? $this->timeout,
+ $this->type,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/QueryInput.php b/src/Interceptor/WorkflowClient/QueryInput.php
new file mode 100644
index 000000000..6a28df073
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/QueryInput.php
@@ -0,0 +1,45 @@
+workflowExecution,
+ $this->workflowType,
+ $queryType ?? $this->queryType,
+ $arguments ?? $this->arguments,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/SignalInput.php b/src/Interceptor/WorkflowClient/SignalInput.php
new file mode 100644
index 000000000..97b1533e1
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/SignalInput.php
@@ -0,0 +1,44 @@
+workflowExecution,
+ $this->workflowType,
+ $signalName ?? $this->signalName,
+ $arguments ?? $this->arguments,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/SignalWithStartInput.php b/src/Interceptor/WorkflowClient/SignalWithStartInput.php
new file mode 100644
index 000000000..52c22b2c6
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/SignalWithStartInput.php
@@ -0,0 +1,47 @@
+workflowStartInput,
+ $signalName ?? $this->signalName,
+ $signalArguments ?? $this->signalArguments,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/StartInput.php b/src/Interceptor/WorkflowClient/StartInput.php
new file mode 100644
index 000000000..5c7cc03d0
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/StartInput.php
@@ -0,0 +1,48 @@
+workflowId,
+ $this->workflowType,
+ $header ?? $this->header,
+ $arguments ?? $this->arguments,
+ $options ?? $this->options,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/StartUpdateOutput.php b/src/Interceptor/WorkflowClient/StartUpdateOutput.php
new file mode 100644
index 000000000..c3c59e5de
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/StartUpdateOutput.php
@@ -0,0 +1,38 @@
+reference;
+ }
+
+ public function hasResult(): bool
+ {
+ return $this->hasResult;
+ }
+
+ public function getResult(): ?ValuesInterface
+ {
+ return $this->result;
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/TerminateInput.php b/src/Interceptor/WorkflowClient/TerminateInput.php
new file mode 100644
index 000000000..85f284f7d
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/TerminateInput.php
@@ -0,0 +1,39 @@
+workflowExecution,
+ $reason ?? $this->reason,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/UpdateInput.php b/src/Interceptor/WorkflowClient/UpdateInput.php
new file mode 100644
index 000000000..47a530945
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/UpdateInput.php
@@ -0,0 +1,64 @@
+workflowExecution,
+ $this->workflowType,
+ $updateName ?? $this->updateName,
+ $arguments ?? $this->arguments,
+ $header ?? $this->header,
+ $waitPolicy ?? $this->waitPolicy,
+ $updateId ?? $this->updateId,
+ $firstExecutionRunId ?? $this->firstExecutionRunId,
+ $resultType ?? $this->resultType,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/UpdateRef.php b/src/Interceptor/WorkflowClient/UpdateRef.php
new file mode 100644
index 000000000..b947bbe99
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/UpdateRef.php
@@ -0,0 +1,24 @@
+workflowStartInput,
+ $updateInput ?? $this->updateInput,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowClient/UpdateWithStartOutput.php b/src/Interceptor/WorkflowClient/UpdateWithStartOutput.php
new file mode 100644
index 000000000..83a81c306
--- /dev/null
+++ b/src/Interceptor/WorkflowClient/UpdateWithStartOutput.php
@@ -0,0 +1,23 @@
+workflowType);
+ *
+ * return $next($input);
+ * }
+ * }
+ * ```
+ *
+ * @see WorkflowClientCallsInterceptorTrait
+ */
+interface WorkflowClientCallsInterceptor extends Interceptor
+{
+ /**
+ * @param callable(StartInput): WorkflowExecution $next
+ */
+ public function start(StartInput $input, callable $next): WorkflowExecution;
+
+ /**
+ * @param callable(SignalInput): void $next
+ */
+ public function signal(SignalInput $input, callable $next): void;
+
+ /**
+ * @param callable(UpdateInput): StartUpdateOutput $next
+ */
+ public function update(UpdateInput $input, callable $next): StartUpdateOutput;
+
+ /**
+ * @param callable(SignalWithStartInput): WorkflowExecution $next
+ */
+ public function signalWithStart(SignalWithStartInput $input, callable $next): WorkflowExecution;
+
+ /**
+ * @param callable(UpdateWithStartInput): UpdateWithStartOutput $next
+ */
+ public function updateWithStart(UpdateWithStartInput $input, callable $next): UpdateWithStartOutput;
+
+ /**
+ * @param callable(GetResultInput): ?ValuesInterface $next
+ */
+ public function getResult(GetResultInput $input, callable $next): ?ValuesInterface;
+
+ /**
+ * @param callable(QueryInput): ?ValuesInterface $next
+ */
+ public function query(QueryInput $input, callable $next): ?ValuesInterface;
+
+ /**
+ * @param callable(CancelInput): void $next
+ */
+ public function cancel(CancelInput $input, callable $next): void;
+
+ /**
+ * @param callable(TerminateInput): void $next
+ */
+ public function terminate(TerminateInput $input, callable $next): void;
+
+ /**
+ * @param callable(DescribeInput): WorkflowExecutionDescription $next
+ */
+ public function describe(DescribeInput $input, callable $next): WorkflowExecutionDescription;
+}
diff --git a/src/Interceptor/WorkflowInbound/QueryInput.php b/src/Interceptor/WorkflowInbound/QueryInput.php
new file mode 100644
index 000000000..66071ab8c
--- /dev/null
+++ b/src/Interceptor/WorkflowInbound/QueryInput.php
@@ -0,0 +1,43 @@
+queryName,
+ $arguments ?? $this->arguments,
+ $info ?? $this->info,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowInbound/SignalInput.php b/src/Interceptor/WorkflowInbound/SignalInput.php
new file mode 100644
index 000000000..22986dd2d
--- /dev/null
+++ b/src/Interceptor/WorkflowInbound/SignalInput.php
@@ -0,0 +1,50 @@
+signalName,
+ $info ?? $this->info,
+ $arguments ?? $this->arguments,
+ $header ?? $this->header,
+ $this->isReplaying,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowInbound/UpdateInput.php b/src/Interceptor/WorkflowInbound/UpdateInput.php
new file mode 100644
index 000000000..c7aca57a1
--- /dev/null
+++ b/src/Interceptor/WorkflowInbound/UpdateInput.php
@@ -0,0 +1,52 @@
+updateName,
+ $this->updateId,
+ $info ?? $this->info,
+ $arguments ?? $this->arguments,
+ $header ?? $this->header,
+ $this->isReplaying,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowInbound/WorkflowInput.php b/src/Interceptor/WorkflowInbound/WorkflowInput.php
new file mode 100644
index 000000000..c07a5dca5
--- /dev/null
+++ b/src/Interceptor/WorkflowInbound/WorkflowInput.php
@@ -0,0 +1,46 @@
+info,
+ $arguments ?? $this->arguments,
+ $header ?? $this->header,
+ $this->isReplaying,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowInboundCallsInterceptor.php b/src/Interceptor/WorkflowInboundCallsInterceptor.php
new file mode 100644
index 000000000..9d54e39a0
--- /dev/null
+++ b/src/Interceptor/WorkflowInboundCallsInterceptor.php
@@ -0,0 +1,67 @@
+info('Workflow received signal: ' . $input->signalName);
+ *
+ * $next($input);
+ * }
+ * }
+ * ```
+ *
+ * @see WorkflowInboundCallsInterceptorTrait
+ */
+interface WorkflowInboundCallsInterceptor extends Interceptor
+{
+ /**
+ * @param callable(WorkflowInput): void $next
+ */
+ public function execute(WorkflowInput $input, callable $next): void;
+
+ /**
+ * @param callable(SignalInput): void $next
+ */
+ public function handleSignal(SignalInput $input, callable $next): void;
+
+ /**
+ * @param callable(QueryInput): mixed $next
+ */
+ public function handleQuery(QueryInput $input, callable $next): mixed;
+
+ /**
+ * @param callable(UpdateInput): mixed $next
+ */
+ public function handleUpdate(UpdateInput $input, callable $next): mixed;
+
+ /**
+ * @param callable(UpdateInput): void $next
+ */
+ public function validateUpdate(UpdateInput $input, callable $next): void;
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/AwaitInput.php b/src/Interceptor/WorkflowOutboundCalls/AwaitInput.php
new file mode 100644
index 000000000..91b387db4
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/AwaitInput.php
@@ -0,0 +1,35 @@
+ $conditions
+ */
+ public function __construct(
+ public readonly array $conditions,
+ ) {}
+
+ /**
+ * @param array $conditions
+ */
+ public function with(
+ ?array $conditions = null,
+ ): self {
+ return new self(
+ $conditions ?? $this->conditions,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/AwaitWithTimeoutInput.php b/src/Interceptor/WorkflowOutboundCalls/AwaitWithTimeoutInput.php
new file mode 100644
index 000000000..f34e6f07d
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/AwaitWithTimeoutInput.php
@@ -0,0 +1,45 @@
+ $conditions
+ */
+ public function __construct(
+ public readonly \DateInterval $interval,
+ public readonly array $conditions,
+ ) {}
+
+ /**
+ * @param array $conditions
+ */
+ public function with(
+ ?\DateInterval $interval = null,
+ ?array $conditions = null,
+ ): self {
+ return new self(
+ $interval ?? $this->interval,
+ $conditions ?? $this->conditions,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/CancelExternalWorkflowInput.php b/src/Interceptor/WorkflowOutboundCalls/CancelExternalWorkflowInput.php
new file mode 100644
index 000000000..bce01a9af
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/CancelExternalWorkflowInput.php
@@ -0,0 +1,40 @@
+namespace,
+ $workflowId ?? $this->workflowId,
+ $runId ?? $this->runId,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/CompleteInput.php b/src/Interceptor/WorkflowOutboundCalls/CompleteInput.php
new file mode 100644
index 000000000..99343342d
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/CompleteInput.php
@@ -0,0 +1,37 @@
+result,
+ $failure ?? $this->failure,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/ContinueAsNewInput.php b/src/Interceptor/WorkflowOutboundCalls/ContinueAsNewInput.php
new file mode 100644
index 000000000..f421b46aa
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/ContinueAsNewInput.php
@@ -0,0 +1,42 @@
+type,
+ $args ?? $this->args,
+ $options ?? $this->options,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/ExecuteActivityInput.php b/src/Interceptor/WorkflowOutboundCalls/ExecuteActivityInput.php
new file mode 100644
index 000000000..e28b5eb24
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/ExecuteActivityInput.php
@@ -0,0 +1,55 @@
+type,
+ $args ?? $this->args,
+ $options ?? $this->options,
+ $returnType ?? $this->returnType,
+ $method ?? $this->method,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/ExecuteChildWorkflowInput.php b/src/Interceptor/WorkflowOutboundCalls/ExecuteChildWorkflowInput.php
new file mode 100644
index 000000000..7882ffc27
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/ExecuteChildWorkflowInput.php
@@ -0,0 +1,45 @@
+type,
+ $args ?? $this->args,
+ $options ?? $this->options,
+ $returnType ?? $this->returnType,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/ExecuteLocalActivityInput.php b/src/Interceptor/WorkflowOutboundCalls/ExecuteLocalActivityInput.php
new file mode 100644
index 000000000..a6c6a431f
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/ExecuteLocalActivityInput.php
@@ -0,0 +1,55 @@
+type,
+ $args ?? $this->args,
+ $options ?? $this->options,
+ $returnType ?? $this->returnType,
+ $method ?? $this->method,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/GetVersionInput.php b/src/Interceptor/WorkflowOutboundCalls/GetVersionInput.php
new file mode 100644
index 000000000..aae679cd2
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/GetVersionInput.php
@@ -0,0 +1,40 @@
+changeId,
+ $minSupported ?? $this->minSupported,
+ $maxSupported ?? $this->maxSupported,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/PanicInput.php b/src/Interceptor/WorkflowOutboundCalls/PanicInput.php
new file mode 100644
index 000000000..de120b915
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/PanicInput.php
@@ -0,0 +1,41 @@
+failure,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/SideEffectInput.php b/src/Interceptor/WorkflowOutboundCalls/SideEffectInput.php
new file mode 100644
index 000000000..836218a13
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/SideEffectInput.php
@@ -0,0 +1,34 @@
+callable,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/SignalExternalWorkflowInput.php b/src/Interceptor/WorkflowOutboundCalls/SignalExternalWorkflowInput.php
new file mode 100644
index 000000000..43e115207
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/SignalExternalWorkflowInput.php
@@ -0,0 +1,51 @@
+namespace,
+ $workflowId ?? $this->workflowId,
+ $runId ?? $this->runId,
+ $signal ?? $this->signal,
+ $input ?? $this->input,
+ $childWorkflowOnly ?? $this->childWorkflowOnly,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/TimerInput.php b/src/Interceptor/WorkflowOutboundCalls/TimerInput.php
new file mode 100644
index 000000000..c5f9b61e4
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/TimerInput.php
@@ -0,0 +1,34 @@
+interval,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/UpsertMemoInput.php b/src/Interceptor/WorkflowOutboundCalls/UpsertMemoInput.php
new file mode 100644
index 000000000..ccc78f37f
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/UpsertMemoInput.php
@@ -0,0 +1,36 @@
+ $memo
+ *
+ * @no-named-arguments
+ * @internal Don't use the constructor. Use {@see self::with()} instead.
+ */
+ public function __construct(
+ public readonly array $memo,
+ ) {}
+
+ public function with(
+ ?array $memo = null,
+ ): self {
+ return new self(
+ $memo ?? $this->memo,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/UpsertSearchAttributesInput.php b/src/Interceptor/WorkflowOutboundCalls/UpsertSearchAttributesInput.php
new file mode 100644
index 000000000..db5f00e4f
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/UpsertSearchAttributesInput.php
@@ -0,0 +1,36 @@
+ $searchAttributes
+ *
+ * @no-named-arguments
+ * @internal Don't use the constructor. Use {@see self::with()} instead.
+ */
+ public function __construct(
+ public readonly array $searchAttributes,
+ ) {}
+
+ public function with(
+ ?array $searchAttributes = null,
+ ): self {
+ return new self(
+ $searchAttributes ?? $this->searchAttributes,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCalls/UpsertTypedSearchAttributesInput.php b/src/Interceptor/WorkflowOutboundCalls/UpsertTypedSearchAttributesInput.php
new file mode 100644
index 000000000..f439f6bf0
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCalls/UpsertTypedSearchAttributesInput.php
@@ -0,0 +1,41 @@
+ $updates
+ *
+ * @no-named-arguments
+ * @internal Don't use the constructor. Use {@see self::with()} instead.
+ */
+ public function __construct(
+ public readonly array $updates,
+ ) {}
+
+ /**
+ * @param array|null $updates
+ */
+ public function with(
+ ?array $updates = null,
+ ): self {
+ return new self(
+ $updates ?? $this->updates,
+ );
+ }
+}
diff --git a/src/Interceptor/WorkflowOutboundCallsInterceptor.php b/src/Interceptor/WorkflowOutboundCallsInterceptor.php
new file mode 100644
index 000000000..620f1a4f8
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundCallsInterceptor.php
@@ -0,0 +1,144 @@
+info('Calling activity: ' . $input->type);
+ *
+ * return $next($input);
+ * }
+ * }
+ * ```
+ */
+interface WorkflowOutboundCallsInterceptor extends Interceptor
+{
+ /**
+ * @param callable(ExecuteActivityInput): PromiseInterface $next
+ */
+ public function executeActivity(ExecuteActivityInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(ExecuteLocalActivityInput): PromiseInterface $next
+ */
+ public function executeLocalActivity(ExecuteLocalActivityInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(ExecuteChildWorkflowInput): PromiseInterface $next
+ */
+ public function executeChildWorkflow(ExecuteChildWorkflowInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(SignalExternalWorkflowInput): PromiseInterface $next
+ */
+ public function signalExternalWorkflow(SignalExternalWorkflowInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(CancelExternalWorkflowInput): PromiseInterface $next
+ */
+ public function cancelExternalWorkflow(CancelExternalWorkflowInput $input, callable $next): PromiseInterface;
+
+ /**
+ * Intercept {@see SideEffectInput::$callable} execution.
+ *
+ * @param callable(SideEffectInput): mixed $next
+ *
+ * @return mixed The result of the callable execution.
+ */
+ public function sideEffect(SideEffectInput $input, callable $next): mixed;
+
+ /**
+ * @param callable(TimerInput): PromiseInterface $next
+ */
+ public function timer(TimerInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(PanicInput): PromiseInterface $next
+ */
+ public function panic(PanicInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(CompleteInput): PromiseInterface $next
+ */
+ public function complete(CompleteInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(ContinueAsNewInput): PromiseInterface $next
+ */
+ public function continueAsNew(ContinueAsNewInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(GetVersionInput): PromiseInterface $next
+ */
+ public function getVersion(GetVersionInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(UpsertMemoInput): PromiseInterface $next
+ */
+ public function upsertMemo(UpsertMemoInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(UpsertSearchAttributesInput): PromiseInterface $next
+ */
+ public function upsertSearchAttributes(UpsertSearchAttributesInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(UpsertTypedSearchAttributesInput): PromiseInterface $next
+ */
+ public function upsertTypedSearchAttributes(
+ UpsertTypedSearchAttributesInput $input,
+ callable $next,
+ ): PromiseInterface;
+
+ /**
+ * @param callable(AwaitInput): PromiseInterface $next
+ */
+ public function await(AwaitInput $input, callable $next): PromiseInterface;
+
+ /**
+ * @param callable(AwaitWithTimeoutInput): PromiseInterface $next
+ */
+ public function awaitWithTimeout(AwaitWithTimeoutInput $input, callable $next): PromiseInterface;
+}
diff --git a/src/Interceptor/WorkflowOutboundRequestInterceptor.php b/src/Interceptor/WorkflowOutboundRequestInterceptor.php
new file mode 100644
index 000000000..f660cc1ec
--- /dev/null
+++ b/src/Interceptor/WorkflowOutboundRequestInterceptor.php
@@ -0,0 +1,45 @@
+info('Starting activity: ' . $request->getActivityName());
+ *
+ * return $next($request);
+ * }
+ * }
+ * ```
+ */
+interface WorkflowOutboundRequestInterceptor extends Interceptor
+{
+ /**
+ * @param callable(RequestInterface): PromiseInterface $next
+ */
+ public function handleOutboundRequest(RequestInterface $request, callable $next): PromiseInterface;
+}
diff --git a/src/Internal/Activity/ActivityContext.php b/src/Internal/Activity/ActivityContext.php
index 13751ef4a..5c5f126cf 100644
--- a/src/Internal/Activity/ActivityContext.php
+++ b/src/Internal/Activity/ActivityContext.php
@@ -20,10 +20,12 @@
use Temporal\Exception\Client\ActivityCanceledException;
use Temporal\Exception\Client\ActivityCompletionException;
use Temporal\Exception\Client\ServiceClientException;
+use Temporal\Interceptor\HeaderInterface;
+use Temporal\Internal\Interceptor\HeaderCarrier;
use Temporal\Internal\Marshaller\Meta\Marshal;
use Temporal\Worker\Transport\RPCConnectionInterface;
-final class ActivityContext implements ActivityContextInterface
+final class ActivityContext implements ActivityContextInterface, HeaderCarrier
{
#[Marshal(name: 'info')]
private ActivityInfo $info;
@@ -33,53 +35,60 @@ final class ActivityContext implements ActivityContextInterface
private DataConverterInterface $converter;
private ?ValuesInterface $heartbeatDetails;
private ValuesInterface $input;
+ private HeaderInterface $header;
+ private ?\WeakReference $instance = null;
- /**
- * @param RPCConnectionInterface $rpc
- * @param DataConverterInterface $converter
- * @param ValuesInterface $input
- * @param ValuesInterface|null $lastHeartbeatDetails
- */
public function __construct(
RPCConnectionInterface $rpc,
DataConverterInterface $converter,
ValuesInterface $input,
- ValuesInterface $lastHeartbeatDetails = null
+ HeaderInterface $header,
+ ?ValuesInterface $lastHeartbeatDetails = null,
) {
$this->info = new ActivityInfo();
$this->rpc = $rpc;
$this->converter = $converter;
$this->heartbeatDetails = $lastHeartbeatDetails;
$this->input = $input;
+ $this->header = $header;
}
- /**
- * {@inheritDoc}
- */
public function getInfo(): ActivityInfo
{
return $this->info;
}
- /**
- * {@inheritDoc}
- */
public function getInput(): ValuesInterface
{
return $this->input;
}
- /**
- * @return DataConverterInterface
- */
+ public function getHeader(): HeaderInterface
+ {
+ return $this->header;
+ }
+
+ public function withInput(ValuesInterface $input): self
+ {
+ $context = clone $this;
+ $context->input = $input;
+
+ return $context;
+ }
+
+ public function withHeader(HeaderInterface $header): self
+ {
+ $context = clone $this;
+ $context->header = $header;
+
+ return $context;
+ }
+
public function getDataConverter(): DataConverterInterface
{
return $this->converter;
}
- /**
- * @return bool
- */
public function hasHeartbeatDetails(): bool
{
return $this->heartbeatDetails !== null;
@@ -98,17 +107,11 @@ public function getHeartbeatDetails($type = null)
return $this->heartbeatDetails->getValue(0, $type);
}
- /**
- * {@inheritDoc}
- */
public function doNotCompleteOnReturn(): void
{
$this->doNotCompleteOnReturn = true;
}
- /**
- * @return bool
- */
public function isDoNotCompleteOnReturn(): bool
{
return $this->doNotCompleteOnReturn;
@@ -133,9 +136,9 @@ public function heartbeat($details): void
$response = $this->rpc->call(
'temporal.RecordActivityHeartbeat',
[
- 'taskToken' => base64_encode($this->info->taskToken),
- 'details' => base64_encode($details),
- ]
+ 'taskToken' => \base64_encode($this->info->taskToken),
+ 'details' => \base64_encode($details),
+ ],
);
if (!empty($response['canceled'])) {
@@ -145,4 +148,26 @@ public function heartbeat($details): void
throw ActivityCompletionException::fromActivityInfo($this->info, $e);
}
}
+
+ public function getInstance(): object
+ {
+ \assert($this->instance !== null, 'Activity instance is not available');
+ $activity = $this->instance->get();
+ \assert($activity !== null, 'Activity instance is not available');
+ return $activity;
+ }
+
+ /**
+ * Set activity instance.
+ *
+ * @param object $instance Activity instance.
+ * @return $this
+ * @internal
+ */
+ public function withInstance(object $instance): self
+ {
+ $clone = clone $this;
+ $clone->instance = \WeakReference::create($instance);
+ return $clone;
+ }
}
diff --git a/src/Internal/Assert.php b/src/Internal/Assert.php
index 41c603715..2827d6101 100644
--- a/src/Internal/Assert.php
+++ b/src/Internal/Assert.php
@@ -16,7 +16,6 @@ final class Assert
/**
* @param mixed $value
* @param class-string $enum
- * @return bool
*/
public static function enum($value, string $enum): bool
{
@@ -38,27 +37,23 @@ public static function enum($value, string $enum): bool
/**
* @param array