diff --git a/.github/workflows/job-pg-query-extension.yml b/.github/workflows/job-pg-query-extension.yml new file mode 100644 index 000000000..f849a7afe --- /dev/null +++ b/.github/workflows/job-pg-query-extension.yml @@ -0,0 +1,61 @@ +name: PG Query Extension + +on: + workflow_call: + secrets: + CODECOV_TOKEN: + required: false + +jobs: + build: + name: Build and Test Extension + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: ['8.2', '8.3', '8.4'] + + steps: + - uses: actions/checkout@v5 + + - name: Setup PHP Environment + uses: ./.github/actions/setup-php-env + with: + php-version: ${{ matrix.php }} + dependencies: locked + coverage: pcov + extensions: ':psr, bcmath, dom, hash, json, mbstring, xml, xmlwriter, xmlreader, zlib, protobuf' + tools: 'composer:v2, phpize, php-config' + + - name: Install build dependencies + run: | + sudo apt-get update + sudo apt-get install -y build-essential autoconf automake libtool protobuf-compiler libprotobuf-c-dev + + - name: Build libpg_query and extension + working-directory: src/extension/pg-query-ext + run: | + make clean || true + make build + + - name: Run extension tests + working-directory: src/extension/pg-query-ext + run: make test + + - name: Install extension + working-directory: src/extension/pg-query-ext + run: | + EXT_DIR=$(php -r 'echo ini_get("extension_dir");') + sudo cp ext/modules/pg_query.so "$EXT_DIR/" + echo "extension=pg_query.so" | sudo tee -a "$(php -r 'echo php_ini_loaded_file();')" + php -m | grep pg_query + + - name: Run pg-query library tests + run: composer test:lib:pg-query + + - name: Upload to Codecov + uses: ./.github/actions/codecov-report + with: + token: ${{ secrets.CODECOV_TOKEN }} + php-version: ${{ matrix.php }} + dependencies: locked diff --git a/.github/workflows/monorepo-split.yml b/.github/workflows/monorepo-split.yml index f3531c66f..d2c7fc6cb 100644 --- a/.github/workflows/monorepo-split.yml +++ b/.github/workflows/monorepo-split.yml @@ -42,6 +42,8 @@ jobs: split_repository: 'snappy' - local_path: 'src/lib/types' split_repository: 'types' + - local_path: 'src/lib/pg-query' + split_repository: 'pg-query' - local_path: 'src/adapter/etl-adapter-avro' split_repository: 'etl-adapter-avro' @@ -86,6 +88,9 @@ jobs: - local_path: 'src/tools/homebrew' split_repository: 'homebrew-flow' + - local_path: 'src/extension/pg-query-ext' + split_repository: 'pg-query-ext' + steps: - uses: actions/checkout@v5 diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 785fba6a2..9b17828dd 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -45,6 +45,10 @@ jobs: extension-tests: uses: ./.github/workflows/job-extension-tests.yml + pg-query-extension: + uses: ./.github/workflows/job-pg-query-extension.yml + secrets: inherit + windows-tests: uses: ./.github/workflows/job-windows-tests.yml diff --git a/.nix/pkgs/flow-php/package.nix b/.nix/pkgs/flow-php/package.nix index c56225e16..1c9959d92 100644 --- a/.nix/pkgs/flow-php/package.nix +++ b/.nix/pkgs/flow-php/package.nix @@ -4,9 +4,11 @@ php-lz4, php-brotli, php-zstd, + php-pg-query-ext, with-pcov ? true, with-xdebug ? false, - with-blackfire ? false + with-blackfire ? false, + with-pg-query-ext ? false }: let @@ -22,6 +24,7 @@ let (php-lz4.override { inherit php; }) (php-snappy.override { inherit php; }) (php-zstd.override { inherit php; }) + protobuf xmlreader xmlwriter zlib @@ -29,6 +32,7 @@ let ++ (if with-xdebug then [xdebug] else []) ++ (if with-pcov then [pcov] else []) ++ (if with-blackfire then [blackfire] else []) + ++ (if with-pg-query-ext then [(php-pg-query-ext.override { inherit php; })] else []) ); in flowPHP.buildEnv { diff --git a/.nix/pkgs/php-pg-query-ext/package.nix b/.nix/pkgs/php-pg-query-ext/package.nix new file mode 100644 index 000000000..b641ae74b --- /dev/null +++ b/.nix/pkgs/php-pg-query-ext/package.nix @@ -0,0 +1,72 @@ +{ + php, + lib, + stdenv, + fetchFromGitHub, + protobufc, +}: + +let + libpg_query = stdenv.mkDerivation { + pname = "libpg_query"; + version = "17-6.1.0"; + + src = fetchFromGitHub { + owner = "pganalyze"; + repo = "libpg_query"; + rev = "17-6.1.0"; + hash = "sha256-UXba2WYyIO7RcFcNZeLL+Q9CwlloMZ5oFfHfL7+j4dU="; + }; + + buildPhase = '' + make -j$NIX_BUILD_CORES + ''; + + installPhase = '' + mkdir -p $out/lib $out/include + cp libpg_query.a $out/lib/ + cp pg_query.h $out/include/ + ''; + }; + + extSrc = builtins.path { + path = ../../../src/extension/pg-query-ext/ext; + name = "pg-query-ext-src"; + filter = path: type: + let baseName = baseNameOf path; + in !( + # Exclude build artifacts + baseName == "Makefile" || + baseName == "configure" || + baseName == "config.h" || + baseName == "config.h.in" || + baseName == "config.log" || + baseName == "config.status" || + baseName == "config.nice" || + baseName == "configure.ac" || + baseName == "libtool" || + baseName == "run-tests.php" || + baseName == "autom4te.cache" || + baseName == "build" || + baseName == "modules" || + baseName == ".libs" || + lib.hasSuffix ".lo" baseName || + lib.hasSuffix ".la" baseName || + lib.hasSuffix ".dep" baseName || + lib.hasSuffix "~" baseName || + lib.hasPrefix "Makefile" baseName + ); + }; +in +php.buildPecl { + pname = "pg_query"; + version = "1.0.0"; + + src = extSrc; + + buildInputs = [ protobufc libpg_query ]; + + configureFlags = [ + "--with-pg-query=${libpg_query}" + ]; +} diff --git a/composer.json b/composer.json index b4c1c634d..2c95bf94f 100644 --- a/composer.json +++ b/composer.json @@ -27,6 +27,7 @@ "doctrine/dbal": "^3.6 || ^4.0", "elasticsearch/elasticsearch": "^7.6|^8.0", "google/apiclient": "^2.13", + "google/protobuf": "^4.0", "halaxa/json-machine": "^1.1", "meilisearch/meilisearch-php": "^1.11", "monolog/monolog": "^2.0||^3.0", @@ -93,7 +94,8 @@ "flow-php/parquet-viewer": "self.version", "flow-php/snappy": "self.version", "flow-php/symfony-http-foundation-bridge": "self.version", - "flow-php/types": "self.version" + "flow-php/types": "self.version", + "flow-php/pg-query": "self.version" }, "minimum-stability": "dev", "prefer-stable": true, @@ -130,6 +132,7 @@ "src/lib/parquet/src/Flow", "src/lib/snappy/src/Flow", "src/lib/types/src/Flow", + "src/lib/pg-query/src/Flow", "src/tools/documentation/src/Flow" ], "Flow\\Doctrine\\Bulk\\": [ @@ -167,7 +170,9 @@ "src/lib/parquet/src/Flow/Parquet/functions.php", "src/lib/parquet/src/stubs.php", "src/lib/snappy/polyfill.php", - "src/lib/types/src/Flow/Types/DSL/functions.php" + "src/lib/types/src/Flow/Types/DSL/functions.php", + "src/lib/pg-query/src/Flow/PgQuery/DSL/functions.php", + "src/lib/pg-query/src/stubs.php" ] }, "autoload-dev": { @@ -203,6 +208,7 @@ "src/lib/parquet/tests/Flow", "src/lib/snappy/tests/Flow", "src/lib/types/tests/Flow", + "src/lib/pg-query/tests/Flow", "src/tools/documentation/tests/Flow" ], "Flow\\Doctrine\\Bulk\\Tests\\": [ @@ -247,6 +253,7 @@ "@test:lib:filesystem", "@test:lib:parquet", "@test:lib:parquet-viewer", + "@test:lib:pg-query", "@test:lib:snappy", "@test:lib:types" ], @@ -307,6 +314,9 @@ "test:lib:types": [ "tools/phpunit/vendor/bin/phpunit --testsuite=lib-types-unit --log-junit ./var/phpunit/logs/lib-types-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/lib-types-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/lib-types-unit" ], + "test:lib:pg-query": [ + "tools/phpunit/vendor/bin/phpunit --testsuite=lib-pg-query-unit --log-junit ./var/phpunit/logs/lib-pg-query-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/lib-pg-query-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/lib-pg-query-unit" + ], "test:bridge:filesystem-azure": [ "tools/phpunit/vendor/bin/phpunit --testsuite=bridge-filesystem-azure-unit --log-junit ./var/phpunit/logs/bridge-filesystem-azure-unit.junit.xml --coverage-clover=./var/phpunit/coverage/clover/bridge-filesystem-azure-unit.coverage.xml --coverage-html=./var/phpunit/coverage/html/bridge-filesystem-azure-unit", "tools/phpunit/vendor/bin/phpunit --testsuite=bridge-filesystem-azure-integration --log-junit ./var/phpunit/logs/bridge-filesystem-azure-integration.junit.xml --coverage-clover=./var/phpunit/coverage/clover/bridge-filesystem-azure-integration.coverage.xml --coverage-html=./var/phpunit/coverage/html/bridge-filesystem-azure-integration" @@ -479,6 +489,11 @@ "thrift --gen php --out src/lib/parquet/src src/lib/parquet/src/Flow/Parquet/Resources/Thrift/parquet.thrift", "@cs:php:fix" ], + "build:pg-query:protobuf": [ + "rm -rf src/lib/pg-query/src/Flow/PgQuery/Protobuf", + "protoc --php_out=src/lib/pg-query/src --proto_path=src/lib/pg-query/resources/proto pg_query.proto", + "@cs:php:fix" + ], "pre-autoload-dump": [ "Google\\Task\\Composer::cleanup" ], diff --git a/composer.lock b/composer.lock index 258bb663d..59990204c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6903ea785014f457442da551242cc609", + "content-hash": "e1c47f46e87d296ad8e095c857acca7a", "packages": [ { "name": "async-aws/core", @@ -768,6 +768,50 @@ }, "time": "2025-11-06T21:27:55+00:00" }, + { + "name": "google/protobuf", + "version": "v4.33.1", + "source": { + "type": "git", + "url": "https://github.com/protocolbuffers/protobuf-php.git", + "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/protocolbuffers/protobuf-php/zipball/0cd73ccf0cd26c3e72299cce1ea6144091a57e12", + "reference": "0cd73ccf0cd26c3e72299cce1ea6144091a57e12", + "shasum": "" + }, + "require": { + "php": ">=8.1.0" + }, + "require-dev": { + "phpunit/phpunit": ">=5.0.0 <8.5.27" + }, + "suggest": { + "ext-bcmath": "Need to support JSON deserialization" + }, + "type": "library", + "autoload": { + "psr-4": { + "Google\\Protobuf\\": "src/Google/Protobuf", + "GPBMetadata\\Google\\Protobuf\\": "src/GPBMetadata/Google/Protobuf" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "proto library for PHP", + "homepage": "https://developers.google.com/protocol-buffers/", + "keywords": [ + "proto" + ], + "support": { + "source": "https://github.com/protocolbuffers/protobuf-php/tree/v4.33.1" + }, + "time": "2025-11-12T21:58:05+00:00" + }, { "name": "guzzlehttp/guzzle", "version": "7.10.0", diff --git a/documentation/components/extensions/pg-query-ext.md b/documentation/components/extensions/pg-query-ext.md new file mode 100644 index 000000000..a2ab497d1 --- /dev/null +++ b/documentation/components/extensions/pg-query-ext.md @@ -0,0 +1,170 @@ +# PG Query Extension + +- [⬅️️ Back](/documentation/introduction.md) + +A compiled PHP extension for PostgreSQL query parsing using [libpg_query](https://github.com/pganalyze/libpg_query). + +This extension provides low-level functions for parsing PostgreSQL SQL queries. For a higher-level, object-oriented interface with strongly-typed AST nodes, see the [pg-query library](/documentation/components/libs/pg-query.md). + +## Features + +- Parse PostgreSQL SQL queries into JSON AST +- Generate query fingerprints for query grouping +- Normalize SQL queries (replace literals with placeholders) +- Parse PL/pgSQL functions +- Split multiple SQL statements +- Scan SQL into tokens + +## Requirements + +- PHP 8.2+ +- C compiler (gcc/clang) +- git (for auto-downloading libpg_query) +- make +- protobuf-c library + +## Installation + +### Using PIE (Recommended) + +[PIE](https://github.com/php/pie) is the modern PHP extension installer. + +```bash +# Simple installation (auto-downloads libpg_query for PostgreSQL 17) +pie install flow-php/pg-query-ext + +# Install with a specific PostgreSQL grammar version (15, 16, or 17) +pie install flow-php/pg-query-ext --with-pg-version=16 +``` + +The extension will automatically download and build the appropriate libpg_query version. Build dependencies (`protobuf-c`, `git`, `make`, `gcc`) must be available on your system. + +### Supported PostgreSQL Versions + +| PostgreSQL | libpg_query version | +|------------|---------------------| +| 17 | 17-6.1.0 (default) | +| 16 | 16-5.2.0 | +| 15 | 15-4.2.4 | + +## Loading the Extension + +### In php.ini + +```ini +extension=pg_query +``` + +### During Development + +```bash +php -d extension=/path/to/pg_query.so your_script.php +``` + +## Usage + +```php +` | +| `pg_query_scan(string $sql)` | Scan SQL into tokens | `string` (protobuf) | + +## Error Handling + +The extension throws `RuntimeException` on parse errors: + +```php +getMessage(); +} +``` + +## Development + +### Build Commands + +```bash +# Build and run tests +make test + +# Build only +make build + +# Rebuild extension only (without rebuilding libpg_query) +make rebuild + +# Clean build artifacts +make clean + +# Remove everything including libpg_query +make distclean +``` + +### Modifying the Extension + +When modifying the C source files: + +```bash +# Inside nix-shell with --arg with-pg-query-ext true +cd src/extension/pg-query-ext +make rebuild + +# Test your changes +make test +``` + +## Architecture + +The extension is built on top of [libpg_query](https://github.com/pganalyze/libpg_query), which extracts PostgreSQL's query parser into a standalone library. This means you get the exact same SQL parsing behavior as PostgreSQL itself. + +Key implementation details: +- **Static linking**: libpg_query.a is statically linked into the extension +- **Build dependency**: Requires `protobuf-c` library for compilation (libpg_query uses protobuf internally) +- **Auto-download**: The build system automatically downloads the correct libpg_query version + +## See Also + +- [pg-query library](/documentation/components/libs/pg-query.md) - Higher-level PHP wrapper with strongly-typed AST nodes +- [libpg_query](https://github.com/pganalyze/libpg_query) - The underlying C library +- [Nix Development Environment](/documentation/contributing/nix.md) - Using nix-shell for development diff --git a/documentation/components/libs/pg-query.md b/documentation/components/libs/pg-query.md new file mode 100644 index 000000000..7ccf2adbd --- /dev/null +++ b/documentation/components/libs/pg-query.md @@ -0,0 +1,216 @@ +# PG Query + +- [⬅️️ Back](/documentation/introduction.md) + +PostgreSQL Query Parser library provides strongly-typed AST (Abstract Syntax Tree) parsing for PostgreSQL SQL queries using the [libpg_query](https://github.com/pganalyze/libpg_query) library through a PHP extension. + +This library wraps the low-level extension functions and provides: +- Strongly-typed AST nodes generated from protobuf definitions +- A `Parser` class for object-oriented access +- DSL helper functions for convenient usage + +## Requirements + +This library requires the `pg_query` PHP extension. See [pg-query-ext documentation](/documentation/components/extensions/pg-query-ext.md) for installation instructions. + +## Installation + +``` +composer require flow-php/pg-query:~--FLOW_PHP_VERSION-- +``` + +## Usage + +### Using the Parser Class + +```php +parse('SELECT id, name FROM users WHERE active = true'); + +// Access the AST +foreach ($result->getStmts() as $stmt) { + $node = $stmt->getStmt(); + $selectStmt = $node->getSelectStmt(); + // Work with strongly-typed AST nodes... +} +``` + +### Using DSL Functions + +```php +parse('SELECT id, name FROM users WHERE active = true ORDER BY name'); + +foreach ($result->getStmts() as $stmt) { + $selectStmt = $stmt->getStmt()->getSelectStmt(); + + // Access FROM clause + foreach ($selectStmt->getFromClause() as $fromItem) { + $rangeVar = $fromItem->getRangeVar(); + echo "Table: " . $rangeVar->getRelname() . "\n"; + } + + // Access target list (SELECT columns) + foreach ($selectStmt->getTargetList() as $target) { + $columnRef = $target->getResTarget()->getVal()->getColumnRef(); + // Process column references... + } +} +``` + +### Query Fingerprinting + +Generate unique fingerprints for structurally equivalent queries. This is useful for grouping similar queries regardless of their literal values: + +```php +fingerprint('SELECT * FROM users WHERE id = 1'); +$fp2 = $parser->fingerprint('SELECT * FROM users WHERE id = 999'); + +var_dump($fp1 === $fp2); // true +``` + +### Query Normalization + +Replace literal values with parameter placeholders: + +```php +normalize("SELECT * FROM users WHERE name = 'John' AND age = 25"); +// Returns: SELECT * FROM users WHERE name = $1 AND age = $2 +``` + +### Statement Splitting + +Split a string containing multiple SQL statements: + +```php +split('SELECT 1; SELECT 2; SELECT 3'); +// Returns: ['SELECT 1', ' SELECT 2', ' SELECT 3'] +``` + +## API Reference + +### Parser Class + +| Method | Description | Returns | +|--------|-------------|---------| +| `parse(string $sql)` | Parse SQL into AST | `ParseResult` | +| `fingerprint(string $sql)` | Generate query fingerprint | `?string` | +| `normalize(string $sql)` | Normalize query with placeholders | `?string` | +| `split(string $sql)` | Split multiple statements | `array` | + +### DSL Functions + +| Function | Description | Returns | +|----------|-------------|---------| +| `pg_parser()` | Create a new Parser instance | `Parser` | +| `pg_parse(string $sql)` | Parse SQL into AST | `ParseResult` | +| `pg_fingerprint(string $sql)` | Generate query fingerprint | `?string` | +| `pg_normalize(string $sql)` | Normalize query | `?string` | +| `pg_split(string $sql)` | Split statements | `array` | + +## AST Node Types + +The library includes 343 strongly-typed AST node classes generated from PostgreSQL's protobuf definitions. All classes are in the `Flow\PgQuery\Protobuf\AST` namespace. + +Common node types include: +- `SelectStmt` - SELECT statement +- `InsertStmt` - INSERT statement +- `UpdateStmt` - UPDATE statement +- `DeleteStmt` - DELETE statement +- `ColumnRef` - Column reference +- `A_Expr` - Expression node +- `FuncCall` - Function call +- `JoinExpr` - JOIN expression +- `RangeVar` - Table/view reference + +## Exception Handling + +```php +parse('INVALID SQL SYNTAX HERE'); +} catch (ParserException $e) { + echo "Parse error: " . $e->getMessage(); +} +``` + +## Performance + +For optimal protobuf parsing performance, install the `ext-protobuf` PHP extension: + +```bash +pecl install protobuf +``` + +The library will work without it using the pure PHP implementation from `google/protobuf`, but the native extension provides significantly better performance for AST deserialization. diff --git a/documentation/contributing/nix.md b/documentation/contributing/nix.md index 5db198048..14f8087ab 100644 --- a/documentation/contributing/nix.md +++ b/documentation/contributing/nix.md @@ -96,11 +96,63 @@ nix-shell --arg php-version 8.3 ``` > In general, it's not recommended to change the PHP version, as development should always -> be done on the lowest supported PHP version. +> be done on the lowest supported PHP version. > > This feature is mostly for testing new integrations > or lowest/highest versions of dependencies. +## Optional Tool Groups + +The nix shell supports optional tool groups that can be enabled when needed. +This keeps the default shell lightweight while allowing access to specialized tools. + +### WASM Build Tools + +To include tools for building WebAssembly (emscripten, autoconf, wget, etc.): + +```shell +nix-shell --arg with-wasm true +``` + +### Terraform + +To include Terraform and Node.js for infrastructure development: + +```shell +nix-shell --arg with-terraform true +``` + +### pg-query-ext Extension + +To include the `pg-query-ext` PHP extension (PostgreSQL SQL parser): + +```shell +nix-shell --arg with-pg-query-ext true +``` + +The extension is built from local source (`src/extension/pg-query-ext/ext`) and automatically loaded by PHP: + +```shell +php -m | grep pg_query +./tools/phpunit/vendor/bin/phpunit --testsuite=lib-pg-query-unit +``` + +This also includes C development tools for extension development. To rebuild after modifying C source code: + +```shell +cd src/extension/pg-query-ext && make rebuild +``` + +Note: Re-entering nix-shell will also rebuild the extension if sources changed. + +### Combining Multiple Options + +You can combine multiple arguments: + +```shell +nix-shell --arg with-terraform true --arg with-wasm true +``` + ## Local Webserver To run the local webserver for Flow Website development, please use Symfony CLI app diff --git a/phpstan.neon b/phpstan.neon index 9ef7cf73f..b5f8b33f8 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,6 +5,8 @@ parameters: - tools/phpunit/vendor/autoload.php - tools/phpbench/vendor/autoload.php - vendor/autoload.php + scanFiles: + - src/lib/pg-query/src/stubs.php paths: - src/core/etl/src - src/cli/src @@ -35,6 +37,7 @@ parameters: - src/lib/parquet-viewer/src - src/lib/snappy/src - src/lib/types/src + - src/lib/pg-query/src - src/tools/documentation/src - src/core/etl/tests - src/cli/tests @@ -70,6 +73,7 @@ parameters: - src/lib/parquet/src/Flow/Parquet/ThriftModel/* - src/lib/parquet/src/Flow/Parquet/BinaryReader/* - src/lib/parquet/src/Flow/Parquet/Dremel/ColumnData/DefinitionConverter.php + - src/lib/pg-query/src/Flow/PgQuery/Protobuf/* tmpDir: var/phpstan/cache diff --git a/phpunit.xml.dist b/phpunit.xml.dist index b69cb99b0..891d86d4b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -180,6 +180,7 @@ src/lib/parquet/src/Flow/Parquet/Thrift + src/lib/pg-query/src/Flow/PgQuery/Protobuf src/core/etl/src/Flow/ETL/DSL/functions.php diff --git a/shell.nix b/shell.nix index aae2e457e..acae6fe05 100644 --- a/shell.nix +++ b/shell.nix @@ -16,6 +16,9 @@ in with-blackfire ? false, with-xdebug ? false, with-pcov ? !with-blackfire, + with-pg-query-ext ? false, + with-terraform ? false, + with-wasm ? false, }: let @@ -32,10 +35,11 @@ let php-snappy = pkgs.callPackage ./.nix/pkgs/php-snappy/package.nix { php = base-php; }; php-lz4 = pkgs.callPackage ./.nix/pkgs/php-lz4/package.nix { php = base-php; }; php-zstd = pkgs.callPackage ./.nix/pkgs/php-zstd/package.nix { php = base-php; }; + php-pg-query-ext = pkgs.callPackage ./.nix/pkgs/php-pg-query-ext/package.nix { php = base-php; }; php = pkgs.callPackage ./.nix/pkgs/flow-php/package.nix { php = base-php; - inherit php-snappy php-lz4 php-brotli php-zstd with-pcov with-xdebug with-blackfire; + inherit php-snappy php-lz4 php-brotli php-zstd php-pg-query-ext with-pcov with-xdebug with-blackfire with-pg-query-ext; }; in pkgs.mkShell { @@ -46,21 +50,35 @@ pkgs.mkShell { pkgs.figlet pkgs.symfony-cli pkgs.act - - # WASM - pkgs.emscripten - pkgs.autoconf - pkgs.wget - pkgs.gnutar - pkgs.xz - pkgs.libxml2 - pkgs.pkg-config - - # Terraform - pkgs.terraform - pkgs.nodejs_24 ] ++ pkgs.lib.optional with-blackfire pkgs.blackfire + ++ pkgs.lib.optionals with-wasm [ + # WASM build tools + pkgs.emscripten + pkgs.autoconf + pkgs.wget + pkgs.gnutar + pkgs.xz + pkgs.libxml2 + pkgs.pkg-config + ] + ++ pkgs.lib.optionals with-terraform [ + # Terraform + pkgs.terraform + pkgs.nodejs_24 + ] + ++ pkgs.lib.optionals with-pg-query-ext [ + # C development tools for pg-query-ext extension development + pkgs.gcc + pkgs.gnumake + pkgs.autoconf + pkgs.automake + pkgs.libtool + pkgs.protobuf + pkgs.protobufc + pkgs.git + php.unwrapped.dev + ] ; shellHook = '' @@ -70,6 +88,12 @@ pkgs.mkShell { export STARSHIP_CONFIG="$PWD/.nix/shell/starship.toml.dist" fi + ${pkgs.lib.optionalString with-pg-query-ext '' + # Setup for pg-query-ext extension development + export PHP_CONFIG="${php}/bin/php-config" + export PHPIZE="${php.unwrapped.dev}/bin/phpize" + ''} + eval "$(${pkgs.starship}/bin/starship init bash)" clear diff --git a/src/extension/pg-query-ext/.gitattributes b/src/extension/pg-query-ext/.gitattributes new file mode 100644 index 000000000..5a1651532 --- /dev/null +++ b/src/extension/pg-query-ext/.gitattributes @@ -0,0 +1,13 @@ +# Exclude development files from distribution archives +/.github export-ignore +/tests export-ignore +/vendor export-ignore +/.gitattributes export-ignore +/.gitignore export-ignore + +# Ensure consistent line endings +*.php text eol=lf +*.c text eol=lf +*.h text eol=lf +*.m4 text eol=lf +*.stub.php text eol=lf diff --git a/src/extension/pg-query-ext/.gitignore b/src/extension/pg-query-ext/.gitignore new file mode 100644 index 000000000..d2ec6e57f --- /dev/null +++ b/src/extension/pg-query-ext/.gitignore @@ -0,0 +1,38 @@ +# Composer +/vendor/ +composer.lock + +# Extension build artifacts +/ext/.libs/ +/ext/acinclude.m4 +/ext/aclocal.m4 +/ext/autom4te.cache/ +/ext/build/ +/ext/config.guess +/ext/config.h +/ext/config.h.in +/ext/config.log +/ext/config.nice +/ext/config.status +/ext/config.sub +/ext/configure +/ext/configure.ac +/ext/install-sh +/ext/libtool +/ext/ltmain.sh +/ext/Makefile +/ext/Makefile.fragments +/ext/Makefile.global +/ext/Makefile.objects +/ext/missing +/ext/mkinstalldirs +/ext/modules/ +/ext/run-tests.php +/ext/*.la +/ext/*.lo +/ext/*.o +/ext/*.dep +/ext/*~ + +# libpg_query (auto-downloaded) +/ext/libpg_query/ diff --git a/src/extension/pg-query-ext/Makefile b/src/extension/pg-query-ext/Makefile new file mode 100644 index 000000000..d8f13ad42 --- /dev/null +++ b/src/extension/pg-query-ext/Makefile @@ -0,0 +1,79 @@ +# Flow PHP pg_query Extension Makefile +LIBPG_QUERY_VERSION := 17-6.1.0 +LIBPG_QUERY_DIR := ./vendor/libpg_query +LIBPG_QUERY_LIB := $(LIBPG_QUERY_DIR)/libpg_query.a +EXTENSION_DIR := ./ext +MODULE_DIR := $(EXTENSION_DIR)/modules +EXTENSION_SO := $(MODULE_DIR)/pg_query.so + +# PHP build tools - use shell lookup to ensure we get current PATH values +PHPIZE ?= $(shell which phpize) +PHP_CONFIG ?= $(shell which php-config) +PHP ?= $(shell which php) + +# Detect OS for nproc +UNAME_S := $(shell uname -s) +ifeq ($(UNAME_S),Darwin) + NPROC := $(shell sysctl -n hw.ncpu) +else + NPROC := $(shell nproc) +endif + +.PHONY: all clean distclean test install rebuild + +all: build + +# Download and build libpg_query +$(LIBPG_QUERY_DIR): + @echo "Downloading libpg_query $(LIBPG_QUERY_VERSION)..." + @mkdir -p vendor + @git clone --depth=1 --branch=$(LIBPG_QUERY_VERSION) \ + https://github.com/pganalyze/libpg_query.git $(LIBPG_QUERY_DIR) + +$(LIBPG_QUERY_LIB): $(LIBPG_QUERY_DIR) + @echo "Building libpg_query..." + @cd $(LIBPG_QUERY_DIR) && make -j$(NPROC) + +# Configure PHP extension (only if configure script doesn't exist) +$(EXTENSION_DIR)/configure: $(LIBPG_QUERY_LIB) $(EXTENSION_DIR)/config.m4 + @echo "Configuring PHP extension..." + @chmod -R u+w $(EXTENSION_DIR)/build 2>/dev/null || true + @rm -rf $(EXTENSION_DIR)/build $(EXTENSION_DIR)/run-tests.php + @cd $(EXTENSION_DIR) && $(PHPIZE) + @cd $(EXTENSION_DIR) && ./configure \ + --with-pg-query=$(realpath $(LIBPG_QUERY_DIR)) \ + --enable-pg-query + +# Build PHP extension (only if .so doesn't exist or sources changed) +$(EXTENSION_SO): $(EXTENSION_DIR)/configure $(EXTENSION_DIR)/pg_query.c $(EXTENSION_DIR)/php_pg_query.h + @echo "Building PHP extension..." + @cd $(EXTENSION_DIR) && make -j$(NPROC) + @echo "Extension built: $(EXTENSION_SO)" + +build: $(EXTENSION_SO) + +# Run tests +test: $(EXTENSION_SO) + @echo "Running extension tests..." + @cd $(EXTENSION_DIR) && make test TESTS="../tests/phpt/" + +# Install to current PHP +install: $(EXTENSION_SO) + @cd $(EXTENSION_DIR) && make install + +# Development: rebuild only extension (not libpg_query) +rebuild: + @cd $(EXTENSION_DIR) && make clean && make + +# Clean build artifacts +clean: + @cd $(EXTENSION_DIR) && ([ -f Makefile ] && make clean || true) + @chmod -R u+w $(EXTENSION_DIR)/build 2>/dev/null || true + @rm -rf $(EXTENSION_DIR)/build $(EXTENSION_DIR)/run-tests.php + @cd $(EXTENSION_DIR) && $(PHPIZE) --clean 2>/dev/null || true + +# Remove everything including libpg_query +distclean: clean + @rm -rf $(LIBPG_QUERY_DIR) + @rm -rf $(EXTENSION_DIR)/autom4te.cache + @rm -f $(EXTENSION_DIR)/configure $(EXTENSION_DIR)/config.h.in diff --git a/src/extension/pg-query-ext/README.md b/src/extension/pg-query-ext/README.md new file mode 100644 index 000000000..dcdeb77f3 --- /dev/null +++ b/src/extension/pg-query-ext/README.md @@ -0,0 +1,160 @@ +# pg_query PHP Extension + +A compiled PHP extension for PostgreSQL query parsing using [libpg_query](https://github.com/pganalyze/libpg_query). + +## Features + +- Parse PostgreSQL SQL queries into JSON AST +- Generate query fingerprints for query grouping +- Normalize SQL queries (replace literals with placeholders) +- Parse PL/pgSQL functions +- Split multiple SQL statements +- Scan SQL into tokens + +## Installation + +### Using PIE (Recommended) + +[PIE](https://github.com/php/pie) is the modern PHP extension installer. + +**Prerequisites:** Install protobuf-c library on your system: + +```bash +# Ubuntu/Debian +sudo apt-get install libprotobuf-c-dev git make gcc + +# macOS with Homebrew +brew install protobuf-c + +# Fedora/RHEL +sudo dnf install protobuf-c-devel git make gcc +``` + +**Install the extension:** + +```bash +# Simple installation (auto-downloads libpg_query for PostgreSQL 17) +pie install flow-php/pg-query-ext + +# Install with a specific PostgreSQL grammar version (15, 16, or 17) +pie install flow-php/pg-query-ext --with-pg-version=16 + +# Or with a pre-installed libpg_query +pie install flow-php/pg-query-ext --with-pg-query=/usr/local +``` + +The extension will automatically download and build the appropriate libpg_query version if not found on your system. + +**Supported PostgreSQL versions:** + +| PostgreSQL | libpg_query version | +|------------|---------------------| +| 17 | 17-6.1.0 (default) | +| 16 | 16-5.2.0 | +| 15 | 15-4.2.4 | + +### Requirements + +- PHP 8.2+ +- C compiler (gcc/clang) +- git (for auto-downloading libpg_query) +- make +- protobuf-c library + +### Manual Build + +```bash +cd src/extension/pg-query-ext + +# This will download and build libpg_query, then build the extension +make build + +# Run extension tests +make test + +# Install to system PHP (optional) +make install +``` + +### Using Nix + +From the Flow PHP monorepo root: + +```bash +# Enter Nix shell with pg_query extension loaded and build tools available +nix-shell --arg with-pg-query-ext true + +# Navigate to extension directory +cd src/extension/pg-query-ext + +# Build and test +make test +``` + +## Usage + +```php +// Parse SQL and return JSON AST +$json = pg_query_parse('SELECT * FROM users WHERE id = 1'); +$ast = json_decode($json, true); + +// Generate fingerprint (same for structurally equivalent queries) +$fp = pg_query_fingerprint('SELECT * FROM users WHERE id = 1'); +// Returns same fingerprint for: SELECT * FROM users WHERE id = 2 + +// Normalize query (replace literals with $N placeholders) +$normalized = pg_query_normalize("SELECT * FROM users WHERE name = 'John'"); +// Returns: SELECT * FROM users WHERE name = $1 + +// Split multiple statements +$statements = pg_query_split('SELECT 1; SELECT 2; SELECT 3'); +// Returns: ['SELECT 1', ' SELECT 2', ' SELECT 3'] + +// Scan SQL into tokens (returns protobuf data) +$protobuf = pg_query_scan('SELECT 1'); +``` + +## Loading the Extension + +### During Development + +```bash +php -d extension=./ext/modules/pg_query.so your_script.php +``` + +### In php.ini + +```ini +extension=pg_query +``` + +## Functions Reference + +| Function | Description | Returns | +|---------------------------------------|-----------------------------------|---------------------| +| `pg_query_parse(string $sql)` | Parse SQL to JSON AST | `string` (JSON) | +| `pg_query_fingerprint(string $sql)` | Generate query fingerprint | `string\|false` | +| `pg_query_normalize(string $sql)` | Normalize query with placeholders | `string\|false` | +| `pg_query_parse_plpgsql(string $sql)` | Parse PL/pgSQL function | `string` (JSON) | +| `pg_query_split(string $sql)` | Split multiple statements | `array` | +| `pg_query_scan(string $sql)` | Scan SQL into tokens | `string` (protobuf) | + +## Development + +```bash +# Build and run tests +make test + +# Rebuild extension only (without rebuilding libpg_query) +make rebuild + +# Clean build artifacts +make clean + +# Remove everything including libpg_query +make distclean +``` + +## License + +MIT diff --git a/src/extension/pg-query-ext/composer.json b/src/extension/pg-query-ext/composer.json new file mode 100644 index 000000000..b74a56cc1 --- /dev/null +++ b/src/extension/pg-query-ext/composer.json @@ -0,0 +1,40 @@ +{ + "name": "flow-php/pg-query-ext", + "type": "php-ext", + "description": "PostgreSQL query parser PHP extension using libpg_query", + "keywords": ["postgresql", "parser", "sql", "ast", "extension", "libpg_query"], + "license": "MIT", + "require": { + "php": "~8.2.0 || ~8.3.0 || ~8.4.0" + }, + "scripts": { + "build": "make build", + "test:ext": "make test TESTS=\"../tests/phpt\"" + }, + "config": { + "sort-packages": true + }, + "extra": { + "branch-alias": { + "dev-1.x": "1.x-dev" + } + }, + "php-ext": { + "extension-name": "pg_query", + "build-path": "ext", + "configure-options": [ + { + "name": "with-pg-query", + "needs-value": false, + "description": "Path to libpg_query installation (optional - will auto-download if not found)" + }, + { + "name": "with-pg-version", + "needs-value": true, + "description": "PostgreSQL grammar version: 15, 16, or 17 (default: 17)" + } + ], + "support-zts": true, + "support-nts": true + } +} diff --git a/src/extension/pg-query-ext/ext/config.m4 b/src/extension/pg-query-ext/ext/config.m4 new file mode 100644 index 000000000..dbdc8bc56 --- /dev/null +++ b/src/extension/pg-query-ext/ext/config.m4 @@ -0,0 +1,137 @@ +dnl config.m4 for extension pg_query + +PHP_ARG_WITH([pg-query], + [whether to enable pg_query support], + [AS_HELP_STRING([--with-pg-query@<:@=DIR@:>@], + [Include pg_query support. DIR is the libpg_query install prefix (optional - will download if not found)])]) + +PHP_ARG_WITH([pg-version], + [PostgreSQL grammar version], + [AS_HELP_STRING([--with-pg-version@<:@=VERSION@:>@], + [PostgreSQL grammar version: 15, 16, or 17 (default: 17)])], [17], [no]) + +if test "$PHP_PG_QUERY" != "no"; then + dnl Map PostgreSQL version to libpg_query version + case "$PHP_PG_VERSION" in + 15) + LIBPG_QUERY_VERSION="15-4.2.4" + ;; + 16) + LIBPG_QUERY_VERSION="16-5.2.0" + ;; + 17|yes|"") + LIBPG_QUERY_VERSION="17-6.1.0" + PHP_PG_VERSION="17" + ;; + *) + AC_MSG_ERROR([Unsupported PostgreSQL version: $PHP_PG_VERSION. Supported versions: 15, 16, 17]) + ;; + esac + + AC_MSG_NOTICE([Using PostgreSQL $PHP_PG_VERSION grammar (libpg_query $LIBPG_QUERY_VERSION)]) + + PG_QUERY_DIR="" + + dnl Search for existing libpg_query installation + if test "$PHP_PG_QUERY" != "yes" && test -n "$PHP_PG_QUERY"; then + SEARCH_PATH="$PHP_PG_QUERY" + else + SEARCH_PATH="/usr/local /usr /opt/local /opt/homebrew" + fi + + AC_MSG_CHECKING([for libpg_query]) + + for i in $SEARCH_PATH ; do + if test -r "$i/pg_query.h" && test -r "$i/libpg_query.a"; then + PG_QUERY_DIR=$i + AC_MSG_RESULT([found in $i]) + break + fi + if test -r "$i/include/pg_query.h" && test -r "$i/lib/libpg_query.a"; then + PG_QUERY_DIR=$i + PG_QUERY_INCLUDE_DIR="$i/include" + PG_QUERY_LIB_DIR="$i/lib" + AC_MSG_RESULT([found in $i]) + break + fi + done + + dnl Get the absolute path of the extension source directory + EXT_DIR=`pwd` + + dnl Check bundled directory + if test -z "$PG_QUERY_DIR"; then + if test -r "$EXT_DIR/libpg_query/pg_query.h" && test -r "$EXT_DIR/libpg_query/libpg_query.a"; then + PG_QUERY_DIR="$EXT_DIR/libpg_query" + AC_MSG_RESULT([using bundled libpg_query]) + fi + fi + + dnl Download and build if not found + if test -z "$PG_QUERY_DIR"; then + AC_MSG_RESULT([not found, will download and build]) + + AC_MSG_CHECKING([for git]) + if test -z "$GIT"; then + AC_PATH_PROG(GIT, git, no) + fi + if test "$GIT" = "no"; then + AC_MSG_ERROR([git is required to download libpg_query]) + fi + AC_MSG_RESULT([$GIT]) + + AC_MSG_CHECKING([for make]) + if test -z "$MAKE"; then + AC_PATH_PROG(MAKE, make, no) + fi + if test "$MAKE" = "no"; then + AC_MSG_ERROR([make is required to build libpg_query]) + fi + AC_MSG_RESULT([$MAKE]) + + LIBPG_QUERY_BUILD_DIR="$EXT_DIR/libpg_query" + + AC_MSG_NOTICE([Downloading libpg_query $LIBPG_QUERY_VERSION...]) + if test -d "$LIBPG_QUERY_BUILD_DIR"; then + rm -rf "$LIBPG_QUERY_BUILD_DIR" + fi + + $GIT clone --depth=1 --branch=$LIBPG_QUERY_VERSION \ + https://github.com/pganalyze/libpg_query.git "$LIBPG_QUERY_BUILD_DIR" || \ + AC_MSG_ERROR([Failed to download libpg_query]) + + AC_MSG_NOTICE([Building libpg_query...]) + (cd "$LIBPG_QUERY_BUILD_DIR" && $MAKE -j) || \ + AC_MSG_ERROR([Failed to build libpg_query]) + + PG_QUERY_DIR="$LIBPG_QUERY_BUILD_DIR" + fi + + dnl Set include and lib directories + if test -z "$PG_QUERY_INCLUDE_DIR"; then + PG_QUERY_INCLUDE_DIR="$PG_QUERY_DIR" + fi + if test -z "$PG_QUERY_LIB_DIR"; then + PG_QUERY_LIB_DIR="$PG_QUERY_DIR" + fi + + dnl Add include paths + PHP_ADD_INCLUDE($PG_QUERY_INCLUDE_DIR) + + dnl Check for static library + if test -r "$PG_QUERY_LIB_DIR/libpg_query.a"; then + dnl Static linking - embed the library + LDFLAGS="$LDFLAGS $PG_QUERY_LIB_DIR/libpg_query.a" + AC_DEFINE(HAVE_PG_QUERY, 1, [Whether you have libpg_query]) + else + AC_MSG_ERROR([libpg_query.a not found in $PG_QUERY_LIB_DIR]) + fi + + dnl Add protobuf-c dependency + PHP_ADD_LIBRARY(protobuf-c,, PG_QUERY_SHARED_LIBADD) + + PHP_SUBST(PG_QUERY_SHARED_LIBADD) + + dnl Define extension + PHP_NEW_EXTENSION(pg_query, pg_query.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1) +fi diff --git a/src/extension/pg-query-ext/ext/pg_query.c b/src/extension/pg-query-ext/ext/pg_query.c new file mode 100644 index 000000000..183a6ce76 --- /dev/null +++ b/src/extension/pg-query-ext/ext/pg_query.c @@ -0,0 +1,273 @@ +/** + * PHP pg_query extension implementation + * + * Provides PostgreSQL query parsing capabilities using libpg_query + * + * @link https://github.com/flow-php/flow + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include + +#include "php.h" +#include "php_ini.h" +#include "ext/standard/info.h" +#include "php_pg_query.h" +#include "pg_query.h" +#include "zend_exceptions.h" +#include "ext/spl/spl_exceptions.h" + +#include "pg_query_arginfo.h" + +zend_module_entry pg_query_module_entry = { + STANDARD_MODULE_HEADER, + PHP_PG_QUERY_EXTNAME, + ext_functions, + PHP_MINIT(pg_query), + PHP_MSHUTDOWN(pg_query), + PHP_RINIT(pg_query), + PHP_RSHUTDOWN(pg_query), + PHP_MINFO(pg_query), + PHP_PG_QUERY_VERSION, + STANDARD_MODULE_PROPERTIES +}; + +#ifdef COMPILE_DL_PG_QUERY +#ifdef ZTS +ZEND_TSRMLS_CACHE_DEFINE() +#endif +ZEND_GET_MODULE(pg_query) +#endif + +PHP_MINIT_FUNCTION(pg_query) +{ + pg_query_init(); + return SUCCESS; +} + +PHP_MSHUTDOWN_FUNCTION(pg_query) +{ + return SUCCESS; +} + +PHP_RINIT_FUNCTION(pg_query) +{ +#if defined(ZTS) && defined(COMPILE_DL_PG_QUERY) + ZEND_TSRMLS_CACHE_UPDATE(); +#endif + return SUCCESS; +} + +PHP_RSHUTDOWN_FUNCTION(pg_query) +{ + return SUCCESS; +} + +PHP_MINFO_FUNCTION(pg_query) +{ + php_info_print_table_start(); + php_info_print_table_header(2, "pg_query support", "enabled"); + php_info_print_table_row(2, "Version", PHP_PG_QUERY_VERSION); + php_info_print_table_row(2, "libpg_query version", "17-6.1.0"); + php_info_print_table_end(); +} + +PHP_FUNCTION(pg_query_parse) +{ + char *sql; + size_t sql_len; + + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STRING(sql, sql_len) + ZEND_PARSE_PARAMETERS_END(); + + PgQueryParseResult result = pg_query_parse(sql); + + if (result.error) { + char error_msg[1024]; + int cursor_pos = result.error->cursorpos; + + if (result.error->message) { + strncpy(error_msg, result.error->message, sizeof(error_msg) - 1); + error_msg[sizeof(error_msg) - 1] = '\0'; + } else { + strcpy(error_msg, "Unknown parse error"); + } + + pg_query_free_parse_result(result); + + zend_throw_exception_ex(spl_ce_RuntimeException, cursor_pos, "%s", error_msg); + RETURN_THROWS(); + } + + zend_string *json = zend_string_init(result.parse_tree, strlen(result.parse_tree), 0); + pg_query_free_parse_result(result); + + RETURN_STR(json); +} + +PHP_FUNCTION(pg_query_fingerprint) +{ + char *sql; + size_t sql_len; + + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STRING(sql, sql_len) + ZEND_PARSE_PARAMETERS_END(); + + PgQueryFingerprintResult result = pg_query_fingerprint(sql); + + if (result.error) { + pg_query_free_fingerprint_result(result); + RETURN_FALSE; + } + + zend_string *fingerprint = zend_string_init(result.fingerprint_str, + strlen(result.fingerprint_str), 0); + pg_query_free_fingerprint_result(result); + + RETURN_STR(fingerprint); +} + +PHP_FUNCTION(pg_query_normalize) +{ + char *sql; + size_t sql_len; + + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STRING(sql, sql_len) + ZEND_PARSE_PARAMETERS_END(); + + PgQueryNormalizeResult result = pg_query_normalize(sql); + + if (result.error) { + pg_query_free_normalize_result(result); + RETURN_FALSE; + } + + zend_string *normalized = zend_string_init(result.normalized_query, + strlen(result.normalized_query), 0); + pg_query_free_normalize_result(result); + + RETURN_STR(normalized); +} + +PHP_FUNCTION(pg_query_parse_plpgsql) +{ + char *sql; + size_t sql_len; + + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STRING(sql, sql_len) + ZEND_PARSE_PARAMETERS_END(); + + PgQueryPlpgsqlParseResult result = pg_query_parse_plpgsql(sql); + + if (result.error) { + char error_msg[1024]; + + if (result.error->message) { + strncpy(error_msg, result.error->message, sizeof(error_msg) - 1); + error_msg[sizeof(error_msg) - 1] = '\0'; + } else { + strcpy(error_msg, "PL/pgSQL parse error"); + } + + pg_query_free_plpgsql_parse_result(result); + + zend_throw_exception(spl_ce_RuntimeException, error_msg, 0); + RETURN_THROWS(); + } + + zend_string *json = zend_string_init(result.plpgsql_funcs, + strlen(result.plpgsql_funcs), 0); + pg_query_free_plpgsql_parse_result(result); + + RETURN_STR(json); +} + +PHP_FUNCTION(pg_query_split) +{ + char *sql; + size_t sql_len; + + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STRING(sql, sql_len) + ZEND_PARSE_PARAMETERS_END(); + + PgQuerySplitResult result = pg_query_split_with_scanner(sql); + + if (result.error) { + char error_msg[1024]; + + if (result.error->message) { + strncpy(error_msg, result.error->message, sizeof(error_msg) - 1); + error_msg[sizeof(error_msg) - 1] = '\0'; + } else { + strcpy(error_msg, "Split error"); + } + + pg_query_free_split_result(result); + + zend_throw_exception(spl_ce_RuntimeException, error_msg, 0); + RETURN_THROWS(); + } + + array_init(return_value); + + for (int i = 0; i < result.n_stmts; i++) { + int stmt_len = result.stmts[i]->stmt_len; + int stmt_location = result.stmts[i]->stmt_location; + + if (stmt_len == 0 && i == result.n_stmts - 1) { + stmt_len = sql_len - stmt_location; + } + + zend_string *stmt = zend_string_init(sql + stmt_location, stmt_len, 0); + add_next_index_str(return_value, stmt); + } + + pg_query_free_split_result(result); +} + +PHP_FUNCTION(pg_query_scan) +{ + char *sql; + size_t sql_len; + + ZEND_PARSE_PARAMETERS_START(1, 1) + Z_PARAM_STRING(sql, sql_len) + ZEND_PARSE_PARAMETERS_END(); + + PgQueryScanResult result = pg_query_scan(sql); + + if (result.error) { + char error_msg[1024]; + + if (result.error->message) { + strncpy(error_msg, result.error->message, sizeof(error_msg) - 1); + error_msg[sizeof(error_msg) - 1] = '\0'; + } else { + strcpy(error_msg, "Scan error"); + } + + pg_query_free_scan_result(result); + + zend_throw_exception(spl_ce_RuntimeException, error_msg, 0); + RETURN_THROWS(); + } + + zend_string *protobuf_data = NULL; + if (result.pbuf.len > 0 && result.pbuf.data != NULL) { + protobuf_data = zend_string_init(result.pbuf.data, result.pbuf.len, 0); + } else { + protobuf_data = zend_string_init("", 0, 0); + } + + pg_query_free_scan_result(result); + + RETURN_STR(protobuf_data); +} diff --git a/src/extension/pg-query-ext/ext/pg_query.stub.php b/src/extension/pg-query-ext/ext/pg_query.stub.php new file mode 100644 index 000000000..519362ec2 --- /dev/null +++ b/src/extension/pg-query-ext/ext/pg_query.stub.php @@ -0,0 +1,67 @@ + Array of individual SQL statements + */ +function pg_query_split(string $sql) : array +{ +} + +/** + * Scan SQL into tokens (returns protobuf-encoded data). + * + * @throws RuntimeException on scan error + * + * @return string Protobuf-encoded scan result + */ +function pg_query_scan(string $sql) : string +{ +} diff --git a/src/extension/pg-query-ext/ext/pg_query_arginfo.h b/src/extension/pg-query-ext/ext/pg_query_arginfo.h new file mode 100644 index 000000000..59d65e73b --- /dev/null +++ b/src/extension/pg-query-ext/ext/pg_query_arginfo.h @@ -0,0 +1,43 @@ +/* This is a generated file, edit the .stub.php file instead. + * Stub hash: placeholder */ + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_query_parse, 0, 1, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, sql, IS_STRING, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_query_fingerprint, 0, 1, MAY_BE_STRING|MAY_BE_FALSE) + ZEND_ARG_TYPE_INFO(0, sql, IS_STRING, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_pg_query_normalize, 0, 1, MAY_BE_STRING|MAY_BE_FALSE) + ZEND_ARG_TYPE_INFO(0, sql, IS_STRING, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_query_parse_plpgsql, 0, 1, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, sql, IS_STRING, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_query_split, 0, 1, IS_ARRAY, 0) + ZEND_ARG_TYPE_INFO(0, sql, IS_STRING, 0) +ZEND_END_ARG_INFO() + +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pg_query_scan, 0, 1, IS_STRING, 0) + ZEND_ARG_TYPE_INFO(0, sql, IS_STRING, 0) +ZEND_END_ARG_INFO() + +ZEND_FUNCTION(pg_query_parse); +ZEND_FUNCTION(pg_query_fingerprint); +ZEND_FUNCTION(pg_query_normalize); +ZEND_FUNCTION(pg_query_parse_plpgsql); +ZEND_FUNCTION(pg_query_split); +ZEND_FUNCTION(pg_query_scan); + +static const zend_function_entry ext_functions[] = { + ZEND_FE(pg_query_parse, arginfo_pg_query_parse) + ZEND_FE(pg_query_fingerprint, arginfo_pg_query_fingerprint) + ZEND_FE(pg_query_normalize, arginfo_pg_query_normalize) + ZEND_FE(pg_query_parse_plpgsql, arginfo_pg_query_parse_plpgsql) + ZEND_FE(pg_query_split, arginfo_pg_query_split) + ZEND_FE(pg_query_scan, arginfo_pg_query_scan) + ZEND_FE_END +}; diff --git a/src/extension/pg-query-ext/ext/php_pg_query.h b/src/extension/pg-query-ext/ext/php_pg_query.h new file mode 100644 index 000000000..afa225782 --- /dev/null +++ b/src/extension/pg-query-ext/ext/php_pg_query.h @@ -0,0 +1,41 @@ +/** + * PHP pg_query extension header + * + * @link https://github.com/flow-php/flow + */ + +#ifndef PHP_PG_QUERY_H +#define PHP_PG_QUERY_H + +extern zend_module_entry pg_query_module_entry; +#define phpext_pg_query_ptr &pg_query_module_entry + +#define PHP_PG_QUERY_VERSION "0.1.0" +#define PHP_PG_QUERY_EXTNAME "pg_query" + +#ifdef PHP_WIN32 +# define PHP_PG_QUERY_API __declspec(dllexport) +#elif defined(__GNUC__) && __GNUC__ >= 4 +# define PHP_PG_QUERY_API __attribute__ ((visibility("default"))) +#else +# define PHP_PG_QUERY_API +#endif + +#ifdef ZTS +#include "TSRM.h" +#endif + +PHP_MINIT_FUNCTION(pg_query); +PHP_MSHUTDOWN_FUNCTION(pg_query); +PHP_RINIT_FUNCTION(pg_query); +PHP_RSHUTDOWN_FUNCTION(pg_query); +PHP_MINFO_FUNCTION(pg_query); + +PHP_FUNCTION(pg_query_parse); +PHP_FUNCTION(pg_query_fingerprint); +PHP_FUNCTION(pg_query_normalize); +PHP_FUNCTION(pg_query_parse_plpgsql); +PHP_FUNCTION(pg_query_split); +PHP_FUNCTION(pg_query_scan); + +#endif /* PHP_PG_QUERY_H */ diff --git a/src/extension/pg-query-ext/tests/phpt/001_basic.phpt b/src/extension/pg-query-ext/tests/phpt/001_basic.phpt new file mode 100644 index 000000000..8a9db8c0d --- /dev/null +++ b/src/extension/pg-query-ext/tests/phpt/001_basic.phpt @@ -0,0 +1,16 @@ +--TEST-- +pg_query_parse() basic functionality +--SKIPIF-- + +--FILE-- + +--EXPECT-- +bool(true) +bool(true) diff --git a/src/extension/pg-query-ext/tests/phpt/002_fingerprint.phpt b/src/extension/pg-query-ext/tests/phpt/002_fingerprint.phpt new file mode 100644 index 000000000..70998a1b4 --- /dev/null +++ b/src/extension/pg-query-ext/tests/phpt/002_fingerprint.phpt @@ -0,0 +1,17 @@ +--TEST-- +pg_query_fingerprint() functionality +--SKIPIF-- + +--FILE-- + 0); +var_dump($fp1 === $fp2); +?> +--EXPECT-- +bool(true) +bool(true) +bool(true) diff --git a/src/extension/pg-query-ext/tests/phpt/003_normalize.phpt b/src/extension/pg-query-ext/tests/phpt/003_normalize.phpt new file mode 100644 index 000000000..8e86ba5e7 --- /dev/null +++ b/src/extension/pg-query-ext/tests/phpt/003_normalize.phpt @@ -0,0 +1,18 @@ +--TEST-- +pg_query_normalize() functionality +--SKIPIF-- + +--FILE-- + +--EXPECT-- +bool(true) +bool(true) +bool(true) +bool(true) diff --git a/src/extension/pg-query-ext/tests/phpt/004_split.phpt b/src/extension/pg-query-ext/tests/phpt/004_split.phpt new file mode 100644 index 000000000..27daad9e1 --- /dev/null +++ b/src/extension/pg-query-ext/tests/phpt/004_split.phpt @@ -0,0 +1,15 @@ +--TEST-- +pg_query_split() functionality +--SKIPIF-- + +--FILE-- + +--EXPECT-- +bool(true) +int(3) diff --git a/src/extension/pg-query-ext/tests/phpt/005_error.phpt b/src/extension/pg-query-ext/tests/phpt/005_error.phpt new file mode 100644 index 000000000..c7d35749b --- /dev/null +++ b/src/extension/pg-query-ext/tests/phpt/005_error.phpt @@ -0,0 +1,17 @@ +--TEST-- +pg_query_parse() throws exception on invalid SQL +--SKIPIF-- + +--FILE-- +getMessage()) > 0); +} +?> +--EXPECT-- +Exception caught +bool(true) diff --git a/src/lib/pg-query/.gitattributes b/src/lib/pg-query/.gitattributes new file mode 100644 index 000000000..74f2158e0 --- /dev/null +++ b/src/lib/pg-query/.gitattributes @@ -0,0 +1,10 @@ +*.php text eol=lf + +/.github export-ignore +/tests export-ignore +/resources export-ignore + +/README.md export-ignore + +/.gitattributes export-ignore +/.gitignore export-ignore diff --git a/src/lib/pg-query/.github/workflows/readonly.yaml b/src/lib/pg-query/.github/workflows/readonly.yaml new file mode 100644 index 000000000..da596bcdd --- /dev/null +++ b/src/lib/pg-query/.github/workflows/readonly.yaml @@ -0,0 +1,17 @@ +name: Readonly + +on: + pull_request_target: + types: [opened] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: superbrothers/close-pull-request@v3 + with: + comment: | + Hi, thank you for your contribution. + Unfortunately, this repository is read-only. It's a split from our main monorepo repository. + In order to proceed with this PR please open it against https://github.com/flow-php/flow repository. + Thank you. \ No newline at end of file diff --git a/src/lib/pg-query/CONTRIBUTING.md b/src/lib/pg-query/CONTRIBUTING.md new file mode 100644 index 000000000..f035b534a --- /dev/null +++ b/src/lib/pg-query/CONTRIBUTING.md @@ -0,0 +1,6 @@ +## Contributing + +This repo is **READ ONLY**, in order to contribute to Flow PHP project, please +open PR against [flow](https://github.com/flow-php/flow) monorepo. + +Changes merged to monorepo are automatically propagated into sub repositories. diff --git a/src/lib/pg-query/LICENSE b/src/lib/pg-query/LICENSE new file mode 100644 index 000000000..bc3cc4d08 --- /dev/null +++ b/src/lib/pg-query/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2020-present Flow PHP + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/lib/pg-query/README.md b/src/lib/pg-query/README.md new file mode 100644 index 000000000..9559316f0 --- /dev/null +++ b/src/lib/pg-query/README.md @@ -0,0 +1,59 @@ +# PostgreSQL Query Parser + +Flow PHP's PostgreSQL Query Parser library provides strongly-typed AST (Abstract Syntax Tree) parsing +for PostgreSQL SQL queries using the [libpg_query](https://github.com/pganalyze/libpg_query) library +through a PHP extension. + +## Installation + +This library requires the `pg_query` PHP extension. Install it via PIE: + +```bash +pie install flow-php/pg-query-ext +``` + +Then install the library via Composer: + +```bash +composer require flow-php/pg-query +``` + +## Usage + +```php +parse('SELECT id, name FROM users WHERE active = true'); + +// Access the AST +foreach ($result->getStmts() as $stmt) { + $node = $stmt->getStmt(); + // Work with the parsed statement... +} + +// Or use DSL functions for convenience +$result = pg_parse('SELECT 1'); + +// Other utilities +$fingerprint = $parser->fingerprint('SELECT id FROM users WHERE id = 1'); +$normalized = $parser->normalize('SELECT * FROM users WHERE id = 1'); // Returns: SELECT * FROM users WHERE id = $1 +$statements = $parser->split('SELECT 1; SELECT 2;'); // Returns: ['SELECT 1', 'SELECT 2'] +``` + +## Features + +- **Full PostgreSQL SQL parsing** - Uses the actual PostgreSQL parser +- **Strongly-typed AST nodes** - Generated from protobuf definitions +- **Query fingerprinting** - Generate unique fingerprints for queries +- **Query normalization** - Replace literals with parameter placeholders +- **Statement splitting** - Split multiple SQL statements + +## Documentation + +- [Official Documentation](https://flow-php.com) +- [GitHub Repository](https://github.com/flow-php/flow) diff --git a/src/lib/pg-query/composer.json b/src/lib/pg-query/composer.json new file mode 100644 index 000000000..113a0c778 --- /dev/null +++ b/src/lib/pg-query/composer.json @@ -0,0 +1,44 @@ +{ + "name": "flow-php/pg-query", + "type": "library", + "description": "PHP ETL - PostgreSQL Query Parser Library", + "keywords": [ + "php", + "postgresql", + "parser", + "query", + "sql", + "ast" + ], + "require": { + "php": "~8.2.0 || ~8.3.0 || ~8.4.0", + "ext-pg_query": "*", + "google/protobuf": "^4.0" + }, + "suggest": { + "ext-protobuf": "For faster protobuf parsing performance" + }, + "config": { + "optimize-autoloader": true, + "sort-packages": true + }, + "license": "MIT", + "autoload": { + "psr-4": { + "Flow\\": [ + "src/Flow" + ] + }, + "files": [ + "src/Flow/PgQuery/DSL/functions.php", + "src/stubs.php" + ] + }, + "autoload-dev": { + "psr-4": { + "Flow\\": "tests/Flow" + } + }, + "minimum-stability": "dev", + "prefer-stable": true +} diff --git a/src/lib/pg-query/resources/proto/pg_query.proto b/src/lib/pg-query/resources/proto/pg_query.proto new file mode 100644 index 000000000..77abb7c96 --- /dev/null +++ b/src/lib/pg-query/resources/proto/pg_query.proto @@ -0,0 +1,4114 @@ +// This file is autogenerated by ./scripts/generate_protobuf_and_funcs.rb +// Modified for Flow PHP with custom PHP namespace options + +syntax = "proto3"; + +package pg_query; + +option php_namespace = "Flow\\PgQuery\\Protobuf\\AST"; +option php_metadata_namespace = "Flow\\PgQuery\\Protobuf\\Metadata"; + +message ParseResult { + int32 version = 1; + repeated RawStmt stmts = 2; +} + +message ScanResult { + int32 version = 1; + repeated ScanToken tokens = 2; +} + +message Node { + oneof node { + Alias alias = 1 [json_name="Alias"]; + RangeVar range_var = 2 [json_name="RangeVar"]; + TableFunc table_func = 3 [json_name="TableFunc"]; + IntoClause into_clause = 4 [json_name="IntoClause"]; + Var var = 5 [json_name="Var"]; + Param param = 6 [json_name="Param"]; + Aggref aggref = 7 [json_name="Aggref"]; + GroupingFunc grouping_func = 8 [json_name="GroupingFunc"]; + WindowFunc window_func = 9 [json_name="WindowFunc"]; + WindowFuncRunCondition window_func_run_condition = 10 [json_name="WindowFuncRunCondition"]; + MergeSupportFunc merge_support_func = 11 [json_name="MergeSupportFunc"]; + SubscriptingRef subscripting_ref = 12 [json_name="SubscriptingRef"]; + FuncExpr func_expr = 13 [json_name="FuncExpr"]; + NamedArgExpr named_arg_expr = 14 [json_name="NamedArgExpr"]; + OpExpr op_expr = 15 [json_name="OpExpr"]; + DistinctExpr distinct_expr = 16 [json_name="DistinctExpr"]; + NullIfExpr null_if_expr = 17 [json_name="NullIfExpr"]; + ScalarArrayOpExpr scalar_array_op_expr = 18 [json_name="ScalarArrayOpExpr"]; + BoolExpr bool_expr = 19 [json_name="BoolExpr"]; + SubLink sub_link = 20 [json_name="SubLink"]; + SubPlan sub_plan = 21 [json_name="SubPlan"]; + AlternativeSubPlan alternative_sub_plan = 22 [json_name="AlternativeSubPlan"]; + FieldSelect field_select = 23 [json_name="FieldSelect"]; + FieldStore field_store = 24 [json_name="FieldStore"]; + RelabelType relabel_type = 25 [json_name="RelabelType"]; + CoerceViaIO coerce_via_io = 26 [json_name="CoerceViaIO"]; + ArrayCoerceExpr array_coerce_expr = 27 [json_name="ArrayCoerceExpr"]; + ConvertRowtypeExpr convert_rowtype_expr = 28 [json_name="ConvertRowtypeExpr"]; + CollateExpr collate_expr = 29 [json_name="CollateExpr"]; + CaseExpr case_expr = 30 [json_name="CaseExpr"]; + CaseWhen case_when = 31 [json_name="CaseWhen"]; + CaseTestExpr case_test_expr = 32 [json_name="CaseTestExpr"]; + ArrayExpr array_expr = 33 [json_name="ArrayExpr"]; + RowExpr row_expr = 34 [json_name="RowExpr"]; + RowCompareExpr row_compare_expr = 35 [json_name="RowCompareExpr"]; + CoalesceExpr coalesce_expr = 36 [json_name="CoalesceExpr"]; + MinMaxExpr min_max_expr = 37 [json_name="MinMaxExpr"]; + SQLValueFunction sqlvalue_function = 38 [json_name="SQLValueFunction"]; + XmlExpr xml_expr = 39 [json_name="XmlExpr"]; + JsonFormat json_format = 40 [json_name="JsonFormat"]; + JsonReturning json_returning = 41 [json_name="JsonReturning"]; + JsonValueExpr json_value_expr = 42 [json_name="JsonValueExpr"]; + JsonConstructorExpr json_constructor_expr = 43 [json_name="JsonConstructorExpr"]; + JsonIsPredicate json_is_predicate = 44 [json_name="JsonIsPredicate"]; + JsonBehavior json_behavior = 45 [json_name="JsonBehavior"]; + JsonExpr json_expr = 46 [json_name="JsonExpr"]; + JsonTablePath json_table_path = 47 [json_name="JsonTablePath"]; + JsonTablePathScan json_table_path_scan = 48 [json_name="JsonTablePathScan"]; + JsonTableSiblingJoin json_table_sibling_join = 49 [json_name="JsonTableSiblingJoin"]; + NullTest null_test = 50 [json_name="NullTest"]; + BooleanTest boolean_test = 51 [json_name="BooleanTest"]; + MergeAction merge_action = 52 [json_name="MergeAction"]; + CoerceToDomain coerce_to_domain = 53 [json_name="CoerceToDomain"]; + CoerceToDomainValue coerce_to_domain_value = 54 [json_name="CoerceToDomainValue"]; + SetToDefault set_to_default = 55 [json_name="SetToDefault"]; + CurrentOfExpr current_of_expr = 56 [json_name="CurrentOfExpr"]; + NextValueExpr next_value_expr = 57 [json_name="NextValueExpr"]; + InferenceElem inference_elem = 58 [json_name="InferenceElem"]; + TargetEntry target_entry = 59 [json_name="TargetEntry"]; + RangeTblRef range_tbl_ref = 60 [json_name="RangeTblRef"]; + JoinExpr join_expr = 61 [json_name="JoinExpr"]; + FromExpr from_expr = 62 [json_name="FromExpr"]; + OnConflictExpr on_conflict_expr = 63 [json_name="OnConflictExpr"]; + Query query = 64 [json_name="Query"]; + TypeName type_name = 65 [json_name="TypeName"]; + ColumnRef column_ref = 66 [json_name="ColumnRef"]; + ParamRef param_ref = 67 [json_name="ParamRef"]; + A_Expr a_expr = 68 [json_name="A_Expr"]; + TypeCast type_cast = 69 [json_name="TypeCast"]; + CollateClause collate_clause = 70 [json_name="CollateClause"]; + RoleSpec role_spec = 71 [json_name="RoleSpec"]; + FuncCall func_call = 72 [json_name="FuncCall"]; + A_Star a_star = 73 [json_name="A_Star"]; + A_Indices a_indices = 74 [json_name="A_Indices"]; + A_Indirection a_indirection = 75 [json_name="A_Indirection"]; + A_ArrayExpr a_array_expr = 76 [json_name="A_ArrayExpr"]; + ResTarget res_target = 77 [json_name="ResTarget"]; + MultiAssignRef multi_assign_ref = 78 [json_name="MultiAssignRef"]; + SortBy sort_by = 79 [json_name="SortBy"]; + WindowDef window_def = 80 [json_name="WindowDef"]; + RangeSubselect range_subselect = 81 [json_name="RangeSubselect"]; + RangeFunction range_function = 82 [json_name="RangeFunction"]; + RangeTableFunc range_table_func = 83 [json_name="RangeTableFunc"]; + RangeTableFuncCol range_table_func_col = 84 [json_name="RangeTableFuncCol"]; + RangeTableSample range_table_sample = 85 [json_name="RangeTableSample"]; + ColumnDef column_def = 86 [json_name="ColumnDef"]; + TableLikeClause table_like_clause = 87 [json_name="TableLikeClause"]; + IndexElem index_elem = 88 [json_name="IndexElem"]; + DefElem def_elem = 89 [json_name="DefElem"]; + LockingClause locking_clause = 90 [json_name="LockingClause"]; + XmlSerialize xml_serialize = 91 [json_name="XmlSerialize"]; + PartitionElem partition_elem = 92 [json_name="PartitionElem"]; + PartitionSpec partition_spec = 93 [json_name="PartitionSpec"]; + PartitionBoundSpec partition_bound_spec = 94 [json_name="PartitionBoundSpec"]; + PartitionRangeDatum partition_range_datum = 95 [json_name="PartitionRangeDatum"]; + SinglePartitionSpec single_partition_spec = 96 [json_name="SinglePartitionSpec"]; + PartitionCmd partition_cmd = 97 [json_name="PartitionCmd"]; + RangeTblEntry range_tbl_entry = 98 [json_name="RangeTblEntry"]; + RTEPermissionInfo rtepermission_info = 99 [json_name="RTEPermissionInfo"]; + RangeTblFunction range_tbl_function = 100 [json_name="RangeTblFunction"]; + TableSampleClause table_sample_clause = 101 [json_name="TableSampleClause"]; + WithCheckOption with_check_option = 102 [json_name="WithCheckOption"]; + SortGroupClause sort_group_clause = 103 [json_name="SortGroupClause"]; + GroupingSet grouping_set = 104 [json_name="GroupingSet"]; + WindowClause window_clause = 105 [json_name="WindowClause"]; + RowMarkClause row_mark_clause = 106 [json_name="RowMarkClause"]; + WithClause with_clause = 107 [json_name="WithClause"]; + InferClause infer_clause = 108 [json_name="InferClause"]; + OnConflictClause on_conflict_clause = 109 [json_name="OnConflictClause"]; + CTESearchClause ctesearch_clause = 110 [json_name="CTESearchClause"]; + CTECycleClause ctecycle_clause = 111 [json_name="CTECycleClause"]; + CommonTableExpr common_table_expr = 112 [json_name="CommonTableExpr"]; + MergeWhenClause merge_when_clause = 113 [json_name="MergeWhenClause"]; + TriggerTransition trigger_transition = 114 [json_name="TriggerTransition"]; + JsonOutput json_output = 115 [json_name="JsonOutput"]; + JsonArgument json_argument = 116 [json_name="JsonArgument"]; + JsonFuncExpr json_func_expr = 117 [json_name="JsonFuncExpr"]; + JsonTablePathSpec json_table_path_spec = 118 [json_name="JsonTablePathSpec"]; + JsonTable json_table = 119 [json_name="JsonTable"]; + JsonTableColumn json_table_column = 120 [json_name="JsonTableColumn"]; + JsonKeyValue json_key_value = 121 [json_name="JsonKeyValue"]; + JsonParseExpr json_parse_expr = 122 [json_name="JsonParseExpr"]; + JsonScalarExpr json_scalar_expr = 123 [json_name="JsonScalarExpr"]; + JsonSerializeExpr json_serialize_expr = 124 [json_name="JsonSerializeExpr"]; + JsonObjectConstructor json_object_constructor = 125 [json_name="JsonObjectConstructor"]; + JsonArrayConstructor json_array_constructor = 126 [json_name="JsonArrayConstructor"]; + JsonArrayQueryConstructor json_array_query_constructor = 127 [json_name="JsonArrayQueryConstructor"]; + JsonAggConstructor json_agg_constructor = 128 [json_name="JsonAggConstructor"]; + JsonObjectAgg json_object_agg = 129 [json_name="JsonObjectAgg"]; + JsonArrayAgg json_array_agg = 130 [json_name="JsonArrayAgg"]; + RawStmt raw_stmt = 131 [json_name="RawStmt"]; + InsertStmt insert_stmt = 132 [json_name="InsertStmt"]; + DeleteStmt delete_stmt = 133 [json_name="DeleteStmt"]; + UpdateStmt update_stmt = 134 [json_name="UpdateStmt"]; + MergeStmt merge_stmt = 135 [json_name="MergeStmt"]; + SelectStmt select_stmt = 136 [json_name="SelectStmt"]; + SetOperationStmt set_operation_stmt = 137 [json_name="SetOperationStmt"]; + ReturnStmt return_stmt = 138 [json_name="ReturnStmt"]; + PLAssignStmt plassign_stmt = 139 [json_name="PLAssignStmt"]; + CreateSchemaStmt create_schema_stmt = 140 [json_name="CreateSchemaStmt"]; + AlterTableStmt alter_table_stmt = 141 [json_name="AlterTableStmt"]; + ReplicaIdentityStmt replica_identity_stmt = 142 [json_name="ReplicaIdentityStmt"]; + AlterTableCmd alter_table_cmd = 143 [json_name="AlterTableCmd"]; + AlterCollationStmt alter_collation_stmt = 144 [json_name="AlterCollationStmt"]; + AlterDomainStmt alter_domain_stmt = 145 [json_name="AlterDomainStmt"]; + GrantStmt grant_stmt = 146 [json_name="GrantStmt"]; + ObjectWithArgs object_with_args = 147 [json_name="ObjectWithArgs"]; + AccessPriv access_priv = 148 [json_name="AccessPriv"]; + GrantRoleStmt grant_role_stmt = 149 [json_name="GrantRoleStmt"]; + AlterDefaultPrivilegesStmt alter_default_privileges_stmt = 150 [json_name="AlterDefaultPrivilegesStmt"]; + CopyStmt copy_stmt = 151 [json_name="CopyStmt"]; + VariableSetStmt variable_set_stmt = 152 [json_name="VariableSetStmt"]; + VariableShowStmt variable_show_stmt = 153 [json_name="VariableShowStmt"]; + CreateStmt create_stmt = 154 [json_name="CreateStmt"]; + Constraint constraint = 155 [json_name="Constraint"]; + CreateTableSpaceStmt create_table_space_stmt = 156 [json_name="CreateTableSpaceStmt"]; + DropTableSpaceStmt drop_table_space_stmt = 157 [json_name="DropTableSpaceStmt"]; + AlterTableSpaceOptionsStmt alter_table_space_options_stmt = 158 [json_name="AlterTableSpaceOptionsStmt"]; + AlterTableMoveAllStmt alter_table_move_all_stmt = 159 [json_name="AlterTableMoveAllStmt"]; + CreateExtensionStmt create_extension_stmt = 160 [json_name="CreateExtensionStmt"]; + AlterExtensionStmt alter_extension_stmt = 161 [json_name="AlterExtensionStmt"]; + AlterExtensionContentsStmt alter_extension_contents_stmt = 162 [json_name="AlterExtensionContentsStmt"]; + CreateFdwStmt create_fdw_stmt = 163 [json_name="CreateFdwStmt"]; + AlterFdwStmt alter_fdw_stmt = 164 [json_name="AlterFdwStmt"]; + CreateForeignServerStmt create_foreign_server_stmt = 165 [json_name="CreateForeignServerStmt"]; + AlterForeignServerStmt alter_foreign_server_stmt = 166 [json_name="AlterForeignServerStmt"]; + CreateForeignTableStmt create_foreign_table_stmt = 167 [json_name="CreateForeignTableStmt"]; + CreateUserMappingStmt create_user_mapping_stmt = 168 [json_name="CreateUserMappingStmt"]; + AlterUserMappingStmt alter_user_mapping_stmt = 169 [json_name="AlterUserMappingStmt"]; + DropUserMappingStmt drop_user_mapping_stmt = 170 [json_name="DropUserMappingStmt"]; + ImportForeignSchemaStmt import_foreign_schema_stmt = 171 [json_name="ImportForeignSchemaStmt"]; + CreatePolicyStmt create_policy_stmt = 172 [json_name="CreatePolicyStmt"]; + AlterPolicyStmt alter_policy_stmt = 173 [json_name="AlterPolicyStmt"]; + CreateAmStmt create_am_stmt = 174 [json_name="CreateAmStmt"]; + CreateTrigStmt create_trig_stmt = 175 [json_name="CreateTrigStmt"]; + CreateEventTrigStmt create_event_trig_stmt = 176 [json_name="CreateEventTrigStmt"]; + AlterEventTrigStmt alter_event_trig_stmt = 177 [json_name="AlterEventTrigStmt"]; + CreatePLangStmt create_plang_stmt = 178 [json_name="CreatePLangStmt"]; + CreateRoleStmt create_role_stmt = 179 [json_name="CreateRoleStmt"]; + AlterRoleStmt alter_role_stmt = 180 [json_name="AlterRoleStmt"]; + AlterRoleSetStmt alter_role_set_stmt = 181 [json_name="AlterRoleSetStmt"]; + DropRoleStmt drop_role_stmt = 182 [json_name="DropRoleStmt"]; + CreateSeqStmt create_seq_stmt = 183 [json_name="CreateSeqStmt"]; + AlterSeqStmt alter_seq_stmt = 184 [json_name="AlterSeqStmt"]; + DefineStmt define_stmt = 185 [json_name="DefineStmt"]; + CreateDomainStmt create_domain_stmt = 186 [json_name="CreateDomainStmt"]; + CreateOpClassStmt create_op_class_stmt = 187 [json_name="CreateOpClassStmt"]; + CreateOpClassItem create_op_class_item = 188 [json_name="CreateOpClassItem"]; + CreateOpFamilyStmt create_op_family_stmt = 189 [json_name="CreateOpFamilyStmt"]; + AlterOpFamilyStmt alter_op_family_stmt = 190 [json_name="AlterOpFamilyStmt"]; + DropStmt drop_stmt = 191 [json_name="DropStmt"]; + TruncateStmt truncate_stmt = 192 [json_name="TruncateStmt"]; + CommentStmt comment_stmt = 193 [json_name="CommentStmt"]; + SecLabelStmt sec_label_stmt = 194 [json_name="SecLabelStmt"]; + DeclareCursorStmt declare_cursor_stmt = 195 [json_name="DeclareCursorStmt"]; + ClosePortalStmt close_portal_stmt = 196 [json_name="ClosePortalStmt"]; + FetchStmt fetch_stmt = 197 [json_name="FetchStmt"]; + IndexStmt index_stmt = 198 [json_name="IndexStmt"]; + CreateStatsStmt create_stats_stmt = 199 [json_name="CreateStatsStmt"]; + StatsElem stats_elem = 200 [json_name="StatsElem"]; + AlterStatsStmt alter_stats_stmt = 201 [json_name="AlterStatsStmt"]; + CreateFunctionStmt create_function_stmt = 202 [json_name="CreateFunctionStmt"]; + FunctionParameter function_parameter = 203 [json_name="FunctionParameter"]; + AlterFunctionStmt alter_function_stmt = 204 [json_name="AlterFunctionStmt"]; + DoStmt do_stmt = 205 [json_name="DoStmt"]; + InlineCodeBlock inline_code_block = 206 [json_name="InlineCodeBlock"]; + CallStmt call_stmt = 207 [json_name="CallStmt"]; + CallContext call_context = 208 [json_name="CallContext"]; + RenameStmt rename_stmt = 209 [json_name="RenameStmt"]; + AlterObjectDependsStmt alter_object_depends_stmt = 210 [json_name="AlterObjectDependsStmt"]; + AlterObjectSchemaStmt alter_object_schema_stmt = 211 [json_name="AlterObjectSchemaStmt"]; + AlterOwnerStmt alter_owner_stmt = 212 [json_name="AlterOwnerStmt"]; + AlterOperatorStmt alter_operator_stmt = 213 [json_name="AlterOperatorStmt"]; + AlterTypeStmt alter_type_stmt = 214 [json_name="AlterTypeStmt"]; + RuleStmt rule_stmt = 215 [json_name="RuleStmt"]; + NotifyStmt notify_stmt = 216 [json_name="NotifyStmt"]; + ListenStmt listen_stmt = 217 [json_name="ListenStmt"]; + UnlistenStmt unlisten_stmt = 218 [json_name="UnlistenStmt"]; + TransactionStmt transaction_stmt = 219 [json_name="TransactionStmt"]; + CompositeTypeStmt composite_type_stmt = 220 [json_name="CompositeTypeStmt"]; + CreateEnumStmt create_enum_stmt = 221 [json_name="CreateEnumStmt"]; + CreateRangeStmt create_range_stmt = 222 [json_name="CreateRangeStmt"]; + AlterEnumStmt alter_enum_stmt = 223 [json_name="AlterEnumStmt"]; + ViewStmt view_stmt = 224 [json_name="ViewStmt"]; + LoadStmt load_stmt = 225 [json_name="LoadStmt"]; + CreatedbStmt createdb_stmt = 226 [json_name="CreatedbStmt"]; + AlterDatabaseStmt alter_database_stmt = 227 [json_name="AlterDatabaseStmt"]; + AlterDatabaseRefreshCollStmt alter_database_refresh_coll_stmt = 228 [json_name="AlterDatabaseRefreshCollStmt"]; + AlterDatabaseSetStmt alter_database_set_stmt = 229 [json_name="AlterDatabaseSetStmt"]; + DropdbStmt dropdb_stmt = 230 [json_name="DropdbStmt"]; + AlterSystemStmt alter_system_stmt = 231 [json_name="AlterSystemStmt"]; + ClusterStmt cluster_stmt = 232 [json_name="ClusterStmt"]; + VacuumStmt vacuum_stmt = 233 [json_name="VacuumStmt"]; + VacuumRelation vacuum_relation = 234 [json_name="VacuumRelation"]; + ExplainStmt explain_stmt = 235 [json_name="ExplainStmt"]; + CreateTableAsStmt create_table_as_stmt = 236 [json_name="CreateTableAsStmt"]; + RefreshMatViewStmt refresh_mat_view_stmt = 237 [json_name="RefreshMatViewStmt"]; + CheckPointStmt check_point_stmt = 238 [json_name="CheckPointStmt"]; + DiscardStmt discard_stmt = 239 [json_name="DiscardStmt"]; + LockStmt lock_stmt = 240 [json_name="LockStmt"]; + ConstraintsSetStmt constraints_set_stmt = 241 [json_name="ConstraintsSetStmt"]; + ReindexStmt reindex_stmt = 242 [json_name="ReindexStmt"]; + CreateConversionStmt create_conversion_stmt = 243 [json_name="CreateConversionStmt"]; + CreateCastStmt create_cast_stmt = 244 [json_name="CreateCastStmt"]; + CreateTransformStmt create_transform_stmt = 245 [json_name="CreateTransformStmt"]; + PrepareStmt prepare_stmt = 246 [json_name="PrepareStmt"]; + ExecuteStmt execute_stmt = 247 [json_name="ExecuteStmt"]; + DeallocateStmt deallocate_stmt = 248 [json_name="DeallocateStmt"]; + DropOwnedStmt drop_owned_stmt = 249 [json_name="DropOwnedStmt"]; + ReassignOwnedStmt reassign_owned_stmt = 250 [json_name="ReassignOwnedStmt"]; + AlterTSDictionaryStmt alter_tsdictionary_stmt = 251 [json_name="AlterTSDictionaryStmt"]; + AlterTSConfigurationStmt alter_tsconfiguration_stmt = 252 [json_name="AlterTSConfigurationStmt"]; + PublicationTable publication_table = 253 [json_name="PublicationTable"]; + PublicationObjSpec publication_obj_spec = 254 [json_name="PublicationObjSpec"]; + CreatePublicationStmt create_publication_stmt = 255 [json_name="CreatePublicationStmt"]; + AlterPublicationStmt alter_publication_stmt = 256 [json_name="AlterPublicationStmt"]; + CreateSubscriptionStmt create_subscription_stmt = 257 [json_name="CreateSubscriptionStmt"]; + AlterSubscriptionStmt alter_subscription_stmt = 258 [json_name="AlterSubscriptionStmt"]; + DropSubscriptionStmt drop_subscription_stmt = 259 [json_name="DropSubscriptionStmt"]; + Integer integer = 260 [json_name="Integer"]; + Float float = 261 [json_name="Float"]; + Boolean boolean = 262 [json_name="Boolean"]; + String string = 263 [json_name="String"]; + BitString bit_string = 264 [json_name="BitString"]; + List list = 265 [json_name="List"]; + IntList int_list = 266 [json_name="IntList"]; + OidList oid_list = 267 [json_name="OidList"]; + A_Const a_const = 268 [json_name="A_Const"]; + } +} + +message Integer +{ + int32 ival = 1; /* machine integer */ +} + +message Float +{ + string fval = 1; /* string */ +} + +message Boolean +{ + bool boolval = 1; +} + +message String +{ + string sval = 1; /* string */ +} + +message BitString +{ + string bsval = 1; /* string */ +} + +message List +{ + repeated Node items = 1; +} + +message OidList +{ + repeated Node items = 1; +} + +message IntList +{ + repeated Node items = 1; +} + +message A_Const +{ + oneof val { + Integer ival = 1; + Float fval = 2; + Boolean boolval = 3; + String sval = 4; + BitString bsval = 5; + } + bool isnull = 10; + int32 location = 11; +} + +message Alias +{ + string aliasname = 1 [json_name="aliasname"]; + repeated Node colnames = 2 [json_name="colnames"]; +} + +message RangeVar +{ + string catalogname = 1 [json_name="catalogname"]; + string schemaname = 2 [json_name="schemaname"]; + string relname = 3 [json_name="relname"]; + bool inh = 4 [json_name="inh"]; + string relpersistence = 5 [json_name="relpersistence"]; + Alias alias = 6 [json_name="alias"]; + int32 location = 7 [json_name="location"]; +} + +message TableFunc +{ + TableFuncType functype = 1 [json_name="functype"]; + repeated Node ns_uris = 2 [json_name="ns_uris"]; + repeated Node ns_names = 3 [json_name="ns_names"]; + Node docexpr = 4 [json_name="docexpr"]; + Node rowexpr = 5 [json_name="rowexpr"]; + repeated Node colnames = 6 [json_name="colnames"]; + repeated Node coltypes = 7 [json_name="coltypes"]; + repeated Node coltypmods = 8 [json_name="coltypmods"]; + repeated Node colcollations = 9 [json_name="colcollations"]; + repeated Node colexprs = 10 [json_name="colexprs"]; + repeated Node coldefexprs = 11 [json_name="coldefexprs"]; + repeated Node colvalexprs = 12 [json_name="colvalexprs"]; + repeated Node passingvalexprs = 13 [json_name="passingvalexprs"]; + repeated uint64 notnulls = 14 [json_name="notnulls"]; + Node plan = 15 [json_name="plan"]; + int32 ordinalitycol = 16 [json_name="ordinalitycol"]; + int32 location = 17 [json_name="location"]; +} + +message IntoClause +{ + RangeVar rel = 1 [json_name="rel"]; + repeated Node col_names = 2 [json_name="colNames"]; + string access_method = 3 [json_name="accessMethod"]; + repeated Node options = 4 [json_name="options"]; + OnCommitAction on_commit = 5 [json_name="onCommit"]; + string table_space_name = 6 [json_name="tableSpaceName"]; + Node view_query = 7 [json_name="viewQuery"]; + bool skip_data = 8 [json_name="skipData"]; +} + +message Var +{ + Node xpr = 1 [json_name="xpr"]; + int32 varno = 2 [json_name="varno"]; + int32 varattno = 3 [json_name="varattno"]; + uint32 vartype = 4 [json_name="vartype"]; + int32 vartypmod = 5 [json_name="vartypmod"]; + uint32 varcollid = 6 [json_name="varcollid"]; + repeated uint64 varnullingrels = 7 [json_name="varnullingrels"]; + uint32 varlevelsup = 8 [json_name="varlevelsup"]; + int32 location = 9 [json_name="location"]; +} + +message Param +{ + Node xpr = 1 [json_name="xpr"]; + ParamKind paramkind = 2 [json_name="paramkind"]; + int32 paramid = 3 [json_name="paramid"]; + uint32 paramtype = 4 [json_name="paramtype"]; + int32 paramtypmod = 5 [json_name="paramtypmod"]; + uint32 paramcollid = 6 [json_name="paramcollid"]; + int32 location = 7 [json_name="location"]; +} + +message Aggref +{ + Node xpr = 1 [json_name="xpr"]; + uint32 aggfnoid = 2 [json_name="aggfnoid"]; + uint32 aggtype = 3 [json_name="aggtype"]; + uint32 aggcollid = 4 [json_name="aggcollid"]; + uint32 inputcollid = 5 [json_name="inputcollid"]; + repeated Node aggargtypes = 6 [json_name="aggargtypes"]; + repeated Node aggdirectargs = 7 [json_name="aggdirectargs"]; + repeated Node args = 8 [json_name="args"]; + repeated Node aggorder = 9 [json_name="aggorder"]; + repeated Node aggdistinct = 10 [json_name="aggdistinct"]; + Node aggfilter = 11 [json_name="aggfilter"]; + bool aggstar = 12 [json_name="aggstar"]; + bool aggvariadic = 13 [json_name="aggvariadic"]; + string aggkind = 14 [json_name="aggkind"]; + uint32 agglevelsup = 15 [json_name="agglevelsup"]; + AggSplit aggsplit = 16 [json_name="aggsplit"]; + int32 aggno = 17 [json_name="aggno"]; + int32 aggtransno = 18 [json_name="aggtransno"]; + int32 location = 19 [json_name="location"]; +} + +message GroupingFunc +{ + Node xpr = 1 [json_name="xpr"]; + repeated Node args = 2 [json_name="args"]; + repeated Node refs = 3 [json_name="refs"]; + uint32 agglevelsup = 4 [json_name="agglevelsup"]; + int32 location = 5 [json_name="location"]; +} + +message WindowFunc +{ + Node xpr = 1 [json_name="xpr"]; + uint32 winfnoid = 2 [json_name="winfnoid"]; + uint32 wintype = 3 [json_name="wintype"]; + uint32 wincollid = 4 [json_name="wincollid"]; + uint32 inputcollid = 5 [json_name="inputcollid"]; + repeated Node args = 6 [json_name="args"]; + Node aggfilter = 7 [json_name="aggfilter"]; + repeated Node run_condition = 8 [json_name="runCondition"]; + uint32 winref = 9 [json_name="winref"]; + bool winstar = 10 [json_name="winstar"]; + bool winagg = 11 [json_name="winagg"]; + int32 location = 12 [json_name="location"]; +} + +message WindowFuncRunCondition +{ + Node xpr = 1 [json_name="xpr"]; + uint32 opno = 2 [json_name="opno"]; + uint32 inputcollid = 3 [json_name="inputcollid"]; + bool wfunc_left = 4 [json_name="wfunc_left"]; + Node arg = 5 [json_name="arg"]; +} + +message MergeSupportFunc +{ + Node xpr = 1 [json_name="xpr"]; + uint32 msftype = 2 [json_name="msftype"]; + uint32 msfcollid = 3 [json_name="msfcollid"]; + int32 location = 4 [json_name="location"]; +} + +message SubscriptingRef +{ + Node xpr = 1 [json_name="xpr"]; + uint32 refcontainertype = 2 [json_name="refcontainertype"]; + uint32 refelemtype = 3 [json_name="refelemtype"]; + uint32 refrestype = 4 [json_name="refrestype"]; + int32 reftypmod = 5 [json_name="reftypmod"]; + uint32 refcollid = 6 [json_name="refcollid"]; + repeated Node refupperindexpr = 7 [json_name="refupperindexpr"]; + repeated Node reflowerindexpr = 8 [json_name="reflowerindexpr"]; + Node refexpr = 9 [json_name="refexpr"]; + Node refassgnexpr = 10 [json_name="refassgnexpr"]; +} + +message FuncExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 funcid = 2 [json_name="funcid"]; + uint32 funcresulttype = 3 [json_name="funcresulttype"]; + bool funcretset = 4 [json_name="funcretset"]; + bool funcvariadic = 5 [json_name="funcvariadic"]; + CoercionForm funcformat = 6 [json_name="funcformat"]; + uint32 funccollid = 7 [json_name="funccollid"]; + uint32 inputcollid = 8 [json_name="inputcollid"]; + repeated Node args = 9 [json_name="args"]; + int32 location = 10 [json_name="location"]; +} + +message NamedArgExpr +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + string name = 3 [json_name="name"]; + int32 argnumber = 4 [json_name="argnumber"]; + int32 location = 5 [json_name="location"]; +} + +message OpExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 opno = 2 [json_name="opno"]; + uint32 opresulttype = 3 [json_name="opresulttype"]; + bool opretset = 4 [json_name="opretset"]; + uint32 opcollid = 5 [json_name="opcollid"]; + uint32 inputcollid = 6 [json_name="inputcollid"]; + repeated Node args = 7 [json_name="args"]; + int32 location = 8 [json_name="location"]; +} + +message DistinctExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 opno = 2 [json_name="opno"]; + uint32 opresulttype = 3 [json_name="opresulttype"]; + bool opretset = 4 [json_name="opretset"]; + uint32 opcollid = 5 [json_name="opcollid"]; + uint32 inputcollid = 6 [json_name="inputcollid"]; + repeated Node args = 7 [json_name="args"]; + int32 location = 8 [json_name="location"]; +} + +message NullIfExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 opno = 2 [json_name="opno"]; + uint32 opresulttype = 3 [json_name="opresulttype"]; + bool opretset = 4 [json_name="opretset"]; + uint32 opcollid = 5 [json_name="opcollid"]; + uint32 inputcollid = 6 [json_name="inputcollid"]; + repeated Node args = 7 [json_name="args"]; + int32 location = 8 [json_name="location"]; +} + +message ScalarArrayOpExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 opno = 2 [json_name="opno"]; + bool use_or = 3 [json_name="useOr"]; + uint32 inputcollid = 4 [json_name="inputcollid"]; + repeated Node args = 5 [json_name="args"]; + int32 location = 6 [json_name="location"]; +} + +message BoolExpr +{ + Node xpr = 1 [json_name="xpr"]; + BoolExprType boolop = 2 [json_name="boolop"]; + repeated Node args = 3 [json_name="args"]; + int32 location = 4 [json_name="location"]; +} + +message SubLink +{ + Node xpr = 1 [json_name="xpr"]; + SubLinkType sub_link_type = 2 [json_name="subLinkType"]; + int32 sub_link_id = 3 [json_name="subLinkId"]; + Node testexpr = 4 [json_name="testexpr"]; + repeated Node oper_name = 5 [json_name="operName"]; + Node subselect = 6 [json_name="subselect"]; + int32 location = 7 [json_name="location"]; +} + +message SubPlan +{ + Node xpr = 1 [json_name="xpr"]; + SubLinkType sub_link_type = 2 [json_name="subLinkType"]; + Node testexpr = 3 [json_name="testexpr"]; + repeated Node param_ids = 4 [json_name="paramIds"]; + int32 plan_id = 5 [json_name="plan_id"]; + string plan_name = 6 [json_name="plan_name"]; + uint32 first_col_type = 7 [json_name="firstColType"]; + int32 first_col_typmod = 8 [json_name="firstColTypmod"]; + uint32 first_col_collation = 9 [json_name="firstColCollation"]; + bool use_hash_table = 10 [json_name="useHashTable"]; + bool unknown_eq_false = 11 [json_name="unknownEqFalse"]; + bool parallel_safe = 12 [json_name="parallel_safe"]; + repeated Node set_param = 13 [json_name="setParam"]; + repeated Node par_param = 14 [json_name="parParam"]; + repeated Node args = 15 [json_name="args"]; + double startup_cost = 16 [json_name="startup_cost"]; + double per_call_cost = 17 [json_name="per_call_cost"]; +} + +message AlternativeSubPlan +{ + Node xpr = 1 [json_name="xpr"]; + repeated Node subplans = 2 [json_name="subplans"]; +} + +message FieldSelect +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + int32 fieldnum = 3 [json_name="fieldnum"]; + uint32 resulttype = 4 [json_name="resulttype"]; + int32 resulttypmod = 5 [json_name="resulttypmod"]; + uint32 resultcollid = 6 [json_name="resultcollid"]; +} + +message FieldStore +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + repeated Node newvals = 3 [json_name="newvals"]; + repeated Node fieldnums = 4 [json_name="fieldnums"]; + uint32 resulttype = 5 [json_name="resulttype"]; +} + +message RelabelType +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + uint32 resulttype = 3 [json_name="resulttype"]; + int32 resulttypmod = 4 [json_name="resulttypmod"]; + uint32 resultcollid = 5 [json_name="resultcollid"]; + CoercionForm relabelformat = 6 [json_name="relabelformat"]; + int32 location = 7 [json_name="location"]; +} + +message CoerceViaIO +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + uint32 resulttype = 3 [json_name="resulttype"]; + uint32 resultcollid = 4 [json_name="resultcollid"]; + CoercionForm coerceformat = 5 [json_name="coerceformat"]; + int32 location = 6 [json_name="location"]; +} + +message ArrayCoerceExpr +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + Node elemexpr = 3 [json_name="elemexpr"]; + uint32 resulttype = 4 [json_name="resulttype"]; + int32 resulttypmod = 5 [json_name="resulttypmod"]; + uint32 resultcollid = 6 [json_name="resultcollid"]; + CoercionForm coerceformat = 7 [json_name="coerceformat"]; + int32 location = 8 [json_name="location"]; +} + +message ConvertRowtypeExpr +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + uint32 resulttype = 3 [json_name="resulttype"]; + CoercionForm convertformat = 4 [json_name="convertformat"]; + int32 location = 5 [json_name="location"]; +} + +message CollateExpr +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + uint32 coll_oid = 3 [json_name="collOid"]; + int32 location = 4 [json_name="location"]; +} + +message CaseExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 casetype = 2 [json_name="casetype"]; + uint32 casecollid = 3 [json_name="casecollid"]; + Node arg = 4 [json_name="arg"]; + repeated Node args = 5 [json_name="args"]; + Node defresult = 6 [json_name="defresult"]; + int32 location = 7 [json_name="location"]; +} + +message CaseWhen +{ + Node xpr = 1 [json_name="xpr"]; + Node expr = 2 [json_name="expr"]; + Node result = 3 [json_name="result"]; + int32 location = 4 [json_name="location"]; +} + +message CaseTestExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 type_id = 2 [json_name="typeId"]; + int32 type_mod = 3 [json_name="typeMod"]; + uint32 collation = 4 [json_name="collation"]; +} + +message ArrayExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 array_typeid = 2 [json_name="array_typeid"]; + uint32 array_collid = 3 [json_name="array_collid"]; + uint32 element_typeid = 4 [json_name="element_typeid"]; + repeated Node elements = 5 [json_name="elements"]; + bool multidims = 6 [json_name="multidims"]; + int32 location = 7 [json_name="location"]; +} + +message RowExpr +{ + Node xpr = 1 [json_name="xpr"]; + repeated Node args = 2 [json_name="args"]; + uint32 row_typeid = 3 [json_name="row_typeid"]; + CoercionForm row_format = 4 [json_name="row_format"]; + repeated Node colnames = 5 [json_name="colnames"]; + int32 location = 6 [json_name="location"]; +} + +message RowCompareExpr +{ + Node xpr = 1 [json_name="xpr"]; + RowCompareType rctype = 2 [json_name="rctype"]; + repeated Node opnos = 3 [json_name="opnos"]; + repeated Node opfamilies = 4 [json_name="opfamilies"]; + repeated Node inputcollids = 5 [json_name="inputcollids"]; + repeated Node largs = 6 [json_name="largs"]; + repeated Node rargs = 7 [json_name="rargs"]; +} + +message CoalesceExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 coalescetype = 2 [json_name="coalescetype"]; + uint32 coalescecollid = 3 [json_name="coalescecollid"]; + repeated Node args = 4 [json_name="args"]; + int32 location = 5 [json_name="location"]; +} + +message MinMaxExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 minmaxtype = 2 [json_name="minmaxtype"]; + uint32 minmaxcollid = 3 [json_name="minmaxcollid"]; + uint32 inputcollid = 4 [json_name="inputcollid"]; + MinMaxOp op = 5 [json_name="op"]; + repeated Node args = 6 [json_name="args"]; + int32 location = 7 [json_name="location"]; +} + +message SQLValueFunction +{ + Node xpr = 1 [json_name="xpr"]; + SQLValueFunctionOp op = 2 [json_name="op"]; + uint32 type = 3 [json_name="type"]; + int32 typmod = 4 [json_name="typmod"]; + int32 location = 5 [json_name="location"]; +} + +message XmlExpr +{ + Node xpr = 1 [json_name="xpr"]; + XmlExprOp op = 2 [json_name="op"]; + string name = 3 [json_name="name"]; + repeated Node named_args = 4 [json_name="named_args"]; + repeated Node arg_names = 5 [json_name="arg_names"]; + repeated Node args = 6 [json_name="args"]; + XmlOptionType xmloption = 7 [json_name="xmloption"]; + bool indent = 8 [json_name="indent"]; + uint32 type = 9 [json_name="type"]; + int32 typmod = 10 [json_name="typmod"]; + int32 location = 11 [json_name="location"]; +} + +message JsonFormat +{ + JsonFormatType format_type = 1 [json_name="format_type"]; + JsonEncoding encoding = 2 [json_name="encoding"]; + int32 location = 3 [json_name="location"]; +} + +message JsonReturning +{ + JsonFormat format = 1 [json_name="format"]; + uint32 typid = 2 [json_name="typid"]; + int32 typmod = 3 [json_name="typmod"]; +} + +message JsonValueExpr +{ + Node raw_expr = 1 [json_name="raw_expr"]; + Node formatted_expr = 2 [json_name="formatted_expr"]; + JsonFormat format = 3 [json_name="format"]; +} + +message JsonConstructorExpr +{ + Node xpr = 1 [json_name="xpr"]; + JsonConstructorType type = 2 [json_name="type"]; + repeated Node args = 3 [json_name="args"]; + Node func = 4 [json_name="func"]; + Node coercion = 5 [json_name="coercion"]; + JsonReturning returning = 6 [json_name="returning"]; + bool absent_on_null = 7 [json_name="absent_on_null"]; + bool unique = 8 [json_name="unique"]; + int32 location = 9 [json_name="location"]; +} + +message JsonIsPredicate +{ + Node expr = 1 [json_name="expr"]; + JsonFormat format = 2 [json_name="format"]; + JsonValueType item_type = 3 [json_name="item_type"]; + bool unique_keys = 4 [json_name="unique_keys"]; + int32 location = 5 [json_name="location"]; +} + +message JsonBehavior +{ + JsonBehaviorType btype = 1 [json_name="btype"]; + Node expr = 2 [json_name="expr"]; + bool coerce = 3 [json_name="coerce"]; + int32 location = 4 [json_name="location"]; +} + +message JsonExpr +{ + Node xpr = 1 [json_name="xpr"]; + JsonExprOp op = 2 [json_name="op"]; + string column_name = 3 [json_name="column_name"]; + Node formatted_expr = 4 [json_name="formatted_expr"]; + JsonFormat format = 5 [json_name="format"]; + Node path_spec = 6 [json_name="path_spec"]; + JsonReturning returning = 7 [json_name="returning"]; + repeated Node passing_names = 8 [json_name="passing_names"]; + repeated Node passing_values = 9 [json_name="passing_values"]; + JsonBehavior on_empty = 10 [json_name="on_empty"]; + JsonBehavior on_error = 11 [json_name="on_error"]; + bool use_io_coercion = 12 [json_name="use_io_coercion"]; + bool use_json_coercion = 13 [json_name="use_json_coercion"]; + JsonWrapper wrapper = 14 [json_name="wrapper"]; + bool omit_quotes = 15 [json_name="omit_quotes"]; + uint32 collation = 16 [json_name="collation"]; + int32 location = 17 [json_name="location"]; +} + +message JsonTablePath +{ + string name = 1 [json_name="name"]; +} + +message JsonTablePathScan +{ + Node plan = 1 [json_name="plan"]; + JsonTablePath path = 2 [json_name="path"]; + bool error_on_error = 3 [json_name="errorOnError"]; + Node child = 4 [json_name="child"]; + int32 col_min = 5 [json_name="colMin"]; + int32 col_max = 6 [json_name="colMax"]; +} + +message JsonTableSiblingJoin +{ + Node plan = 1 [json_name="plan"]; + Node lplan = 2 [json_name="lplan"]; + Node rplan = 3 [json_name="rplan"]; +} + +message NullTest +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + NullTestType nulltesttype = 3 [json_name="nulltesttype"]; + bool argisrow = 4 [json_name="argisrow"]; + int32 location = 5 [json_name="location"]; +} + +message BooleanTest +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + BoolTestType booltesttype = 3 [json_name="booltesttype"]; + int32 location = 4 [json_name="location"]; +} + +message MergeAction +{ + MergeMatchKind match_kind = 1 [json_name="matchKind"]; + CmdType command_type = 2 [json_name="commandType"]; + OverridingKind override = 3 [json_name="override"]; + Node qual = 4 [json_name="qual"]; + repeated Node target_list = 5 [json_name="targetList"]; + repeated Node update_colnos = 6 [json_name="updateColnos"]; +} + +message CoerceToDomain +{ + Node xpr = 1 [json_name="xpr"]; + Node arg = 2 [json_name="arg"]; + uint32 resulttype = 3 [json_name="resulttype"]; + int32 resulttypmod = 4 [json_name="resulttypmod"]; + uint32 resultcollid = 5 [json_name="resultcollid"]; + CoercionForm coercionformat = 6 [json_name="coercionformat"]; + int32 location = 7 [json_name="location"]; +} + +message CoerceToDomainValue +{ + Node xpr = 1 [json_name="xpr"]; + uint32 type_id = 2 [json_name="typeId"]; + int32 type_mod = 3 [json_name="typeMod"]; + uint32 collation = 4 [json_name="collation"]; + int32 location = 5 [json_name="location"]; +} + +message SetToDefault +{ + Node xpr = 1 [json_name="xpr"]; + uint32 type_id = 2 [json_name="typeId"]; + int32 type_mod = 3 [json_name="typeMod"]; + uint32 collation = 4 [json_name="collation"]; + int32 location = 5 [json_name="location"]; +} + +message CurrentOfExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 cvarno = 2 [json_name="cvarno"]; + string cursor_name = 3 [json_name="cursor_name"]; + int32 cursor_param = 4 [json_name="cursor_param"]; +} + +message NextValueExpr +{ + Node xpr = 1 [json_name="xpr"]; + uint32 seqid = 2 [json_name="seqid"]; + uint32 type_id = 3 [json_name="typeId"]; +} + +message InferenceElem +{ + Node xpr = 1 [json_name="xpr"]; + Node expr = 2 [json_name="expr"]; + uint32 infercollid = 3 [json_name="infercollid"]; + uint32 inferopclass = 4 [json_name="inferopclass"]; +} + +message TargetEntry +{ + Node xpr = 1 [json_name="xpr"]; + Node expr = 2 [json_name="expr"]; + int32 resno = 3 [json_name="resno"]; + string resname = 4 [json_name="resname"]; + uint32 ressortgroupref = 5 [json_name="ressortgroupref"]; + uint32 resorigtbl = 6 [json_name="resorigtbl"]; + int32 resorigcol = 7 [json_name="resorigcol"]; + bool resjunk = 8 [json_name="resjunk"]; +} + +message RangeTblRef +{ + int32 rtindex = 1 [json_name="rtindex"]; +} + +message JoinExpr +{ + JoinType jointype = 1 [json_name="jointype"]; + bool is_natural = 2 [json_name="isNatural"]; + Node larg = 3 [json_name="larg"]; + Node rarg = 4 [json_name="rarg"]; + repeated Node using_clause = 5 [json_name="usingClause"]; + Alias join_using_alias = 6 [json_name="join_using_alias"]; + Node quals = 7 [json_name="quals"]; + Alias alias = 8 [json_name="alias"]; + int32 rtindex = 9 [json_name="rtindex"]; +} + +message FromExpr +{ + repeated Node fromlist = 1 [json_name="fromlist"]; + Node quals = 2 [json_name="quals"]; +} + +message OnConflictExpr +{ + OnConflictAction action = 1 [json_name="action"]; + repeated Node arbiter_elems = 2 [json_name="arbiterElems"]; + Node arbiter_where = 3 [json_name="arbiterWhere"]; + uint32 constraint = 4 [json_name="constraint"]; + repeated Node on_conflict_set = 5 [json_name="onConflictSet"]; + Node on_conflict_where = 6 [json_name="onConflictWhere"]; + int32 excl_rel_index = 7 [json_name="exclRelIndex"]; + repeated Node excl_rel_tlist = 8 [json_name="exclRelTlist"]; +} + +message Query +{ + CmdType command_type = 1 [json_name="commandType"]; + QuerySource query_source = 2 [json_name="querySource"]; + bool can_set_tag = 3 [json_name="canSetTag"]; + Node utility_stmt = 4 [json_name="utilityStmt"]; + int32 result_relation = 5 [json_name="resultRelation"]; + bool has_aggs = 6 [json_name="hasAggs"]; + bool has_window_funcs = 7 [json_name="hasWindowFuncs"]; + bool has_target_srfs = 8 [json_name="hasTargetSRFs"]; + bool has_sub_links = 9 [json_name="hasSubLinks"]; + bool has_distinct_on = 10 [json_name="hasDistinctOn"]; + bool has_recursive = 11 [json_name="hasRecursive"]; + bool has_modifying_cte = 12 [json_name="hasModifyingCTE"]; + bool has_for_update = 13 [json_name="hasForUpdate"]; + bool has_row_security = 14 [json_name="hasRowSecurity"]; + bool is_return = 15 [json_name="isReturn"]; + repeated Node cte_list = 16 [json_name="cteList"]; + repeated Node rtable = 17 [json_name="rtable"]; + repeated Node rteperminfos = 18 [json_name="rteperminfos"]; + FromExpr jointree = 19 [json_name="jointree"]; + repeated Node merge_action_list = 20 [json_name="mergeActionList"]; + int32 merge_target_relation = 21 [json_name="mergeTargetRelation"]; + Node merge_join_condition = 22 [json_name="mergeJoinCondition"]; + repeated Node target_list = 23 [json_name="targetList"]; + OverridingKind override = 24 [json_name="override"]; + OnConflictExpr on_conflict = 25 [json_name="onConflict"]; + repeated Node returning_list = 26 [json_name="returningList"]; + repeated Node group_clause = 27 [json_name="groupClause"]; + bool group_distinct = 28 [json_name="groupDistinct"]; + repeated Node grouping_sets = 29 [json_name="groupingSets"]; + Node having_qual = 30 [json_name="havingQual"]; + repeated Node window_clause = 31 [json_name="windowClause"]; + repeated Node distinct_clause = 32 [json_name="distinctClause"]; + repeated Node sort_clause = 33 [json_name="sortClause"]; + Node limit_offset = 34 [json_name="limitOffset"]; + Node limit_count = 35 [json_name="limitCount"]; + LimitOption limit_option = 36 [json_name="limitOption"]; + repeated Node row_marks = 37 [json_name="rowMarks"]; + Node set_operations = 38 [json_name="setOperations"]; + repeated Node constraint_deps = 39 [json_name="constraintDeps"]; + repeated Node with_check_options = 40 [json_name="withCheckOptions"]; + int32 stmt_location = 41 [json_name="stmt_location"]; + int32 stmt_len = 42 [json_name="stmt_len"]; +} + +message TypeName +{ + repeated Node names = 1 [json_name="names"]; + uint32 type_oid = 2 [json_name="typeOid"]; + bool setof = 3 [json_name="setof"]; + bool pct_type = 4 [json_name="pct_type"]; + repeated Node typmods = 5 [json_name="typmods"]; + int32 typemod = 6 [json_name="typemod"]; + repeated Node array_bounds = 7 [json_name="arrayBounds"]; + int32 location = 8 [json_name="location"]; +} + +message ColumnRef +{ + repeated Node fields = 1 [json_name="fields"]; + int32 location = 2 [json_name="location"]; +} + +message ParamRef +{ + int32 number = 1 [json_name="number"]; + int32 location = 2 [json_name="location"]; +} + +message A_Expr +{ + A_Expr_Kind kind = 1 [json_name="kind"]; + repeated Node name = 2 [json_name="name"]; + Node lexpr = 3 [json_name="lexpr"]; + Node rexpr = 4 [json_name="rexpr"]; + int32 location = 5 [json_name="location"]; +} + +message TypeCast +{ + Node arg = 1 [json_name="arg"]; + TypeName type_name = 2 [json_name="typeName"]; + int32 location = 3 [json_name="location"]; +} + +message CollateClause +{ + Node arg = 1 [json_name="arg"]; + repeated Node collname = 2 [json_name="collname"]; + int32 location = 3 [json_name="location"]; +} + +message RoleSpec +{ + RoleSpecType roletype = 1 [json_name="roletype"]; + string rolename = 2 [json_name="rolename"]; + int32 location = 3 [json_name="location"]; +} + +message FuncCall +{ + repeated Node funcname = 1 [json_name="funcname"]; + repeated Node args = 2 [json_name="args"]; + repeated Node agg_order = 3 [json_name="agg_order"]; + Node agg_filter = 4 [json_name="agg_filter"]; + WindowDef over = 5 [json_name="over"]; + bool agg_within_group = 6 [json_name="agg_within_group"]; + bool agg_star = 7 [json_name="agg_star"]; + bool agg_distinct = 8 [json_name="agg_distinct"]; + bool func_variadic = 9 [json_name="func_variadic"]; + CoercionForm funcformat = 10 [json_name="funcformat"]; + int32 location = 11 [json_name="location"]; +} + +message A_Star +{ +} + +message A_Indices +{ + bool is_slice = 1 [json_name="is_slice"]; + Node lidx = 2 [json_name="lidx"]; + Node uidx = 3 [json_name="uidx"]; +} + +message A_Indirection +{ + Node arg = 1 [json_name="arg"]; + repeated Node indirection = 2 [json_name="indirection"]; +} + +message A_ArrayExpr +{ + repeated Node elements = 1 [json_name="elements"]; + int32 location = 2 [json_name="location"]; +} + +message ResTarget +{ + string name = 1 [json_name="name"]; + repeated Node indirection = 2 [json_name="indirection"]; + Node val = 3 [json_name="val"]; + int32 location = 4 [json_name="location"]; +} + +message MultiAssignRef +{ + Node source = 1 [json_name="source"]; + int32 colno = 2 [json_name="colno"]; + int32 ncolumns = 3 [json_name="ncolumns"]; +} + +message SortBy +{ + Node node = 1 [json_name="node"]; + SortByDir sortby_dir = 2 [json_name="sortby_dir"]; + SortByNulls sortby_nulls = 3 [json_name="sortby_nulls"]; + repeated Node use_op = 4 [json_name="useOp"]; + int32 location = 5 [json_name="location"]; +} + +message WindowDef +{ + string name = 1 [json_name="name"]; + string refname = 2 [json_name="refname"]; + repeated Node partition_clause = 3 [json_name="partitionClause"]; + repeated Node order_clause = 4 [json_name="orderClause"]; + int32 frame_options = 5 [json_name="frameOptions"]; + Node start_offset = 6 [json_name="startOffset"]; + Node end_offset = 7 [json_name="endOffset"]; + int32 location = 8 [json_name="location"]; +} + +message RangeSubselect +{ + bool lateral = 1 [json_name="lateral"]; + Node subquery = 2 [json_name="subquery"]; + Alias alias = 3 [json_name="alias"]; +} + +message RangeFunction +{ + bool lateral = 1 [json_name="lateral"]; + bool ordinality = 2 [json_name="ordinality"]; + bool is_rowsfrom = 3 [json_name="is_rowsfrom"]; + repeated Node functions = 4 [json_name="functions"]; + Alias alias = 5 [json_name="alias"]; + repeated Node coldeflist = 6 [json_name="coldeflist"]; +} + +message RangeTableFunc +{ + bool lateral = 1 [json_name="lateral"]; + Node docexpr = 2 [json_name="docexpr"]; + Node rowexpr = 3 [json_name="rowexpr"]; + repeated Node namespaces = 4 [json_name="namespaces"]; + repeated Node columns = 5 [json_name="columns"]; + Alias alias = 6 [json_name="alias"]; + int32 location = 7 [json_name="location"]; +} + +message RangeTableFuncCol +{ + string colname = 1 [json_name="colname"]; + TypeName type_name = 2 [json_name="typeName"]; + bool for_ordinality = 3 [json_name="for_ordinality"]; + bool is_not_null = 4 [json_name="is_not_null"]; + Node colexpr = 5 [json_name="colexpr"]; + Node coldefexpr = 6 [json_name="coldefexpr"]; + int32 location = 7 [json_name="location"]; +} + +message RangeTableSample +{ + Node relation = 1 [json_name="relation"]; + repeated Node method = 2 [json_name="method"]; + repeated Node args = 3 [json_name="args"]; + Node repeatable = 4 [json_name="repeatable"]; + int32 location = 5 [json_name="location"]; +} + +message ColumnDef +{ + string colname = 1 [json_name="colname"]; + TypeName type_name = 2 [json_name="typeName"]; + string compression = 3 [json_name="compression"]; + int32 inhcount = 4 [json_name="inhcount"]; + bool is_local = 5 [json_name="is_local"]; + bool is_not_null = 6 [json_name="is_not_null"]; + bool is_from_type = 7 [json_name="is_from_type"]; + string storage = 8 [json_name="storage"]; + string storage_name = 9 [json_name="storage_name"]; + Node raw_default = 10 [json_name="raw_default"]; + Node cooked_default = 11 [json_name="cooked_default"]; + string identity = 12 [json_name="identity"]; + RangeVar identity_sequence = 13 [json_name="identitySequence"]; + string generated = 14 [json_name="generated"]; + CollateClause coll_clause = 15 [json_name="collClause"]; + uint32 coll_oid = 16 [json_name="collOid"]; + repeated Node constraints = 17 [json_name="constraints"]; + repeated Node fdwoptions = 18 [json_name="fdwoptions"]; + int32 location = 19 [json_name="location"]; +} + +message TableLikeClause +{ + RangeVar relation = 1 [json_name="relation"]; + uint32 options = 2 [json_name="options"]; + uint32 relation_oid = 3 [json_name="relationOid"]; +} + +message IndexElem +{ + string name = 1 [json_name="name"]; + Node expr = 2 [json_name="expr"]; + string indexcolname = 3 [json_name="indexcolname"]; + repeated Node collation = 4 [json_name="collation"]; + repeated Node opclass = 5 [json_name="opclass"]; + repeated Node opclassopts = 6 [json_name="opclassopts"]; + SortByDir ordering = 7 [json_name="ordering"]; + SortByNulls nulls_ordering = 8 [json_name="nulls_ordering"]; +} + +message DefElem +{ + string defnamespace = 1 [json_name="defnamespace"]; + string defname = 2 [json_name="defname"]; + Node arg = 3 [json_name="arg"]; + DefElemAction defaction = 4 [json_name="defaction"]; + int32 location = 5 [json_name="location"]; +} + +message LockingClause +{ + repeated Node locked_rels = 1 [json_name="lockedRels"]; + LockClauseStrength strength = 2 [json_name="strength"]; + LockWaitPolicy wait_policy = 3 [json_name="waitPolicy"]; +} + +message XmlSerialize +{ + XmlOptionType xmloption = 1 [json_name="xmloption"]; + Node expr = 2 [json_name="expr"]; + TypeName type_name = 3 [json_name="typeName"]; + bool indent = 4 [json_name="indent"]; + int32 location = 5 [json_name="location"]; +} + +message PartitionElem +{ + string name = 1 [json_name="name"]; + Node expr = 2 [json_name="expr"]; + repeated Node collation = 3 [json_name="collation"]; + repeated Node opclass = 4 [json_name="opclass"]; + int32 location = 5 [json_name="location"]; +} + +message PartitionSpec +{ + PartitionStrategy strategy = 1 [json_name="strategy"]; + repeated Node part_params = 2 [json_name="partParams"]; + int32 location = 3 [json_name="location"]; +} + +message PartitionBoundSpec +{ + string strategy = 1 [json_name="strategy"]; + bool is_default = 2 [json_name="is_default"]; + int32 modulus = 3 [json_name="modulus"]; + int32 remainder = 4 [json_name="remainder"]; + repeated Node listdatums = 5 [json_name="listdatums"]; + repeated Node lowerdatums = 6 [json_name="lowerdatums"]; + repeated Node upperdatums = 7 [json_name="upperdatums"]; + int32 location = 8 [json_name="location"]; +} + +message PartitionRangeDatum +{ + PartitionRangeDatumKind kind = 1 [json_name="kind"]; + Node value = 2 [json_name="value"]; + int32 location = 3 [json_name="location"]; +} + +message SinglePartitionSpec +{ +} + +message PartitionCmd +{ + RangeVar name = 1 [json_name="name"]; + PartitionBoundSpec bound = 2 [json_name="bound"]; + bool concurrent = 3 [json_name="concurrent"]; +} + +message RangeTblEntry +{ + Alias alias = 1 [json_name="alias"]; + Alias eref = 2 [json_name="eref"]; + RTEKind rtekind = 3 [json_name="rtekind"]; + uint32 relid = 4 [json_name="relid"]; + bool inh = 5 [json_name="inh"]; + string relkind = 6 [json_name="relkind"]; + int32 rellockmode = 7 [json_name="rellockmode"]; + uint32 perminfoindex = 8 [json_name="perminfoindex"]; + TableSampleClause tablesample = 9 [json_name="tablesample"]; + Query subquery = 10 [json_name="subquery"]; + bool security_barrier = 11 [json_name="security_barrier"]; + JoinType jointype = 12 [json_name="jointype"]; + int32 joinmergedcols = 13 [json_name="joinmergedcols"]; + repeated Node joinaliasvars = 14 [json_name="joinaliasvars"]; + repeated Node joinleftcols = 15 [json_name="joinleftcols"]; + repeated Node joinrightcols = 16 [json_name="joinrightcols"]; + Alias join_using_alias = 17 [json_name="join_using_alias"]; + repeated Node functions = 18 [json_name="functions"]; + bool funcordinality = 19 [json_name="funcordinality"]; + TableFunc tablefunc = 20 [json_name="tablefunc"]; + repeated Node values_lists = 21 [json_name="values_lists"]; + string ctename = 22 [json_name="ctename"]; + uint32 ctelevelsup = 23 [json_name="ctelevelsup"]; + bool self_reference = 24 [json_name="self_reference"]; + repeated Node coltypes = 25 [json_name="coltypes"]; + repeated Node coltypmods = 26 [json_name="coltypmods"]; + repeated Node colcollations = 27 [json_name="colcollations"]; + string enrname = 28 [json_name="enrname"]; + double enrtuples = 29 [json_name="enrtuples"]; + bool lateral = 30 [json_name="lateral"]; + bool in_from_cl = 31 [json_name="inFromCl"]; + repeated Node security_quals = 32 [json_name="securityQuals"]; +} + +message RTEPermissionInfo +{ + uint32 relid = 1 [json_name="relid"]; + bool inh = 2 [json_name="inh"]; + uint64 required_perms = 3 [json_name="requiredPerms"]; + uint32 check_as_user = 4 [json_name="checkAsUser"]; + repeated uint64 selected_cols = 5 [json_name="selectedCols"]; + repeated uint64 inserted_cols = 6 [json_name="insertedCols"]; + repeated uint64 updated_cols = 7 [json_name="updatedCols"]; +} + +message RangeTblFunction +{ + Node funcexpr = 1 [json_name="funcexpr"]; + int32 funccolcount = 2 [json_name="funccolcount"]; + repeated Node funccolnames = 3 [json_name="funccolnames"]; + repeated Node funccoltypes = 4 [json_name="funccoltypes"]; + repeated Node funccoltypmods = 5 [json_name="funccoltypmods"]; + repeated Node funccolcollations = 6 [json_name="funccolcollations"]; + repeated uint64 funcparams = 7 [json_name="funcparams"]; +} + +message TableSampleClause +{ + uint32 tsmhandler = 1 [json_name="tsmhandler"]; + repeated Node args = 2 [json_name="args"]; + Node repeatable = 3 [json_name="repeatable"]; +} + +message WithCheckOption +{ + WCOKind kind = 1 [json_name="kind"]; + string relname = 2 [json_name="relname"]; + string polname = 3 [json_name="polname"]; + Node qual = 4 [json_name="qual"]; + bool cascaded = 5 [json_name="cascaded"]; +} + +message SortGroupClause +{ + uint32 tle_sort_group_ref = 1 [json_name="tleSortGroupRef"]; + uint32 eqop = 2 [json_name="eqop"]; + uint32 sortop = 3 [json_name="sortop"]; + bool nulls_first = 4 [json_name="nulls_first"]; + bool hashable = 5 [json_name="hashable"]; +} + +message GroupingSet +{ + GroupingSetKind kind = 1 [json_name="kind"]; + repeated Node content = 2 [json_name="content"]; + int32 location = 3 [json_name="location"]; +} + +message WindowClause +{ + string name = 1 [json_name="name"]; + string refname = 2 [json_name="refname"]; + repeated Node partition_clause = 3 [json_name="partitionClause"]; + repeated Node order_clause = 4 [json_name="orderClause"]; + int32 frame_options = 5 [json_name="frameOptions"]; + Node start_offset = 6 [json_name="startOffset"]; + Node end_offset = 7 [json_name="endOffset"]; + uint32 start_in_range_func = 8 [json_name="startInRangeFunc"]; + uint32 end_in_range_func = 9 [json_name="endInRangeFunc"]; + uint32 in_range_coll = 10 [json_name="inRangeColl"]; + bool in_range_asc = 11 [json_name="inRangeAsc"]; + bool in_range_nulls_first = 12 [json_name="inRangeNullsFirst"]; + uint32 winref = 13 [json_name="winref"]; + bool copied_order = 14 [json_name="copiedOrder"]; +} + +message RowMarkClause +{ + uint32 rti = 1 [json_name="rti"]; + LockClauseStrength strength = 2 [json_name="strength"]; + LockWaitPolicy wait_policy = 3 [json_name="waitPolicy"]; + bool pushed_down = 4 [json_name="pushedDown"]; +} + +message WithClause +{ + repeated Node ctes = 1 [json_name="ctes"]; + bool recursive = 2 [json_name="recursive"]; + int32 location = 3 [json_name="location"]; +} + +message InferClause +{ + repeated Node index_elems = 1 [json_name="indexElems"]; + Node where_clause = 2 [json_name="whereClause"]; + string conname = 3 [json_name="conname"]; + int32 location = 4 [json_name="location"]; +} + +message OnConflictClause +{ + OnConflictAction action = 1 [json_name="action"]; + InferClause infer = 2 [json_name="infer"]; + repeated Node target_list = 3 [json_name="targetList"]; + Node where_clause = 4 [json_name="whereClause"]; + int32 location = 5 [json_name="location"]; +} + +message CTESearchClause +{ + repeated Node search_col_list = 1 [json_name="search_col_list"]; + bool search_breadth_first = 2 [json_name="search_breadth_first"]; + string search_seq_column = 3 [json_name="search_seq_column"]; + int32 location = 4 [json_name="location"]; +} + +message CTECycleClause +{ + repeated Node cycle_col_list = 1 [json_name="cycle_col_list"]; + string cycle_mark_column = 2 [json_name="cycle_mark_column"]; + Node cycle_mark_value = 3 [json_name="cycle_mark_value"]; + Node cycle_mark_default = 4 [json_name="cycle_mark_default"]; + string cycle_path_column = 5 [json_name="cycle_path_column"]; + int32 location = 6 [json_name="location"]; + uint32 cycle_mark_type = 7 [json_name="cycle_mark_type"]; + int32 cycle_mark_typmod = 8 [json_name="cycle_mark_typmod"]; + uint32 cycle_mark_collation = 9 [json_name="cycle_mark_collation"]; + uint32 cycle_mark_neop = 10 [json_name="cycle_mark_neop"]; +} + +message CommonTableExpr +{ + string ctename = 1 [json_name="ctename"]; + repeated Node aliascolnames = 2 [json_name="aliascolnames"]; + CTEMaterialize ctematerialized = 3 [json_name="ctematerialized"]; + Node ctequery = 4 [json_name="ctequery"]; + CTESearchClause search_clause = 5 [json_name="search_clause"]; + CTECycleClause cycle_clause = 6 [json_name="cycle_clause"]; + int32 location = 7 [json_name="location"]; + bool cterecursive = 8 [json_name="cterecursive"]; + int32 cterefcount = 9 [json_name="cterefcount"]; + repeated Node ctecolnames = 10 [json_name="ctecolnames"]; + repeated Node ctecoltypes = 11 [json_name="ctecoltypes"]; + repeated Node ctecoltypmods = 12 [json_name="ctecoltypmods"]; + repeated Node ctecolcollations = 13 [json_name="ctecolcollations"]; +} + +message MergeWhenClause +{ + MergeMatchKind match_kind = 1 [json_name="matchKind"]; + CmdType command_type = 2 [json_name="commandType"]; + OverridingKind override = 3 [json_name="override"]; + Node condition = 4 [json_name="condition"]; + repeated Node target_list = 5 [json_name="targetList"]; + repeated Node values = 6 [json_name="values"]; +} + +message TriggerTransition +{ + string name = 1 [json_name="name"]; + bool is_new = 2 [json_name="isNew"]; + bool is_table = 3 [json_name="isTable"]; +} + +message JsonOutput +{ + TypeName type_name = 1 [json_name="typeName"]; + JsonReturning returning = 2 [json_name="returning"]; +} + +message JsonArgument +{ + JsonValueExpr val = 1 [json_name="val"]; + string name = 2 [json_name="name"]; +} + +message JsonFuncExpr +{ + JsonExprOp op = 1 [json_name="op"]; + string column_name = 2 [json_name="column_name"]; + JsonValueExpr context_item = 3 [json_name="context_item"]; + Node pathspec = 4 [json_name="pathspec"]; + repeated Node passing = 5 [json_name="passing"]; + JsonOutput output = 6 [json_name="output"]; + JsonBehavior on_empty = 7 [json_name="on_empty"]; + JsonBehavior on_error = 8 [json_name="on_error"]; + JsonWrapper wrapper = 9 [json_name="wrapper"]; + JsonQuotes quotes = 10 [json_name="quotes"]; + int32 location = 11 [json_name="location"]; +} + +message JsonTablePathSpec +{ + Node string = 1 [json_name="string"]; + string name = 2 [json_name="name"]; + int32 name_location = 3 [json_name="name_location"]; + int32 location = 4 [json_name="location"]; +} + +message JsonTable +{ + JsonValueExpr context_item = 1 [json_name="context_item"]; + JsonTablePathSpec pathspec = 2 [json_name="pathspec"]; + repeated Node passing = 3 [json_name="passing"]; + repeated Node columns = 4 [json_name="columns"]; + JsonBehavior on_error = 5 [json_name="on_error"]; + Alias alias = 6 [json_name="alias"]; + bool lateral = 7 [json_name="lateral"]; + int32 location = 8 [json_name="location"]; +} + +message JsonTableColumn +{ + JsonTableColumnType coltype = 1 [json_name="coltype"]; + string name = 2 [json_name="name"]; + TypeName type_name = 3 [json_name="typeName"]; + JsonTablePathSpec pathspec = 4 [json_name="pathspec"]; + JsonFormat format = 5 [json_name="format"]; + JsonWrapper wrapper = 6 [json_name="wrapper"]; + JsonQuotes quotes = 7 [json_name="quotes"]; + repeated Node columns = 8 [json_name="columns"]; + JsonBehavior on_empty = 9 [json_name="on_empty"]; + JsonBehavior on_error = 10 [json_name="on_error"]; + int32 location = 11 [json_name="location"]; +} + +message JsonKeyValue +{ + Node key = 1 [json_name="key"]; + JsonValueExpr value = 2 [json_name="value"]; +} + +message JsonParseExpr +{ + JsonValueExpr expr = 1 [json_name="expr"]; + JsonOutput output = 2 [json_name="output"]; + bool unique_keys = 3 [json_name="unique_keys"]; + int32 location = 4 [json_name="location"]; +} + +message JsonScalarExpr +{ + Node expr = 1 [json_name="expr"]; + JsonOutput output = 2 [json_name="output"]; + int32 location = 3 [json_name="location"]; +} + +message JsonSerializeExpr +{ + JsonValueExpr expr = 1 [json_name="expr"]; + JsonOutput output = 2 [json_name="output"]; + int32 location = 3 [json_name="location"]; +} + +message JsonObjectConstructor +{ + repeated Node exprs = 1 [json_name="exprs"]; + JsonOutput output = 2 [json_name="output"]; + bool absent_on_null = 3 [json_name="absent_on_null"]; + bool unique = 4 [json_name="unique"]; + int32 location = 5 [json_name="location"]; +} + +message JsonArrayConstructor +{ + repeated Node exprs = 1 [json_name="exprs"]; + JsonOutput output = 2 [json_name="output"]; + bool absent_on_null = 3 [json_name="absent_on_null"]; + int32 location = 4 [json_name="location"]; +} + +message JsonArrayQueryConstructor +{ + Node query = 1 [json_name="query"]; + JsonOutput output = 2 [json_name="output"]; + JsonFormat format = 3 [json_name="format"]; + bool absent_on_null = 4 [json_name="absent_on_null"]; + int32 location = 5 [json_name="location"]; +} + +message JsonAggConstructor +{ + JsonOutput output = 1 [json_name="output"]; + Node agg_filter = 2 [json_name="agg_filter"]; + repeated Node agg_order = 3 [json_name="agg_order"]; + WindowDef over = 4 [json_name="over"]; + int32 location = 5 [json_name="location"]; +} + +message JsonObjectAgg +{ + JsonAggConstructor constructor = 1 [json_name="constructor"]; + JsonKeyValue arg = 2 [json_name="arg"]; + bool absent_on_null = 3 [json_name="absent_on_null"]; + bool unique = 4 [json_name="unique"]; +} + +message JsonArrayAgg +{ + JsonAggConstructor constructor = 1 [json_name="constructor"]; + JsonValueExpr arg = 2 [json_name="arg"]; + bool absent_on_null = 3 [json_name="absent_on_null"]; +} + +message RawStmt +{ + Node stmt = 1 [json_name="stmt"]; + int32 stmt_location = 2 [json_name="stmt_location"]; + int32 stmt_len = 3 [json_name="stmt_len"]; +} + +message InsertStmt +{ + RangeVar relation = 1 [json_name="relation"]; + repeated Node cols = 2 [json_name="cols"]; + Node select_stmt = 3 [json_name="selectStmt"]; + OnConflictClause on_conflict_clause = 4 [json_name="onConflictClause"]; + repeated Node returning_list = 5 [json_name="returningList"]; + WithClause with_clause = 6 [json_name="withClause"]; + OverridingKind override = 7 [json_name="override"]; +} + +message DeleteStmt +{ + RangeVar relation = 1 [json_name="relation"]; + repeated Node using_clause = 2 [json_name="usingClause"]; + Node where_clause = 3 [json_name="whereClause"]; + repeated Node returning_list = 4 [json_name="returningList"]; + WithClause with_clause = 5 [json_name="withClause"]; +} + +message UpdateStmt +{ + RangeVar relation = 1 [json_name="relation"]; + repeated Node target_list = 2 [json_name="targetList"]; + Node where_clause = 3 [json_name="whereClause"]; + repeated Node from_clause = 4 [json_name="fromClause"]; + repeated Node returning_list = 5 [json_name="returningList"]; + WithClause with_clause = 6 [json_name="withClause"]; +} + +message MergeStmt +{ + RangeVar relation = 1 [json_name="relation"]; + Node source_relation = 2 [json_name="sourceRelation"]; + Node join_condition = 3 [json_name="joinCondition"]; + repeated Node merge_when_clauses = 4 [json_name="mergeWhenClauses"]; + repeated Node returning_list = 5 [json_name="returningList"]; + WithClause with_clause = 6 [json_name="withClause"]; +} + +message SelectStmt +{ + repeated Node distinct_clause = 1 [json_name="distinctClause"]; + IntoClause into_clause = 2 [json_name="intoClause"]; + repeated Node target_list = 3 [json_name="targetList"]; + repeated Node from_clause = 4 [json_name="fromClause"]; + Node where_clause = 5 [json_name="whereClause"]; + repeated Node group_clause = 6 [json_name="groupClause"]; + bool group_distinct = 7 [json_name="groupDistinct"]; + Node having_clause = 8 [json_name="havingClause"]; + repeated Node window_clause = 9 [json_name="windowClause"]; + repeated Node values_lists = 10 [json_name="valuesLists"]; + repeated Node sort_clause = 11 [json_name="sortClause"]; + Node limit_offset = 12 [json_name="limitOffset"]; + Node limit_count = 13 [json_name="limitCount"]; + LimitOption limit_option = 14 [json_name="limitOption"]; + repeated Node locking_clause = 15 [json_name="lockingClause"]; + WithClause with_clause = 16 [json_name="withClause"]; + SetOperation op = 17 [json_name="op"]; + bool all = 18 [json_name="all"]; + SelectStmt larg = 19 [json_name="larg"]; + SelectStmt rarg = 20 [json_name="rarg"]; +} + +message SetOperationStmt +{ + SetOperation op = 1 [json_name="op"]; + bool all = 2 [json_name="all"]; + Node larg = 3 [json_name="larg"]; + Node rarg = 4 [json_name="rarg"]; + repeated Node col_types = 5 [json_name="colTypes"]; + repeated Node col_typmods = 6 [json_name="colTypmods"]; + repeated Node col_collations = 7 [json_name="colCollations"]; + repeated Node group_clauses = 8 [json_name="groupClauses"]; +} + +message ReturnStmt +{ + Node returnval = 1 [json_name="returnval"]; +} + +message PLAssignStmt +{ + string name = 1 [json_name="name"]; + repeated Node indirection = 2 [json_name="indirection"]; + int32 nnames = 3 [json_name="nnames"]; + SelectStmt val = 4 [json_name="val"]; + int32 location = 5 [json_name="location"]; +} + +message CreateSchemaStmt +{ + string schemaname = 1 [json_name="schemaname"]; + RoleSpec authrole = 2 [json_name="authrole"]; + repeated Node schema_elts = 3 [json_name="schemaElts"]; + bool if_not_exists = 4 [json_name="if_not_exists"]; +} + +message AlterTableStmt +{ + RangeVar relation = 1 [json_name="relation"]; + repeated Node cmds = 2 [json_name="cmds"]; + ObjectType objtype = 3 [json_name="objtype"]; + bool missing_ok = 4 [json_name="missing_ok"]; +} + +message ReplicaIdentityStmt +{ + string identity_type = 1 [json_name="identity_type"]; + string name = 2 [json_name="name"]; +} + +message AlterTableCmd +{ + AlterTableType subtype = 1 [json_name="subtype"]; + string name = 2 [json_name="name"]; + int32 num = 3 [json_name="num"]; + RoleSpec newowner = 4 [json_name="newowner"]; + Node def = 5 [json_name="def"]; + DropBehavior behavior = 6 [json_name="behavior"]; + bool missing_ok = 7 [json_name="missing_ok"]; + bool recurse = 8 [json_name="recurse"]; +} + +message AlterCollationStmt +{ + repeated Node collname = 1 [json_name="collname"]; +} + +message AlterDomainStmt +{ + string subtype = 1 [json_name="subtype"]; + repeated Node type_name = 2 [json_name="typeName"]; + string name = 3 [json_name="name"]; + Node def = 4 [json_name="def"]; + DropBehavior behavior = 5 [json_name="behavior"]; + bool missing_ok = 6 [json_name="missing_ok"]; +} + +message GrantStmt +{ + bool is_grant = 1 [json_name="is_grant"]; + GrantTargetType targtype = 2 [json_name="targtype"]; + ObjectType objtype = 3 [json_name="objtype"]; + repeated Node objects = 4 [json_name="objects"]; + repeated Node privileges = 5 [json_name="privileges"]; + repeated Node grantees = 6 [json_name="grantees"]; + bool grant_option = 7 [json_name="grant_option"]; + RoleSpec grantor = 8 [json_name="grantor"]; + DropBehavior behavior = 9 [json_name="behavior"]; +} + +message ObjectWithArgs +{ + repeated Node objname = 1 [json_name="objname"]; + repeated Node objargs = 2 [json_name="objargs"]; + repeated Node objfuncargs = 3 [json_name="objfuncargs"]; + bool args_unspecified = 4 [json_name="args_unspecified"]; +} + +message AccessPriv +{ + string priv_name = 1 [json_name="priv_name"]; + repeated Node cols = 2 [json_name="cols"]; +} + +message GrantRoleStmt +{ + repeated Node granted_roles = 1 [json_name="granted_roles"]; + repeated Node grantee_roles = 2 [json_name="grantee_roles"]; + bool is_grant = 3 [json_name="is_grant"]; + repeated Node opt = 4 [json_name="opt"]; + RoleSpec grantor = 5 [json_name="grantor"]; + DropBehavior behavior = 6 [json_name="behavior"]; +} + +message AlterDefaultPrivilegesStmt +{ + repeated Node options = 1 [json_name="options"]; + GrantStmt action = 2 [json_name="action"]; +} + +message CopyStmt +{ + RangeVar relation = 1 [json_name="relation"]; + Node query = 2 [json_name="query"]; + repeated Node attlist = 3 [json_name="attlist"]; + bool is_from = 4 [json_name="is_from"]; + bool is_program = 5 [json_name="is_program"]; + string filename = 6 [json_name="filename"]; + repeated Node options = 7 [json_name="options"]; + Node where_clause = 8 [json_name="whereClause"]; +} + +message VariableSetStmt +{ + VariableSetKind kind = 1 [json_name="kind"]; + string name = 2 [json_name="name"]; + repeated Node args = 3 [json_name="args"]; + bool is_local = 4 [json_name="is_local"]; +} + +message VariableShowStmt +{ + string name = 1 [json_name="name"]; +} + +message CreateStmt +{ + RangeVar relation = 1 [json_name="relation"]; + repeated Node table_elts = 2 [json_name="tableElts"]; + repeated Node inh_relations = 3 [json_name="inhRelations"]; + PartitionBoundSpec partbound = 4 [json_name="partbound"]; + PartitionSpec partspec = 5 [json_name="partspec"]; + TypeName of_typename = 6 [json_name="ofTypename"]; + repeated Node constraints = 7 [json_name="constraints"]; + repeated Node options = 8 [json_name="options"]; + OnCommitAction oncommit = 9 [json_name="oncommit"]; + string tablespacename = 10 [json_name="tablespacename"]; + string access_method = 11 [json_name="accessMethod"]; + bool if_not_exists = 12 [json_name="if_not_exists"]; +} + +message Constraint +{ + ConstrType contype = 1 [json_name="contype"]; + string conname = 2 [json_name="conname"]; + bool deferrable = 3 [json_name="deferrable"]; + bool initdeferred = 4 [json_name="initdeferred"]; + bool skip_validation = 5 [json_name="skip_validation"]; + bool initially_valid = 6 [json_name="initially_valid"]; + bool is_no_inherit = 7 [json_name="is_no_inherit"]; + Node raw_expr = 8 [json_name="raw_expr"]; + string cooked_expr = 9 [json_name="cooked_expr"]; + string generated_when = 10 [json_name="generated_when"]; + int32 inhcount = 11 [json_name="inhcount"]; + bool nulls_not_distinct = 12 [json_name="nulls_not_distinct"]; + repeated Node keys = 13 [json_name="keys"]; + repeated Node including = 14 [json_name="including"]; + repeated Node exclusions = 15 [json_name="exclusions"]; + repeated Node options = 16 [json_name="options"]; + string indexname = 17 [json_name="indexname"]; + string indexspace = 18 [json_name="indexspace"]; + bool reset_default_tblspc = 19 [json_name="reset_default_tblspc"]; + string access_method = 20 [json_name="access_method"]; + Node where_clause = 21 [json_name="where_clause"]; + RangeVar pktable = 22 [json_name="pktable"]; + repeated Node fk_attrs = 23 [json_name="fk_attrs"]; + repeated Node pk_attrs = 24 [json_name="pk_attrs"]; + string fk_matchtype = 25 [json_name="fk_matchtype"]; + string fk_upd_action = 26 [json_name="fk_upd_action"]; + string fk_del_action = 27 [json_name="fk_del_action"]; + repeated Node fk_del_set_cols = 28 [json_name="fk_del_set_cols"]; + repeated Node old_conpfeqop = 29 [json_name="old_conpfeqop"]; + uint32 old_pktable_oid = 30 [json_name="old_pktable_oid"]; + int32 location = 31 [json_name="location"]; +} + +message CreateTableSpaceStmt +{ + string tablespacename = 1 [json_name="tablespacename"]; + RoleSpec owner = 2 [json_name="owner"]; + string location = 3 [json_name="location"]; + repeated Node options = 4 [json_name="options"]; +} + +message DropTableSpaceStmt +{ + string tablespacename = 1 [json_name="tablespacename"]; + bool missing_ok = 2 [json_name="missing_ok"]; +} + +message AlterTableSpaceOptionsStmt +{ + string tablespacename = 1 [json_name="tablespacename"]; + repeated Node options = 2 [json_name="options"]; + bool is_reset = 3 [json_name="isReset"]; +} + +message AlterTableMoveAllStmt +{ + string orig_tablespacename = 1 [json_name="orig_tablespacename"]; + ObjectType objtype = 2 [json_name="objtype"]; + repeated Node roles = 3 [json_name="roles"]; + string new_tablespacename = 4 [json_name="new_tablespacename"]; + bool nowait = 5 [json_name="nowait"]; +} + +message CreateExtensionStmt +{ + string extname = 1 [json_name="extname"]; + bool if_not_exists = 2 [json_name="if_not_exists"]; + repeated Node options = 3 [json_name="options"]; +} + +message AlterExtensionStmt +{ + string extname = 1 [json_name="extname"]; + repeated Node options = 2 [json_name="options"]; +} + +message AlterExtensionContentsStmt +{ + string extname = 1 [json_name="extname"]; + int32 action = 2 [json_name="action"]; + ObjectType objtype = 3 [json_name="objtype"]; + Node object = 4 [json_name="object"]; +} + +message CreateFdwStmt +{ + string fdwname = 1 [json_name="fdwname"]; + repeated Node func_options = 2 [json_name="func_options"]; + repeated Node options = 3 [json_name="options"]; +} + +message AlterFdwStmt +{ + string fdwname = 1 [json_name="fdwname"]; + repeated Node func_options = 2 [json_name="func_options"]; + repeated Node options = 3 [json_name="options"]; +} + +message CreateForeignServerStmt +{ + string servername = 1 [json_name="servername"]; + string servertype = 2 [json_name="servertype"]; + string version = 3 [json_name="version"]; + string fdwname = 4 [json_name="fdwname"]; + bool if_not_exists = 5 [json_name="if_not_exists"]; + repeated Node options = 6 [json_name="options"]; +} + +message AlterForeignServerStmt +{ + string servername = 1 [json_name="servername"]; + string version = 2 [json_name="version"]; + repeated Node options = 3 [json_name="options"]; + bool has_version = 4 [json_name="has_version"]; +} + +message CreateForeignTableStmt +{ + CreateStmt base_stmt = 1 [json_name="base"]; + string servername = 2 [json_name="servername"]; + repeated Node options = 3 [json_name="options"]; +} + +message CreateUserMappingStmt +{ + RoleSpec user = 1 [json_name="user"]; + string servername = 2 [json_name="servername"]; + bool if_not_exists = 3 [json_name="if_not_exists"]; + repeated Node options = 4 [json_name="options"]; +} + +message AlterUserMappingStmt +{ + RoleSpec user = 1 [json_name="user"]; + string servername = 2 [json_name="servername"]; + repeated Node options = 3 [json_name="options"]; +} + +message DropUserMappingStmt +{ + RoleSpec user = 1 [json_name="user"]; + string servername = 2 [json_name="servername"]; + bool missing_ok = 3 [json_name="missing_ok"]; +} + +message ImportForeignSchemaStmt +{ + string server_name = 1 [json_name="server_name"]; + string remote_schema = 2 [json_name="remote_schema"]; + string local_schema = 3 [json_name="local_schema"]; + ImportForeignSchemaType list_type = 4 [json_name="list_type"]; + repeated Node table_list = 5 [json_name="table_list"]; + repeated Node options = 6 [json_name="options"]; +} + +message CreatePolicyStmt +{ + string policy_name = 1 [json_name="policy_name"]; + RangeVar table = 2 [json_name="table"]; + string cmd_name = 3 [json_name="cmd_name"]; + bool permissive = 4 [json_name="permissive"]; + repeated Node roles = 5 [json_name="roles"]; + Node qual = 6 [json_name="qual"]; + Node with_check = 7 [json_name="with_check"]; +} + +message AlterPolicyStmt +{ + string policy_name = 1 [json_name="policy_name"]; + RangeVar table = 2 [json_name="table"]; + repeated Node roles = 3 [json_name="roles"]; + Node qual = 4 [json_name="qual"]; + Node with_check = 5 [json_name="with_check"]; +} + +message CreateAmStmt +{ + string amname = 1 [json_name="amname"]; + repeated Node handler_name = 2 [json_name="handler_name"]; + string amtype = 3 [json_name="amtype"]; +} + +message CreateTrigStmt +{ + bool replace = 1 [json_name="replace"]; + bool isconstraint = 2 [json_name="isconstraint"]; + string trigname = 3 [json_name="trigname"]; + RangeVar relation = 4 [json_name="relation"]; + repeated Node funcname = 5 [json_name="funcname"]; + repeated Node args = 6 [json_name="args"]; + bool row = 7 [json_name="row"]; + int32 timing = 8 [json_name="timing"]; + int32 events = 9 [json_name="events"]; + repeated Node columns = 10 [json_name="columns"]; + Node when_clause = 11 [json_name="whenClause"]; + repeated Node transition_rels = 12 [json_name="transitionRels"]; + bool deferrable = 13 [json_name="deferrable"]; + bool initdeferred = 14 [json_name="initdeferred"]; + RangeVar constrrel = 15 [json_name="constrrel"]; +} + +message CreateEventTrigStmt +{ + string trigname = 1 [json_name="trigname"]; + string eventname = 2 [json_name="eventname"]; + repeated Node whenclause = 3 [json_name="whenclause"]; + repeated Node funcname = 4 [json_name="funcname"]; +} + +message AlterEventTrigStmt +{ + string trigname = 1 [json_name="trigname"]; + string tgenabled = 2 [json_name="tgenabled"]; +} + +message CreatePLangStmt +{ + bool replace = 1 [json_name="replace"]; + string plname = 2 [json_name="plname"]; + repeated Node plhandler = 3 [json_name="plhandler"]; + repeated Node plinline = 4 [json_name="plinline"]; + repeated Node plvalidator = 5 [json_name="plvalidator"]; + bool pltrusted = 6 [json_name="pltrusted"]; +} + +message CreateRoleStmt +{ + RoleStmtType stmt_type = 1 [json_name="stmt_type"]; + string role = 2 [json_name="role"]; + repeated Node options = 3 [json_name="options"]; +} + +message AlterRoleStmt +{ + RoleSpec role = 1 [json_name="role"]; + repeated Node options = 2 [json_name="options"]; + int32 action = 3 [json_name="action"]; +} + +message AlterRoleSetStmt +{ + RoleSpec role = 1 [json_name="role"]; + string database = 2 [json_name="database"]; + VariableSetStmt setstmt = 3 [json_name="setstmt"]; +} + +message DropRoleStmt +{ + repeated Node roles = 1 [json_name="roles"]; + bool missing_ok = 2 [json_name="missing_ok"]; +} + +message CreateSeqStmt +{ + RangeVar sequence = 1 [json_name="sequence"]; + repeated Node options = 2 [json_name="options"]; + uint32 owner_id = 3 [json_name="ownerId"]; + bool for_identity = 4 [json_name="for_identity"]; + bool if_not_exists = 5 [json_name="if_not_exists"]; +} + +message AlterSeqStmt +{ + RangeVar sequence = 1 [json_name="sequence"]; + repeated Node options = 2 [json_name="options"]; + bool for_identity = 3 [json_name="for_identity"]; + bool missing_ok = 4 [json_name="missing_ok"]; +} + +message DefineStmt +{ + ObjectType kind = 1 [json_name="kind"]; + bool oldstyle = 2 [json_name="oldstyle"]; + repeated Node defnames = 3 [json_name="defnames"]; + repeated Node args = 4 [json_name="args"]; + repeated Node definition = 5 [json_name="definition"]; + bool if_not_exists = 6 [json_name="if_not_exists"]; + bool replace = 7 [json_name="replace"]; +} + +message CreateDomainStmt +{ + repeated Node domainname = 1 [json_name="domainname"]; + TypeName type_name = 2 [json_name="typeName"]; + CollateClause coll_clause = 3 [json_name="collClause"]; + repeated Node constraints = 4 [json_name="constraints"]; +} + +message CreateOpClassStmt +{ + repeated Node opclassname = 1 [json_name="opclassname"]; + repeated Node opfamilyname = 2 [json_name="opfamilyname"]; + string amname = 3 [json_name="amname"]; + TypeName datatype = 4 [json_name="datatype"]; + repeated Node items = 5 [json_name="items"]; + bool is_default = 6 [json_name="isDefault"]; +} + +message CreateOpClassItem +{ + int32 itemtype = 1 [json_name="itemtype"]; + ObjectWithArgs name = 2 [json_name="name"]; + int32 number = 3 [json_name="number"]; + repeated Node order_family = 4 [json_name="order_family"]; + repeated Node class_args = 5 [json_name="class_args"]; + TypeName storedtype = 6 [json_name="storedtype"]; +} + +message CreateOpFamilyStmt +{ + repeated Node opfamilyname = 1 [json_name="opfamilyname"]; + string amname = 2 [json_name="amname"]; +} + +message AlterOpFamilyStmt +{ + repeated Node opfamilyname = 1 [json_name="opfamilyname"]; + string amname = 2 [json_name="amname"]; + bool is_drop = 3 [json_name="isDrop"]; + repeated Node items = 4 [json_name="items"]; +} + +message DropStmt +{ + repeated Node objects = 1 [json_name="objects"]; + ObjectType remove_type = 2 [json_name="removeType"]; + DropBehavior behavior = 3 [json_name="behavior"]; + bool missing_ok = 4 [json_name="missing_ok"]; + bool concurrent = 5 [json_name="concurrent"]; +} + +message TruncateStmt +{ + repeated Node relations = 1 [json_name="relations"]; + bool restart_seqs = 2 [json_name="restart_seqs"]; + DropBehavior behavior = 3 [json_name="behavior"]; +} + +message CommentStmt +{ + ObjectType objtype = 1 [json_name="objtype"]; + Node object = 2 [json_name="object"]; + string comment = 3 [json_name="comment"]; +} + +message SecLabelStmt +{ + ObjectType objtype = 1 [json_name="objtype"]; + Node object = 2 [json_name="object"]; + string provider = 3 [json_name="provider"]; + string label = 4 [json_name="label"]; +} + +message DeclareCursorStmt +{ + string portalname = 1 [json_name="portalname"]; + int32 options = 2 [json_name="options"]; + Node query = 3 [json_name="query"]; +} + +message ClosePortalStmt +{ + string portalname = 1 [json_name="portalname"]; +} + +message FetchStmt +{ + FetchDirection direction = 1 [json_name="direction"]; + int64 how_many = 2 [json_name="howMany"]; + string portalname = 3 [json_name="portalname"]; + bool ismove = 4 [json_name="ismove"]; +} + +message IndexStmt +{ + string idxname = 1 [json_name="idxname"]; + RangeVar relation = 2 [json_name="relation"]; + string access_method = 3 [json_name="accessMethod"]; + string table_space = 4 [json_name="tableSpace"]; + repeated Node index_params = 5 [json_name="indexParams"]; + repeated Node index_including_params = 6 [json_name="indexIncludingParams"]; + repeated Node options = 7 [json_name="options"]; + Node where_clause = 8 [json_name="whereClause"]; + repeated Node exclude_op_names = 9 [json_name="excludeOpNames"]; + string idxcomment = 10 [json_name="idxcomment"]; + uint32 index_oid = 11 [json_name="indexOid"]; + uint32 old_number = 12 [json_name="oldNumber"]; + uint32 old_create_subid = 13 [json_name="oldCreateSubid"]; + uint32 old_first_relfilelocator_subid = 14 [json_name="oldFirstRelfilelocatorSubid"]; + bool unique = 15 [json_name="unique"]; + bool nulls_not_distinct = 16 [json_name="nulls_not_distinct"]; + bool primary = 17 [json_name="primary"]; + bool isconstraint = 18 [json_name="isconstraint"]; + bool deferrable = 19 [json_name="deferrable"]; + bool initdeferred = 20 [json_name="initdeferred"]; + bool transformed = 21 [json_name="transformed"]; + bool concurrent = 22 [json_name="concurrent"]; + bool if_not_exists = 23 [json_name="if_not_exists"]; + bool reset_default_tblspc = 24 [json_name="reset_default_tblspc"]; +} + +message CreateStatsStmt +{ + repeated Node defnames = 1 [json_name="defnames"]; + repeated Node stat_types = 2 [json_name="stat_types"]; + repeated Node exprs = 3 [json_name="exprs"]; + repeated Node relations = 4 [json_name="relations"]; + string stxcomment = 5 [json_name="stxcomment"]; + bool transformed = 6 [json_name="transformed"]; + bool if_not_exists = 7 [json_name="if_not_exists"]; +} + +message StatsElem +{ + string name = 1 [json_name="name"]; + Node expr = 2 [json_name="expr"]; +} + +message AlterStatsStmt +{ + repeated Node defnames = 1 [json_name="defnames"]; + Node stxstattarget = 2 [json_name="stxstattarget"]; + bool missing_ok = 3 [json_name="missing_ok"]; +} + +message CreateFunctionStmt +{ + bool is_procedure = 1 [json_name="is_procedure"]; + bool replace = 2 [json_name="replace"]; + repeated Node funcname = 3 [json_name="funcname"]; + repeated Node parameters = 4 [json_name="parameters"]; + TypeName return_type = 5 [json_name="returnType"]; + repeated Node options = 6 [json_name="options"]; + Node sql_body = 7 [json_name="sql_body"]; +} + +message FunctionParameter +{ + string name = 1 [json_name="name"]; + TypeName arg_type = 2 [json_name="argType"]; + FunctionParameterMode mode = 3 [json_name="mode"]; + Node defexpr = 4 [json_name="defexpr"]; +} + +message AlterFunctionStmt +{ + ObjectType objtype = 1 [json_name="objtype"]; + ObjectWithArgs func = 2 [json_name="func"]; + repeated Node actions = 3 [json_name="actions"]; +} + +message DoStmt +{ + repeated Node args = 1 [json_name="args"]; +} + +message InlineCodeBlock +{ + string source_text = 1 [json_name="source_text"]; + uint32 lang_oid = 2 [json_name="langOid"]; + bool lang_is_trusted = 3 [json_name="langIsTrusted"]; + bool atomic = 4 [json_name="atomic"]; +} + +message CallStmt +{ + FuncCall funccall = 1 [json_name="funccall"]; + FuncExpr funcexpr = 2 [json_name="funcexpr"]; + repeated Node outargs = 3 [json_name="outargs"]; +} + +message CallContext +{ + bool atomic = 1 [json_name="atomic"]; +} + +message RenameStmt +{ + ObjectType rename_type = 1 [json_name="renameType"]; + ObjectType relation_type = 2 [json_name="relationType"]; + RangeVar relation = 3 [json_name="relation"]; + Node object = 4 [json_name="object"]; + string subname = 5 [json_name="subname"]; + string newname = 6 [json_name="newname"]; + DropBehavior behavior = 7 [json_name="behavior"]; + bool missing_ok = 8 [json_name="missing_ok"]; +} + +message AlterObjectDependsStmt +{ + ObjectType object_type = 1 [json_name="objectType"]; + RangeVar relation = 2 [json_name="relation"]; + Node object = 3 [json_name="object"]; + String extname = 4 [json_name="extname"]; + bool remove = 5 [json_name="remove"]; +} + +message AlterObjectSchemaStmt +{ + ObjectType object_type = 1 [json_name="objectType"]; + RangeVar relation = 2 [json_name="relation"]; + Node object = 3 [json_name="object"]; + string newschema = 4 [json_name="newschema"]; + bool missing_ok = 5 [json_name="missing_ok"]; +} + +message AlterOwnerStmt +{ + ObjectType object_type = 1 [json_name="objectType"]; + RangeVar relation = 2 [json_name="relation"]; + Node object = 3 [json_name="object"]; + RoleSpec newowner = 4 [json_name="newowner"]; +} + +message AlterOperatorStmt +{ + ObjectWithArgs opername = 1 [json_name="opername"]; + repeated Node options = 2 [json_name="options"]; +} + +message AlterTypeStmt +{ + repeated Node type_name = 1 [json_name="typeName"]; + repeated Node options = 2 [json_name="options"]; +} + +message RuleStmt +{ + RangeVar relation = 1 [json_name="relation"]; + string rulename = 2 [json_name="rulename"]; + Node where_clause = 3 [json_name="whereClause"]; + CmdType event = 4 [json_name="event"]; + bool instead = 5 [json_name="instead"]; + repeated Node actions = 6 [json_name="actions"]; + bool replace = 7 [json_name="replace"]; +} + +message NotifyStmt +{ + string conditionname = 1 [json_name="conditionname"]; + string payload = 2 [json_name="payload"]; +} + +message ListenStmt +{ + string conditionname = 1 [json_name="conditionname"]; +} + +message UnlistenStmt +{ + string conditionname = 1 [json_name="conditionname"]; +} + +message TransactionStmt +{ + TransactionStmtKind kind = 1 [json_name="kind"]; + repeated Node options = 2 [json_name="options"]; + string savepoint_name = 3 [json_name="savepoint_name"]; + string gid = 4 [json_name="gid"]; + bool chain = 5 [json_name="chain"]; + int32 location = 6 [json_name="location"]; +} + +message CompositeTypeStmt +{ + RangeVar typevar = 1 [json_name="typevar"]; + repeated Node coldeflist = 2 [json_name="coldeflist"]; +} + +message CreateEnumStmt +{ + repeated Node type_name = 1 [json_name="typeName"]; + repeated Node vals = 2 [json_name="vals"]; +} + +message CreateRangeStmt +{ + repeated Node type_name = 1 [json_name="typeName"]; + repeated Node params = 2 [json_name="params"]; +} + +message AlterEnumStmt +{ + repeated Node type_name = 1 [json_name="typeName"]; + string old_val = 2 [json_name="oldVal"]; + string new_val = 3 [json_name="newVal"]; + string new_val_neighbor = 4 [json_name="newValNeighbor"]; + bool new_val_is_after = 5 [json_name="newValIsAfter"]; + bool skip_if_new_val_exists = 6 [json_name="skipIfNewValExists"]; +} + +message ViewStmt +{ + RangeVar view = 1 [json_name="view"]; + repeated Node aliases = 2 [json_name="aliases"]; + Node query = 3 [json_name="query"]; + bool replace = 4 [json_name="replace"]; + repeated Node options = 5 [json_name="options"]; + ViewCheckOption with_check_option = 6 [json_name="withCheckOption"]; +} + +message LoadStmt +{ + string filename = 1 [json_name="filename"]; +} + +message CreatedbStmt +{ + string dbname = 1 [json_name="dbname"]; + repeated Node options = 2 [json_name="options"]; +} + +message AlterDatabaseStmt +{ + string dbname = 1 [json_name="dbname"]; + repeated Node options = 2 [json_name="options"]; +} + +message AlterDatabaseRefreshCollStmt +{ + string dbname = 1 [json_name="dbname"]; +} + +message AlterDatabaseSetStmt +{ + string dbname = 1 [json_name="dbname"]; + VariableSetStmt setstmt = 2 [json_name="setstmt"]; +} + +message DropdbStmt +{ + string dbname = 1 [json_name="dbname"]; + bool missing_ok = 2 [json_name="missing_ok"]; + repeated Node options = 3 [json_name="options"]; +} + +message AlterSystemStmt +{ + VariableSetStmt setstmt = 1 [json_name="setstmt"]; +} + +message ClusterStmt +{ + RangeVar relation = 1 [json_name="relation"]; + string indexname = 2 [json_name="indexname"]; + repeated Node params = 3 [json_name="params"]; +} + +message VacuumStmt +{ + repeated Node options = 1 [json_name="options"]; + repeated Node rels = 2 [json_name="rels"]; + bool is_vacuumcmd = 3 [json_name="is_vacuumcmd"]; +} + +message VacuumRelation +{ + RangeVar relation = 1 [json_name="relation"]; + uint32 oid = 2 [json_name="oid"]; + repeated Node va_cols = 3 [json_name="va_cols"]; +} + +message ExplainStmt +{ + Node query = 1 [json_name="query"]; + repeated Node options = 2 [json_name="options"]; +} + +message CreateTableAsStmt +{ + Node query = 1 [json_name="query"]; + IntoClause into = 2 [json_name="into"]; + ObjectType objtype = 3 [json_name="objtype"]; + bool is_select_into = 4 [json_name="is_select_into"]; + bool if_not_exists = 5 [json_name="if_not_exists"]; +} + +message RefreshMatViewStmt +{ + bool concurrent = 1 [json_name="concurrent"]; + bool skip_data = 2 [json_name="skipData"]; + RangeVar relation = 3 [json_name="relation"]; +} + +message CheckPointStmt +{ +} + +message DiscardStmt +{ + DiscardMode target = 1 [json_name="target"]; +} + +message LockStmt +{ + repeated Node relations = 1 [json_name="relations"]; + int32 mode = 2 [json_name="mode"]; + bool nowait = 3 [json_name="nowait"]; +} + +message ConstraintsSetStmt +{ + repeated Node constraints = 1 [json_name="constraints"]; + bool deferred = 2 [json_name="deferred"]; +} + +message ReindexStmt +{ + ReindexObjectType kind = 1 [json_name="kind"]; + RangeVar relation = 2 [json_name="relation"]; + string name = 3 [json_name="name"]; + repeated Node params = 4 [json_name="params"]; +} + +message CreateConversionStmt +{ + repeated Node conversion_name = 1 [json_name="conversion_name"]; + string for_encoding_name = 2 [json_name="for_encoding_name"]; + string to_encoding_name = 3 [json_name="to_encoding_name"]; + repeated Node func_name = 4 [json_name="func_name"]; + bool def = 5 [json_name="def"]; +} + +message CreateCastStmt +{ + TypeName sourcetype = 1 [json_name="sourcetype"]; + TypeName targettype = 2 [json_name="targettype"]; + ObjectWithArgs func = 3 [json_name="func"]; + CoercionContext context = 4 [json_name="context"]; + bool inout = 5 [json_name="inout"]; +} + +message CreateTransformStmt +{ + bool replace = 1 [json_name="replace"]; + TypeName type_name = 2 [json_name="type_name"]; + string lang = 3 [json_name="lang"]; + ObjectWithArgs fromsql = 4 [json_name="fromsql"]; + ObjectWithArgs tosql = 5 [json_name="tosql"]; +} + +message PrepareStmt +{ + string name = 1 [json_name="name"]; + repeated Node argtypes = 2 [json_name="argtypes"]; + Node query = 3 [json_name="query"]; +} + +message ExecuteStmt +{ + string name = 1 [json_name="name"]; + repeated Node params = 2 [json_name="params"]; +} + +message DeallocateStmt +{ + string name = 1 [json_name="name"]; + bool isall = 2 [json_name="isall"]; + int32 location = 3 [json_name="location"]; +} + +message DropOwnedStmt +{ + repeated Node roles = 1 [json_name="roles"]; + DropBehavior behavior = 2 [json_name="behavior"]; +} + +message ReassignOwnedStmt +{ + repeated Node roles = 1 [json_name="roles"]; + RoleSpec newrole = 2 [json_name="newrole"]; +} + +message AlterTSDictionaryStmt +{ + repeated Node dictname = 1 [json_name="dictname"]; + repeated Node options = 2 [json_name="options"]; +} + +message AlterTSConfigurationStmt +{ + AlterTSConfigType kind = 1 [json_name="kind"]; + repeated Node cfgname = 2 [json_name="cfgname"]; + repeated Node tokentype = 3 [json_name="tokentype"]; + repeated Node dicts = 4 [json_name="dicts"]; + bool override = 5 [json_name="override"]; + bool replace = 6 [json_name="replace"]; + bool missing_ok = 7 [json_name="missing_ok"]; +} + +message PublicationTable +{ + RangeVar relation = 1 [json_name="relation"]; + Node where_clause = 2 [json_name="whereClause"]; + repeated Node columns = 3 [json_name="columns"]; +} + +message PublicationObjSpec +{ + PublicationObjSpecType pubobjtype = 1 [json_name="pubobjtype"]; + string name = 2 [json_name="name"]; + PublicationTable pubtable = 3 [json_name="pubtable"]; + int32 location = 4 [json_name="location"]; +} + +message CreatePublicationStmt +{ + string pubname = 1 [json_name="pubname"]; + repeated Node options = 2 [json_name="options"]; + repeated Node pubobjects = 3 [json_name="pubobjects"]; + bool for_all_tables = 4 [json_name="for_all_tables"]; +} + +message AlterPublicationStmt +{ + string pubname = 1 [json_name="pubname"]; + repeated Node options = 2 [json_name="options"]; + repeated Node pubobjects = 3 [json_name="pubobjects"]; + bool for_all_tables = 4 [json_name="for_all_tables"]; + AlterPublicationAction action = 5 [json_name="action"]; +} + +message CreateSubscriptionStmt +{ + string subname = 1 [json_name="subname"]; + string conninfo = 2 [json_name="conninfo"]; + repeated Node publication = 3 [json_name="publication"]; + repeated Node options = 4 [json_name="options"]; +} + +message AlterSubscriptionStmt +{ + AlterSubscriptionType kind = 1 [json_name="kind"]; + string subname = 2 [json_name="subname"]; + string conninfo = 3 [json_name="conninfo"]; + repeated Node publication = 4 [json_name="publication"]; + repeated Node options = 5 [json_name="options"]; +} + +message DropSubscriptionStmt +{ + string subname = 1 [json_name="subname"]; + bool missing_ok = 2 [json_name="missing_ok"]; + DropBehavior behavior = 3 [json_name="behavior"]; +} + +enum QuerySource +{ + QUERY_SOURCE_UNDEFINED = 0; + QSRC_ORIGINAL = 1; + QSRC_PARSER = 2; + QSRC_INSTEAD_RULE = 3; + QSRC_QUAL_INSTEAD_RULE = 4; + QSRC_NON_INSTEAD_RULE = 5; +} + +enum SortByDir +{ + SORT_BY_DIR_UNDEFINED = 0; + SORTBY_DEFAULT = 1; + SORTBY_ASC = 2; + SORTBY_DESC = 3; + SORTBY_USING = 4; +} + +enum SortByNulls +{ + SORT_BY_NULLS_UNDEFINED = 0; + SORTBY_NULLS_DEFAULT = 1; + SORTBY_NULLS_FIRST = 2; + SORTBY_NULLS_LAST = 3; +} + +enum SetQuantifier +{ + SET_QUANTIFIER_UNDEFINED = 0; + SET_QUANTIFIER_DEFAULT = 1; + SET_QUANTIFIER_ALL = 2; + SET_QUANTIFIER_DISTINCT = 3; +} + +enum A_Expr_Kind +{ + A_EXPR_KIND_UNDEFINED = 0; + AEXPR_OP = 1; + AEXPR_OP_ANY = 2; + AEXPR_OP_ALL = 3; + AEXPR_DISTINCT = 4; + AEXPR_NOT_DISTINCT = 5; + AEXPR_NULLIF = 6; + AEXPR_IN = 7; + AEXPR_LIKE = 8; + AEXPR_ILIKE = 9; + AEXPR_SIMILAR = 10; + AEXPR_BETWEEN = 11; + AEXPR_NOT_BETWEEN = 12; + AEXPR_BETWEEN_SYM = 13; + AEXPR_NOT_BETWEEN_SYM = 14; +} + +enum RoleSpecType +{ + ROLE_SPEC_TYPE_UNDEFINED = 0; + ROLESPEC_CSTRING = 1; + ROLESPEC_CURRENT_ROLE = 2; + ROLESPEC_CURRENT_USER = 3; + ROLESPEC_SESSION_USER = 4; + ROLESPEC_PUBLIC = 5; +} + +enum TableLikeOption +{ + TABLE_LIKE_OPTION_UNDEFINED = 0; + CREATE_TABLE_LIKE_COMMENTS = 1; + CREATE_TABLE_LIKE_COMPRESSION = 2; + CREATE_TABLE_LIKE_CONSTRAINTS = 3; + CREATE_TABLE_LIKE_DEFAULTS = 4; + CREATE_TABLE_LIKE_GENERATED = 5; + CREATE_TABLE_LIKE_IDENTITY = 6; + CREATE_TABLE_LIKE_INDEXES = 7; + CREATE_TABLE_LIKE_STATISTICS = 8; + CREATE_TABLE_LIKE_STORAGE = 9; + CREATE_TABLE_LIKE_ALL = 10; +} + +enum DefElemAction +{ + DEF_ELEM_ACTION_UNDEFINED = 0; + DEFELEM_UNSPEC = 1; + DEFELEM_SET = 2; + DEFELEM_ADD = 3; + DEFELEM_DROP = 4; +} + +enum PartitionStrategy +{ + PARTITION_STRATEGY_UNDEFINED = 0; + PARTITION_STRATEGY_LIST = 1; + PARTITION_STRATEGY_RANGE = 2; + PARTITION_STRATEGY_HASH = 3; +} + +enum PartitionRangeDatumKind +{ + PARTITION_RANGE_DATUM_KIND_UNDEFINED = 0; + PARTITION_RANGE_DATUM_MINVALUE = 1; + PARTITION_RANGE_DATUM_VALUE = 2; + PARTITION_RANGE_DATUM_MAXVALUE = 3; +} + +enum RTEKind +{ + RTEKIND_UNDEFINED = 0; + RTE_RELATION = 1; + RTE_SUBQUERY = 2; + RTE_JOIN = 3; + RTE_FUNCTION = 4; + RTE_TABLEFUNC = 5; + RTE_VALUES = 6; + RTE_CTE = 7; + RTE_NAMEDTUPLESTORE = 8; + RTE_RESULT = 9; +} + +enum WCOKind +{ + WCOKIND_UNDEFINED = 0; + WCO_VIEW_CHECK = 1; + WCO_RLS_INSERT_CHECK = 2; + WCO_RLS_UPDATE_CHECK = 3; + WCO_RLS_CONFLICT_CHECK = 4; + WCO_RLS_MERGE_UPDATE_CHECK = 5; + WCO_RLS_MERGE_DELETE_CHECK = 6; +} + +enum GroupingSetKind +{ + GROUPING_SET_KIND_UNDEFINED = 0; + GROUPING_SET_EMPTY = 1; + GROUPING_SET_SIMPLE = 2; + GROUPING_SET_ROLLUP = 3; + GROUPING_SET_CUBE = 4; + GROUPING_SET_SETS = 5; +} + +enum CTEMaterialize +{ + CTEMATERIALIZE_UNDEFINED = 0; + CTEMaterializeDefault = 1; + CTEMaterializeAlways = 2; + CTEMaterializeNever = 3; +} + +enum JsonQuotes +{ + JSON_QUOTES_UNDEFINED = 0; + JS_QUOTES_UNSPEC = 1; + JS_QUOTES_KEEP = 2; + JS_QUOTES_OMIT = 3; +} + +enum JsonTableColumnType +{ + JSON_TABLE_COLUMN_TYPE_UNDEFINED = 0; + JTC_FOR_ORDINALITY = 1; + JTC_REGULAR = 2; + JTC_EXISTS = 3; + JTC_FORMATTED = 4; + JTC_NESTED = 5; +} + +enum SetOperation +{ + SET_OPERATION_UNDEFINED = 0; + SETOP_NONE = 1; + SETOP_UNION = 2; + SETOP_INTERSECT = 3; + SETOP_EXCEPT = 4; +} + +enum ObjectType +{ + OBJECT_TYPE_UNDEFINED = 0; + OBJECT_ACCESS_METHOD = 1; + OBJECT_AGGREGATE = 2; + OBJECT_AMOP = 3; + OBJECT_AMPROC = 4; + OBJECT_ATTRIBUTE = 5; + OBJECT_CAST = 6; + OBJECT_COLUMN = 7; + OBJECT_COLLATION = 8; + OBJECT_CONVERSION = 9; + OBJECT_DATABASE = 10; + OBJECT_DEFAULT = 11; + OBJECT_DEFACL = 12; + OBJECT_DOMAIN = 13; + OBJECT_DOMCONSTRAINT = 14; + OBJECT_EVENT_TRIGGER = 15; + OBJECT_EXTENSION = 16; + OBJECT_FDW = 17; + OBJECT_FOREIGN_SERVER = 18; + OBJECT_FOREIGN_TABLE = 19; + OBJECT_FUNCTION = 20; + OBJECT_INDEX = 21; + OBJECT_LANGUAGE = 22; + OBJECT_LARGEOBJECT = 23; + OBJECT_MATVIEW = 24; + OBJECT_OPCLASS = 25; + OBJECT_OPERATOR = 26; + OBJECT_OPFAMILY = 27; + OBJECT_PARAMETER_ACL = 28; + OBJECT_POLICY = 29; + OBJECT_PROCEDURE = 30; + OBJECT_PUBLICATION = 31; + OBJECT_PUBLICATION_NAMESPACE = 32; + OBJECT_PUBLICATION_REL = 33; + OBJECT_ROLE = 34; + OBJECT_ROUTINE = 35; + OBJECT_RULE = 36; + OBJECT_SCHEMA = 37; + OBJECT_SEQUENCE = 38; + OBJECT_SUBSCRIPTION = 39; + OBJECT_STATISTIC_EXT = 40; + OBJECT_TABCONSTRAINT = 41; + OBJECT_TABLE = 42; + OBJECT_TABLESPACE = 43; + OBJECT_TRANSFORM = 44; + OBJECT_TRIGGER = 45; + OBJECT_TSCONFIGURATION = 46; + OBJECT_TSDICTIONARY = 47; + OBJECT_TSPARSER = 48; + OBJECT_TSTEMPLATE = 49; + OBJECT_TYPE = 50; + OBJECT_USER_MAPPING = 51; + OBJECT_VIEW = 52; +} + +enum DropBehavior +{ + DROP_BEHAVIOR_UNDEFINED = 0; + DROP_RESTRICT = 1; + DROP_CASCADE = 2; +} + +enum AlterTableType +{ + ALTER_TABLE_TYPE_UNDEFINED = 0; + AT_AddColumn = 1; + AT_AddColumnToView = 2; + AT_ColumnDefault = 3; + AT_CookedColumnDefault = 4; + AT_DropNotNull = 5; + AT_SetNotNull = 6; + AT_SetExpression = 7; + AT_DropExpression = 8; + AT_CheckNotNull = 9; + AT_SetStatistics = 10; + AT_SetOptions = 11; + AT_ResetOptions = 12; + AT_SetStorage = 13; + AT_SetCompression = 14; + AT_DropColumn = 15; + AT_AddIndex = 16; + AT_ReAddIndex = 17; + AT_AddConstraint = 18; + AT_ReAddConstraint = 19; + AT_ReAddDomainConstraint = 20; + AT_AlterConstraint = 21; + AT_ValidateConstraint = 22; + AT_AddIndexConstraint = 23; + AT_DropConstraint = 24; + AT_ReAddComment = 25; + AT_AlterColumnType = 26; + AT_AlterColumnGenericOptions = 27; + AT_ChangeOwner = 28; + AT_ClusterOn = 29; + AT_DropCluster = 30; + AT_SetLogged = 31; + AT_SetUnLogged = 32; + AT_DropOids = 33; + AT_SetAccessMethod = 34; + AT_SetTableSpace = 35; + AT_SetRelOptions = 36; + AT_ResetRelOptions = 37; + AT_ReplaceRelOptions = 38; + AT_EnableTrig = 39; + AT_EnableAlwaysTrig = 40; + AT_EnableReplicaTrig = 41; + AT_DisableTrig = 42; + AT_EnableTrigAll = 43; + AT_DisableTrigAll = 44; + AT_EnableTrigUser = 45; + AT_DisableTrigUser = 46; + AT_EnableRule = 47; + AT_EnableAlwaysRule = 48; + AT_EnableReplicaRule = 49; + AT_DisableRule = 50; + AT_AddInherit = 51; + AT_DropInherit = 52; + AT_AddOf = 53; + AT_DropOf = 54; + AT_ReplicaIdentity = 55; + AT_EnableRowSecurity = 56; + AT_DisableRowSecurity = 57; + AT_ForceRowSecurity = 58; + AT_NoForceRowSecurity = 59; + AT_GenericOptions = 60; + AT_AttachPartition = 61; + AT_DetachPartition = 62; + AT_DetachPartitionFinalize = 63; + AT_AddIdentity = 64; + AT_SetIdentity = 65; + AT_DropIdentity = 66; + AT_ReAddStatistics = 67; +} + +enum GrantTargetType +{ + GRANT_TARGET_TYPE_UNDEFINED = 0; + ACL_TARGET_OBJECT = 1; + ACL_TARGET_ALL_IN_SCHEMA = 2; + ACL_TARGET_DEFAULTS = 3; +} + +enum VariableSetKind +{ + VARIABLE_SET_KIND_UNDEFINED = 0; + VAR_SET_VALUE = 1; + VAR_SET_DEFAULT = 2; + VAR_SET_CURRENT = 3; + VAR_SET_MULTI = 4; + VAR_RESET = 5; + VAR_RESET_ALL = 6; +} + +enum ConstrType +{ + CONSTR_TYPE_UNDEFINED = 0; + CONSTR_NULL = 1; + CONSTR_NOTNULL = 2; + CONSTR_DEFAULT = 3; + CONSTR_IDENTITY = 4; + CONSTR_GENERATED = 5; + CONSTR_CHECK = 6; + CONSTR_PRIMARY = 7; + CONSTR_UNIQUE = 8; + CONSTR_EXCLUSION = 9; + CONSTR_FOREIGN = 10; + CONSTR_ATTR_DEFERRABLE = 11; + CONSTR_ATTR_NOT_DEFERRABLE = 12; + CONSTR_ATTR_DEFERRED = 13; + CONSTR_ATTR_IMMEDIATE = 14; +} + +enum ImportForeignSchemaType +{ + IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED = 0; + FDW_IMPORT_SCHEMA_ALL = 1; + FDW_IMPORT_SCHEMA_LIMIT_TO = 2; + FDW_IMPORT_SCHEMA_EXCEPT = 3; +} + +enum RoleStmtType +{ + ROLE_STMT_TYPE_UNDEFINED = 0; + ROLESTMT_ROLE = 1; + ROLESTMT_USER = 2; + ROLESTMT_GROUP = 3; +} + +enum FetchDirection +{ + FETCH_DIRECTION_UNDEFINED = 0; + FETCH_FORWARD = 1; + FETCH_BACKWARD = 2; + FETCH_ABSOLUTE = 3; + FETCH_RELATIVE = 4; +} + +enum FunctionParameterMode +{ + FUNCTION_PARAMETER_MODE_UNDEFINED = 0; + FUNC_PARAM_IN = 1; + FUNC_PARAM_OUT = 2; + FUNC_PARAM_INOUT = 3; + FUNC_PARAM_VARIADIC = 4; + FUNC_PARAM_TABLE = 5; + FUNC_PARAM_DEFAULT = 6; +} + +enum TransactionStmtKind +{ + TRANSACTION_STMT_KIND_UNDEFINED = 0; + TRANS_STMT_BEGIN = 1; + TRANS_STMT_START = 2; + TRANS_STMT_COMMIT = 3; + TRANS_STMT_ROLLBACK = 4; + TRANS_STMT_SAVEPOINT = 5; + TRANS_STMT_RELEASE = 6; + TRANS_STMT_ROLLBACK_TO = 7; + TRANS_STMT_PREPARE = 8; + TRANS_STMT_COMMIT_PREPARED = 9; + TRANS_STMT_ROLLBACK_PREPARED = 10; +} + +enum ViewCheckOption +{ + VIEW_CHECK_OPTION_UNDEFINED = 0; + NO_CHECK_OPTION = 1; + LOCAL_CHECK_OPTION = 2; + CASCADED_CHECK_OPTION = 3; +} + +enum DiscardMode +{ + DISCARD_MODE_UNDEFINED = 0; + DISCARD_ALL = 1; + DISCARD_PLANS = 2; + DISCARD_SEQUENCES = 3; + DISCARD_TEMP = 4; +} + +enum ReindexObjectType +{ + REINDEX_OBJECT_TYPE_UNDEFINED = 0; + REINDEX_OBJECT_INDEX = 1; + REINDEX_OBJECT_TABLE = 2; + REINDEX_OBJECT_SCHEMA = 3; + REINDEX_OBJECT_SYSTEM = 4; + REINDEX_OBJECT_DATABASE = 5; +} + +enum AlterTSConfigType +{ + ALTER_TSCONFIG_TYPE_UNDEFINED = 0; + ALTER_TSCONFIG_ADD_MAPPING = 1; + ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN = 2; + ALTER_TSCONFIG_REPLACE_DICT = 3; + ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN = 4; + ALTER_TSCONFIG_DROP_MAPPING = 5; +} + +enum PublicationObjSpecType +{ + PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED = 0; + PUBLICATIONOBJ_TABLE = 1; + PUBLICATIONOBJ_TABLES_IN_SCHEMA = 2; + PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA = 3; + PUBLICATIONOBJ_CONTINUATION = 4; +} + +enum AlterPublicationAction +{ + ALTER_PUBLICATION_ACTION_UNDEFINED = 0; + AP_AddObjects = 1; + AP_DropObjects = 2; + AP_SetObjects = 3; +} + +enum AlterSubscriptionType +{ + ALTER_SUBSCRIPTION_TYPE_UNDEFINED = 0; + ALTER_SUBSCRIPTION_OPTIONS = 1; + ALTER_SUBSCRIPTION_CONNECTION = 2; + ALTER_SUBSCRIPTION_SET_PUBLICATION = 3; + ALTER_SUBSCRIPTION_ADD_PUBLICATION = 4; + ALTER_SUBSCRIPTION_DROP_PUBLICATION = 5; + ALTER_SUBSCRIPTION_REFRESH = 6; + ALTER_SUBSCRIPTION_ENABLED = 7; + ALTER_SUBSCRIPTION_SKIP = 8; +} + +enum OverridingKind +{ + OVERRIDING_KIND_UNDEFINED = 0; + OVERRIDING_NOT_SET = 1; + OVERRIDING_USER_VALUE = 2; + OVERRIDING_SYSTEM_VALUE = 3; +} + +enum OnCommitAction +{ + ON_COMMIT_ACTION_UNDEFINED = 0; + ONCOMMIT_NOOP = 1; + ONCOMMIT_PRESERVE_ROWS = 2; + ONCOMMIT_DELETE_ROWS = 3; + ONCOMMIT_DROP = 4; +} + +enum TableFuncType +{ + TABLE_FUNC_TYPE_UNDEFINED = 0; + TFT_XMLTABLE = 1; + TFT_JSON_TABLE = 2; +} + +enum ParamKind +{ + PARAM_KIND_UNDEFINED = 0; + PARAM_EXTERN = 1; + PARAM_EXEC = 2; + PARAM_SUBLINK = 3; + PARAM_MULTIEXPR = 4; +} + +enum CoercionContext +{ + COERCION_CONTEXT_UNDEFINED = 0; + COERCION_IMPLICIT = 1; + COERCION_ASSIGNMENT = 2; + COERCION_PLPGSQL = 3; + COERCION_EXPLICIT = 4; +} + +enum CoercionForm +{ + COERCION_FORM_UNDEFINED = 0; + COERCE_EXPLICIT_CALL = 1; + COERCE_EXPLICIT_CAST = 2; + COERCE_IMPLICIT_CAST = 3; + COERCE_SQL_SYNTAX = 4; +} + +enum BoolExprType +{ + BOOL_EXPR_TYPE_UNDEFINED = 0; + AND_EXPR = 1; + OR_EXPR = 2; + NOT_EXPR = 3; +} + +enum SubLinkType +{ + SUB_LINK_TYPE_UNDEFINED = 0; + EXISTS_SUBLINK = 1; + ALL_SUBLINK = 2; + ANY_SUBLINK = 3; + ROWCOMPARE_SUBLINK = 4; + EXPR_SUBLINK = 5; + MULTIEXPR_SUBLINK = 6; + ARRAY_SUBLINK = 7; + CTE_SUBLINK = 8; +} + +enum RowCompareType +{ + ROW_COMPARE_TYPE_UNDEFINED = 0; + ROWCOMPARE_LT = 1; + ROWCOMPARE_LE = 2; + ROWCOMPARE_EQ = 3; + ROWCOMPARE_GE = 4; + ROWCOMPARE_GT = 5; + ROWCOMPARE_NE = 6; +} + +enum MinMaxOp +{ + MIN_MAX_OP_UNDEFINED = 0; + IS_GREATEST = 1; + IS_LEAST = 2; +} + +enum SQLValueFunctionOp +{ + SQLVALUE_FUNCTION_OP_UNDEFINED = 0; + SVFOP_CURRENT_DATE = 1; + SVFOP_CURRENT_TIME = 2; + SVFOP_CURRENT_TIME_N = 3; + SVFOP_CURRENT_TIMESTAMP = 4; + SVFOP_CURRENT_TIMESTAMP_N = 5; + SVFOP_LOCALTIME = 6; + SVFOP_LOCALTIME_N = 7; + SVFOP_LOCALTIMESTAMP = 8; + SVFOP_LOCALTIMESTAMP_N = 9; + SVFOP_CURRENT_ROLE = 10; + SVFOP_CURRENT_USER = 11; + SVFOP_USER = 12; + SVFOP_SESSION_USER = 13; + SVFOP_CURRENT_CATALOG = 14; + SVFOP_CURRENT_SCHEMA = 15; +} + +enum XmlExprOp +{ + XML_EXPR_OP_UNDEFINED = 0; + IS_XMLCONCAT = 1; + IS_XMLELEMENT = 2; + IS_XMLFOREST = 3; + IS_XMLPARSE = 4; + IS_XMLPI = 5; + IS_XMLROOT = 6; + IS_XMLSERIALIZE = 7; + IS_DOCUMENT = 8; +} + +enum XmlOptionType +{ + XML_OPTION_TYPE_UNDEFINED = 0; + XMLOPTION_DOCUMENT = 1; + XMLOPTION_CONTENT = 2; +} + +enum JsonEncoding +{ + JSON_ENCODING_UNDEFINED = 0; + JS_ENC_DEFAULT = 1; + JS_ENC_UTF8 = 2; + JS_ENC_UTF16 = 3; + JS_ENC_UTF32 = 4; +} + +enum JsonFormatType +{ + JSON_FORMAT_TYPE_UNDEFINED = 0; + JS_FORMAT_DEFAULT = 1; + JS_FORMAT_JSON = 2; + JS_FORMAT_JSONB = 3; +} + +enum JsonConstructorType +{ + JSON_CONSTRUCTOR_TYPE_UNDEFINED = 0; + JSCTOR_JSON_OBJECT = 1; + JSCTOR_JSON_ARRAY = 2; + JSCTOR_JSON_OBJECTAGG = 3; + JSCTOR_JSON_ARRAYAGG = 4; + JSCTOR_JSON_PARSE = 5; + JSCTOR_JSON_SCALAR = 6; + JSCTOR_JSON_SERIALIZE = 7; +} + +enum JsonValueType +{ + JSON_VALUE_TYPE_UNDEFINED = 0; + JS_TYPE_ANY = 1; + JS_TYPE_OBJECT = 2; + JS_TYPE_ARRAY = 3; + JS_TYPE_SCALAR = 4; +} + +enum JsonWrapper +{ + JSON_WRAPPER_UNDEFINED = 0; + JSW_UNSPEC = 1; + JSW_NONE = 2; + JSW_CONDITIONAL = 3; + JSW_UNCONDITIONAL = 4; +} + +enum JsonBehaviorType +{ + JSON_BEHAVIOR_TYPE_UNDEFINED = 0; + JSON_BEHAVIOR_NULL = 1; + JSON_BEHAVIOR_ERROR = 2; + JSON_BEHAVIOR_EMPTY = 3; + JSON_BEHAVIOR_TRUE = 4; + JSON_BEHAVIOR_FALSE = 5; + JSON_BEHAVIOR_UNKNOWN = 6; + JSON_BEHAVIOR_EMPTY_ARRAY = 7; + JSON_BEHAVIOR_EMPTY_OBJECT = 8; + JSON_BEHAVIOR_DEFAULT = 9; +} + +enum JsonExprOp +{ + JSON_EXPR_OP_UNDEFINED = 0; + JSON_EXISTS_OP = 1; + JSON_QUERY_OP = 2; + JSON_VALUE_OP = 3; + JSON_TABLE_OP = 4; +} + +enum NullTestType +{ + NULL_TEST_TYPE_UNDEFINED = 0; + IS_NULL = 1; + IS_NOT_NULL = 2; +} + +enum BoolTestType +{ + BOOL_TEST_TYPE_UNDEFINED = 0; + IS_TRUE = 1; + IS_NOT_TRUE = 2; + IS_FALSE = 3; + IS_NOT_FALSE = 4; + IS_UNKNOWN = 5; + IS_NOT_UNKNOWN = 6; +} + +enum MergeMatchKind +{ + MERGE_MATCH_KIND_UNDEFINED = 0; + MERGE_WHEN_MATCHED = 1; + MERGE_WHEN_NOT_MATCHED_BY_SOURCE = 2; + MERGE_WHEN_NOT_MATCHED_BY_TARGET = 3; +} + +enum CmdType +{ + CMD_TYPE_UNDEFINED = 0; + CMD_UNKNOWN = 1; + CMD_SELECT = 2; + CMD_UPDATE = 3; + CMD_INSERT = 4; + CMD_DELETE = 5; + CMD_MERGE = 6; + CMD_UTILITY = 7; + CMD_NOTHING = 8; +} + +enum JoinType +{ + JOIN_TYPE_UNDEFINED = 0; + JOIN_INNER = 1; + JOIN_LEFT = 2; + JOIN_FULL = 3; + JOIN_RIGHT = 4; + JOIN_SEMI = 5; + JOIN_ANTI = 6; + JOIN_RIGHT_ANTI = 7; + JOIN_UNIQUE_OUTER = 8; + JOIN_UNIQUE_INNER = 9; +} + +enum AggStrategy +{ + AGG_STRATEGY_UNDEFINED = 0; + AGG_PLAIN = 1; + AGG_SORTED = 2; + AGG_HASHED = 3; + AGG_MIXED = 4; +} + +enum AggSplit +{ + AGG_SPLIT_UNDEFINED = 0; + AGGSPLIT_SIMPLE = 1; + AGGSPLIT_INITIAL_SERIAL = 2; + AGGSPLIT_FINAL_DESERIAL = 3; +} + +enum SetOpCmd +{ + SET_OP_CMD_UNDEFINED = 0; + SETOPCMD_INTERSECT = 1; + SETOPCMD_INTERSECT_ALL = 2; + SETOPCMD_EXCEPT = 3; + SETOPCMD_EXCEPT_ALL = 4; +} + +enum SetOpStrategy +{ + SET_OP_STRATEGY_UNDEFINED = 0; + SETOP_SORTED = 1; + SETOP_HASHED = 2; +} + +enum OnConflictAction +{ + ON_CONFLICT_ACTION_UNDEFINED = 0; + ONCONFLICT_NONE = 1; + ONCONFLICT_NOTHING = 2; + ONCONFLICT_UPDATE = 3; +} + +enum LimitOption +{ + LIMIT_OPTION_UNDEFINED = 0; + LIMIT_OPTION_DEFAULT = 1; + LIMIT_OPTION_COUNT = 2; + LIMIT_OPTION_WITH_TIES = 3; +} + +enum LockClauseStrength +{ + LOCK_CLAUSE_STRENGTH_UNDEFINED = 0; + LCS_NONE = 1; + LCS_FORKEYSHARE = 2; + LCS_FORSHARE = 3; + LCS_FORNOKEYUPDATE = 4; + LCS_FORUPDATE = 5; +} + +enum LockWaitPolicy +{ + LOCK_WAIT_POLICY_UNDEFINED = 0; + LockWaitBlock = 1; + LockWaitSkip = 2; + LockWaitError = 3; +} + +enum LockTupleMode +{ + LOCK_TUPLE_MODE_UNDEFINED = 0; + LockTupleKeyShare = 1; + LockTupleShare = 2; + LockTupleNoKeyExclusive = 3; + LockTupleExclusive = 4; +} + +message ScanToken { + int32 start = 1; + int32 end = 2; + Token token = 4; + KeywordKind keyword_kind = 5; +} + +enum KeywordKind { + NO_KEYWORD = 0; + UNRESERVED_KEYWORD = 1; + COL_NAME_KEYWORD = 2; + TYPE_FUNC_NAME_KEYWORD = 3; + RESERVED_KEYWORD = 4; +} + +enum Token { + NUL = 0; + // Single-character tokens that are returned 1:1 (identical with "self" list in scan.l) + // Either supporting syntax, or single-character operators (some can be both) + // Also see https://www.postgresql.org/docs/12/sql-syntax-lexical.html#SQL-SYNTAX-SPECIAL-CHARS + ASCII_36 = 36; // "$" + ASCII_37 = 37; // "%" + ASCII_40 = 40; // "(" + ASCII_41 = 41; // ")" + ASCII_42 = 42; // "*" + ASCII_43 = 43; // "+" + ASCII_44 = 44; // "," + ASCII_45 = 45; // "-" + ASCII_46 = 46; // "." + ASCII_47 = 47; // "/" + ASCII_58 = 58; // ":" + ASCII_59 = 59; // ";" + ASCII_60 = 60; // "<" + ASCII_61 = 61; // "=" + ASCII_62 = 62; // ">" + ASCII_63 = 63; // "?" + ASCII_91 = 91; // "[" + ASCII_92 = 92; // "\" + ASCII_93 = 93; // "]" + ASCII_94 = 94; // "^" + // Named tokens in scan.l + IDENT = 258; + UIDENT = 259; + FCONST = 260; + SCONST = 261; + USCONST = 262; + BCONST = 263; + XCONST = 264; + Op = 265; + ICONST = 266; + PARAM = 267; + TYPECAST = 268; + DOT_DOT = 269; + COLON_EQUALS = 270; + EQUALS_GREATER = 271; + LESS_EQUALS = 272; + GREATER_EQUALS = 273; + NOT_EQUALS = 274; + SQL_COMMENT = 275; + C_COMMENT = 276; + ABORT_P = 277; + ABSENT = 278; + ABSOLUTE_P = 279; + ACCESS = 280; + ACTION = 281; + ADD_P = 282; + ADMIN = 283; + AFTER = 284; + AGGREGATE = 285; + ALL = 286; + ALSO = 287; + ALTER = 288; + ALWAYS = 289; + ANALYSE = 290; + ANALYZE = 291; + AND = 292; + ANY = 293; + ARRAY = 294; + AS = 295; + ASC = 296; + ASENSITIVE = 297; + ASSERTION = 298; + ASSIGNMENT = 299; + ASYMMETRIC = 300; + ATOMIC = 301; + AT = 302; + ATTACH = 303; + ATTRIBUTE = 304; + AUTHORIZATION = 305; + BACKWARD = 306; + BEFORE = 307; + BEGIN_P = 308; + BETWEEN = 309; + BIGINT = 310; + BINARY = 311; + BIT = 312; + BOOLEAN_P = 313; + BOTH = 314; + BREADTH = 315; + BY = 316; + CACHE = 317; + CALL = 318; + CALLED = 319; + CASCADE = 320; + CASCADED = 321; + CASE = 322; + CAST = 323; + CATALOG_P = 324; + CHAIN = 325; + CHAR_P = 326; + CHARACTER = 327; + CHARACTERISTICS = 328; + CHECK = 329; + CHECKPOINT = 330; + CLASS = 331; + CLOSE = 332; + CLUSTER = 333; + COALESCE = 334; + COLLATE = 335; + COLLATION = 336; + COLUMN = 337; + COLUMNS = 338; + COMMENT = 339; + COMMENTS = 340; + COMMIT = 341; + COMMITTED = 342; + COMPRESSION = 343; + CONCURRENTLY = 344; + CONDITIONAL = 345; + CONFIGURATION = 346; + CONFLICT = 347; + CONNECTION = 348; + CONSTRAINT = 349; + CONSTRAINTS = 350; + CONTENT_P = 351; + CONTINUE_P = 352; + CONVERSION_P = 353; + COPY = 354; + COST = 355; + CREATE = 356; + CROSS = 357; + CSV = 358; + CUBE = 359; + CURRENT_P = 360; + CURRENT_CATALOG = 361; + CURRENT_DATE = 362; + CURRENT_ROLE = 363; + CURRENT_SCHEMA = 364; + CURRENT_TIME = 365; + CURRENT_TIMESTAMP = 366; + CURRENT_USER = 367; + CURSOR = 368; + CYCLE = 369; + DATA_P = 370; + DATABASE = 371; + DAY_P = 372; + DEALLOCATE = 373; + DEC = 374; + DECIMAL_P = 375; + DECLARE = 376; + DEFAULT = 377; + DEFAULTS = 378; + DEFERRABLE = 379; + DEFERRED = 380; + DEFINER = 381; + DELETE_P = 382; + DELIMITER = 383; + DELIMITERS = 384; + DEPENDS = 385; + DEPTH = 386; + DESC = 387; + DETACH = 388; + DICTIONARY = 389; + DISABLE_P = 390; + DISCARD = 391; + DISTINCT = 392; + DO = 393; + DOCUMENT_P = 394; + DOMAIN_P = 395; + DOUBLE_P = 396; + DROP = 397; + EACH = 398; + ELSE = 399; + EMPTY_P = 400; + ENABLE_P = 401; + ENCODING = 402; + ENCRYPTED = 403; + END_P = 404; + ENUM_P = 405; + ERROR_P = 406; + ESCAPE = 407; + EVENT = 408; + EXCEPT = 409; + EXCLUDE = 410; + EXCLUDING = 411; + EXCLUSIVE = 412; + EXECUTE = 413; + EXISTS = 414; + EXPLAIN = 415; + EXPRESSION = 416; + EXTENSION = 417; + EXTERNAL = 418; + EXTRACT = 419; + FALSE_P = 420; + FAMILY = 421; + FETCH = 422; + FILTER = 423; + FINALIZE = 424; + FIRST_P = 425; + FLOAT_P = 426; + FOLLOWING = 427; + FOR = 428; + FORCE = 429; + FOREIGN = 430; + FORMAT = 431; + FORWARD = 432; + FREEZE = 433; + FROM = 434; + FULL = 435; + FUNCTION = 436; + FUNCTIONS = 437; + GENERATED = 438; + GLOBAL = 439; + GRANT = 440; + GRANTED = 441; + GREATEST = 442; + GROUP_P = 443; + GROUPING = 444; + GROUPS = 445; + HANDLER = 446; + HAVING = 447; + HEADER_P = 448; + HOLD = 449; + HOUR_P = 450; + IDENTITY_P = 451; + IF_P = 452; + ILIKE = 453; + IMMEDIATE = 454; + IMMUTABLE = 455; + IMPLICIT_P = 456; + IMPORT_P = 457; + IN_P = 458; + INCLUDE = 459; + INCLUDING = 460; + INCREMENT = 461; + INDENT = 462; + INDEX = 463; + INDEXES = 464; + INHERIT = 465; + INHERITS = 466; + INITIALLY = 467; + INLINE_P = 468; + INNER_P = 469; + INOUT = 470; + INPUT_P = 471; + INSENSITIVE = 472; + INSERT = 473; + INSTEAD = 474; + INT_P = 475; + INTEGER = 476; + INTERSECT = 477; + INTERVAL = 478; + INTO = 479; + INVOKER = 480; + IS = 481; + ISNULL = 482; + ISOLATION = 483; + JOIN = 484; + JSON = 485; + JSON_ARRAY = 486; + JSON_ARRAYAGG = 487; + JSON_EXISTS = 488; + JSON_OBJECT = 489; + JSON_OBJECTAGG = 490; + JSON_QUERY = 491; + JSON_SCALAR = 492; + JSON_SERIALIZE = 493; + JSON_TABLE = 494; + JSON_VALUE = 495; + KEEP = 496; + KEY = 497; + KEYS = 498; + LABEL = 499; + LANGUAGE = 500; + LARGE_P = 501; + LAST_P = 502; + LATERAL_P = 503; + LEADING = 504; + LEAKPROOF = 505; + LEAST = 506; + LEFT = 507; + LEVEL = 508; + LIKE = 509; + LIMIT = 510; + LISTEN = 511; + LOAD = 512; + LOCAL = 513; + LOCALTIME = 514; + LOCALTIMESTAMP = 515; + LOCATION = 516; + LOCK_P = 517; + LOCKED = 518; + LOGGED = 519; + MAPPING = 520; + MATCH = 521; + MATCHED = 522; + MATERIALIZED = 523; + MAXVALUE = 524; + MERGE = 525; + MERGE_ACTION = 526; + METHOD = 527; + MINUTE_P = 528; + MINVALUE = 529; + MODE = 530; + MONTH_P = 531; + MOVE = 532; + NAME_P = 533; + NAMES = 534; + NATIONAL = 535; + NATURAL = 536; + NCHAR = 537; + NESTED = 538; + NEW = 539; + NEXT = 540; + NFC = 541; + NFD = 542; + NFKC = 543; + NFKD = 544; + NO = 545; + NONE = 546; + NORMALIZE = 547; + NORMALIZED = 548; + NOT = 549; + NOTHING = 550; + NOTIFY = 551; + NOTNULL = 552; + NOWAIT = 553; + NULL_P = 554; + NULLIF = 555; + NULLS_P = 556; + NUMERIC = 557; + OBJECT_P = 558; + OF = 559; + OFF = 560; + OFFSET = 561; + OIDS = 562; + OLD = 563; + OMIT = 564; + ON = 565; + ONLY = 566; + OPERATOR = 567; + OPTION = 568; + OPTIONS = 569; + OR = 570; + ORDER = 571; + ORDINALITY = 572; + OTHERS = 573; + OUT_P = 574; + OUTER_P = 575; + OVER = 576; + OVERLAPS = 577; + OVERLAY = 578; + OVERRIDING = 579; + OWNED = 580; + OWNER = 581; + PARALLEL = 582; + PARAMETER = 583; + PARSER = 584; + PARTIAL = 585; + PARTITION = 586; + PASSING = 587; + PASSWORD = 588; + PATH = 589; + PLACING = 590; + PLAN = 591; + PLANS = 592; + POLICY = 593; + POSITION = 594; + PRECEDING = 595; + PRECISION = 596; + PRESERVE = 597; + PREPARE = 598; + PREPARED = 599; + PRIMARY = 600; + PRIOR = 601; + PRIVILEGES = 602; + PROCEDURAL = 603; + PROCEDURE = 604; + PROCEDURES = 605; + PROGRAM = 606; + PUBLICATION = 607; + QUOTE = 608; + QUOTES = 609; + RANGE = 610; + READ = 611; + REAL = 612; + REASSIGN = 613; + RECHECK = 614; + RECURSIVE = 615; + REF_P = 616; + REFERENCES = 617; + REFERENCING = 618; + REFRESH = 619; + REINDEX = 620; + RELATIVE_P = 621; + RELEASE = 622; + RENAME = 623; + REPEATABLE = 624; + REPLACE = 625; + REPLICA = 626; + RESET = 627; + RESTART = 628; + RESTRICT = 629; + RETURN = 630; + RETURNING = 631; + RETURNS = 632; + REVOKE = 633; + RIGHT = 634; + ROLE = 635; + ROLLBACK = 636; + ROLLUP = 637; + ROUTINE = 638; + ROUTINES = 639; + ROW = 640; + ROWS = 641; + RULE = 642; + SAVEPOINT = 643; + SCALAR = 644; + SCHEMA = 645; + SCHEMAS = 646; + SCROLL = 647; + SEARCH = 648; + SECOND_P = 649; + SECURITY = 650; + SELECT = 651; + SEQUENCE = 652; + SEQUENCES = 653; + SERIALIZABLE = 654; + SERVER = 655; + SESSION = 656; + SESSION_USER = 657; + SET = 658; + SETS = 659; + SETOF = 660; + SHARE = 661; + SHOW = 662; + SIMILAR = 663; + SIMPLE = 664; + SKIP = 665; + SMALLINT = 666; + SNAPSHOT = 667; + SOME = 668; + SOURCE = 669; + SQL_P = 670; + STABLE = 671; + STANDALONE_P = 672; + START = 673; + STATEMENT = 674; + STATISTICS = 675; + STDIN = 676; + STDOUT = 677; + STORAGE = 678; + STORED = 679; + STRICT_P = 680; + STRING_P = 681; + STRIP_P = 682; + SUBSCRIPTION = 683; + SUBSTRING = 684; + SUPPORT = 685; + SYMMETRIC = 686; + SYSID = 687; + SYSTEM_P = 688; + SYSTEM_USER = 689; + TABLE = 690; + TABLES = 691; + TABLESAMPLE = 692; + TABLESPACE = 693; + TARGET = 694; + TEMP = 695; + TEMPLATE = 696; + TEMPORARY = 697; + TEXT_P = 698; + THEN = 699; + TIES = 700; + TIME = 701; + TIMESTAMP = 702; + TO = 703; + TRAILING = 704; + TRANSACTION = 705; + TRANSFORM = 706; + TREAT = 707; + TRIGGER = 708; + TRIM = 709; + TRUE_P = 710; + TRUNCATE = 711; + TRUSTED = 712; + TYPE_P = 713; + TYPES_P = 714; + UESCAPE = 715; + UNBOUNDED = 716; + UNCONDITIONAL = 717; + UNCOMMITTED = 718; + UNENCRYPTED = 719; + UNION = 720; + UNIQUE = 721; + UNKNOWN = 722; + UNLISTEN = 723; + UNLOGGED = 724; + UNTIL = 725; + UPDATE = 726; + USER = 727; + USING = 728; + VACUUM = 729; + VALID = 730; + VALIDATE = 731; + VALIDATOR = 732; + VALUE_P = 733; + VALUES = 734; + VARCHAR = 735; + VARIADIC = 736; + VARYING = 737; + VERBOSE = 738; + VERSION_P = 739; + VIEW = 740; + VIEWS = 741; + VOLATILE = 742; + WHEN = 743; + WHERE = 744; + WHITESPACE_P = 745; + WINDOW = 746; + WITH = 747; + WITHIN = 748; + WITHOUT = 749; + WORK = 750; + WRAPPER = 751; + WRITE = 752; + XML_P = 753; + XMLATTRIBUTES = 754; + XMLCONCAT = 755; + XMLELEMENT = 756; + XMLEXISTS = 757; + XMLFOREST = 758; + XMLNAMESPACES = 759; + XMLPARSE = 760; + XMLPI = 761; + XMLROOT = 762; + XMLSERIALIZE = 763; + XMLTABLE = 764; + YEAR_P = 765; + YES_P = 766; + ZONE = 767; + FORMAT_LA = 768; + NOT_LA = 769; + NULLS_LA = 770; + WITH_LA = 771; + WITHOUT_LA = 772; + MODE_TYPE_NAME = 773; + MODE_PLPGSQL_EXPR = 774; + MODE_PLPGSQL_ASSIGN1 = 775; + MODE_PLPGSQL_ASSIGN2 = 776; + MODE_PLPGSQL_ASSIGN3 = 777; + UMINUS = 778; +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/DSL/functions.php b/src/lib/pg-query/src/Flow/PgQuery/DSL/functions.php new file mode 100644 index 000000000..de4c3c073 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/DSL/functions.php @@ -0,0 +1,36 @@ +parse($sql); +} + +function pg_fingerprint(string $sql) : ?string +{ + return (new Parser())->fingerprint($sql); +} + +function pg_normalize(string $sql) : ?string +{ + return (new Parser())->normalize($sql); +} + +/** + * @return array + */ +function pg_split(string $sql) : array +{ + return (new Parser())->split($sql); +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Exception/ExtensionNotLoadedException.php b/src/lib/pg-query/src/Flow/PgQuery/Exception/ExtensionNotLoadedException.php new file mode 100644 index 000000000..685ac4f07 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Exception/ExtensionNotLoadedException.php @@ -0,0 +1,13 @@ +getMessage()); + } + + $result = new ParseResult(); + $result->mergeFromJsonString($json); + + return $result; + } + + /** + * @return array + */ + public function split(string $sql) : array + { + return pg_query_split($sql); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_ArrayExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_ArrayExpr.php new file mode 100644 index 000000000..a753cef78 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_ArrayExpr.php @@ -0,0 +1,94 @@ +pg_query.A_ArrayExpr. + */ +class A_ArrayExpr extends Message +{ + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node elements = 1 [json_name = "elements"];. + */ + private $elements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $elements + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node elements = 1 [json_name = "elements"];. + * + * @return RepeatedField + */ + public function getElements() + { + return $this->elements; + } + + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node elements = 1 [json_name = "elements"];. + * + * @param array $var + * + * @return $this + */ + public function setElements($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->elements = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Const.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Const.php new file mode 100644 index 000000000..93b83afdc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Const.php @@ -0,0 +1,258 @@ +pg_query.A_Const. + */ +class A_Const extends Message +{ + /** + * Generated from protobuf field bool isnull = 10;. + */ + protected $isnull = false; + + /** + * Generated from protobuf field int32 location = 11;. + */ + protected $location = 0; + + protected $val; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $ival + * @var PBFloat $fval + * @var bool $boolval + * @var PBString $sval + * @var BitString $bsval + * @var bool $isnull + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.Boolean boolval = 3;. + * + * @return null|bool + */ + public function getBoolval() + { + return $this->readOneof(3); + } + + /** + * Generated from protobuf field .pg_query.BitString bsval = 5;. + * + * @return null|BitString + */ + public function getBsval() + { + return $this->readOneof(5); + } + + /** + * Generated from protobuf field .pg_query.Float fval = 2;. + * + * @return null|PBFloat + */ + public function getFval() + { + return $this->readOneof(2); + } + + /** + * Generated from protobuf field bool isnull = 10;. + * + * @return bool + */ + public function getIsnull() + { + return $this->isnull; + } + + /** + * Generated from protobuf field .pg_query.Integer ival = 1;. + * + * @return null|int + */ + public function getIval() + { + return $this->readOneof(1); + } + + /** + * Generated from protobuf field int32 location = 11;. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.String sval = 4;. + * + * @return null|PBString + */ + public function getSval() + { + return $this->readOneof(4); + } + + /** + * @return string + */ + public function getVal() + { + return $this->whichOneof('val'); + } + + public function hasBoolval() + { + return $this->hasOneof(3); + } + + public function hasBsval() + { + return $this->hasOneof(5); + } + + public function hasFval() + { + return $this->hasOneof(2); + } + + public function hasIval() + { + return $this->hasOneof(1); + } + + public function hasSval() + { + return $this->hasOneof(4); + } + + /** + * Generated from protobuf field .pg_query.Boolean boolval = 3;. + * + * @param bool $var + * + * @return $this + */ + public function setBoolval($var) + { + GPBUtil::checkMessage($var, Boolean::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.BitString bsval = 5;. + * + * @param BitString $var + * + * @return $this + */ + public function setBsval($var) + { + GPBUtil::checkMessage($var, BitString::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Float fval = 2;. + * + * @param PBFloat $var + * + * @return $this + */ + public function setFval($var) + { + GPBUtil::checkMessage($var, PBFloat::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Generated from protobuf field bool isnull = 10;. + * + * @param bool $var + * + * @return $this + */ + public function setIsnull($var) + { + GPBUtil::checkBool($var); + $this->isnull = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Integer ival = 1;. + * + * @param int $var + * + * @return $this + */ + public function setIval($var) + { + GPBUtil::checkMessage($var, Integer::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Generated from protobuf field int32 location = 11;. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.String sval = 4;. + * + * @param PBString $var + * + * @return $this + */ + public function setSval($var) + { + GPBUtil::checkMessage($var, PBString::class); + $this->writeOneof(4, $var); + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Expr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Expr.php new file mode 100644 index 000000000..5648d7fdd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Expr.php @@ -0,0 +1,207 @@ +pg_query.A_Expr. + */ +class A_Expr extends Message +{ + /** + * Generated from protobuf field .pg_query.A_Expr_Kind kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field .pg_query.Node lexpr = 3 [json_name = "lexpr"];. + */ + protected $lexpr; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node rexpr = 4 [json_name = "rexpr"];. + */ + protected $rexpr; + + /** + * Generated from protobuf field repeated .pg_query.Node name = 2 [json_name = "name"];. + */ + private $name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var array $name + * @var Node $lexpr + * @var Node $rexpr + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearLexpr() : void + { + $this->lexpr = null; + } + + public function clearRexpr() : void + { + $this->rexpr = null; + } + + /** + * Generated from protobuf field .pg_query.A_Expr_Kind kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field .pg_query.Node lexpr = 3 [json_name = "lexpr"];. + * + * @return null|Node + */ + public function getLexpr() + { + return $this->lexpr; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node name = 2 [json_name = "name"];. + * + * @return RepeatedField + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.Node rexpr = 4 [json_name = "rexpr"];. + * + * @return null|Node + */ + public function getRexpr() + { + return $this->rexpr; + } + + public function hasLexpr() + { + return isset($this->lexpr); + } + + public function hasRexpr() + { + return isset($this->rexpr); + } + + /** + * Generated from protobuf field .pg_query.A_Expr_Kind kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, A_Expr_Kind::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node lexpr = 3 [json_name = "lexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setLexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->lexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node name = 2 [json_name = "name"];. + * + * @param array $var + * + * @return $this + */ + public function setName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->name = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node rexpr = 4 [json_name = "rexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setRexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->rexpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Expr_Kind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Expr_Kind.php new file mode 100644 index 000000000..2711361ef --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Expr_Kind.php @@ -0,0 +1,135 @@ +pg_query.A_Expr_Kind. + */ +class A_Expr_Kind +{ + /** + * Generated from protobuf enum A_EXPR_KIND_UNDEFINED = 0;. + */ + public const A_EXPR_KIND_UNDEFINED = 0; + + /** + * Generated from protobuf enum AEXPR_BETWEEN = 11;. + */ + public const AEXPR_BETWEEN = 11; + + /** + * Generated from protobuf enum AEXPR_BETWEEN_SYM = 13;. + */ + public const AEXPR_BETWEEN_SYM = 13; + + /** + * Generated from protobuf enum AEXPR_DISTINCT = 4;. + */ + public const AEXPR_DISTINCT = 4; + + /** + * Generated from protobuf enum AEXPR_ILIKE = 9;. + */ + public const AEXPR_ILIKE = 9; + + /** + * Generated from protobuf enum AEXPR_IN = 7;. + */ + public const AEXPR_IN = 7; + + /** + * Generated from protobuf enum AEXPR_LIKE = 8;. + */ + public const AEXPR_LIKE = 8; + + /** + * Generated from protobuf enum AEXPR_NOT_BETWEEN = 12;. + */ + public const AEXPR_NOT_BETWEEN = 12; + + /** + * Generated from protobuf enum AEXPR_NOT_BETWEEN_SYM = 14;. + */ + public const AEXPR_NOT_BETWEEN_SYM = 14; + + /** + * Generated from protobuf enum AEXPR_NOT_DISTINCT = 5;. + */ + public const AEXPR_NOT_DISTINCT = 5; + + /** + * Generated from protobuf enum AEXPR_NULLIF = 6;. + */ + public const AEXPR_NULLIF = 6; + + /** + * Generated from protobuf enum AEXPR_OP = 1;. + */ + public const AEXPR_OP = 1; + + /** + * Generated from protobuf enum AEXPR_OP_ALL = 3;. + */ + public const AEXPR_OP_ALL = 3; + + /** + * Generated from protobuf enum AEXPR_OP_ANY = 2;. + */ + public const AEXPR_OP_ANY = 2; + + /** + * Generated from protobuf enum AEXPR_SIMILAR = 10;. + */ + public const AEXPR_SIMILAR = 10; + + private static $valueToName = [ + self::A_EXPR_KIND_UNDEFINED => 'A_EXPR_KIND_UNDEFINED', + self::AEXPR_OP => 'AEXPR_OP', + self::AEXPR_OP_ANY => 'AEXPR_OP_ANY', + self::AEXPR_OP_ALL => 'AEXPR_OP_ALL', + self::AEXPR_DISTINCT => 'AEXPR_DISTINCT', + self::AEXPR_NOT_DISTINCT => 'AEXPR_NOT_DISTINCT', + self::AEXPR_NULLIF => 'AEXPR_NULLIF', + self::AEXPR_IN => 'AEXPR_IN', + self::AEXPR_LIKE => 'AEXPR_LIKE', + self::AEXPR_ILIKE => 'AEXPR_ILIKE', + self::AEXPR_SIMILAR => 'AEXPR_SIMILAR', + self::AEXPR_BETWEEN => 'AEXPR_BETWEEN', + self::AEXPR_NOT_BETWEEN => 'AEXPR_NOT_BETWEEN', + self::AEXPR_BETWEEN_SYM => 'AEXPR_BETWEEN_SYM', + self::AEXPR_NOT_BETWEEN_SYM => 'AEXPR_NOT_BETWEEN_SYM', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Indices.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Indices.php new file mode 100644 index 000000000..daa24aba1 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Indices.php @@ -0,0 +1,144 @@ +pg_query.A_Indices. + */ +class A_Indices extends Message +{ + /** + * Generated from protobuf field bool is_slice = 1 [json_name = "is_slice"];. + */ + protected $is_slice = false; + + /** + * Generated from protobuf field .pg_query.Node lidx = 2 [json_name = "lidx"];. + */ + protected $lidx; + + /** + * Generated from protobuf field .pg_query.Node uidx = 3 [json_name = "uidx"];. + */ + protected $uidx; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $is_slice + * @var Node $lidx + * @var Node $uidx + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearLidx() : void + { + $this->lidx = null; + } + + public function clearUidx() : void + { + $this->uidx = null; + } + + /** + * Generated from protobuf field bool is_slice = 1 [json_name = "is_slice"];. + * + * @return bool + */ + public function getIsSlice() + { + return $this->is_slice; + } + + /** + * Generated from protobuf field .pg_query.Node lidx = 2 [json_name = "lidx"];. + * + * @return null|Node + */ + public function getLidx() + { + return $this->lidx; + } + + /** + * Generated from protobuf field .pg_query.Node uidx = 3 [json_name = "uidx"];. + * + * @return null|Node + */ + public function getUidx() + { + return $this->uidx; + } + + public function hasLidx() + { + return isset($this->lidx); + } + + public function hasUidx() + { + return isset($this->uidx); + } + + /** + * Generated from protobuf field bool is_slice = 1 [json_name = "is_slice"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsSlice($var) + { + GPBUtil::checkBool($var); + $this->is_slice = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node lidx = 2 [json_name = "lidx"];. + * + * @param Node $var + * + * @return $this + */ + public function setLidx($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->lidx = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node uidx = 3 [json_name = "uidx"];. + * + * @param Node $var + * + * @return $this + */ + public function setUidx($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->uidx = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Indirection.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Indirection.php new file mode 100644 index 000000000..d3046d9dc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Indirection.php @@ -0,0 +1,104 @@ +pg_query.A_Indirection. + */ +class A_Indirection extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + */ + private $indirection; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $arg + * @var array $indirection + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + * + * @return RepeatedField + */ + public function getIndirection() + { + return $this->indirection; + } + + public function hasArg() + { + return isset($this->arg); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + * + * @param array $var + * + * @return $this + */ + public function setIndirection($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->indirection = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Star.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Star.php new file mode 100644 index 000000000..9dd321b60 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/A_Star.php @@ -0,0 +1,31 @@ +pg_query.A_Star. + */ +class A_Star extends Message +{ + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AccessPriv.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AccessPriv.php new file mode 100644 index 000000000..337e5c62d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AccessPriv.php @@ -0,0 +1,94 @@ +pg_query.AccessPriv. + */ +class AccessPriv extends Message +{ + /** + * Generated from protobuf field string priv_name = 1 [json_name = "priv_name"];. + */ + protected $priv_name = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node cols = 2 [json_name = "cols"];. + */ + private $cols; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $priv_name + * @var array $cols + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node cols = 2 [json_name = "cols"];. + * + * @return RepeatedField + */ + public function getCols() + { + return $this->cols; + } + + /** + * Generated from protobuf field string priv_name = 1 [json_name = "priv_name"];. + * + * @return string + */ + public function getPrivName() + { + return $this->priv_name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node cols = 2 [json_name = "cols"];. + * + * @param array $var + * + * @return $this + */ + public function setCols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->cols = $arr; + + return $this; + } + + /** + * Generated from protobuf field string priv_name = 1 [json_name = "priv_name"];. + * + * @param string $var + * + * @return $this + */ + public function setPrivName($var) + { + GPBUtil::checkString($var, true); + $this->priv_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AggSplit.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AggSplit.php new file mode 100644 index 000000000..2a9d09fe9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AggSplit.php @@ -0,0 +1,69 @@ +pg_query.AggSplit. + */ +class AggSplit +{ + /** + * Generated from protobuf enum AGG_SPLIT_UNDEFINED = 0;. + */ + public const AGG_SPLIT_UNDEFINED = 0; + + /** + * Generated from protobuf enum AGGSPLIT_FINAL_DESERIAL = 3;. + */ + public const AGGSPLIT_FINAL_DESERIAL = 3; + + /** + * Generated from protobuf enum AGGSPLIT_INITIAL_SERIAL = 2;. + */ + public const AGGSPLIT_INITIAL_SERIAL = 2; + + /** + * Generated from protobuf enum AGGSPLIT_SIMPLE = 1;. + */ + public const AGGSPLIT_SIMPLE = 1; + + private static $valueToName = [ + self::AGG_SPLIT_UNDEFINED => 'AGG_SPLIT_UNDEFINED', + self::AGGSPLIT_SIMPLE => 'AGGSPLIT_SIMPLE', + self::AGGSPLIT_INITIAL_SERIAL => 'AGGSPLIT_INITIAL_SERIAL', + self::AGGSPLIT_FINAL_DESERIAL => 'AGGSPLIT_FINAL_DESERIAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AggStrategy.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AggStrategy.php new file mode 100644 index 000000000..c3cd15a51 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AggStrategy.php @@ -0,0 +1,75 @@ +pg_query.AggStrategy. + */ +class AggStrategy +{ + /** + * Generated from protobuf enum AGG_HASHED = 3;. + */ + public const AGG_HASHED = 3; + + /** + * Generated from protobuf enum AGG_MIXED = 4;. + */ + public const AGG_MIXED = 4; + + /** + * Generated from protobuf enum AGG_PLAIN = 1;. + */ + public const AGG_PLAIN = 1; + + /** + * Generated from protobuf enum AGG_SORTED = 2;. + */ + public const AGG_SORTED = 2; + + /** + * Generated from protobuf enum AGG_STRATEGY_UNDEFINED = 0;. + */ + public const AGG_STRATEGY_UNDEFINED = 0; + + private static $valueToName = [ + self::AGG_STRATEGY_UNDEFINED => 'AGG_STRATEGY_UNDEFINED', + self::AGG_PLAIN => 'AGG_PLAIN', + self::AGG_SORTED => 'AGG_SORTED', + self::AGG_HASHED => 'AGG_HASHED', + self::AGG_MIXED => 'AGG_MIXED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Aggref.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Aggref.php new file mode 100644 index 000000000..9e48f3bbc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Aggref.php @@ -0,0 +1,641 @@ +pg_query.Aggref. + */ +class Aggref extends Message +{ + /** + * Generated from protobuf field uint32 aggcollid = 4 [json_name = "aggcollid"];. + */ + protected $aggcollid = 0; + + /** + * Generated from protobuf field .pg_query.Node aggfilter = 11 [json_name = "aggfilter"];. + */ + protected $aggfilter; + + /** + * Generated from protobuf field uint32 aggfnoid = 2 [json_name = "aggfnoid"];. + */ + protected $aggfnoid = 0; + + /** + * Generated from protobuf field string aggkind = 14 [json_name = "aggkind"];. + */ + protected $aggkind = ''; + + /** + * Generated from protobuf field uint32 agglevelsup = 15 [json_name = "agglevelsup"];. + */ + protected $agglevelsup = 0; + + /** + * Generated from protobuf field int32 aggno = 17 [json_name = "aggno"];. + */ + protected $aggno = 0; + + /** + * Generated from protobuf field .pg_query.AggSplit aggsplit = 16 [json_name = "aggsplit"];. + */ + protected $aggsplit = 0; + + /** + * Generated from protobuf field bool aggstar = 12 [json_name = "aggstar"];. + */ + protected $aggstar = false; + + /** + * Generated from protobuf field int32 aggtransno = 18 [json_name = "aggtransno"];. + */ + protected $aggtransno = 0; + + /** + * Generated from protobuf field uint32 aggtype = 3 [json_name = "aggtype"];. + */ + protected $aggtype = 0; + + /** + * Generated from protobuf field bool aggvariadic = 13 [json_name = "aggvariadic"];. + */ + protected $aggvariadic = false; + + /** + * Generated from protobuf field uint32 inputcollid = 5 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field int32 location = 19 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node aggargtypes = 6 [json_name = "aggargtypes"];. + */ + private $aggargtypes; + + /** + * Generated from protobuf field repeated .pg_query.Node aggdirectargs = 7 [json_name = "aggdirectargs"];. + */ + private $aggdirectargs; + + /** + * Generated from protobuf field repeated .pg_query.Node aggdistinct = 10 [json_name = "aggdistinct"];. + */ + private $aggdistinct; + + /** + * Generated from protobuf field repeated .pg_query.Node aggorder = 9 [json_name = "aggorder"];. + */ + private $aggorder; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 8 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $aggfnoid + * @var int $aggtype + * @var int $aggcollid + * @var int $inputcollid + * @var array $aggargtypes + * @var array $aggdirectargs + * @var array $args + * @var array $aggorder + * @var array $aggdistinct + * @var Node $aggfilter + * @var bool $aggstar + * @var bool $aggvariadic + * @var string $aggkind + * @var int $agglevelsup + * @var int $aggsplit + * @var int $aggno + * @var int $aggtransno + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAggfilter() : void + { + $this->aggfilter = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aggargtypes = 6 [json_name = "aggargtypes"];. + * + * @return RepeatedField + */ + public function getAggargtypes() + { + return $this->aggargtypes; + } + + /** + * Generated from protobuf field uint32 aggcollid = 4 [json_name = "aggcollid"];. + * + * @return int + */ + public function getAggcollid() + { + return $this->aggcollid; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aggdirectargs = 7 [json_name = "aggdirectargs"];. + * + * @return RepeatedField + */ + public function getAggdirectargs() + { + return $this->aggdirectargs; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aggdistinct = 10 [json_name = "aggdistinct"];. + * + * @return RepeatedField + */ + public function getAggdistinct() + { + return $this->aggdistinct; + } + + /** + * Generated from protobuf field .pg_query.Node aggfilter = 11 [json_name = "aggfilter"];. + * + * @return null|Node + */ + public function getAggfilter() + { + return $this->aggfilter; + } + + /** + * Generated from protobuf field uint32 aggfnoid = 2 [json_name = "aggfnoid"];. + * + * @return int + */ + public function getAggfnoid() + { + return $this->aggfnoid; + } + + /** + * Generated from protobuf field string aggkind = 14 [json_name = "aggkind"];. + * + * @return string + */ + public function getAggkind() + { + return $this->aggkind; + } + + /** + * Generated from protobuf field uint32 agglevelsup = 15 [json_name = "agglevelsup"];. + * + * @return int + */ + public function getAgglevelsup() + { + return $this->agglevelsup; + } + + /** + * Generated from protobuf field int32 aggno = 17 [json_name = "aggno"];. + * + * @return int + */ + public function getAggno() + { + return $this->aggno; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aggorder = 9 [json_name = "aggorder"];. + * + * @return RepeatedField + */ + public function getAggorder() + { + return $this->aggorder; + } + + /** + * Generated from protobuf field .pg_query.AggSplit aggsplit = 16 [json_name = "aggsplit"];. + * + * @return int + */ + public function getAggsplit() + { + return $this->aggsplit; + } + + /** + * Generated from protobuf field bool aggstar = 12 [json_name = "aggstar"];. + * + * @return bool + */ + public function getAggstar() + { + return $this->aggstar; + } + + /** + * Generated from protobuf field int32 aggtransno = 18 [json_name = "aggtransno"];. + * + * @return int + */ + public function getAggtransno() + { + return $this->aggtransno; + } + + /** + * Generated from protobuf field uint32 aggtype = 3 [json_name = "aggtype"];. + * + * @return int + */ + public function getAggtype() + { + return $this->aggtype; + } + + /** + * Generated from protobuf field bool aggvariadic = 13 [json_name = "aggvariadic"];. + * + * @return bool + */ + public function getAggvariadic() + { + return $this->aggvariadic; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 8 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 inputcollid = 5 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field int32 location = 19 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasAggfilter() + { + return isset($this->aggfilter); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node aggargtypes = 6 [json_name = "aggargtypes"];. + * + * @param array $var + * + * @return $this + */ + public function setAggargtypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->aggargtypes = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 aggcollid = 4 [json_name = "aggcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setAggcollid($var) + { + GPBUtil::checkUint32($var); + $this->aggcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aggdirectargs = 7 [json_name = "aggdirectargs"];. + * + * @param array $var + * + * @return $this + */ + public function setAggdirectargs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->aggdirectargs = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aggdistinct = 10 [json_name = "aggdistinct"];. + * + * @param array $var + * + * @return $this + */ + public function setAggdistinct($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->aggdistinct = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node aggfilter = 11 [json_name = "aggfilter"];. + * + * @param Node $var + * + * @return $this + */ + public function setAggfilter($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->aggfilter = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 aggfnoid = 2 [json_name = "aggfnoid"];. + * + * @param int $var + * + * @return $this + */ + public function setAggfnoid($var) + { + GPBUtil::checkUint32($var); + $this->aggfnoid = $var; + + return $this; + } + + /** + * Generated from protobuf field string aggkind = 14 [json_name = "aggkind"];. + * + * @param string $var + * + * @return $this + */ + public function setAggkind($var) + { + GPBUtil::checkString($var, true); + $this->aggkind = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 agglevelsup = 15 [json_name = "agglevelsup"];. + * + * @param int $var + * + * @return $this + */ + public function setAgglevelsup($var) + { + GPBUtil::checkUint32($var); + $this->agglevelsup = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 aggno = 17 [json_name = "aggno"];. + * + * @param int $var + * + * @return $this + */ + public function setAggno($var) + { + GPBUtil::checkInt32($var); + $this->aggno = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aggorder = 9 [json_name = "aggorder"];. + * + * @param array $var + * + * @return $this + */ + public function setAggorder($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->aggorder = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AggSplit aggsplit = 16 [json_name = "aggsplit"];. + * + * @param int $var + * + * @return $this + */ + public function setAggsplit($var) + { + GPBUtil::checkEnum($var, AggSplit::class); + $this->aggsplit = $var; + + return $this; + } + + /** + * Generated from protobuf field bool aggstar = 12 [json_name = "aggstar"];. + * + * @param bool $var + * + * @return $this + */ + public function setAggstar($var) + { + GPBUtil::checkBool($var); + $this->aggstar = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 aggtransno = 18 [json_name = "aggtransno"];. + * + * @param int $var + * + * @return $this + */ + public function setAggtransno($var) + { + GPBUtil::checkInt32($var); + $this->aggtransno = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 aggtype = 3 [json_name = "aggtype"];. + * + * @param int $var + * + * @return $this + */ + public function setAggtype($var) + { + GPBUtil::checkUint32($var); + $this->aggtype = $var; + + return $this; + } + + /** + * Generated from protobuf field bool aggvariadic = 13 [json_name = "aggvariadic"];. + * + * @param bool $var + * + * @return $this + */ + public function setAggvariadic($var) + { + GPBUtil::checkBool($var); + $this->aggvariadic = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 8 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 5 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 19 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Alias.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Alias.php new file mode 100644 index 000000000..04ada64ef --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Alias.php @@ -0,0 +1,94 @@ +pg_query.Alias. + */ +class Alias extends Message +{ + /** + * Generated from protobuf field string aliasname = 1 [json_name = "aliasname"];. + */ + protected $aliasname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 2 [json_name = "colnames"];. + */ + private $colnames; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $aliasname + * @var array $colnames + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string aliasname = 1 [json_name = "aliasname"];. + * + * @return string + */ + public function getAliasname() + { + return $this->aliasname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 2 [json_name = "colnames"];. + * + * @return RepeatedField + */ + public function getColnames() + { + return $this->colnames; + } + + /** + * Generated from protobuf field string aliasname = 1 [json_name = "aliasname"];. + * + * @param string $var + * + * @return $this + */ + public function setAliasname($var) + { + GPBUtil::checkString($var, true); + $this->aliasname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 2 [json_name = "colnames"];. + * + * @param array $var + * + * @return $this + */ + public function setColnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->colnames = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterCollationStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterCollationStmt.php new file mode 100644 index 000000000..5f4ce702b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterCollationStmt.php @@ -0,0 +1,63 @@ +pg_query.AlterCollationStmt. + */ +class AlterCollationStmt extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node collname = 1 [json_name = "collname"];. + */ + private $collname; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $collname + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node collname = 1 [json_name = "collname"];. + * + * @return RepeatedField + */ + public function getCollname() + { + return $this->collname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node collname = 1 [json_name = "collname"];. + * + * @param array $var + * + * @return $this + */ + public function setCollname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->collname = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseRefreshCollStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseRefreshCollStmt.php new file mode 100644 index 000000000..9d79f09ae --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseRefreshCollStmt.php @@ -0,0 +1,62 @@ +pg_query.AlterDatabaseRefreshCollStmt. + */ +class AlterDatabaseRefreshCollStmt extends Message +{ + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + */ + protected $dbname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $dbname + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @return string + */ + public function getDbname() + { + return $this->dbname; + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @param string $var + * + * @return $this + */ + public function setDbname($var) + { + GPBUtil::checkString($var, true); + $this->dbname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseSetStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseSetStmt.php new file mode 100644 index 000000000..a53d6c58c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseSetStmt.php @@ -0,0 +1,103 @@ +pg_query.AlterDatabaseSetStmt. + */ +class AlterDatabaseSetStmt extends Message +{ + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + */ + protected $dbname = ''; + + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 2 [json_name = "setstmt"];. + */ + protected $setstmt; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $dbname + * @var VariableSetStmt $setstmt + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearSetstmt() : void + { + $this->setstmt = null; + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @return string + */ + public function getDbname() + { + return $this->dbname; + } + + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 2 [json_name = "setstmt"];. + * + * @return null|VariableSetStmt + */ + public function getSetstmt() + { + return $this->setstmt; + } + + public function hasSetstmt() + { + return isset($this->setstmt); + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @param string $var + * + * @return $this + */ + public function setDbname($var) + { + GPBUtil::checkString($var, true); + $this->dbname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 2 [json_name = "setstmt"];. + * + * @param VariableSetStmt $var + * + * @return $this + */ + public function setSetstmt($var) + { + GPBUtil::checkMessage($var, VariableSetStmt::class); + $this->setstmt = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseStmt.php new file mode 100644 index 000000000..f0a6a470d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDatabaseStmt.php @@ -0,0 +1,94 @@ +pg_query.AlterDatabaseStmt. + */ +class AlterDatabaseStmt extends Message +{ + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + */ + protected $dbname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $dbname + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @return string + */ + public function getDbname() + { + return $this->dbname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @param string $var + * + * @return $this + */ + public function setDbname($var) + { + GPBUtil::checkString($var, true); + $this->dbname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDefaultPrivilegesStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDefaultPrivilegesStmt.php new file mode 100644 index 000000000..811333e1b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDefaultPrivilegesStmt.php @@ -0,0 +1,104 @@ +pg_query.AlterDefaultPrivilegesStmt. + */ +class AlterDefaultPrivilegesStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.GrantStmt action = 2 [json_name = "action"];. + */ + protected $action; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 1 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $options + * @var GrantStmt $action + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAction() : void + { + $this->action = null; + } + + /** + * Generated from protobuf field .pg_query.GrantStmt action = 2 [json_name = "action"];. + * + * @return null|GrantStmt + */ + public function getAction() + { + return $this->action; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 1 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + public function hasAction() + { + return isset($this->action); + } + + /** + * Generated from protobuf field .pg_query.GrantStmt action = 2 [json_name = "action"];. + * + * @param GrantStmt $var + * + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkMessage($var, GrantStmt::class); + $this->action = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 1 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDomainStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDomainStmt.php new file mode 100644 index 000000000..d9b314e8e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterDomainStmt.php @@ -0,0 +1,228 @@ +pg_query.AlterDomainStmt. + */ +class AlterDomainStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 5 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field .pg_query.Node def = 4 [json_name = "def"];. + */ + protected $def; + + /** + * Generated from protobuf field bool missing_ok = 6 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field string subtype = 1 [json_name = "subtype"];. + */ + protected $subtype = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 2 [json_name = "typeName"];. + */ + private $type_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $subtype + * @var array $type_name + * @var string $name + * @var Node $def + * @var int $behavior + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearDef() : void + { + $this->def = null; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 5 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field .pg_query.Node def = 4 [json_name = "def"];. + * + * @return null|Node + */ + public function getDef() + { + return $this->def; + } + + /** + * Generated from protobuf field bool missing_ok = 6 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field string subtype = 1 [json_name = "subtype"];. + * + * @return string + */ + public function getSubtype() + { + return $this->subtype; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 2 [json_name = "typeName"];. + * + * @return RepeatedField + */ + public function getTypeName() + { + return $this->type_name; + } + + public function hasDef() + { + return isset($this->def); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 5 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node def = 4 [json_name = "def"];. + * + * @param Node $var + * + * @return $this + */ + public function setDef($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->def = $var; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 6 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field string subtype = 1 [json_name = "subtype"];. + * + * @param string $var + * + * @return $this + */ + public function setSubtype($var) + { + GPBUtil::checkString($var, true); + $this->subtype = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 2 [json_name = "typeName"];. + * + * @param array $var + * + * @return $this + */ + public function setTypeName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->type_name = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterEnumStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterEnumStmt.php new file mode 100644 index 000000000..a5a6ba233 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterEnumStmt.php @@ -0,0 +1,218 @@ +pg_query.AlterEnumStmt. + */ +class AlterEnumStmt extends Message +{ + /** + * Generated from protobuf field string new_val = 3 [json_name = "newVal"];. + */ + protected $new_val = ''; + + /** + * Generated from protobuf field bool new_val_is_after = 5 [json_name = "newValIsAfter"];. + */ + protected $new_val_is_after = false; + + /** + * Generated from protobuf field string new_val_neighbor = 4 [json_name = "newValNeighbor"];. + */ + protected $new_val_neighbor = ''; + + /** + * Generated from protobuf field string old_val = 2 [json_name = "oldVal"];. + */ + protected $old_val = ''; + + /** + * Generated from protobuf field bool skip_if_new_val_exists = 6 [json_name = "skipIfNewValExists"];. + */ + protected $skip_if_new_val_exists = false; + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + */ + private $type_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $type_name + * @var string $old_val + * @var string $new_val + * @var string $new_val_neighbor + * @var bool $new_val_is_after + * @var bool $skip_if_new_val_exists + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string new_val = 3 [json_name = "newVal"];. + * + * @return string + */ + public function getNewVal() + { + return $this->new_val; + } + + /** + * Generated from protobuf field bool new_val_is_after = 5 [json_name = "newValIsAfter"];. + * + * @return bool + */ + public function getNewValIsAfter() + { + return $this->new_val_is_after; + } + + /** + * Generated from protobuf field string new_val_neighbor = 4 [json_name = "newValNeighbor"];. + * + * @return string + */ + public function getNewValNeighbor() + { + return $this->new_val_neighbor; + } + + /** + * Generated from protobuf field string old_val = 2 [json_name = "oldVal"];. + * + * @return string + */ + public function getOldVal() + { + return $this->old_val; + } + + /** + * Generated from protobuf field bool skip_if_new_val_exists = 6 [json_name = "skipIfNewValExists"];. + * + * @return bool + */ + public function getSkipIfNewValExists() + { + return $this->skip_if_new_val_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + * + * @return RepeatedField + */ + public function getTypeName() + { + return $this->type_name; + } + + /** + * Generated from protobuf field string new_val = 3 [json_name = "newVal"];. + * + * @param string $var + * + * @return $this + */ + public function setNewVal($var) + { + GPBUtil::checkString($var, true); + $this->new_val = $var; + + return $this; + } + + /** + * Generated from protobuf field bool new_val_is_after = 5 [json_name = "newValIsAfter"];. + * + * @param bool $var + * + * @return $this + */ + public function setNewValIsAfter($var) + { + GPBUtil::checkBool($var); + $this->new_val_is_after = $var; + + return $this; + } + + /** + * Generated from protobuf field string new_val_neighbor = 4 [json_name = "newValNeighbor"];. + * + * @param string $var + * + * @return $this + */ + public function setNewValNeighbor($var) + { + GPBUtil::checkString($var, true); + $this->new_val_neighbor = $var; + + return $this; + } + + /** + * Generated from protobuf field string old_val = 2 [json_name = "oldVal"];. + * + * @param string $var + * + * @return $this + */ + public function setOldVal($var) + { + GPBUtil::checkString($var, true); + $this->old_val = $var; + + return $this; + } + + /** + * Generated from protobuf field bool skip_if_new_val_exists = 6 [json_name = "skipIfNewValExists"];. + * + * @param bool $var + * + * @return $this + */ + public function setSkipIfNewValExists($var) + { + GPBUtil::checkBool($var); + $this->skip_if_new_val_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + * + * @param array $var + * + * @return $this + */ + public function setTypeName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->type_name = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterEventTrigStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterEventTrigStmt.php new file mode 100644 index 000000000..12f4a1eb8 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterEventTrigStmt.php @@ -0,0 +1,93 @@ +pg_query.AlterEventTrigStmt. + */ +class AlterEventTrigStmt extends Message +{ + /** + * Generated from protobuf field string tgenabled = 2 [json_name = "tgenabled"];. + */ + protected $tgenabled = ''; + + /** + * Generated from protobuf field string trigname = 1 [json_name = "trigname"];. + */ + protected $trigname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $trigname + * @var string $tgenabled + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string tgenabled = 2 [json_name = "tgenabled"];. + * + * @return string + */ + public function getTgenabled() + { + return $this->tgenabled; + } + + /** + * Generated from protobuf field string trigname = 1 [json_name = "trigname"];. + * + * @return string + */ + public function getTrigname() + { + return $this->trigname; + } + + /** + * Generated from protobuf field string tgenabled = 2 [json_name = "tgenabled"];. + * + * @param string $var + * + * @return $this + */ + public function setTgenabled($var) + { + GPBUtil::checkString($var, true); + $this->tgenabled = $var; + + return $this; + } + + /** + * Generated from protobuf field string trigname = 1 [json_name = "trigname"];. + * + * @param string $var + * + * @return $this + */ + public function setTrigname($var) + { + GPBUtil::checkString($var, true); + $this->trigname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterExtensionContentsStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterExtensionContentsStmt.php new file mode 100644 index 000000000..86ac6c0a3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterExtensionContentsStmt.php @@ -0,0 +1,165 @@ +pg_query.AlterExtensionContentsStmt. + */ +class AlterExtensionContentsStmt extends Message +{ + /** + * Generated from protobuf field int32 action = 2 [json_name = "action"];. + */ + protected $action = 0; + + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + */ + protected $extname = ''; + + /** + * Generated from protobuf field .pg_query.Node object = 4 [json_name = "object"];. + */ + protected $object; + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + */ + protected $objtype = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $extname + * @var int $action + * @var int $objtype + * @var Node $object + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearObject() : void + { + $this->object = null; + } + + /** + * Generated from protobuf field int32 action = 2 [json_name = "action"];. + * + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + * + * @return string + */ + public function getExtname() + { + return $this->extname; + } + + /** + * Generated from protobuf field .pg_query.Node object = 4 [json_name = "object"];. + * + * @return null|Node + */ + public function getObject() + { + return $this->object; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + * + * @return int + */ + public function getObjtype() + { + return $this->objtype; + } + + public function hasObject() + { + return isset($this->object); + } + + /** + * Generated from protobuf field int32 action = 2 [json_name = "action"];. + * + * @param int $var + * + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkInt32($var); + $this->action = $var; + + return $this; + } + + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + * + * @param string $var + * + * @return $this + */ + public function setExtname($var) + { + GPBUtil::checkString($var, true); + $this->extname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node object = 4 [json_name = "object"];. + * + * @param Node $var + * + * @return $this + */ + public function setObject($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->object = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + * + * @param int $var + * + * @return $this + */ + public function setObjtype($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->objtype = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterExtensionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterExtensionStmt.php new file mode 100644 index 000000000..2292b8b07 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterExtensionStmt.php @@ -0,0 +1,94 @@ +pg_query.AlterExtensionStmt. + */ +class AlterExtensionStmt extends Message +{ + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + */ + protected $extname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $extname + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + * + * @return string + */ + public function getExtname() + { + return $this->extname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + * + * @param string $var + * + * @return $this + */ + public function setExtname($var) + { + GPBUtil::checkString($var, true); + $this->extname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterFdwStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterFdwStmt.php new file mode 100644 index 000000000..059c72e99 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterFdwStmt.php @@ -0,0 +1,125 @@ +pg_query.AlterFdwStmt. + */ +class AlterFdwStmt extends Message +{ + /** + * Generated from protobuf field string fdwname = 1 [json_name = "fdwname"];. + */ + protected $fdwname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node func_options = 2 [json_name = "func_options"];. + */ + private $func_options; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $fdwname + * @var array $func_options + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string fdwname = 1 [json_name = "fdwname"];. + * + * @return string + */ + public function getFdwname() + { + return $this->fdwname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node func_options = 2 [json_name = "func_options"];. + * + * @return RepeatedField + */ + public function getFuncOptions() + { + return $this->func_options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string fdwname = 1 [json_name = "fdwname"];. + * + * @param string $var + * + * @return $this + */ + public function setFdwname($var) + { + GPBUtil::checkString($var, true); + $this->fdwname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node func_options = 2 [json_name = "func_options"];. + * + * @param array $var + * + * @return $this + */ + public function setFuncOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->func_options = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterForeignServerStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterForeignServerStmt.php new file mode 100644 index 000000000..3ae71fb1e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterForeignServerStmt.php @@ -0,0 +1,156 @@ +pg_query.AlterForeignServerStmt. + */ +class AlterForeignServerStmt extends Message +{ + /** + * Generated from protobuf field bool has_version = 4 [json_name = "has_version"];. + */ + protected $has_version = false; + + /** + * Generated from protobuf field string servername = 1 [json_name = "servername"];. + */ + protected $servername = ''; + + /** + * Generated from protobuf field string version = 2 [json_name = "version"];. + */ + protected $version = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $servername + * @var string $version + * @var array $options + * @var bool $has_version + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool has_version = 4 [json_name = "has_version"];. + * + * @return bool + */ + public function getHasVersion() + { + return $this->has_version; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string servername = 1 [json_name = "servername"];. + * + * @return string + */ + public function getServername() + { + return $this->servername; + } + + /** + * Generated from protobuf field string version = 2 [json_name = "version"];. + * + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Generated from protobuf field bool has_version = 4 [json_name = "has_version"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasVersion($var) + { + GPBUtil::checkBool($var); + $this->has_version = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string servername = 1 [json_name = "servername"];. + * + * @param string $var + * + * @return $this + */ + public function setServername($var) + { + GPBUtil::checkString($var, true); + $this->servername = $var; + + return $this; + } + + /** + * Generated from protobuf field string version = 2 [json_name = "version"];. + * + * @param string $var + * + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, true); + $this->version = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterFunctionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterFunctionStmt.php new file mode 100644 index 000000000..dbc5cd7fb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterFunctionStmt.php @@ -0,0 +1,135 @@ +pg_query.AlterFunctionStmt. + */ +class AlterFunctionStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.ObjectWithArgs func = 2 [json_name = "func"];. + */ + protected $func; + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + */ + protected $objtype = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node actions = 3 [json_name = "actions"];. + */ + private $actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $objtype + * @var ObjectWithArgs $func + * @var array $actions + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFunc() : void + { + $this->func = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node actions = 3 [json_name = "actions"];. + * + * @return RepeatedField + */ + public function getActions() + { + return $this->actions; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs func = 2 [json_name = "func"];. + * + * @return null|ObjectWithArgs + */ + public function getFunc() + { + return $this->func; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + * + * @return int + */ + public function getObjtype() + { + return $this->objtype; + } + + public function hasFunc() + { + return isset($this->func); + } + + /** + * Generated from protobuf field repeated .pg_query.Node actions = 3 [json_name = "actions"];. + * + * @param array $var + * + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->actions = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs func = 2 [json_name = "func"];. + * + * @param ObjectWithArgs $var + * + * @return $this + */ + public function setFunc($var) + { + GPBUtil::checkMessage($var, ObjectWithArgs::class); + $this->func = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + * + * @param int $var + * + * @return $this + */ + public function setObjtype($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->objtype = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterObjectDependsStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterObjectDependsStmt.php new file mode 100644 index 000000000..0a283f285 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterObjectDependsStmt.php @@ -0,0 +1,216 @@ +pg_query.AlterObjectDependsStmt. + */ +class AlterObjectDependsStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.String extname = 4 [json_name = "extname"];. + */ + protected $extname; + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + */ + protected $object; + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + */ + protected $object_type = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field bool remove = 5 [json_name = "remove"];. + */ + protected $remove = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $object_type + * @var RangeVar $relation + * @var Node $object + * @var PBString $extname + * @var bool $remove + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExtname() : void + { + $this->extname = null; + } + + public function clearObject() : void + { + $this->object = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field .pg_query.String extname = 4 [json_name = "extname"];. + * + * @return null|PBString + */ + public function getExtname() + { + return $this->extname; + } + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + * + * @return null|Node + */ + public function getObject() + { + return $this->object; + } + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + * + * @return int + */ + public function getObjectType() + { + return $this->object_type; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field bool remove = 5 [json_name = "remove"];. + * + * @return bool + */ + public function getRemove() + { + return $this->remove; + } + + public function hasExtname() + { + return isset($this->extname); + } + + public function hasObject() + { + return isset($this->object); + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field .pg_query.String extname = 4 [json_name = "extname"];. + * + * @param PBString $var + * + * @return $this + */ + public function setExtname($var) + { + GPBUtil::checkMessage($var, PBString::class); + $this->extname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + * + * @param Node $var + * + * @return $this + */ + public function setObject($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->object = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + * + * @param int $var + * + * @return $this + */ + public function setObjectType($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->object_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field bool remove = 5 [json_name = "remove"];. + * + * @param bool $var + * + * @return $this + */ + public function setRemove($var) + { + GPBUtil::checkBool($var); + $this->remove = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterObjectSchemaStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterObjectSchemaStmt.php new file mode 100644 index 000000000..14a21f5a2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterObjectSchemaStmt.php @@ -0,0 +1,206 @@ +pg_query.AlterObjectSchemaStmt. + */ +class AlterObjectSchemaStmt extends Message +{ + /** + * Generated from protobuf field bool missing_ok = 5 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field string newschema = 4 [json_name = "newschema"];. + */ + protected $newschema = ''; + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + */ + protected $object; + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + */ + protected $object_type = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + */ + protected $relation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $object_type + * @var RangeVar $relation + * @var Node $object + * @var string $newschema + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearObject() : void + { + $this->object = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field bool missing_ok = 5 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field string newschema = 4 [json_name = "newschema"];. + * + * @return string + */ + public function getNewschema() + { + return $this->newschema; + } + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + * + * @return null|Node + */ + public function getObject() + { + return $this->object; + } + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + * + * @return int + */ + public function getObjectType() + { + return $this->object_type; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + public function hasObject() + { + return isset($this->object); + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field bool missing_ok = 5 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field string newschema = 4 [json_name = "newschema"];. + * + * @param string $var + * + * @return $this + */ + public function setNewschema($var) + { + GPBUtil::checkString($var, true); + $this->newschema = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + * + * @param Node $var + * + * @return $this + */ + public function setObject($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->object = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + * + * @param int $var + * + * @return $this + */ + public function setObjectType($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->object_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOpFamilyStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOpFamilyStmt.php new file mode 100644 index 000000000..9b23c88d4 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOpFamilyStmt.php @@ -0,0 +1,156 @@ +pg_query.AlterOpFamilyStmt. + */ +class AlterOpFamilyStmt extends Message +{ + /** + * Generated from protobuf field string amname = 2 [json_name = "amname"];. + */ + protected $amname = ''; + + /** + * Generated from protobuf field bool is_drop = 3 [json_name = "isDrop"];. + */ + protected $is_drop = false; + + /** + * Generated from protobuf field repeated .pg_query.Node items = 4 [json_name = "items"];. + */ + private $items; + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"];. + */ + private $opfamilyname; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $opfamilyname + * @var string $amname + * @var bool $is_drop + * @var array $items + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string amname = 2 [json_name = "amname"];. + * + * @return string + */ + public function getAmname() + { + return $this->amname; + } + + /** + * Generated from protobuf field bool is_drop = 3 [json_name = "isDrop"];. + * + * @return bool + */ + public function getIsDrop() + { + return $this->is_drop; + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 4 [json_name = "items"];. + * + * @return RepeatedField + */ + public function getItems() + { + return $this->items; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"];. + * + * @return RepeatedField + */ + public function getOpfamilyname() + { + return $this->opfamilyname; + } + + /** + * Generated from protobuf field string amname = 2 [json_name = "amname"];. + * + * @param string $var + * + * @return $this + */ + public function setAmname($var) + { + GPBUtil::checkString($var, true); + $this->amname = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_drop = 3 [json_name = "isDrop"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsDrop($var) + { + GPBUtil::checkBool($var); + $this->is_drop = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 4 [json_name = "items"];. + * + * @param array $var + * + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->items = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"];. + * + * @param array $var + * + * @return $this + */ + public function setOpfamilyname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opfamilyname = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOperatorStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOperatorStmt.php new file mode 100644 index 000000000..3aa2da3c9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOperatorStmt.php @@ -0,0 +1,104 @@ +pg_query.AlterOperatorStmt. + */ +class AlterOperatorStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.ObjectWithArgs opername = 1 [json_name = "opername"];. + */ + protected $opername; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var ObjectWithArgs $opername + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearOpername() : void + { + $this->opername = null; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs opername = 1 [json_name = "opername"];. + * + * @return null|ObjectWithArgs + */ + public function getOpername() + { + return $this->opername; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + public function hasOpername() + { + return isset($this->opername); + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs opername = 1 [json_name = "opername"];. + * + * @param ObjectWithArgs $var + * + * @return $this + */ + public function setOpername($var) + { + GPBUtil::checkMessage($var, ObjectWithArgs::class); + $this->opername = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOwnerStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOwnerStmt.php new file mode 100644 index 000000000..ddbca7ddf --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterOwnerStmt.php @@ -0,0 +1,185 @@ +pg_query.AlterOwnerStmt. + */ +class AlterOwnerStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.RoleSpec newowner = 4 [json_name = "newowner"];. + */ + protected $newowner; + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + */ + protected $object; + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + */ + protected $object_type = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + */ + protected $relation; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $object_type + * @var RangeVar $relation + * @var Node $object + * @var RoleSpec $newowner + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearNewowner() : void + { + $this->newowner = null; + } + + public function clearObject() : void + { + $this->object = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec newowner = 4 [json_name = "newowner"];. + * + * @return null|RoleSpec + */ + public function getNewowner() + { + return $this->newowner; + } + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + * + * @return null|Node + */ + public function getObject() + { + return $this->object; + } + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + * + * @return int + */ + public function getObjectType() + { + return $this->object_type; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + public function hasNewowner() + { + return isset($this->newowner); + } + + public function hasObject() + { + return isset($this->object); + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field .pg_query.RoleSpec newowner = 4 [json_name = "newowner"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setNewowner($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->newowner = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node object = 3 [json_name = "object"];. + * + * @param Node $var + * + * @return $this + */ + public function setObject($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->object = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType object_type = 1 [json_name = "objectType"];. + * + * @param int $var + * + * @return $this + */ + public function setObjectType($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->object_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPolicyStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPolicyStmt.php new file mode 100644 index 000000000..f62f7d76c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPolicyStmt.php @@ -0,0 +1,217 @@ +pg_query.AlterPolicyStmt. + */ +class AlterPolicyStmt extends Message +{ + /** + * Generated from protobuf field string policy_name = 1 [json_name = "policy_name"];. + */ + protected $policy_name = ''; + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + */ + protected $qual; + + /** + * Generated from protobuf field .pg_query.RangeVar table = 2 [json_name = "table"];. + */ + protected $table; + + /** + * Generated from protobuf field .pg_query.Node with_check = 5 [json_name = "with_check"];. + */ + protected $with_check; + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 3 [json_name = "roles"];. + */ + private $roles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $policy_name + * @var RangeVar $table + * @var array $roles + * @var Node $qual + * @var Node $with_check + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQual() : void + { + $this->qual = null; + } + + public function clearTable() : void + { + $this->table = null; + } + + public function clearWithCheck() : void + { + $this->with_check = null; + } + + /** + * Generated from protobuf field string policy_name = 1 [json_name = "policy_name"];. + * + * @return string + */ + public function getPolicyName() + { + return $this->policy_name; + } + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + * + * @return null|Node + */ + public function getQual() + { + return $this->qual; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 3 [json_name = "roles"];. + * + * @return RepeatedField + */ + public function getRoles() + { + return $this->roles; + } + + /** + * Generated from protobuf field .pg_query.RangeVar table = 2 [json_name = "table"];. + * + * @return null|RangeVar + */ + public function getTable() + { + return $this->table; + } + + /** + * Generated from protobuf field .pg_query.Node with_check = 5 [json_name = "with_check"];. + * + * @return null|Node + */ + public function getWithCheck() + { + return $this->with_check; + } + + public function hasQual() + { + return isset($this->qual); + } + + public function hasTable() + { + return isset($this->table); + } + + public function hasWithCheck() + { + return isset($this->with_check); + } + + /** + * Generated from protobuf field string policy_name = 1 [json_name = "policy_name"];. + * + * @param string $var + * + * @return $this + */ + public function setPolicyName($var) + { + GPBUtil::checkString($var, true); + $this->policy_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + * + * @param Node $var + * + * @return $this + */ + public function setQual($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->qual = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 3 [json_name = "roles"];. + * + * @param array $var + * + * @return $this + */ + public function setRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->roles = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar table = 2 [json_name = "table"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->table = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node with_check = 5 [json_name = "with_check"];. + * + * @param Node $var + * + * @return $this + */ + public function setWithCheck($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->with_check = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPublicationAction.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPublicationAction.php new file mode 100644 index 000000000..8592f1ceb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPublicationAction.php @@ -0,0 +1,69 @@ +pg_query.AlterPublicationAction. + */ +class AlterPublicationAction +{ + /** + * Generated from protobuf enum ALTER_PUBLICATION_ACTION_UNDEFINED = 0;. + */ + public const ALTER_PUBLICATION_ACTION_UNDEFINED = 0; + + /** + * Generated from protobuf enum AP_AddObjects = 1;. + */ + public const AP_AddObjects = 1; + + /** + * Generated from protobuf enum AP_DropObjects = 2;. + */ + public const AP_DropObjects = 2; + + /** + * Generated from protobuf enum AP_SetObjects = 3;. + */ + public const AP_SetObjects = 3; + + private static $valueToName = [ + self::ALTER_PUBLICATION_ACTION_UNDEFINED => 'ALTER_PUBLICATION_ACTION_UNDEFINED', + self::AP_AddObjects => 'AP_AddObjects', + self::AP_DropObjects => 'AP_DropObjects', + self::AP_SetObjects => 'AP_SetObjects', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPublicationStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPublicationStmt.php new file mode 100644 index 000000000..5c748b9b7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterPublicationStmt.php @@ -0,0 +1,187 @@ +pg_query.AlterPublicationStmt. + */ +class AlterPublicationStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.AlterPublicationAction action = 5 [json_name = "action"];. + */ + protected $action = 0; + + /** + * Generated from protobuf field bool for_all_tables = 4 [json_name = "for_all_tables"];. + */ + protected $for_all_tables = false; + + /** + * Generated from protobuf field string pubname = 1 [json_name = "pubname"];. + */ + protected $pubname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"];. + */ + private $pubobjects; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $pubname + * @var array $options + * @var array $pubobjects + * @var bool $for_all_tables + * @var int $action + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.AlterPublicationAction action = 5 [json_name = "action"];. + * + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * Generated from protobuf field bool for_all_tables = 4 [json_name = "for_all_tables"];. + * + * @return bool + */ + public function getForAllTables() + { + return $this->for_all_tables; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string pubname = 1 [json_name = "pubname"];. + * + * @return string + */ + public function getPubname() + { + return $this->pubname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"];. + * + * @return RepeatedField + */ + public function getPubobjects() + { + return $this->pubobjects; + } + + /** + * Generated from protobuf field .pg_query.AlterPublicationAction action = 5 [json_name = "action"];. + * + * @param int $var + * + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, AlterPublicationAction::class); + $this->action = $var; + + return $this; + } + + /** + * Generated from protobuf field bool for_all_tables = 4 [json_name = "for_all_tables"];. + * + * @param bool $var + * + * @return $this + */ + public function setForAllTables($var) + { + GPBUtil::checkBool($var); + $this->for_all_tables = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string pubname = 1 [json_name = "pubname"];. + * + * @param string $var + * + * @return $this + */ + public function setPubname($var) + { + GPBUtil::checkString($var, true); + $this->pubname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"];. + * + * @param array $var + * + * @return $this + */ + public function setPubobjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->pubobjects = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterRoleSetStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterRoleSetStmt.php new file mode 100644 index 000000000..a4192e5aa --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterRoleSetStmt.php @@ -0,0 +1,144 @@ +pg_query.AlterRoleSetStmt. + */ +class AlterRoleSetStmt extends Message +{ + /** + * Generated from protobuf field string database = 2 [json_name = "database"];. + */ + protected $database = ''; + + /** + * Generated from protobuf field .pg_query.RoleSpec role = 1 [json_name = "role"];. + */ + protected $role; + + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 3 [json_name = "setstmt"];. + */ + protected $setstmt; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RoleSpec $role + * @var string $database + * @var VariableSetStmt $setstmt + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRole() : void + { + $this->role = null; + } + + public function clearSetstmt() : void + { + $this->setstmt = null; + } + + /** + * Generated from protobuf field string database = 2 [json_name = "database"];. + * + * @return string + */ + public function getDatabase() + { + return $this->database; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec role = 1 [json_name = "role"];. + * + * @return null|RoleSpec + */ + public function getRole() + { + return $this->role; + } + + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 3 [json_name = "setstmt"];. + * + * @return null|VariableSetStmt + */ + public function getSetstmt() + { + return $this->setstmt; + } + + public function hasRole() + { + return isset($this->role); + } + + public function hasSetstmt() + { + return isset($this->setstmt); + } + + /** + * Generated from protobuf field string database = 2 [json_name = "database"];. + * + * @param string $var + * + * @return $this + */ + public function setDatabase($var) + { + GPBUtil::checkString($var, true); + $this->database = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec role = 1 [json_name = "role"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->role = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 3 [json_name = "setstmt"];. + * + * @param VariableSetStmt $var + * + * @return $this + */ + public function setSetstmt($var) + { + GPBUtil::checkMessage($var, VariableSetStmt::class); + $this->setstmt = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterRoleStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterRoleStmt.php new file mode 100644 index 000000000..5f27641b1 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterRoleStmt.php @@ -0,0 +1,135 @@ +pg_query.AlterRoleStmt. + */ +class AlterRoleStmt extends Message +{ + /** + * Generated from protobuf field int32 action = 3 [json_name = "action"];. + */ + protected $action = 0; + + /** + * Generated from protobuf field .pg_query.RoleSpec role = 1 [json_name = "role"];. + */ + protected $role; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RoleSpec $role + * @var array $options + * @var int $action + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRole() : void + { + $this->role = null; + } + + /** + * Generated from protobuf field int32 action = 3 [json_name = "action"];. + * + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec role = 1 [json_name = "role"];. + * + * @return null|RoleSpec + */ + public function getRole() + { + return $this->role; + } + + public function hasRole() + { + return isset($this->role); + } + + /** + * Generated from protobuf field int32 action = 3 [json_name = "action"];. + * + * @param int $var + * + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkInt32($var); + $this->action = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec role = 1 [json_name = "role"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->role = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSeqStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSeqStmt.php new file mode 100644 index 000000000..877e9ad0e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSeqStmt.php @@ -0,0 +1,166 @@ +pg_query.AlterSeqStmt. + */ +class AlterSeqStmt extends Message +{ + /** + * Generated from protobuf field bool for_identity = 3 [json_name = "for_identity"];. + */ + protected $for_identity = false; + + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field .pg_query.RangeVar sequence = 1 [json_name = "sequence"];. + */ + protected $sequence; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $sequence + * @var array $options + * @var bool $for_identity + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearSequence() : void + { + $this->sequence = null; + } + + /** + * Generated from protobuf field bool for_identity = 3 [json_name = "for_identity"];. + * + * @return bool + */ + public function getForIdentity() + { + return $this->for_identity; + } + + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.RangeVar sequence = 1 [json_name = "sequence"];. + * + * @return null|RangeVar + */ + public function getSequence() + { + return $this->sequence; + } + + public function hasSequence() + { + return isset($this->sequence); + } + + /** + * Generated from protobuf field bool for_identity = 3 [json_name = "for_identity"];. + * + * @param bool $var + * + * @return $this + */ + public function setForIdentity($var) + { + GPBUtil::checkBool($var); + $this->for_identity = $var; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar sequence = 1 [json_name = "sequence"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setSequence($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->sequence = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterStatsStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterStatsStmt.php new file mode 100644 index 000000000..6fd199edc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterStatsStmt.php @@ -0,0 +1,135 @@ +pg_query.AlterStatsStmt. + */ +class AlterStatsStmt extends Message +{ + /** + * Generated from protobuf field bool missing_ok = 3 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field .pg_query.Node stxstattarget = 2 [json_name = "stxstattarget"];. + */ + protected $stxstattarget; + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 1 [json_name = "defnames"];. + */ + private $defnames; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $defnames + * @var Node $stxstattarget + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearStxstattarget() : void + { + $this->stxstattarget = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 1 [json_name = "defnames"];. + * + * @return RepeatedField + */ + public function getDefnames() + { + return $this->defnames; + } + + /** + * Generated from protobuf field bool missing_ok = 3 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field .pg_query.Node stxstattarget = 2 [json_name = "stxstattarget"];. + * + * @return null|Node + */ + public function getStxstattarget() + { + return $this->stxstattarget; + } + + public function hasStxstattarget() + { + return isset($this->stxstattarget); + } + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 1 [json_name = "defnames"];. + * + * @param array $var + * + * @return $this + */ + public function setDefnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->defnames = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 3 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node stxstattarget = 2 [json_name = "stxstattarget"];. + * + * @param Node $var + * + * @return $this + */ + public function setStxstattarget($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->stxstattarget = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSubscriptionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSubscriptionStmt.php new file mode 100644 index 000000000..35b8e67fd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSubscriptionStmt.php @@ -0,0 +1,187 @@ +pg_query.AlterSubscriptionStmt. + */ +class AlterSubscriptionStmt extends Message +{ + /** + * Generated from protobuf field string conninfo = 3 [json_name = "conninfo"];. + */ + protected $conninfo = ''; + + /** + * Generated from protobuf field .pg_query.AlterSubscriptionType kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field string subname = 2 [json_name = "subname"];. + */ + protected $subname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 5 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node publication = 4 [json_name = "publication"];. + */ + private $publication; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var string $subname + * @var string $conninfo + * @var array $publication + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string conninfo = 3 [json_name = "conninfo"];. + * + * @return string + */ + public function getConninfo() + { + return $this->conninfo; + } + + /** + * Generated from protobuf field .pg_query.AlterSubscriptionType kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 5 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node publication = 4 [json_name = "publication"];. + * + * @return RepeatedField + */ + public function getPublication() + { + return $this->publication; + } + + /** + * Generated from protobuf field string subname = 2 [json_name = "subname"];. + * + * @return string + */ + public function getSubname() + { + return $this->subname; + } + + /** + * Generated from protobuf field string conninfo = 3 [json_name = "conninfo"];. + * + * @param string $var + * + * @return $this + */ + public function setConninfo($var) + { + GPBUtil::checkString($var, true); + $this->conninfo = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterSubscriptionType kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, AlterSubscriptionType::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 5 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node publication = 4 [json_name = "publication"];. + * + * @param array $var + * + * @return $this + */ + public function setPublication($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->publication = $arr; + + return $this; + } + + /** + * Generated from protobuf field string subname = 2 [json_name = "subname"];. + * + * @param string $var + * + * @return $this + */ + public function setSubname($var) + { + GPBUtil::checkString($var, true); + $this->subname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSubscriptionType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSubscriptionType.php new file mode 100644 index 000000000..29bd78590 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSubscriptionType.php @@ -0,0 +1,99 @@ +pg_query.AlterSubscriptionType. + */ +class AlterSubscriptionType +{ + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_ADD_PUBLICATION = 4;. + */ + public const ALTER_SUBSCRIPTION_ADD_PUBLICATION = 4; + + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_CONNECTION = 2;. + */ + public const ALTER_SUBSCRIPTION_CONNECTION = 2; + + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_DROP_PUBLICATION = 5;. + */ + public const ALTER_SUBSCRIPTION_DROP_PUBLICATION = 5; + + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_ENABLED = 7;. + */ + public const ALTER_SUBSCRIPTION_ENABLED = 7; + + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_OPTIONS = 1;. + */ + public const ALTER_SUBSCRIPTION_OPTIONS = 1; + + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_REFRESH = 6;. + */ + public const ALTER_SUBSCRIPTION_REFRESH = 6; + + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_SET_PUBLICATION = 3;. + */ + public const ALTER_SUBSCRIPTION_SET_PUBLICATION = 3; + + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_SKIP = 8;. + */ + public const ALTER_SUBSCRIPTION_SKIP = 8; + + /** + * Generated from protobuf enum ALTER_SUBSCRIPTION_TYPE_UNDEFINED = 0;. + */ + public const ALTER_SUBSCRIPTION_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::ALTER_SUBSCRIPTION_TYPE_UNDEFINED => 'ALTER_SUBSCRIPTION_TYPE_UNDEFINED', + self::ALTER_SUBSCRIPTION_OPTIONS => 'ALTER_SUBSCRIPTION_OPTIONS', + self::ALTER_SUBSCRIPTION_CONNECTION => 'ALTER_SUBSCRIPTION_CONNECTION', + self::ALTER_SUBSCRIPTION_SET_PUBLICATION => 'ALTER_SUBSCRIPTION_SET_PUBLICATION', + self::ALTER_SUBSCRIPTION_ADD_PUBLICATION => 'ALTER_SUBSCRIPTION_ADD_PUBLICATION', + self::ALTER_SUBSCRIPTION_DROP_PUBLICATION => 'ALTER_SUBSCRIPTION_DROP_PUBLICATION', + self::ALTER_SUBSCRIPTION_REFRESH => 'ALTER_SUBSCRIPTION_REFRESH', + self::ALTER_SUBSCRIPTION_ENABLED => 'ALTER_SUBSCRIPTION_ENABLED', + self::ALTER_SUBSCRIPTION_SKIP => 'ALTER_SUBSCRIPTION_SKIP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSystemStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSystemStmt.php new file mode 100644 index 000000000..6f73138cc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterSystemStmt.php @@ -0,0 +1,72 @@ +pg_query.AlterSystemStmt. + */ +class AlterSystemStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 1 [json_name = "setstmt"];. + */ + protected $setstmt; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var VariableSetStmt $setstmt + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearSetstmt() : void + { + $this->setstmt = null; + } + + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 1 [json_name = "setstmt"];. + * + * @return null|VariableSetStmt + */ + public function getSetstmt() + { + return $this->setstmt; + } + + public function hasSetstmt() + { + return isset($this->setstmt); + } + + /** + * Generated from protobuf field .pg_query.VariableSetStmt setstmt = 1 [json_name = "setstmt"];. + * + * @param VariableSetStmt $var + * + * @return $this + */ + public function setSetstmt($var) + { + GPBUtil::checkMessage($var, VariableSetStmt::class); + $this->setstmt = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSConfigType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSConfigType.php new file mode 100644 index 000000000..29d724d04 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSConfigType.php @@ -0,0 +1,81 @@ +pg_query.AlterTSConfigType. + */ +class AlterTSConfigType +{ + /** + * Generated from protobuf enum ALTER_TSCONFIG_ADD_MAPPING = 1;. + */ + public const ALTER_TSCONFIG_ADD_MAPPING = 1; + + /** + * Generated from protobuf enum ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN = 2;. + */ + public const ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN = 2; + + /** + * Generated from protobuf enum ALTER_TSCONFIG_DROP_MAPPING = 5;. + */ + public const ALTER_TSCONFIG_DROP_MAPPING = 5; + + /** + * Generated from protobuf enum ALTER_TSCONFIG_REPLACE_DICT = 3;. + */ + public const ALTER_TSCONFIG_REPLACE_DICT = 3; + + /** + * Generated from protobuf enum ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN = 4;. + */ + public const ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN = 4; + + /** + * Generated from protobuf enum ALTER_TSCONFIG_TYPE_UNDEFINED = 0;. + */ + public const ALTER_TSCONFIG_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::ALTER_TSCONFIG_TYPE_UNDEFINED => 'ALTER_TSCONFIG_TYPE_UNDEFINED', + self::ALTER_TSCONFIG_ADD_MAPPING => 'ALTER_TSCONFIG_ADD_MAPPING', + self::ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN => 'ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN', + self::ALTER_TSCONFIG_REPLACE_DICT => 'ALTER_TSCONFIG_REPLACE_DICT', + self::ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN => 'ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN', + self::ALTER_TSCONFIG_DROP_MAPPING => 'ALTER_TSCONFIG_DROP_MAPPING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSConfigurationStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSConfigurationStmt.php new file mode 100644 index 000000000..b18697009 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSConfigurationStmt.php @@ -0,0 +1,249 @@ +pg_query.AlterTSConfigurationStmt. + */ +class AlterTSConfigurationStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.AlterTSConfigType kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field bool missing_ok = 7 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field bool override = 5 [json_name = "override"];. + */ + protected $override = false; + + /** + * Generated from protobuf field bool replace = 6 [json_name = "replace"];. + */ + protected $replace = false; + + /** + * Generated from protobuf field repeated .pg_query.Node cfgname = 2 [json_name = "cfgname"];. + */ + private $cfgname; + + /** + * Generated from protobuf field repeated .pg_query.Node dicts = 4 [json_name = "dicts"];. + */ + private $dicts; + + /** + * Generated from protobuf field repeated .pg_query.Node tokentype = 3 [json_name = "tokentype"];. + */ + private $tokentype; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var array $cfgname + * @var array $tokentype + * @var array $dicts + * @var bool $override + * @var bool $replace + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node cfgname = 2 [json_name = "cfgname"];. + * + * @return RepeatedField + */ + public function getCfgname() + { + return $this->cfgname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node dicts = 4 [json_name = "dicts"];. + * + * @return RepeatedField + */ + public function getDicts() + { + return $this->dicts; + } + + /** + * Generated from protobuf field .pg_query.AlterTSConfigType kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field bool missing_ok = 7 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field bool override = 5 [json_name = "override"];. + * + * @return bool + */ + public function getOverride() + { + return $this->override; + } + + /** + * Generated from protobuf field bool replace = 6 [json_name = "replace"];. + * + * @return bool + */ + public function getReplace() + { + return $this->replace; + } + + /** + * Generated from protobuf field repeated .pg_query.Node tokentype = 3 [json_name = "tokentype"];. + * + * @return RepeatedField + */ + public function getTokentype() + { + return $this->tokentype; + } + + /** + * Generated from protobuf field repeated .pg_query.Node cfgname = 2 [json_name = "cfgname"];. + * + * @param array $var + * + * @return $this + */ + public function setCfgname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->cfgname = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node dicts = 4 [json_name = "dicts"];. + * + * @param array $var + * + * @return $this + */ + public function setDicts($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->dicts = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTSConfigType kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, AlterTSConfigType::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 7 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field bool override = 5 [json_name = "override"];. + * + * @param bool $var + * + * @return $this + */ + public function setOverride($var) + { + GPBUtil::checkBool($var); + $this->override = $var; + + return $this; + } + + /** + * Generated from protobuf field bool replace = 6 [json_name = "replace"];. + * + * @param bool $var + * + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkBool($var); + $this->replace = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node tokentype = 3 [json_name = "tokentype"];. + * + * @param array $var + * + * @return $this + */ + public function setTokentype($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->tokentype = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSDictionaryStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSDictionaryStmt.php new file mode 100644 index 000000000..b0a2389d7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTSDictionaryStmt.php @@ -0,0 +1,94 @@ +pg_query.AlterTSDictionaryStmt. + */ +class AlterTSDictionaryStmt extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node dictname = 1 [json_name = "dictname"];. + */ + private $dictname; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $dictname + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node dictname = 1 [json_name = "dictname"];. + * + * @return RepeatedField + */ + public function getDictname() + { + return $this->dictname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node dictname = 1 [json_name = "dictname"];. + * + * @param array $var + * + * @return $this + */ + public function setDictname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->dictname = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableCmd.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableCmd.php new file mode 100644 index 000000000..db288cb99 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableCmd.php @@ -0,0 +1,299 @@ +pg_query.AlterTableCmd. + */ +class AlterTableCmd extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 6 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field .pg_query.Node def = 5 [json_name = "def"];. + */ + protected $def; + + /** + * Generated from protobuf field bool missing_ok = 7 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.RoleSpec newowner = 4 [json_name = "newowner"];. + */ + protected $newowner; + + /** + * Generated from protobuf field int32 num = 3 [json_name = "num"];. + */ + protected $num = 0; + + /** + * Generated from protobuf field bool recurse = 8 [json_name = "recurse"];. + */ + protected $recurse = false; + + /** + * Generated from protobuf field .pg_query.AlterTableType subtype = 1 [json_name = "subtype"];. + */ + protected $subtype = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $subtype + * @var string $name + * @var int $num + * @var RoleSpec $newowner + * @var Node $def + * @var int $behavior + * @var bool $missing_ok + * @var bool $recurse + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearDef() : void + { + $this->def = null; + } + + public function clearNewowner() : void + { + $this->newowner = null; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 6 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field .pg_query.Node def = 5 [json_name = "def"];. + * + * @return null|Node + */ + public function getDef() + { + return $this->def; + } + + /** + * Generated from protobuf field bool missing_ok = 7 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec newowner = 4 [json_name = "newowner"];. + * + * @return null|RoleSpec + */ + public function getNewowner() + { + return $this->newowner; + } + + /** + * Generated from protobuf field int32 num = 3 [json_name = "num"];. + * + * @return int + */ + public function getNum() + { + return $this->num; + } + + /** + * Generated from protobuf field bool recurse = 8 [json_name = "recurse"];. + * + * @return bool + */ + public function getRecurse() + { + return $this->recurse; + } + + /** + * Generated from protobuf field .pg_query.AlterTableType subtype = 1 [json_name = "subtype"];. + * + * @return int + */ + public function getSubtype() + { + return $this->subtype; + } + + public function hasDef() + { + return isset($this->def); + } + + public function hasNewowner() + { + return isset($this->newowner); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 6 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node def = 5 [json_name = "def"];. + * + * @param Node $var + * + * @return $this + */ + public function setDef($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->def = $var; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 7 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec newowner = 4 [json_name = "newowner"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setNewowner($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->newowner = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 num = 3 [json_name = "num"];. + * + * @param int $var + * + * @return $this + */ + public function setNum($var) + { + GPBUtil::checkInt32($var); + $this->num = $var; + + return $this; + } + + /** + * Generated from protobuf field bool recurse = 8 [json_name = "recurse"];. + * + * @param bool $var + * + * @return $this + */ + public function setRecurse($var) + { + GPBUtil::checkBool($var); + $this->recurse = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTableType subtype = 1 [json_name = "subtype"];. + * + * @param int $var + * + * @return $this + */ + public function setSubtype($var) + { + GPBUtil::checkEnum($var, AlterTableType::class); + $this->subtype = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableMoveAllStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableMoveAllStmt.php new file mode 100644 index 000000000..23ee336fb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableMoveAllStmt.php @@ -0,0 +1,187 @@ +pg_query.AlterTableMoveAllStmt. + */ +class AlterTableMoveAllStmt extends Message +{ + /** + * Generated from protobuf field string new_tablespacename = 4 [json_name = "new_tablespacename"];. + */ + protected $new_tablespacename = ''; + + /** + * Generated from protobuf field bool nowait = 5 [json_name = "nowait"];. + */ + protected $nowait = false; + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 2 [json_name = "objtype"];. + */ + protected $objtype = 0; + + /** + * Generated from protobuf field string orig_tablespacename = 1 [json_name = "orig_tablespacename"];. + */ + protected $orig_tablespacename = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 3 [json_name = "roles"];. + */ + private $roles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $orig_tablespacename + * @var int $objtype + * @var array $roles + * @var string $new_tablespacename + * @var bool $nowait + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string new_tablespacename = 4 [json_name = "new_tablespacename"];. + * + * @return string + */ + public function getNewTablespacename() + { + return $this->new_tablespacename; + } + + /** + * Generated from protobuf field bool nowait = 5 [json_name = "nowait"];. + * + * @return bool + */ + public function getNowait() + { + return $this->nowait; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 2 [json_name = "objtype"];. + * + * @return int + */ + public function getObjtype() + { + return $this->objtype; + } + + /** + * Generated from protobuf field string orig_tablespacename = 1 [json_name = "orig_tablespacename"];. + * + * @return string + */ + public function getOrigTablespacename() + { + return $this->orig_tablespacename; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 3 [json_name = "roles"];. + * + * @return RepeatedField + */ + public function getRoles() + { + return $this->roles; + } + + /** + * Generated from protobuf field string new_tablespacename = 4 [json_name = "new_tablespacename"];. + * + * @param string $var + * + * @return $this + */ + public function setNewTablespacename($var) + { + GPBUtil::checkString($var, true); + $this->new_tablespacename = $var; + + return $this; + } + + /** + * Generated from protobuf field bool nowait = 5 [json_name = "nowait"];. + * + * @param bool $var + * + * @return $this + */ + public function setNowait($var) + { + GPBUtil::checkBool($var); + $this->nowait = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 2 [json_name = "objtype"];. + * + * @param int $var + * + * @return $this + */ + public function setObjtype($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->objtype = $var; + + return $this; + } + + /** + * Generated from protobuf field string orig_tablespacename = 1 [json_name = "orig_tablespacename"];. + * + * @param string $var + * + * @return $this + */ + public function setOrigTablespacename($var) + { + GPBUtil::checkString($var, true); + $this->orig_tablespacename = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 3 [json_name = "roles"];. + * + * @param array $var + * + * @return $this + */ + public function setRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->roles = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableSpaceOptionsStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableSpaceOptionsStmt.php new file mode 100644 index 000000000..cd12f064e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableSpaceOptionsStmt.php @@ -0,0 +1,125 @@ +pg_query.AlterTableSpaceOptionsStmt. + */ +class AlterTableSpaceOptionsStmt extends Message +{ + /** + * Generated from protobuf field bool is_reset = 3 [json_name = "isReset"];. + */ + protected $is_reset = false; + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + */ + protected $tablespacename = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $tablespacename + * @var array $options + * @var bool $is_reset + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool is_reset = 3 [json_name = "isReset"];. + * + * @return bool + */ + public function getIsReset() + { + return $this->is_reset; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + * + * @return string + */ + public function getTablespacename() + { + return $this->tablespacename; + } + + /** + * Generated from protobuf field bool is_reset = 3 [json_name = "isReset"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsReset($var) + { + GPBUtil::checkBool($var); + $this->is_reset = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + * + * @param string $var + * + * @return $this + */ + public function setTablespacename($var) + { + GPBUtil::checkString($var, true); + $this->tablespacename = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableStmt.php new file mode 100644 index 000000000..2f875bfdd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableStmt.php @@ -0,0 +1,166 @@ +pg_query.AlterTableStmt. + */ +class AlterTableStmt extends Message +{ + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + */ + protected $objtype = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field repeated .pg_query.Node cmds = 2 [json_name = "cmds"];. + */ + private $cmds; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var array $cmds + * @var int $objtype + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node cmds = 2 [json_name = "cmds"];. + * + * @return RepeatedField + */ + public function getCmds() + { + return $this->cmds; + } + + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + * + * @return int + */ + public function getObjtype() + { + return $this->objtype; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field repeated .pg_query.Node cmds = 2 [json_name = "cmds"];. + * + * @param array $var + * + * @return $this + */ + public function setCmds($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->cmds = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + * + * @param int $var + * + * @return $this + */ + public function setObjtype($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->objtype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableType.php new file mode 100644 index 000000000..ef133fa42 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTableType.php @@ -0,0 +1,453 @@ +pg_query.AlterTableType. + */ +class AlterTableType +{ + /** + * Generated from protobuf enum ALTER_TABLE_TYPE_UNDEFINED = 0;. + */ + public const ALTER_TABLE_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum AT_AddColumn = 1;. + */ + public const AT_AddColumn = 1; + + /** + * Generated from protobuf enum AT_AddColumnToView = 2;. + */ + public const AT_AddColumnToView = 2; + + /** + * Generated from protobuf enum AT_AddConstraint = 18;. + */ + public const AT_AddConstraint = 18; + + /** + * Generated from protobuf enum AT_AddIdentity = 64;. + */ + public const AT_AddIdentity = 64; + + /** + * Generated from protobuf enum AT_AddIndex = 16;. + */ + public const AT_AddIndex = 16; + + /** + * Generated from protobuf enum AT_AddIndexConstraint = 23;. + */ + public const AT_AddIndexConstraint = 23; + + /** + * Generated from protobuf enum AT_AddInherit = 51;. + */ + public const AT_AddInherit = 51; + + /** + * Generated from protobuf enum AT_AddOf = 53;. + */ + public const AT_AddOf = 53; + + /** + * Generated from protobuf enum AT_AlterColumnGenericOptions = 27;. + */ + public const AT_AlterColumnGenericOptions = 27; + + /** + * Generated from protobuf enum AT_AlterColumnType = 26;. + */ + public const AT_AlterColumnType = 26; + + /** + * Generated from protobuf enum AT_AlterConstraint = 21;. + */ + public const AT_AlterConstraint = 21; + + /** + * Generated from protobuf enum AT_AttachPartition = 61;. + */ + public const AT_AttachPartition = 61; + + /** + * Generated from protobuf enum AT_ChangeOwner = 28;. + */ + public const AT_ChangeOwner = 28; + + /** + * Generated from protobuf enum AT_CheckNotNull = 9;. + */ + public const AT_CheckNotNull = 9; + + /** + * Generated from protobuf enum AT_ClusterOn = 29;. + */ + public const AT_ClusterOn = 29; + + /** + * Generated from protobuf enum AT_ColumnDefault = 3;. + */ + public const AT_ColumnDefault = 3; + + /** + * Generated from protobuf enum AT_CookedColumnDefault = 4;. + */ + public const AT_CookedColumnDefault = 4; + + /** + * Generated from protobuf enum AT_DetachPartition = 62;. + */ + public const AT_DetachPartition = 62; + + /** + * Generated from protobuf enum AT_DetachPartitionFinalize = 63;. + */ + public const AT_DetachPartitionFinalize = 63; + + /** + * Generated from protobuf enum AT_DisableRowSecurity = 57;. + */ + public const AT_DisableRowSecurity = 57; + + /** + * Generated from protobuf enum AT_DisableRule = 50;. + */ + public const AT_DisableRule = 50; + + /** + * Generated from protobuf enum AT_DisableTrig = 42;. + */ + public const AT_DisableTrig = 42; + + /** + * Generated from protobuf enum AT_DisableTrigAll = 44;. + */ + public const AT_DisableTrigAll = 44; + + /** + * Generated from protobuf enum AT_DisableTrigUser = 46;. + */ + public const AT_DisableTrigUser = 46; + + /** + * Generated from protobuf enum AT_DropCluster = 30;. + */ + public const AT_DropCluster = 30; + + /** + * Generated from protobuf enum AT_DropColumn = 15;. + */ + public const AT_DropColumn = 15; + + /** + * Generated from protobuf enum AT_DropConstraint = 24;. + */ + public const AT_DropConstraint = 24; + + /** + * Generated from protobuf enum AT_DropExpression = 8;. + */ + public const AT_DropExpression = 8; + + /** + * Generated from protobuf enum AT_DropIdentity = 66;. + */ + public const AT_DropIdentity = 66; + + /** + * Generated from protobuf enum AT_DropInherit = 52;. + */ + public const AT_DropInherit = 52; + + /** + * Generated from protobuf enum AT_DropNotNull = 5;. + */ + public const AT_DropNotNull = 5; + + /** + * Generated from protobuf enum AT_DropOf = 54;. + */ + public const AT_DropOf = 54; + + /** + * Generated from protobuf enum AT_DropOids = 33;. + */ + public const AT_DropOids = 33; + + /** + * Generated from protobuf enum AT_EnableAlwaysRule = 48;. + */ + public const AT_EnableAlwaysRule = 48; + + /** + * Generated from protobuf enum AT_EnableAlwaysTrig = 40;. + */ + public const AT_EnableAlwaysTrig = 40; + + /** + * Generated from protobuf enum AT_EnableReplicaRule = 49;. + */ + public const AT_EnableReplicaRule = 49; + + /** + * Generated from protobuf enum AT_EnableReplicaTrig = 41;. + */ + public const AT_EnableReplicaTrig = 41; + + /** + * Generated from protobuf enum AT_EnableRowSecurity = 56;. + */ + public const AT_EnableRowSecurity = 56; + + /** + * Generated from protobuf enum AT_EnableRule = 47;. + */ + public const AT_EnableRule = 47; + + /** + * Generated from protobuf enum AT_EnableTrig = 39;. + */ + public const AT_EnableTrig = 39; + + /** + * Generated from protobuf enum AT_EnableTrigAll = 43;. + */ + public const AT_EnableTrigAll = 43; + + /** + * Generated from protobuf enum AT_EnableTrigUser = 45;. + */ + public const AT_EnableTrigUser = 45; + + /** + * Generated from protobuf enum AT_ForceRowSecurity = 58;. + */ + public const AT_ForceRowSecurity = 58; + + /** + * Generated from protobuf enum AT_GenericOptions = 60;. + */ + public const AT_GenericOptions = 60; + + /** + * Generated from protobuf enum AT_NoForceRowSecurity = 59;. + */ + public const AT_NoForceRowSecurity = 59; + + /** + * Generated from protobuf enum AT_ReAddComment = 25;. + */ + public const AT_ReAddComment = 25; + + /** + * Generated from protobuf enum AT_ReAddConstraint = 19;. + */ + public const AT_ReAddConstraint = 19; + + /** + * Generated from protobuf enum AT_ReAddDomainConstraint = 20;. + */ + public const AT_ReAddDomainConstraint = 20; + + /** + * Generated from protobuf enum AT_ReAddIndex = 17;. + */ + public const AT_ReAddIndex = 17; + + /** + * Generated from protobuf enum AT_ReAddStatistics = 67;. + */ + public const AT_ReAddStatistics = 67; + + /** + * Generated from protobuf enum AT_ReplaceRelOptions = 38;. + */ + public const AT_ReplaceRelOptions = 38; + + /** + * Generated from protobuf enum AT_ReplicaIdentity = 55;. + */ + public const AT_ReplicaIdentity = 55; + + /** + * Generated from protobuf enum AT_ResetOptions = 12;. + */ + public const AT_ResetOptions = 12; + + /** + * Generated from protobuf enum AT_ResetRelOptions = 37;. + */ + public const AT_ResetRelOptions = 37; + + /** + * Generated from protobuf enum AT_SetAccessMethod = 34;. + */ + public const AT_SetAccessMethod = 34; + + /** + * Generated from protobuf enum AT_SetCompression = 14;. + */ + public const AT_SetCompression = 14; + + /** + * Generated from protobuf enum AT_SetExpression = 7;. + */ + public const AT_SetExpression = 7; + + /** + * Generated from protobuf enum AT_SetIdentity = 65;. + */ + public const AT_SetIdentity = 65; + + /** + * Generated from protobuf enum AT_SetLogged = 31;. + */ + public const AT_SetLogged = 31; + + /** + * Generated from protobuf enum AT_SetNotNull = 6;. + */ + public const AT_SetNotNull = 6; + + /** + * Generated from protobuf enum AT_SetOptions = 11;. + */ + public const AT_SetOptions = 11; + + /** + * Generated from protobuf enum AT_SetRelOptions = 36;. + */ + public const AT_SetRelOptions = 36; + + /** + * Generated from protobuf enum AT_SetStatistics = 10;. + */ + public const AT_SetStatistics = 10; + + /** + * Generated from protobuf enum AT_SetStorage = 13;. + */ + public const AT_SetStorage = 13; + + /** + * Generated from protobuf enum AT_SetTableSpace = 35;. + */ + public const AT_SetTableSpace = 35; + + /** + * Generated from protobuf enum AT_SetUnLogged = 32;. + */ + public const AT_SetUnLogged = 32; + + /** + * Generated from protobuf enum AT_ValidateConstraint = 22;. + */ + public const AT_ValidateConstraint = 22; + + private static $valueToName = [ + self::ALTER_TABLE_TYPE_UNDEFINED => 'ALTER_TABLE_TYPE_UNDEFINED', + self::AT_AddColumn => 'AT_AddColumn', + self::AT_AddColumnToView => 'AT_AddColumnToView', + self::AT_ColumnDefault => 'AT_ColumnDefault', + self::AT_CookedColumnDefault => 'AT_CookedColumnDefault', + self::AT_DropNotNull => 'AT_DropNotNull', + self::AT_SetNotNull => 'AT_SetNotNull', + self::AT_SetExpression => 'AT_SetExpression', + self::AT_DropExpression => 'AT_DropExpression', + self::AT_CheckNotNull => 'AT_CheckNotNull', + self::AT_SetStatistics => 'AT_SetStatistics', + self::AT_SetOptions => 'AT_SetOptions', + self::AT_ResetOptions => 'AT_ResetOptions', + self::AT_SetStorage => 'AT_SetStorage', + self::AT_SetCompression => 'AT_SetCompression', + self::AT_DropColumn => 'AT_DropColumn', + self::AT_AddIndex => 'AT_AddIndex', + self::AT_ReAddIndex => 'AT_ReAddIndex', + self::AT_AddConstraint => 'AT_AddConstraint', + self::AT_ReAddConstraint => 'AT_ReAddConstraint', + self::AT_ReAddDomainConstraint => 'AT_ReAddDomainConstraint', + self::AT_AlterConstraint => 'AT_AlterConstraint', + self::AT_ValidateConstraint => 'AT_ValidateConstraint', + self::AT_AddIndexConstraint => 'AT_AddIndexConstraint', + self::AT_DropConstraint => 'AT_DropConstraint', + self::AT_ReAddComment => 'AT_ReAddComment', + self::AT_AlterColumnType => 'AT_AlterColumnType', + self::AT_AlterColumnGenericOptions => 'AT_AlterColumnGenericOptions', + self::AT_ChangeOwner => 'AT_ChangeOwner', + self::AT_ClusterOn => 'AT_ClusterOn', + self::AT_DropCluster => 'AT_DropCluster', + self::AT_SetLogged => 'AT_SetLogged', + self::AT_SetUnLogged => 'AT_SetUnLogged', + self::AT_DropOids => 'AT_DropOids', + self::AT_SetAccessMethod => 'AT_SetAccessMethod', + self::AT_SetTableSpace => 'AT_SetTableSpace', + self::AT_SetRelOptions => 'AT_SetRelOptions', + self::AT_ResetRelOptions => 'AT_ResetRelOptions', + self::AT_ReplaceRelOptions => 'AT_ReplaceRelOptions', + self::AT_EnableTrig => 'AT_EnableTrig', + self::AT_EnableAlwaysTrig => 'AT_EnableAlwaysTrig', + self::AT_EnableReplicaTrig => 'AT_EnableReplicaTrig', + self::AT_DisableTrig => 'AT_DisableTrig', + self::AT_EnableTrigAll => 'AT_EnableTrigAll', + self::AT_DisableTrigAll => 'AT_DisableTrigAll', + self::AT_EnableTrigUser => 'AT_EnableTrigUser', + self::AT_DisableTrigUser => 'AT_DisableTrigUser', + self::AT_EnableRule => 'AT_EnableRule', + self::AT_EnableAlwaysRule => 'AT_EnableAlwaysRule', + self::AT_EnableReplicaRule => 'AT_EnableReplicaRule', + self::AT_DisableRule => 'AT_DisableRule', + self::AT_AddInherit => 'AT_AddInherit', + self::AT_DropInherit => 'AT_DropInherit', + self::AT_AddOf => 'AT_AddOf', + self::AT_DropOf => 'AT_DropOf', + self::AT_ReplicaIdentity => 'AT_ReplicaIdentity', + self::AT_EnableRowSecurity => 'AT_EnableRowSecurity', + self::AT_DisableRowSecurity => 'AT_DisableRowSecurity', + self::AT_ForceRowSecurity => 'AT_ForceRowSecurity', + self::AT_NoForceRowSecurity => 'AT_NoForceRowSecurity', + self::AT_GenericOptions => 'AT_GenericOptions', + self::AT_AttachPartition => 'AT_AttachPartition', + self::AT_DetachPartition => 'AT_DetachPartition', + self::AT_DetachPartitionFinalize => 'AT_DetachPartitionFinalize', + self::AT_AddIdentity => 'AT_AddIdentity', + self::AT_SetIdentity => 'AT_SetIdentity', + self::AT_DropIdentity => 'AT_DropIdentity', + self::AT_ReAddStatistics => 'AT_ReAddStatistics', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTypeStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTypeStmt.php new file mode 100644 index 000000000..30b180c0e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterTypeStmt.php @@ -0,0 +1,94 @@ +pg_query.AlterTypeStmt. + */ +class AlterTypeStmt extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + */ + private $type_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $type_name + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + * + * @return RepeatedField + */ + public function getTypeName() + { + return $this->type_name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + * + * @param array $var + * + * @return $this + */ + public function setTypeName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->type_name = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterUserMappingStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterUserMappingStmt.php new file mode 100644 index 000000000..2d6f0fc04 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlterUserMappingStmt.php @@ -0,0 +1,135 @@ +pg_query.AlterUserMappingStmt. + */ +class AlterUserMappingStmt extends Message +{ + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + */ + protected $servername = ''; + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + */ + protected $user; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RoleSpec $user + * @var string $servername + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearUser() : void + { + $this->user = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + * + * @return string + */ + public function getServername() + { + return $this->servername; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + * + * @return null|RoleSpec + */ + public function getUser() + { + return $this->user; + } + + public function hasUser() + { + return isset($this->user); + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + * + * @param string $var + * + * @return $this + */ + public function setServername($var) + { + GPBUtil::checkString($var, true); + $this->servername = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->user = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlternativeSubPlan.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlternativeSubPlan.php new file mode 100644 index 000000000..fd30bd369 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/AlternativeSubPlan.php @@ -0,0 +1,104 @@ +pg_query.AlternativeSubPlan. + */ +class AlternativeSubPlan extends Message +{ + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node subplans = 2 [json_name = "subplans"];. + */ + private $subplans; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var array $subplans + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node subplans = 2 [json_name = "subplans"];. + * + * @return RepeatedField + */ + public function getSubplans() + { + return $this->subplans; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node subplans = 2 [json_name = "subplans"];. + * + * @param array $var + * + * @return $this + */ + public function setSubplans($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->subplans = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ArrayCoerceExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ArrayCoerceExpr.php new file mode 100644 index 000000000..8bf3f09b0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ArrayCoerceExpr.php @@ -0,0 +1,309 @@ +pg_query.ArrayCoerceExpr. + */ +class ArrayCoerceExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field .pg_query.CoercionForm coerceformat = 7 [json_name = "coerceformat"];. + */ + protected $coerceformat = 0; + + /** + * Generated from protobuf field .pg_query.Node elemexpr = 3 [json_name = "elemexpr"];. + */ + protected $elemexpr; + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 resultcollid = 6 [json_name = "resultcollid"];. + */ + protected $resultcollid = 0; + + /** + * Generated from protobuf field uint32 resulttype = 4 [json_name = "resulttype"];. + */ + protected $resulttype = 0; + + /** + * Generated from protobuf field int32 resulttypmod = 5 [json_name = "resulttypmod"];. + */ + protected $resulttypmod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var Node $elemexpr + * @var int $resulttype + * @var int $resulttypmod + * @var int $resultcollid + * @var int $coerceformat + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearElemexpr() : void + { + $this->elemexpr = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm coerceformat = 7 [json_name = "coerceformat"];. + * + * @return int + */ + public function getCoerceformat() + { + return $this->coerceformat; + } + + /** + * Generated from protobuf field .pg_query.Node elemexpr = 3 [json_name = "elemexpr"];. + * + * @return null|Node + */ + public function getElemexpr() + { + return $this->elemexpr; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 resultcollid = 6 [json_name = "resultcollid"];. + * + * @return int + */ + public function getResultcollid() + { + return $this->resultcollid; + } + + /** + * Generated from protobuf field uint32 resulttype = 4 [json_name = "resulttype"];. + * + * @return int + */ + public function getResulttype() + { + return $this->resulttype; + } + + /** + * Generated from protobuf field int32 resulttypmod = 5 [json_name = "resulttypmod"];. + * + * @return int + */ + public function getResulttypmod() + { + return $this->resulttypmod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasElemexpr() + { + return isset($this->elemexpr); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm coerceformat = 7 [json_name = "coerceformat"];. + * + * @param int $var + * + * @return $this + */ + public function setCoerceformat($var) + { + GPBUtil::checkEnum($var, CoercionForm::class); + $this->coerceformat = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node elemexpr = 3 [json_name = "elemexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setElemexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->elemexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resultcollid = 6 [json_name = "resultcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setResultcollid($var) + { + GPBUtil::checkUint32($var); + $this->resultcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resulttype = 4 [json_name = "resulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttype($var) + { + GPBUtil::checkUint32($var); + $this->resulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 resulttypmod = 5 [json_name = "resulttypmod"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttypmod($var) + { + GPBUtil::checkInt32($var); + $this->resulttypmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ArrayExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ArrayExpr.php new file mode 100644 index 000000000..96423dde0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ArrayExpr.php @@ -0,0 +1,259 @@ +pg_query.ArrayExpr. + */ +class ArrayExpr extends Message +{ + /** + * Generated from protobuf field uint32 array_collid = 3 [json_name = "array_collid"];. + */ + protected $array_collid = 0; + + /** + * Generated from protobuf field uint32 array_typeid = 2 [json_name = "array_typeid"];. + */ + protected $array_typeid = 0; + + /** + * Generated from protobuf field uint32 element_typeid = 4 [json_name = "element_typeid"];. + */ + protected $element_typeid = 0; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field bool multidims = 6 [json_name = "multidims"];. + */ + protected $multidims = false; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node elements = 5 [json_name = "elements"];. + */ + private $elements; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $array_typeid + * @var int $array_collid + * @var int $element_typeid + * @var array $elements + * @var bool $multidims + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field uint32 array_collid = 3 [json_name = "array_collid"];. + * + * @return int + */ + public function getArrayCollid() + { + return $this->array_collid; + } + + /** + * Generated from protobuf field uint32 array_typeid = 2 [json_name = "array_typeid"];. + * + * @return int + */ + public function getArrayTypeid() + { + return $this->array_typeid; + } + + /** + * Generated from protobuf field repeated .pg_query.Node elements = 5 [json_name = "elements"];. + * + * @return RepeatedField + */ + public function getElements() + { + return $this->elements; + } + + /** + * Generated from protobuf field uint32 element_typeid = 4 [json_name = "element_typeid"];. + * + * @return int + */ + public function getElementTypeid() + { + return $this->element_typeid; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field bool multidims = 6 [json_name = "multidims"];. + * + * @return bool + */ + public function getMultidims() + { + return $this->multidims; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field uint32 array_collid = 3 [json_name = "array_collid"];. + * + * @param int $var + * + * @return $this + */ + public function setArrayCollid($var) + { + GPBUtil::checkUint32($var); + $this->array_collid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 array_typeid = 2 [json_name = "array_typeid"];. + * + * @param int $var + * + * @return $this + */ + public function setArrayTypeid($var) + { + GPBUtil::checkUint32($var); + $this->array_typeid = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node elements = 5 [json_name = "elements"];. + * + * @param array $var + * + * @return $this + */ + public function setElements($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->elements = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 element_typeid = 4 [json_name = "element_typeid"];. + * + * @param int $var + * + * @return $this + */ + public function setElementTypeid($var) + { + GPBUtil::checkUint32($var); + $this->element_typeid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field bool multidims = 6 [json_name = "multidims"];. + * + * @param bool $var + * + * @return $this + */ + public function setMultidims($var) + { + GPBUtil::checkBool($var); + $this->multidims = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BitString.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BitString.php new file mode 100644 index 000000000..2bfbd07de --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BitString.php @@ -0,0 +1,69 @@ +pg_query.BitString. + */ +class BitString extends Message +{ + /** + * string. + * + * Generated from protobuf field string bsval = 1; + */ + protected $bsval = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $bsval + * string + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * string. + * + * Generated from protobuf field string bsval = 1; + * + * @return string + */ + public function getBsval() + { + return $this->bsval; + } + + /** + * string. + * + * Generated from protobuf field string bsval = 1; + * + * @param string $var + * + * @return $this + */ + public function setBsval($var) + { + GPBUtil::checkString($var, true); + $this->bsval = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolExpr.php new file mode 100644 index 000000000..d0ab7ff31 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolExpr.php @@ -0,0 +1,166 @@ +pg_query.BoolExpr. + */ +class BoolExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.BoolExprType boolop = 2 [json_name = "boolop"];. + */ + protected $boolop = 0; + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $boolop + * @var array $args + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field .pg_query.BoolExprType boolop = 2 [json_name = "boolop"];. + * + * @return int + */ + public function getBoolop() + { + return $this->boolop; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.BoolExprType boolop = 2 [json_name = "boolop"];. + * + * @param int $var + * + * @return $this + */ + public function setBoolop($var) + { + GPBUtil::checkEnum($var, BoolExprType::class); + $this->boolop = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolExprType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolExprType.php new file mode 100644 index 000000000..ddf187ee0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolExprType.php @@ -0,0 +1,69 @@ +pg_query.BoolExprType. + */ +class BoolExprType +{ + /** + * Generated from protobuf enum AND_EXPR = 1;. + */ + public const AND_EXPR = 1; + + /** + * Generated from protobuf enum BOOL_EXPR_TYPE_UNDEFINED = 0;. + */ + public const BOOL_EXPR_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum NOT_EXPR = 3;. + */ + public const NOT_EXPR = 3; + + /** + * Generated from protobuf enum OR_EXPR = 2;. + */ + public const OR_EXPR = 2; + + private static $valueToName = [ + self::BOOL_EXPR_TYPE_UNDEFINED => 'BOOL_EXPR_TYPE_UNDEFINED', + self::AND_EXPR => 'AND_EXPR', + self::OR_EXPR => 'OR_EXPR', + self::NOT_EXPR => 'NOT_EXPR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolTestType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolTestType.php new file mode 100644 index 000000000..186884968 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BoolTestType.php @@ -0,0 +1,87 @@ +pg_query.BoolTestType. + */ +class BoolTestType +{ + /** + * Generated from protobuf enum BOOL_TEST_TYPE_UNDEFINED = 0;. + */ + public const BOOL_TEST_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum IS_FALSE = 3;. + */ + public const IS_FALSE = 3; + + /** + * Generated from protobuf enum IS_NOT_FALSE = 4;. + */ + public const IS_NOT_FALSE = 4; + + /** + * Generated from protobuf enum IS_NOT_TRUE = 2;. + */ + public const IS_NOT_TRUE = 2; + + /** + * Generated from protobuf enum IS_NOT_UNKNOWN = 6;. + */ + public const IS_NOT_UNKNOWN = 6; + + /** + * Generated from protobuf enum IS_TRUE = 1;. + */ + public const IS_TRUE = 1; + + /** + * Generated from protobuf enum IS_UNKNOWN = 5;. + */ + public const IS_UNKNOWN = 5; + + private static $valueToName = [ + self::BOOL_TEST_TYPE_UNDEFINED => 'BOOL_TEST_TYPE_UNDEFINED', + self::IS_TRUE => 'IS_TRUE', + self::IS_NOT_TRUE => 'IS_NOT_TRUE', + self::IS_FALSE => 'IS_FALSE', + self::IS_NOT_FALSE => 'IS_NOT_FALSE', + self::IS_UNKNOWN => 'IS_UNKNOWN', + self::IS_NOT_UNKNOWN => 'IS_NOT_UNKNOWN', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Boolean.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Boolean.php new file mode 100644 index 000000000..3c08d5fb0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Boolean.php @@ -0,0 +1,62 @@ +pg_query.Boolean. + */ +class Boolean extends Message +{ + /** + * Generated from protobuf field bool boolval = 1;. + */ + protected $boolval = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $boolval + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool boolval = 1;. + * + * @return bool + */ + public function getBoolval() + { + return $this->boolval; + } + + /** + * Generated from protobuf field bool boolval = 1;. + * + * @param bool $var + * + * @return $this + */ + public function setBoolval($var) + { + GPBUtil::checkBool($var); + $this->boolval = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BooleanTest.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BooleanTest.php new file mode 100644 index 000000000..41e47b841 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/BooleanTest.php @@ -0,0 +1,175 @@ +pg_query.BooleanTest. + */ +class BooleanTest extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field .pg_query.BoolTestType booltesttype = 3 [json_name = "booltesttype"];. + */ + protected $booltesttype = 0; + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var int $booltesttype + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field .pg_query.BoolTestType booltesttype = 3 [json_name = "booltesttype"];. + * + * @return int + */ + public function getBooltesttype() + { + return $this->booltesttype; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.BoolTestType booltesttype = 3 [json_name = "booltesttype"];. + * + * @param int $var + * + * @return $this + */ + public function setBooltesttype($var) + { + GPBUtil::checkEnum($var, BoolTestType::class); + $this->booltesttype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTECycleClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTECycleClause.php new file mode 100644 index 000000000..21ab9b914 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTECycleClause.php @@ -0,0 +1,362 @@ +pg_query.CTECycleClause. + */ +class CTECycleClause extends Message +{ + /** + * Generated from protobuf field uint32 cycle_mark_collation = 9 [json_name = "cycle_mark_collation"];. + */ + protected $cycle_mark_collation = 0; + + /** + * Generated from protobuf field string cycle_mark_column = 2 [json_name = "cycle_mark_column"];. + */ + protected $cycle_mark_column = ''; + + /** + * Generated from protobuf field .pg_query.Node cycle_mark_default = 4 [json_name = "cycle_mark_default"];. + */ + protected $cycle_mark_default; + + /** + * Generated from protobuf field uint32 cycle_mark_neop = 10 [json_name = "cycle_mark_neop"];. + */ + protected $cycle_mark_neop = 0; + + /** + * Generated from protobuf field uint32 cycle_mark_type = 7 [json_name = "cycle_mark_type"];. + */ + protected $cycle_mark_type = 0; + + /** + * Generated from protobuf field int32 cycle_mark_typmod = 8 [json_name = "cycle_mark_typmod"];. + */ + protected $cycle_mark_typmod = 0; + + /** + * Generated from protobuf field .pg_query.Node cycle_mark_value = 3 [json_name = "cycle_mark_value"];. + */ + protected $cycle_mark_value; + + /** + * Generated from protobuf field string cycle_path_column = 5 [json_name = "cycle_path_column"];. + */ + protected $cycle_path_column = ''; + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node cycle_col_list = 1 [json_name = "cycle_col_list"];. + */ + private $cycle_col_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $cycle_col_list + * @var string $cycle_mark_column + * @var Node $cycle_mark_value + * @var Node $cycle_mark_default + * @var string $cycle_path_column + * @var int $location + * @var int $cycle_mark_type + * @var int $cycle_mark_typmod + * @var int $cycle_mark_collation + * @var int $cycle_mark_neop + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearCycleMarkDefault() : void + { + $this->cycle_mark_default = null; + } + + public function clearCycleMarkValue() : void + { + $this->cycle_mark_value = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node cycle_col_list = 1 [json_name = "cycle_col_list"];. + * + * @return RepeatedField + */ + public function getCycleColList() + { + return $this->cycle_col_list; + } + + /** + * Generated from protobuf field uint32 cycle_mark_collation = 9 [json_name = "cycle_mark_collation"];. + * + * @return int + */ + public function getCycleMarkCollation() + { + return $this->cycle_mark_collation; + } + + /** + * Generated from protobuf field string cycle_mark_column = 2 [json_name = "cycle_mark_column"];. + * + * @return string + */ + public function getCycleMarkColumn() + { + return $this->cycle_mark_column; + } + + /** + * Generated from protobuf field .pg_query.Node cycle_mark_default = 4 [json_name = "cycle_mark_default"];. + * + * @return null|Node + */ + public function getCycleMarkDefault() + { + return $this->cycle_mark_default; + } + + /** + * Generated from protobuf field uint32 cycle_mark_neop = 10 [json_name = "cycle_mark_neop"];. + * + * @return int + */ + public function getCycleMarkNeop() + { + return $this->cycle_mark_neop; + } + + /** + * Generated from protobuf field uint32 cycle_mark_type = 7 [json_name = "cycle_mark_type"];. + * + * @return int + */ + public function getCycleMarkType() + { + return $this->cycle_mark_type; + } + + /** + * Generated from protobuf field int32 cycle_mark_typmod = 8 [json_name = "cycle_mark_typmod"];. + * + * @return int + */ + public function getCycleMarkTypmod() + { + return $this->cycle_mark_typmod; + } + + /** + * Generated from protobuf field .pg_query.Node cycle_mark_value = 3 [json_name = "cycle_mark_value"];. + * + * @return null|Node + */ + public function getCycleMarkValue() + { + return $this->cycle_mark_value; + } + + /** + * Generated from protobuf field string cycle_path_column = 5 [json_name = "cycle_path_column"];. + * + * @return string + */ + public function getCyclePathColumn() + { + return $this->cycle_path_column; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + public function hasCycleMarkDefault() + { + return isset($this->cycle_mark_default); + } + + public function hasCycleMarkValue() + { + return isset($this->cycle_mark_value); + } + + /** + * Generated from protobuf field repeated .pg_query.Node cycle_col_list = 1 [json_name = "cycle_col_list"];. + * + * @param array $var + * + * @return $this + */ + public function setCycleColList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->cycle_col_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 cycle_mark_collation = 9 [json_name = "cycle_mark_collation"];. + * + * @param int $var + * + * @return $this + */ + public function setCycleMarkCollation($var) + { + GPBUtil::checkUint32($var); + $this->cycle_mark_collation = $var; + + return $this; + } + + /** + * Generated from protobuf field string cycle_mark_column = 2 [json_name = "cycle_mark_column"];. + * + * @param string $var + * + * @return $this + */ + public function setCycleMarkColumn($var) + { + GPBUtil::checkString($var, true); + $this->cycle_mark_column = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node cycle_mark_default = 4 [json_name = "cycle_mark_default"];. + * + * @param Node $var + * + * @return $this + */ + public function setCycleMarkDefault($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->cycle_mark_default = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 cycle_mark_neop = 10 [json_name = "cycle_mark_neop"];. + * + * @param int $var + * + * @return $this + */ + public function setCycleMarkNeop($var) + { + GPBUtil::checkUint32($var); + $this->cycle_mark_neop = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 cycle_mark_type = 7 [json_name = "cycle_mark_type"];. + * + * @param int $var + * + * @return $this + */ + public function setCycleMarkType($var) + { + GPBUtil::checkUint32($var); + $this->cycle_mark_type = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 cycle_mark_typmod = 8 [json_name = "cycle_mark_typmod"];. + * + * @param int $var + * + * @return $this + */ + public function setCycleMarkTypmod($var) + { + GPBUtil::checkInt32($var); + $this->cycle_mark_typmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node cycle_mark_value = 3 [json_name = "cycle_mark_value"];. + * + * @param Node $var + * + * @return $this + */ + public function setCycleMarkValue($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->cycle_mark_value = $var; + + return $this; + } + + /** + * Generated from protobuf field string cycle_path_column = 5 [json_name = "cycle_path_column"];. + * + * @param string $var + * + * @return $this + */ + public function setCyclePathColumn($var) + { + GPBUtil::checkString($var, true); + $this->cycle_path_column = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTEMaterialize.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTEMaterialize.php new file mode 100644 index 000000000..9d7da4c15 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTEMaterialize.php @@ -0,0 +1,69 @@ +pg_query.CTEMaterialize. + */ +class CTEMaterialize +{ + /** + * Generated from protobuf enum CTEMATERIALIZE_UNDEFINED = 0;. + */ + public const CTEMATERIALIZE_UNDEFINED = 0; + + /** + * Generated from protobuf enum CTEMaterializeAlways = 2;. + */ + public const CTEMaterializeAlways = 2; + + /** + * Generated from protobuf enum CTEMaterializeDefault = 1;. + */ + public const CTEMaterializeDefault = 1; + + /** + * Generated from protobuf enum CTEMaterializeNever = 3;. + */ + public const CTEMaterializeNever = 3; + + private static $valueToName = [ + self::CTEMATERIALIZE_UNDEFINED => 'CTEMATERIALIZE_UNDEFINED', + self::CTEMaterializeDefault => 'CTEMaterializeDefault', + self::CTEMaterializeAlways => 'CTEMaterializeAlways', + self::CTEMaterializeNever => 'CTEMaterializeNever', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTESearchClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTESearchClause.php new file mode 100644 index 000000000..f671188dc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CTESearchClause.php @@ -0,0 +1,156 @@ +pg_query.CTESearchClause. + */ +class CTESearchClause extends Message +{ + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field bool search_breadth_first = 2 [json_name = "search_breadth_first"];. + */ + protected $search_breadth_first = false; + + /** + * Generated from protobuf field string search_seq_column = 3 [json_name = "search_seq_column"];. + */ + protected $search_seq_column = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node search_col_list = 1 [json_name = "search_col_list"];. + */ + private $search_col_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $search_col_list + * @var bool $search_breadth_first + * @var string $search_seq_column + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field bool search_breadth_first = 2 [json_name = "search_breadth_first"];. + * + * @return bool + */ + public function getSearchBreadthFirst() + { + return $this->search_breadth_first; + } + + /** + * Generated from protobuf field repeated .pg_query.Node search_col_list = 1 [json_name = "search_col_list"];. + * + * @return RepeatedField + */ + public function getSearchColList() + { + return $this->search_col_list; + } + + /** + * Generated from protobuf field string search_seq_column = 3 [json_name = "search_seq_column"];. + * + * @return string + */ + public function getSearchSeqColumn() + { + return $this->search_seq_column; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field bool search_breadth_first = 2 [json_name = "search_breadth_first"];. + * + * @param bool $var + * + * @return $this + */ + public function setSearchBreadthFirst($var) + { + GPBUtil::checkBool($var); + $this->search_breadth_first = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node search_col_list = 1 [json_name = "search_col_list"];. + * + * @param array $var + * + * @return $this + */ + public function setSearchColList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->search_col_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field string search_seq_column = 3 [json_name = "search_seq_column"];. + * + * @param string $var + * + * @return $this + */ + public function setSearchSeqColumn($var) + { + GPBUtil::checkString($var, true); + $this->search_seq_column = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CallContext.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CallContext.php new file mode 100644 index 000000000..bbb434b92 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CallContext.php @@ -0,0 +1,62 @@ +pg_query.CallContext. + */ +class CallContext extends Message +{ + /** + * Generated from protobuf field bool atomic = 1 [json_name = "atomic"];. + */ + protected $atomic = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $atomic + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool atomic = 1 [json_name = "atomic"];. + * + * @return bool + */ + public function getAtomic() + { + return $this->atomic; + } + + /** + * Generated from protobuf field bool atomic = 1 [json_name = "atomic"];. + * + * @param bool $var + * + * @return $this + */ + public function setAtomic($var) + { + GPBUtil::checkBool($var); + $this->atomic = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CallStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CallStmt.php new file mode 100644 index 000000000..992f67e46 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CallStmt.php @@ -0,0 +1,145 @@ +pg_query.CallStmt. + */ +class CallStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.FuncCall funccall = 1 [json_name = "funccall"];. + */ + protected $funccall; + + /** + * Generated from protobuf field .pg_query.FuncExpr funcexpr = 2 [json_name = "funcexpr"];. + */ + protected $funcexpr; + + /** + * Generated from protobuf field repeated .pg_query.Node outargs = 3 [json_name = "outargs"];. + */ + private $outargs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var FuncCall $funccall + * @var FuncExpr $funcexpr + * @var array $outargs + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFunccall() : void + { + $this->funccall = null; + } + + public function clearFuncexpr() : void + { + $this->funcexpr = null; + } + + /** + * Generated from protobuf field .pg_query.FuncCall funccall = 1 [json_name = "funccall"];. + * + * @return null|FuncCall + */ + public function getFunccall() + { + return $this->funccall; + } + + /** + * Generated from protobuf field .pg_query.FuncExpr funcexpr = 2 [json_name = "funcexpr"];. + * + * @return null|FuncExpr + */ + public function getFuncexpr() + { + return $this->funcexpr; + } + + /** + * Generated from protobuf field repeated .pg_query.Node outargs = 3 [json_name = "outargs"];. + * + * @return RepeatedField + */ + public function getOutargs() + { + return $this->outargs; + } + + public function hasFunccall() + { + return isset($this->funccall); + } + + public function hasFuncexpr() + { + return isset($this->funcexpr); + } + + /** + * Generated from protobuf field .pg_query.FuncCall funccall = 1 [json_name = "funccall"];. + * + * @param FuncCall $var + * + * @return $this + */ + public function setFunccall($var) + { + GPBUtil::checkMessage($var, FuncCall::class); + $this->funccall = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FuncExpr funcexpr = 2 [json_name = "funcexpr"];. + * + * @param FuncExpr $var + * + * @return $this + */ + public function setFuncexpr($var) + { + GPBUtil::checkMessage($var, FuncExpr::class); + $this->funcexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node outargs = 3 [json_name = "outargs"];. + * + * @param array $var + * + * @return $this + */ + public function setOutargs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->outargs = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseExpr.php new file mode 100644 index 000000000..fbdbbf09d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseExpr.php @@ -0,0 +1,279 @@ +pg_query.CaseExpr. + */ +class CaseExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 4 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field uint32 casecollid = 3 [json_name = "casecollid"];. + */ + protected $casecollid = 0; + + /** + * Generated from protobuf field uint32 casetype = 2 [json_name = "casetype"];. + */ + protected $casetype = 0; + + /** + * Generated from protobuf field .pg_query.Node defresult = 6 [json_name = "defresult"];. + */ + protected $defresult; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 5 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $casetype + * @var int $casecollid + * @var Node $arg + * @var array $args + * @var Node $defresult + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearDefresult() : void + { + $this->defresult = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 4 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 5 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 casecollid = 3 [json_name = "casecollid"];. + * + * @return int + */ + public function getCasecollid() + { + return $this->casecollid; + } + + /** + * Generated from protobuf field uint32 casetype = 2 [json_name = "casetype"];. + * + * @return int + */ + public function getCasetype() + { + return $this->casetype; + } + + /** + * Generated from protobuf field .pg_query.Node defresult = 6 [json_name = "defresult"];. + * + * @return null|Node + */ + public function getDefresult() + { + return $this->defresult; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasDefresult() + { + return isset($this->defresult); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 4 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 5 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 casecollid = 3 [json_name = "casecollid"];. + * + * @param int $var + * + * @return $this + */ + public function setCasecollid($var) + { + GPBUtil::checkUint32($var); + $this->casecollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 casetype = 2 [json_name = "casetype"];. + * + * @param int $var + * + * @return $this + */ + public function setCasetype($var) + { + GPBUtil::checkUint32($var); + $this->casetype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node defresult = 6 [json_name = "defresult"];. + * + * @param Node $var + * + * @return $this + */ + public function setDefresult($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->defresult = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseTestExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseTestExpr.php new file mode 100644 index 000000000..bbfd0c79a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseTestExpr.php @@ -0,0 +1,165 @@ +pg_query.CaseTestExpr. + */ +class CaseTestExpr extends Message +{ + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + */ + protected $collation = 0; + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + */ + protected $type_id = 0; + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + */ + protected $type_mod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $type_id + * @var int $type_mod + * @var int $collation + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + * + * @return int + */ + public function getCollation() + { + return $this->collation; + } + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + * + * @return int + */ + public function getTypeId() + { + return $this->type_id; + } + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + * + * @return int + */ + public function getTypeMod() + { + return $this->type_mod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + * + * @param int $var + * + * @return $this + */ + public function setCollation($var) + { + GPBUtil::checkUint32($var); + $this->collation = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + * + * @param int $var + * + * @return $this + */ + public function setTypeId($var) + { + GPBUtil::checkUint32($var); + $this->type_id = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + * + * @param int $var + * + * @return $this + */ + public function setTypeMod($var) + { + GPBUtil::checkInt32($var); + $this->type_mod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseWhen.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseWhen.php new file mode 100644 index 000000000..61da844e0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CaseWhen.php @@ -0,0 +1,185 @@ +pg_query.CaseWhen. + */ +class CaseWhen extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node result = 3 [json_name = "result"];. + */ + protected $result; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $expr + * @var Node $result + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + public function clearResult() : void + { + $this->result = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node result = 3 [json_name = "result"];. + * + * @return null|Node + */ + public function getResult() + { + return $this->result; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasExpr() + { + return isset($this->expr); + } + + public function hasResult() + { + return isset($this->result); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node result = 3 [json_name = "result"];. + * + * @param Node $var + * + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->result = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CheckPointStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CheckPointStmt.php new file mode 100644 index 000000000..5982136a5 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CheckPointStmt.php @@ -0,0 +1,31 @@ +pg_query.CheckPointStmt. + */ +class CheckPointStmt extends Message +{ + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ClosePortalStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ClosePortalStmt.php new file mode 100644 index 000000000..fcc5dfbcb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ClosePortalStmt.php @@ -0,0 +1,62 @@ +pg_query.ClosePortalStmt. + */ +class ClosePortalStmt extends Message +{ + /** + * Generated from protobuf field string portalname = 1 [json_name = "portalname"];. + */ + protected $portalname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $portalname + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string portalname = 1 [json_name = "portalname"];. + * + * @return string + */ + public function getPortalname() + { + return $this->portalname; + } + + /** + * Generated from protobuf field string portalname = 1 [json_name = "portalname"];. + * + * @param string $var + * + * @return $this + */ + public function setPortalname($var) + { + GPBUtil::checkString($var, true); + $this->portalname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ClusterStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ClusterStmt.php new file mode 100644 index 000000000..20446fdca --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ClusterStmt.php @@ -0,0 +1,135 @@ +pg_query.ClusterStmt. + */ +class ClusterStmt extends Message +{ + /** + * Generated from protobuf field string indexname = 2 [json_name = "indexname"];. + */ + protected $indexname = ''; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field repeated .pg_query.Node params = 3 [json_name = "params"];. + */ + private $params; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var string $indexname + * @var array $params + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field string indexname = 2 [json_name = "indexname"];. + * + * @return string + */ + public function getIndexname() + { + return $this->indexname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node params = 3 [json_name = "params"];. + * + * @return RepeatedField + */ + public function getParams() + { + return $this->params; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field string indexname = 2 [json_name = "indexname"];. + * + * @param string $var + * + * @return $this + */ + public function setIndexname($var) + { + GPBUtil::checkString($var, true); + $this->indexname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node params = 3 [json_name = "params"];. + * + * @param array $var + * + * @return $this + */ + public function setParams($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->params = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CmdType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CmdType.php new file mode 100644 index 000000000..c91f3c6c9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CmdType.php @@ -0,0 +1,99 @@ +pg_query.CmdType. + */ +class CmdType +{ + /** + * Generated from protobuf enum CMD_DELETE = 5;. + */ + public const CMD_DELETE = 5; + + /** + * Generated from protobuf enum CMD_INSERT = 4;. + */ + public const CMD_INSERT = 4; + + /** + * Generated from protobuf enum CMD_MERGE = 6;. + */ + public const CMD_MERGE = 6; + + /** + * Generated from protobuf enum CMD_NOTHING = 8;. + */ + public const CMD_NOTHING = 8; + + /** + * Generated from protobuf enum CMD_SELECT = 2;. + */ + public const CMD_SELECT = 2; + + /** + * Generated from protobuf enum CMD_TYPE_UNDEFINED = 0;. + */ + public const CMD_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum CMD_UNKNOWN = 1;. + */ + public const CMD_UNKNOWN = 1; + + /** + * Generated from protobuf enum CMD_UPDATE = 3;. + */ + public const CMD_UPDATE = 3; + + /** + * Generated from protobuf enum CMD_UTILITY = 7;. + */ + public const CMD_UTILITY = 7; + + private static $valueToName = [ + self::CMD_TYPE_UNDEFINED => 'CMD_TYPE_UNDEFINED', + self::CMD_UNKNOWN => 'CMD_UNKNOWN', + self::CMD_SELECT => 'CMD_SELECT', + self::CMD_UPDATE => 'CMD_UPDATE', + self::CMD_INSERT => 'CMD_INSERT', + self::CMD_DELETE => 'CMD_DELETE', + self::CMD_MERGE => 'CMD_MERGE', + self::CMD_UTILITY => 'CMD_UTILITY', + self::CMD_NOTHING => 'CMD_NOTHING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoalesceExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoalesceExpr.php new file mode 100644 index 000000000..fbb588f5f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoalesceExpr.php @@ -0,0 +1,197 @@ +pg_query.CoalesceExpr. + */ +class CoalesceExpr extends Message +{ + /** + * Generated from protobuf field uint32 coalescecollid = 3 [json_name = "coalescecollid"];. + */ + protected $coalescecollid = 0; + + /** + * Generated from protobuf field uint32 coalescetype = 2 [json_name = "coalescetype"];. + */ + protected $coalescetype = 0; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 4 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $coalescetype + * @var int $coalescecollid + * @var array $args + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 4 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 coalescecollid = 3 [json_name = "coalescecollid"];. + * + * @return int + */ + public function getCoalescecollid() + { + return $this->coalescecollid; + } + + /** + * Generated from protobuf field uint32 coalescetype = 2 [json_name = "coalescetype"];. + * + * @return int + */ + public function getCoalescetype() + { + return $this->coalescetype; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 4 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 coalescecollid = 3 [json_name = "coalescecollid"];. + * + * @param int $var + * + * @return $this + */ + public function setCoalescecollid($var) + { + GPBUtil::checkUint32($var); + $this->coalescecollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 coalescetype = 2 [json_name = "coalescetype"];. + * + * @param int $var + * + * @return $this + */ + public function setCoalescetype($var) + { + GPBUtil::checkUint32($var); + $this->coalescetype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceToDomain.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceToDomain.php new file mode 100644 index 000000000..30dc65a30 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceToDomain.php @@ -0,0 +1,268 @@ +pg_query.CoerceToDomain. + */ +class CoerceToDomain extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field .pg_query.CoercionForm coercionformat = 6 [json_name = "coercionformat"];. + */ + protected $coercionformat = 0; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 resultcollid = 5 [json_name = "resultcollid"];. + */ + protected $resultcollid = 0; + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + */ + protected $resulttype = 0; + + /** + * Generated from protobuf field int32 resulttypmod = 4 [json_name = "resulttypmod"];. + */ + protected $resulttypmod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var int $resulttype + * @var int $resulttypmod + * @var int $resultcollid + * @var int $coercionformat + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm coercionformat = 6 [json_name = "coercionformat"];. + * + * @return int + */ + public function getCoercionformat() + { + return $this->coercionformat; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 resultcollid = 5 [json_name = "resultcollid"];. + * + * @return int + */ + public function getResultcollid() + { + return $this->resultcollid; + } + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + * + * @return int + */ + public function getResulttype() + { + return $this->resulttype; + } + + /** + * Generated from protobuf field int32 resulttypmod = 4 [json_name = "resulttypmod"];. + * + * @return int + */ + public function getResulttypmod() + { + return $this->resulttypmod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm coercionformat = 6 [json_name = "coercionformat"];. + * + * @param int $var + * + * @return $this + */ + public function setCoercionformat($var) + { + GPBUtil::checkEnum($var, CoercionForm::class); + $this->coercionformat = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resultcollid = 5 [json_name = "resultcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setResultcollid($var) + { + GPBUtil::checkUint32($var); + $this->resultcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttype($var) + { + GPBUtil::checkUint32($var); + $this->resulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 resulttypmod = 4 [json_name = "resulttypmod"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttypmod($var) + { + GPBUtil::checkInt32($var); + $this->resulttypmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceToDomainValue.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceToDomainValue.php new file mode 100644 index 000000000..58a24fec7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceToDomainValue.php @@ -0,0 +1,196 @@ +pg_query.CoerceToDomainValue. + */ +class CoerceToDomainValue extends Message +{ + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + */ + protected $collation = 0; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + */ + protected $type_id = 0; + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + */ + protected $type_mod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $type_id + * @var int $type_mod + * @var int $collation + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + * + * @return int + */ + public function getCollation() + { + return $this->collation; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + * + * @return int + */ + public function getTypeId() + { + return $this->type_id; + } + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + * + * @return int + */ + public function getTypeMod() + { + return $this->type_mod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + * + * @param int $var + * + * @return $this + */ + public function setCollation($var) + { + GPBUtil::checkUint32($var); + $this->collation = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + * + * @param int $var + * + * @return $this + */ + public function setTypeId($var) + { + GPBUtil::checkUint32($var); + $this->type_id = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + * + * @param int $var + * + * @return $this + */ + public function setTypeMod($var) + { + GPBUtil::checkInt32($var); + $this->type_mod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceViaIO.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceViaIO.php new file mode 100644 index 000000000..ca72274b4 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoerceViaIO.php @@ -0,0 +1,237 @@ +pg_query.CoerceViaIO. + */ +class CoerceViaIO extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field .pg_query.CoercionForm coerceformat = 5 [json_name = "coerceformat"];. + */ + protected $coerceformat = 0; + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 resultcollid = 4 [json_name = "resultcollid"];. + */ + protected $resultcollid = 0; + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + */ + protected $resulttype = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var int $resulttype + * @var int $resultcollid + * @var int $coerceformat + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm coerceformat = 5 [json_name = "coerceformat"];. + * + * @return int + */ + public function getCoerceformat() + { + return $this->coerceformat; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 resultcollid = 4 [json_name = "resultcollid"];. + * + * @return int + */ + public function getResultcollid() + { + return $this->resultcollid; + } + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + * + * @return int + */ + public function getResulttype() + { + return $this->resulttype; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm coerceformat = 5 [json_name = "coerceformat"];. + * + * @param int $var + * + * @return $this + */ + public function setCoerceformat($var) + { + GPBUtil::checkEnum($var, CoercionForm::class); + $this->coerceformat = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resultcollid = 4 [json_name = "resultcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setResultcollid($var) + { + GPBUtil::checkUint32($var); + $this->resultcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttype($var) + { + GPBUtil::checkUint32($var); + $this->resulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoercionContext.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoercionContext.php new file mode 100644 index 000000000..763b8fea3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoercionContext.php @@ -0,0 +1,75 @@ +pg_query.CoercionContext. + */ +class CoercionContext +{ + /** + * Generated from protobuf enum COERCION_ASSIGNMENT = 2;. + */ + public const COERCION_ASSIGNMENT = 2; + + /** + * Generated from protobuf enum COERCION_CONTEXT_UNDEFINED = 0;. + */ + public const COERCION_CONTEXT_UNDEFINED = 0; + + /** + * Generated from protobuf enum COERCION_EXPLICIT = 4;. + */ + public const COERCION_EXPLICIT = 4; + + /** + * Generated from protobuf enum COERCION_IMPLICIT = 1;. + */ + public const COERCION_IMPLICIT = 1; + + /** + * Generated from protobuf enum COERCION_PLPGSQL = 3;. + */ + public const COERCION_PLPGSQL = 3; + + private static $valueToName = [ + self::COERCION_CONTEXT_UNDEFINED => 'COERCION_CONTEXT_UNDEFINED', + self::COERCION_IMPLICIT => 'COERCION_IMPLICIT', + self::COERCION_ASSIGNMENT => 'COERCION_ASSIGNMENT', + self::COERCION_PLPGSQL => 'COERCION_PLPGSQL', + self::COERCION_EXPLICIT => 'COERCION_EXPLICIT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoercionForm.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoercionForm.php new file mode 100644 index 000000000..44563fadd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CoercionForm.php @@ -0,0 +1,75 @@ +pg_query.CoercionForm. + */ +class CoercionForm +{ + /** + * Generated from protobuf enum COERCE_EXPLICIT_CALL = 1;. + */ + public const COERCE_EXPLICIT_CALL = 1; + + /** + * Generated from protobuf enum COERCE_EXPLICIT_CAST = 2;. + */ + public const COERCE_EXPLICIT_CAST = 2; + + /** + * Generated from protobuf enum COERCE_IMPLICIT_CAST = 3;. + */ + public const COERCE_IMPLICIT_CAST = 3; + + /** + * Generated from protobuf enum COERCE_SQL_SYNTAX = 4;. + */ + public const COERCE_SQL_SYNTAX = 4; + + /** + * Generated from protobuf enum COERCION_FORM_UNDEFINED = 0;. + */ + public const COERCION_FORM_UNDEFINED = 0; + + private static $valueToName = [ + self::COERCION_FORM_UNDEFINED => 'COERCION_FORM_UNDEFINED', + self::COERCE_EXPLICIT_CALL => 'COERCE_EXPLICIT_CALL', + self::COERCE_EXPLICIT_CAST => 'COERCE_EXPLICIT_CAST', + self::COERCE_IMPLICIT_CAST => 'COERCE_IMPLICIT_CAST', + self::COERCE_SQL_SYNTAX => 'COERCE_SQL_SYNTAX', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CollateClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CollateClause.php new file mode 100644 index 000000000..a9e685095 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CollateClause.php @@ -0,0 +1,135 @@ +pg_query.CollateClause. + */ +class CollateClause extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node collname = 2 [json_name = "collname"];. + */ + private $collname; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $arg + * @var array $collname + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field repeated .pg_query.Node collname = 2 [json_name = "collname"];. + * + * @return RepeatedField + */ + public function getCollname() + { + return $this->collname; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + public function hasArg() + { + return isset($this->arg); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node collname = 2 [json_name = "collname"];. + * + * @param array $var + * + * @return $this + */ + public function setCollname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->collname = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CollateExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CollateExpr.php new file mode 100644 index 000000000..c880928dd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CollateExpr.php @@ -0,0 +1,175 @@ +pg_query.CollateExpr. + */ +class CollateExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field uint32 coll_oid = 3 [json_name = "collOid"];. + */ + protected $coll_oid = 0; + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var int $coll_oid + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field uint32 coll_oid = 3 [json_name = "collOid"];. + * + * @return int + */ + public function getCollOid() + { + return $this->coll_oid; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 coll_oid = 3 [json_name = "collOid"];. + * + * @param int $var + * + * @return $this + */ + public function setCollOid($var) + { + GPBUtil::checkUint32($var); + $this->coll_oid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ColumnDef.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ColumnDef.php new file mode 100644 index 000000000..a712926cc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ColumnDef.php @@ -0,0 +1,671 @@ +pg_query.ColumnDef. + */ +class ColumnDef extends Message +{ + /** + * Generated from protobuf field .pg_query.CollateClause coll_clause = 15 [json_name = "collClause"];. + */ + protected $coll_clause; + + /** + * Generated from protobuf field uint32 coll_oid = 16 [json_name = "collOid"];. + */ + protected $coll_oid = 0; + + /** + * Generated from protobuf field string colname = 1 [json_name = "colname"];. + */ + protected $colname = ''; + + /** + * Generated from protobuf field string compression = 3 [json_name = "compression"];. + */ + protected $compression = ''; + + /** + * Generated from protobuf field .pg_query.Node cooked_default = 11 [json_name = "cooked_default"];. + */ + protected $cooked_default; + + /** + * Generated from protobuf field string generated = 14 [json_name = "generated"];. + */ + protected $generated = ''; + + /** + * Generated from protobuf field string identity = 12 [json_name = "identity"];. + */ + protected $identity = ''; + + /** + * Generated from protobuf field .pg_query.RangeVar identity_sequence = 13 [json_name = "identitySequence"];. + */ + protected $identity_sequence; + + /** + * Generated from protobuf field int32 inhcount = 4 [json_name = "inhcount"];. + */ + protected $inhcount = 0; + + /** + * Generated from protobuf field bool is_from_type = 7 [json_name = "is_from_type"];. + */ + protected $is_from_type = false; + + /** + * Generated from protobuf field bool is_local = 5 [json_name = "is_local"];. + */ + protected $is_local = false; + + /** + * Generated from protobuf field bool is_not_null = 6 [json_name = "is_not_null"];. + */ + protected $is_not_null = false; + + /** + * Generated from protobuf field int32 location = 19 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node raw_default = 10 [json_name = "raw_default"];. + */ + protected $raw_default; + + /** + * Generated from protobuf field string storage = 8 [json_name = "storage"];. + */ + protected $storage = ''; + + /** + * Generated from protobuf field string storage_name = 9 [json_name = "storage_name"];. + */ + protected $storage_name = ''; + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + */ + protected $type_name; + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 17 [json_name = "constraints"];. + */ + private $constraints; + + /** + * Generated from protobuf field repeated .pg_query.Node fdwoptions = 18 [json_name = "fdwoptions"];. + */ + private $fdwoptions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $colname + * @var TypeName $type_name + * @var string $compression + * @var int $inhcount + * @var bool $is_local + * @var bool $is_not_null + * @var bool $is_from_type + * @var string $storage + * @var string $storage_name + * @var Node $raw_default + * @var Node $cooked_default + * @var string $identity + * @var RangeVar $identity_sequence + * @var string $generated + * @var CollateClause $coll_clause + * @var int $coll_oid + * @var array $constraints + * @var array $fdwoptions + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearCollClause() : void + { + $this->coll_clause = null; + } + + public function clearCookedDefault() : void + { + $this->cooked_default = null; + } + + public function clearIdentitySequence() : void + { + $this->identity_sequence = null; + } + + public function clearRawDefault() : void + { + $this->raw_default = null; + } + + public function clearTypeName() : void + { + $this->type_name = null; + } + + /** + * Generated from protobuf field .pg_query.CollateClause coll_clause = 15 [json_name = "collClause"];. + * + * @return null|CollateClause + */ + public function getCollClause() + { + return $this->coll_clause; + } + + /** + * Generated from protobuf field uint32 coll_oid = 16 [json_name = "collOid"];. + * + * @return int + */ + public function getCollOid() + { + return $this->coll_oid; + } + + /** + * Generated from protobuf field string colname = 1 [json_name = "colname"];. + * + * @return string + */ + public function getColname() + { + return $this->colname; + } + + /** + * Generated from protobuf field string compression = 3 [json_name = "compression"];. + * + * @return string + */ + public function getCompression() + { + return $this->compression; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 17 [json_name = "constraints"];. + * + * @return RepeatedField + */ + public function getConstraints() + { + return $this->constraints; + } + + /** + * Generated from protobuf field .pg_query.Node cooked_default = 11 [json_name = "cooked_default"];. + * + * @return null|Node + */ + public function getCookedDefault() + { + return $this->cooked_default; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fdwoptions = 18 [json_name = "fdwoptions"];. + * + * @return RepeatedField + */ + public function getFdwoptions() + { + return $this->fdwoptions; + } + + /** + * Generated from protobuf field string generated = 14 [json_name = "generated"];. + * + * @return string + */ + public function getGenerated() + { + return $this->generated; + } + + /** + * Generated from protobuf field string identity = 12 [json_name = "identity"];. + * + * @return string + */ + public function getIdentity() + { + return $this->identity; + } + + /** + * Generated from protobuf field .pg_query.RangeVar identity_sequence = 13 [json_name = "identitySequence"];. + * + * @return null|RangeVar + */ + public function getIdentitySequence() + { + return $this->identity_sequence; + } + + /** + * Generated from protobuf field int32 inhcount = 4 [json_name = "inhcount"];. + * + * @return int + */ + public function getInhcount() + { + return $this->inhcount; + } + + /** + * Generated from protobuf field bool is_from_type = 7 [json_name = "is_from_type"];. + * + * @return bool + */ + public function getIsFromType() + { + return $this->is_from_type; + } + + /** + * Generated from protobuf field bool is_local = 5 [json_name = "is_local"];. + * + * @return bool + */ + public function getIsLocal() + { + return $this->is_local; + } + + /** + * Generated from protobuf field bool is_not_null = 6 [json_name = "is_not_null"];. + * + * @return bool + */ + public function getIsNotNull() + { + return $this->is_not_null; + } + + /** + * Generated from protobuf field int32 location = 19 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node raw_default = 10 [json_name = "raw_default"];. + * + * @return null|Node + */ + public function getRawDefault() + { + return $this->raw_default; + } + + /** + * Generated from protobuf field string storage = 8 [json_name = "storage"];. + * + * @return string + */ + public function getStorage() + { + return $this->storage; + } + + /** + * Generated from protobuf field string storage_name = 9 [json_name = "storage_name"];. + * + * @return string + */ + public function getStorageName() + { + return $this->storage_name; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->type_name; + } + + public function hasCollClause() + { + return isset($this->coll_clause); + } + + public function hasCookedDefault() + { + return isset($this->cooked_default); + } + + public function hasIdentitySequence() + { + return isset($this->identity_sequence); + } + + public function hasRawDefault() + { + return isset($this->raw_default); + } + + public function hasTypeName() + { + return isset($this->type_name); + } + + /** + * Generated from protobuf field .pg_query.CollateClause coll_clause = 15 [json_name = "collClause"];. + * + * @param CollateClause $var + * + * @return $this + */ + public function setCollClause($var) + { + GPBUtil::checkMessage($var, CollateClause::class); + $this->coll_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 coll_oid = 16 [json_name = "collOid"];. + * + * @param int $var + * + * @return $this + */ + public function setCollOid($var) + { + GPBUtil::checkUint32($var); + $this->coll_oid = $var; + + return $this; + } + + /** + * Generated from protobuf field string colname = 1 [json_name = "colname"];. + * + * @param string $var + * + * @return $this + */ + public function setColname($var) + { + GPBUtil::checkString($var, true); + $this->colname = $var; + + return $this; + } + + /** + * Generated from protobuf field string compression = 3 [json_name = "compression"];. + * + * @param string $var + * + * @return $this + */ + public function setCompression($var) + { + GPBUtil::checkString($var, true); + $this->compression = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 17 [json_name = "constraints"];. + * + * @param array $var + * + * @return $this + */ + public function setConstraints($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->constraints = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node cooked_default = 11 [json_name = "cooked_default"];. + * + * @param Node $var + * + * @return $this + */ + public function setCookedDefault($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->cooked_default = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fdwoptions = 18 [json_name = "fdwoptions"];. + * + * @param array $var + * + * @return $this + */ + public function setFdwoptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->fdwoptions = $arr; + + return $this; + } + + /** + * Generated from protobuf field string generated = 14 [json_name = "generated"];. + * + * @param string $var + * + * @return $this + */ + public function setGenerated($var) + { + GPBUtil::checkString($var, true); + $this->generated = $var; + + return $this; + } + + /** + * Generated from protobuf field string identity = 12 [json_name = "identity"];. + * + * @param string $var + * + * @return $this + */ + public function setIdentity($var) + { + GPBUtil::checkString($var, true); + $this->identity = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar identity_sequence = 13 [json_name = "identitySequence"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setIdentitySequence($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->identity_sequence = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 inhcount = 4 [json_name = "inhcount"];. + * + * @param int $var + * + * @return $this + */ + public function setInhcount($var) + { + GPBUtil::checkInt32($var); + $this->inhcount = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_from_type = 7 [json_name = "is_from_type"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsFromType($var) + { + GPBUtil::checkBool($var); + $this->is_from_type = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_local = 5 [json_name = "is_local"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsLocal($var) + { + GPBUtil::checkBool($var); + $this->is_local = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_not_null = 6 [json_name = "is_not_null"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsNotNull($var) + { + GPBUtil::checkBool($var); + $this->is_not_null = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 19 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node raw_default = 10 [json_name = "raw_default"];. + * + * @param Node $var + * + * @return $this + */ + public function setRawDefault($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->raw_default = $var; + + return $this; + } + + /** + * Generated from protobuf field string storage = 8 [json_name = "storage"];. + * + * @param string $var + * + * @return $this + */ + public function setStorage($var) + { + GPBUtil::checkString($var, true); + $this->storage = $var; + + return $this; + } + + /** + * Generated from protobuf field string storage_name = 9 [json_name = "storage_name"];. + * + * @param string $var + * + * @return $this + */ + public function setStorageName($var) + { + GPBUtil::checkString($var, true); + $this->storage_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->type_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ColumnRef.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ColumnRef.php new file mode 100644 index 000000000..734ff35a4 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ColumnRef.php @@ -0,0 +1,94 @@ +pg_query.ColumnRef. + */ +class ColumnRef extends Message +{ + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node fields = 1 [json_name = "fields"];. + */ + private $fields; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $fields + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node fields = 1 [json_name = "fields"];. + * + * @return RepeatedField + */ + public function getFields() + { + return $this->fields; + } + + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fields = 1 [json_name = "fields"];. + * + * @param array $var + * + * @return $this + */ + public function setFields($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->fields = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CommentStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CommentStmt.php new file mode 100644 index 000000000..88e787805 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CommentStmt.php @@ -0,0 +1,134 @@ +pg_query.CommentStmt. + */ +class CommentStmt extends Message +{ + /** + * Generated from protobuf field string comment = 3 [json_name = "comment"];. + */ + protected $comment = ''; + + /** + * Generated from protobuf field .pg_query.Node object = 2 [json_name = "object"];. + */ + protected $object; + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + */ + protected $objtype = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $objtype + * @var Node $object + * @var string $comment + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearObject() : void + { + $this->object = null; + } + + /** + * Generated from protobuf field string comment = 3 [json_name = "comment"];. + * + * @return string + */ + public function getComment() + { + return $this->comment; + } + + /** + * Generated from protobuf field .pg_query.Node object = 2 [json_name = "object"];. + * + * @return null|Node + */ + public function getObject() + { + return $this->object; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + * + * @return int + */ + public function getObjtype() + { + return $this->objtype; + } + + public function hasObject() + { + return isset($this->object); + } + + /** + * Generated from protobuf field string comment = 3 [json_name = "comment"];. + * + * @param string $var + * + * @return $this + */ + public function setComment($var) + { + GPBUtil::checkString($var, true); + $this->comment = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node object = 2 [json_name = "object"];. + * + * @param Node $var + * + * @return $this + */ + public function setObject($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->object = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + * + * @param int $var + * + * @return $this + */ + public function setObjtype($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->objtype = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CommonTableExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CommonTableExpr.php new file mode 100644 index 000000000..3d782b2ba --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CommonTableExpr.php @@ -0,0 +1,465 @@ +pg_query.CommonTableExpr. + */ +class CommonTableExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.CTEMaterialize ctematerialized = 3 [json_name = "ctematerialized"];. + */ + protected $ctematerialized = 0; + + /** + * Generated from protobuf field string ctename = 1 [json_name = "ctename"];. + */ + protected $ctename = ''; + + /** + * Generated from protobuf field .pg_query.Node ctequery = 4 [json_name = "ctequery"];. + */ + protected $ctequery; + + /** + * Generated from protobuf field bool cterecursive = 8 [json_name = "cterecursive"];. + */ + protected $cterecursive = false; + + /** + * Generated from protobuf field int32 cterefcount = 9 [json_name = "cterefcount"];. + */ + protected $cterefcount = 0; + + /** + * Generated from protobuf field .pg_query.CTECycleClause cycle_clause = 6 [json_name = "cycle_clause"];. + */ + protected $cycle_clause; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.CTESearchClause search_clause = 5 [json_name = "search_clause"];. + */ + protected $search_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node aliascolnames = 2 [json_name = "aliascolnames"];. + */ + private $aliascolnames; + + /** + * Generated from protobuf field repeated .pg_query.Node ctecolcollations = 13 [json_name = "ctecolcollations"];. + */ + private $ctecolcollations; + + /** + * Generated from protobuf field repeated .pg_query.Node ctecolnames = 10 [json_name = "ctecolnames"];. + */ + private $ctecolnames; + + /** + * Generated from protobuf field repeated .pg_query.Node ctecoltypes = 11 [json_name = "ctecoltypes"];. + */ + private $ctecoltypes; + + /** + * Generated from protobuf field repeated .pg_query.Node ctecoltypmods = 12 [json_name = "ctecoltypmods"];. + */ + private $ctecoltypmods; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $ctename + * @var array $aliascolnames + * @var int $ctematerialized + * @var Node $ctequery + * @var CTESearchClause $search_clause + * @var CTECycleClause $cycle_clause + * @var int $location + * @var bool $cterecursive + * @var int $cterefcount + * @var array $ctecolnames + * @var array $ctecoltypes + * @var array $ctecoltypmods + * @var array $ctecolcollations + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearCtequery() : void + { + $this->ctequery = null; + } + + public function clearCycleClause() : void + { + $this->cycle_clause = null; + } + + public function clearSearchClause() : void + { + $this->search_clause = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aliascolnames = 2 [json_name = "aliascolnames"];. + * + * @return RepeatedField + */ + public function getAliascolnames() + { + return $this->aliascolnames; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctecolcollations = 13 [json_name = "ctecolcollations"];. + * + * @return RepeatedField + */ + public function getCtecolcollations() + { + return $this->ctecolcollations; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctecolnames = 10 [json_name = "ctecolnames"];. + * + * @return RepeatedField + */ + public function getCtecolnames() + { + return $this->ctecolnames; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctecoltypes = 11 [json_name = "ctecoltypes"];. + * + * @return RepeatedField + */ + public function getCtecoltypes() + { + return $this->ctecoltypes; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctecoltypmods = 12 [json_name = "ctecoltypmods"];. + * + * @return RepeatedField + */ + public function getCtecoltypmods() + { + return $this->ctecoltypmods; + } + + /** + * Generated from protobuf field .pg_query.CTEMaterialize ctematerialized = 3 [json_name = "ctematerialized"];. + * + * @return int + */ + public function getCtematerialized() + { + return $this->ctematerialized; + } + + /** + * Generated from protobuf field string ctename = 1 [json_name = "ctename"];. + * + * @return string + */ + public function getCtename() + { + return $this->ctename; + } + + /** + * Generated from protobuf field .pg_query.Node ctequery = 4 [json_name = "ctequery"];. + * + * @return null|Node + */ + public function getCtequery() + { + return $this->ctequery; + } + + /** + * Generated from protobuf field bool cterecursive = 8 [json_name = "cterecursive"];. + * + * @return bool + */ + public function getCterecursive() + { + return $this->cterecursive; + } + + /** + * Generated from protobuf field int32 cterefcount = 9 [json_name = "cterefcount"];. + * + * @return int + */ + public function getCterefcount() + { + return $this->cterefcount; + } + + /** + * Generated from protobuf field .pg_query.CTECycleClause cycle_clause = 6 [json_name = "cycle_clause"];. + * + * @return null|CTECycleClause + */ + public function getCycleClause() + { + return $this->cycle_clause; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.CTESearchClause search_clause = 5 [json_name = "search_clause"];. + * + * @return null|CTESearchClause + */ + public function getSearchClause() + { + return $this->search_clause; + } + + public function hasCtequery() + { + return isset($this->ctequery); + } + + public function hasCycleClause() + { + return isset($this->cycle_clause); + } + + public function hasSearchClause() + { + return isset($this->search_clause); + } + + /** + * Generated from protobuf field repeated .pg_query.Node aliascolnames = 2 [json_name = "aliascolnames"];. + * + * @param array $var + * + * @return $this + */ + public function setAliascolnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->aliascolnames = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctecolcollations = 13 [json_name = "ctecolcollations"];. + * + * @param array $var + * + * @return $this + */ + public function setCtecolcollations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->ctecolcollations = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctecolnames = 10 [json_name = "ctecolnames"];. + * + * @param array $var + * + * @return $this + */ + public function setCtecolnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->ctecolnames = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctecoltypes = 11 [json_name = "ctecoltypes"];. + * + * @param array $var + * + * @return $this + */ + public function setCtecoltypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->ctecoltypes = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctecoltypmods = 12 [json_name = "ctecoltypmods"];. + * + * @param array $var + * + * @return $this + */ + public function setCtecoltypmods($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->ctecoltypmods = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CTEMaterialize ctematerialized = 3 [json_name = "ctematerialized"];. + * + * @param int $var + * + * @return $this + */ + public function setCtematerialized($var) + { + GPBUtil::checkEnum($var, CTEMaterialize::class); + $this->ctematerialized = $var; + + return $this; + } + + /** + * Generated from protobuf field string ctename = 1 [json_name = "ctename"];. + * + * @param string $var + * + * @return $this + */ + public function setCtename($var) + { + GPBUtil::checkString($var, true); + $this->ctename = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node ctequery = 4 [json_name = "ctequery"];. + * + * @param Node $var + * + * @return $this + */ + public function setCtequery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->ctequery = $var; + + return $this; + } + + /** + * Generated from protobuf field bool cterecursive = 8 [json_name = "cterecursive"];. + * + * @param bool $var + * + * @return $this + */ + public function setCterecursive($var) + { + GPBUtil::checkBool($var); + $this->cterecursive = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 cterefcount = 9 [json_name = "cterefcount"];. + * + * @param int $var + * + * @return $this + */ + public function setCterefcount($var) + { + GPBUtil::checkInt32($var); + $this->cterefcount = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CTECycleClause cycle_clause = 6 [json_name = "cycle_clause"];. + * + * @param CTECycleClause $var + * + * @return $this + */ + public function setCycleClause($var) + { + GPBUtil::checkMessage($var, CTECycleClause::class); + $this->cycle_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CTESearchClause search_clause = 5 [json_name = "search_clause"];. + * + * @param CTESearchClause $var + * + * @return $this + */ + public function setSearchClause($var) + { + GPBUtil::checkMessage($var, CTESearchClause::class); + $this->search_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CompositeTypeStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CompositeTypeStmt.php new file mode 100644 index 000000000..5f55612db --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CompositeTypeStmt.php @@ -0,0 +1,104 @@ +pg_query.CompositeTypeStmt. + */ +class CompositeTypeStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.RangeVar typevar = 1 [json_name = "typevar"];. + */ + protected $typevar; + + /** + * Generated from protobuf field repeated .pg_query.Node coldeflist = 2 [json_name = "coldeflist"];. + */ + private $coldeflist; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $typevar + * @var array $coldeflist + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearTypevar() : void + { + $this->typevar = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coldeflist = 2 [json_name = "coldeflist"];. + * + * @return RepeatedField + */ + public function getColdeflist() + { + return $this->coldeflist; + } + + /** + * Generated from protobuf field .pg_query.RangeVar typevar = 1 [json_name = "typevar"];. + * + * @return null|RangeVar + */ + public function getTypevar() + { + return $this->typevar; + } + + public function hasTypevar() + { + return isset($this->typevar); + } + + /** + * Generated from protobuf field repeated .pg_query.Node coldeflist = 2 [json_name = "coldeflist"];. + * + * @param array $var + * + * @return $this + */ + public function setColdeflist($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->coldeflist = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar typevar = 1 [json_name = "typevar"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setTypevar($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->typevar = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConstrType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConstrType.php new file mode 100644 index 000000000..6c9d2b719 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConstrType.php @@ -0,0 +1,135 @@ +pg_query.ConstrType. + */ +class ConstrType +{ + /** + * Generated from protobuf enum CONSTR_ATTR_DEFERRABLE = 11;. + */ + public const CONSTR_ATTR_DEFERRABLE = 11; + + /** + * Generated from protobuf enum CONSTR_ATTR_DEFERRED = 13;. + */ + public const CONSTR_ATTR_DEFERRED = 13; + + /** + * Generated from protobuf enum CONSTR_ATTR_IMMEDIATE = 14;. + */ + public const CONSTR_ATTR_IMMEDIATE = 14; + + /** + * Generated from protobuf enum CONSTR_ATTR_NOT_DEFERRABLE = 12;. + */ + public const CONSTR_ATTR_NOT_DEFERRABLE = 12; + + /** + * Generated from protobuf enum CONSTR_CHECK = 6;. + */ + public const CONSTR_CHECK = 6; + + /** + * Generated from protobuf enum CONSTR_DEFAULT = 3;. + */ + public const CONSTR_DEFAULT = 3; + + /** + * Generated from protobuf enum CONSTR_EXCLUSION = 9;. + */ + public const CONSTR_EXCLUSION = 9; + + /** + * Generated from protobuf enum CONSTR_FOREIGN = 10;. + */ + public const CONSTR_FOREIGN = 10; + + /** + * Generated from protobuf enum CONSTR_GENERATED = 5;. + */ + public const CONSTR_GENERATED = 5; + + /** + * Generated from protobuf enum CONSTR_IDENTITY = 4;. + */ + public const CONSTR_IDENTITY = 4; + + /** + * Generated from protobuf enum CONSTR_NOTNULL = 2;. + */ + public const CONSTR_NOTNULL = 2; + + /** + * Generated from protobuf enum CONSTR_NULL = 1;. + */ + public const CONSTR_NULL = 1; + + /** + * Generated from protobuf enum CONSTR_PRIMARY = 7;. + */ + public const CONSTR_PRIMARY = 7; + + /** + * Generated from protobuf enum CONSTR_TYPE_UNDEFINED = 0;. + */ + public const CONSTR_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum CONSTR_UNIQUE = 8;. + */ + public const CONSTR_UNIQUE = 8; + + private static $valueToName = [ + self::CONSTR_TYPE_UNDEFINED => 'CONSTR_TYPE_UNDEFINED', + self::CONSTR_NULL => 'CONSTR_NULL', + self::CONSTR_NOTNULL => 'CONSTR_NOTNULL', + self::CONSTR_DEFAULT => 'CONSTR_DEFAULT', + self::CONSTR_IDENTITY => 'CONSTR_IDENTITY', + self::CONSTR_GENERATED => 'CONSTR_GENERATED', + self::CONSTR_CHECK => 'CONSTR_CHECK', + self::CONSTR_PRIMARY => 'CONSTR_PRIMARY', + self::CONSTR_UNIQUE => 'CONSTR_UNIQUE', + self::CONSTR_EXCLUSION => 'CONSTR_EXCLUSION', + self::CONSTR_FOREIGN => 'CONSTR_FOREIGN', + self::CONSTR_ATTR_DEFERRABLE => 'CONSTR_ATTR_DEFERRABLE', + self::CONSTR_ATTR_NOT_DEFERRABLE => 'CONSTR_ATTR_NOT_DEFERRABLE', + self::CONSTR_ATTR_DEFERRED => 'CONSTR_ATTR_DEFERRED', + self::CONSTR_ATTR_IMMEDIATE => 'CONSTR_ATTR_IMMEDIATE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Constraint.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Constraint.php new file mode 100644 index 000000000..46cce146c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Constraint.php @@ -0,0 +1,1023 @@ +pg_query.Constraint. + */ +class Constraint extends Message +{ + /** + * Generated from protobuf field string access_method = 20 [json_name = "access_method"];. + */ + protected $access_method = ''; + + /** + * Generated from protobuf field string conname = 2 [json_name = "conname"];. + */ + protected $conname = ''; + + /** + * Generated from protobuf field .pg_query.ConstrType contype = 1 [json_name = "contype"];. + */ + protected $contype = 0; + + /** + * Generated from protobuf field string cooked_expr = 9 [json_name = "cooked_expr"];. + */ + protected $cooked_expr = ''; + + /** + * Generated from protobuf field bool deferrable = 3 [json_name = "deferrable"];. + */ + protected $deferrable = false; + + /** + * Generated from protobuf field string fk_del_action = 27 [json_name = "fk_del_action"];. + */ + protected $fk_del_action = ''; + + /** + * Generated from protobuf field string fk_matchtype = 25 [json_name = "fk_matchtype"];. + */ + protected $fk_matchtype = ''; + + /** + * Generated from protobuf field string fk_upd_action = 26 [json_name = "fk_upd_action"];. + */ + protected $fk_upd_action = ''; + + /** + * Generated from protobuf field string generated_when = 10 [json_name = "generated_when"];. + */ + protected $generated_when = ''; + + /** + * Generated from protobuf field string indexname = 17 [json_name = "indexname"];. + */ + protected $indexname = ''; + + /** + * Generated from protobuf field string indexspace = 18 [json_name = "indexspace"];. + */ + protected $indexspace = ''; + + /** + * Generated from protobuf field int32 inhcount = 11 [json_name = "inhcount"];. + */ + protected $inhcount = 0; + + /** + * Generated from protobuf field bool initdeferred = 4 [json_name = "initdeferred"];. + */ + protected $initdeferred = false; + + /** + * Generated from protobuf field bool initially_valid = 6 [json_name = "initially_valid"];. + */ + protected $initially_valid = false; + + /** + * Generated from protobuf field bool is_no_inherit = 7 [json_name = "is_no_inherit"];. + */ + protected $is_no_inherit = false; + + /** + * Generated from protobuf field int32 location = 31 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field bool nulls_not_distinct = 12 [json_name = "nulls_not_distinct"];. + */ + protected $nulls_not_distinct = false; + + /** + * Generated from protobuf field uint32 old_pktable_oid = 30 [json_name = "old_pktable_oid"];. + */ + protected $old_pktable_oid = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar pktable = 22 [json_name = "pktable"];. + */ + protected $pktable; + + /** + * Generated from protobuf field .pg_query.Node raw_expr = 8 [json_name = "raw_expr"];. + */ + protected $raw_expr; + + /** + * Generated from protobuf field bool reset_default_tblspc = 19 [json_name = "reset_default_tblspc"];. + */ + protected $reset_default_tblspc = false; + + /** + * Generated from protobuf field bool skip_validation = 5 [json_name = "skip_validation"];. + */ + protected $skip_validation = false; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 21 [json_name = "where_clause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node exclusions = 15 [json_name = "exclusions"];. + */ + private $exclusions; + + /** + * Generated from protobuf field repeated .pg_query.Node fk_attrs = 23 [json_name = "fk_attrs"];. + */ + private $fk_attrs; + + /** + * Generated from protobuf field repeated .pg_query.Node fk_del_set_cols = 28 [json_name = "fk_del_set_cols"];. + */ + private $fk_del_set_cols; + + /** + * Generated from protobuf field repeated .pg_query.Node including = 14 [json_name = "including"];. + */ + private $including; + + /** + * Generated from protobuf field repeated .pg_query.Node keys = 13 [json_name = "keys"];. + */ + private $keys; + + /** + * Generated from protobuf field repeated .pg_query.Node old_conpfeqop = 29 [json_name = "old_conpfeqop"];. + */ + private $old_conpfeqop; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 16 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node pk_attrs = 24 [json_name = "pk_attrs"];. + */ + private $pk_attrs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $contype + * @var string $conname + * @var bool $deferrable + * @var bool $initdeferred + * @var bool $skip_validation + * @var bool $initially_valid + * @var bool $is_no_inherit + * @var Node $raw_expr + * @var string $cooked_expr + * @var string $generated_when + * @var int $inhcount + * @var bool $nulls_not_distinct + * @var array $keys + * @var array $including + * @var array $exclusions + * @var array $options + * @var string $indexname + * @var string $indexspace + * @var bool $reset_default_tblspc + * @var string $access_method + * @var Node $where_clause + * @var RangeVar $pktable + * @var array $fk_attrs + * @var array $pk_attrs + * @var string $fk_matchtype + * @var string $fk_upd_action + * @var string $fk_del_action + * @var array $fk_del_set_cols + * @var array $old_conpfeqop + * @var int $old_pktable_oid + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearPktable() : void + { + $this->pktable = null; + } + + public function clearRawExpr() : void + { + $this->raw_expr = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + /** + * Generated from protobuf field string access_method = 20 [json_name = "access_method"];. + * + * @return string + */ + public function getAccessMethod() + { + return $this->access_method; + } + + /** + * Generated from protobuf field string conname = 2 [json_name = "conname"];. + * + * @return string + */ + public function getConname() + { + return $this->conname; + } + + /** + * Generated from protobuf field .pg_query.ConstrType contype = 1 [json_name = "contype"];. + * + * @return int + */ + public function getContype() + { + return $this->contype; + } + + /** + * Generated from protobuf field string cooked_expr = 9 [json_name = "cooked_expr"];. + * + * @return string + */ + public function getCookedExpr() + { + return $this->cooked_expr; + } + + /** + * Generated from protobuf field bool deferrable = 3 [json_name = "deferrable"];. + * + * @return bool + */ + public function getDeferrable() + { + return $this->deferrable; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exclusions = 15 [json_name = "exclusions"];. + * + * @return RepeatedField + */ + public function getExclusions() + { + return $this->exclusions; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fk_attrs = 23 [json_name = "fk_attrs"];. + * + * @return RepeatedField + */ + public function getFkAttrs() + { + return $this->fk_attrs; + } + + /** + * Generated from protobuf field string fk_del_action = 27 [json_name = "fk_del_action"];. + * + * @return string + */ + public function getFkDelAction() + { + return $this->fk_del_action; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fk_del_set_cols = 28 [json_name = "fk_del_set_cols"];. + * + * @return RepeatedField + */ + public function getFkDelSetCols() + { + return $this->fk_del_set_cols; + } + + /** + * Generated from protobuf field string fk_matchtype = 25 [json_name = "fk_matchtype"];. + * + * @return string + */ + public function getFkMatchtype() + { + return $this->fk_matchtype; + } + + /** + * Generated from protobuf field string fk_upd_action = 26 [json_name = "fk_upd_action"];. + * + * @return string + */ + public function getFkUpdAction() + { + return $this->fk_upd_action; + } + + /** + * Generated from protobuf field string generated_when = 10 [json_name = "generated_when"];. + * + * @return string + */ + public function getGeneratedWhen() + { + return $this->generated_when; + } + + /** + * Generated from protobuf field repeated .pg_query.Node including = 14 [json_name = "including"];. + * + * @return RepeatedField + */ + public function getIncluding() + { + return $this->including; + } + + /** + * Generated from protobuf field string indexname = 17 [json_name = "indexname"];. + * + * @return string + */ + public function getIndexname() + { + return $this->indexname; + } + + /** + * Generated from protobuf field string indexspace = 18 [json_name = "indexspace"];. + * + * @return string + */ + public function getIndexspace() + { + return $this->indexspace; + } + + /** + * Generated from protobuf field int32 inhcount = 11 [json_name = "inhcount"];. + * + * @return int + */ + public function getInhcount() + { + return $this->inhcount; + } + + /** + * Generated from protobuf field bool initdeferred = 4 [json_name = "initdeferred"];. + * + * @return bool + */ + public function getInitdeferred() + { + return $this->initdeferred; + } + + /** + * Generated from protobuf field bool initially_valid = 6 [json_name = "initially_valid"];. + * + * @return bool + */ + public function getInitiallyValid() + { + return $this->initially_valid; + } + + /** + * Generated from protobuf field bool is_no_inherit = 7 [json_name = "is_no_inherit"];. + * + * @return bool + */ + public function getIsNoInherit() + { + return $this->is_no_inherit; + } + + /** + * Generated from protobuf field repeated .pg_query.Node keys = 13 [json_name = "keys"];. + * + * @return RepeatedField + */ + public function getKeys() + { + return $this->keys; + } + + /** + * Generated from protobuf field int32 location = 31 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field bool nulls_not_distinct = 12 [json_name = "nulls_not_distinct"];. + * + * @return bool + */ + public function getNullsNotDistinct() + { + return $this->nulls_not_distinct; + } + + /** + * Generated from protobuf field repeated .pg_query.Node old_conpfeqop = 29 [json_name = "old_conpfeqop"];. + * + * @return RepeatedField + */ + public function getOldConpfeqop() + { + return $this->old_conpfeqop; + } + + /** + * Generated from protobuf field uint32 old_pktable_oid = 30 [json_name = "old_pktable_oid"];. + * + * @return int + */ + public function getOldPktableOid() + { + return $this->old_pktable_oid; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 16 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node pk_attrs = 24 [json_name = "pk_attrs"];. + * + * @return RepeatedField + */ + public function getPkAttrs() + { + return $this->pk_attrs; + } + + /** + * Generated from protobuf field .pg_query.RangeVar pktable = 22 [json_name = "pktable"];. + * + * @return null|RangeVar + */ + public function getPktable() + { + return $this->pktable; + } + + /** + * Generated from protobuf field .pg_query.Node raw_expr = 8 [json_name = "raw_expr"];. + * + * @return null|Node + */ + public function getRawExpr() + { + return $this->raw_expr; + } + + /** + * Generated from protobuf field bool reset_default_tblspc = 19 [json_name = "reset_default_tblspc"];. + * + * @return bool + */ + public function getResetDefaultTblspc() + { + return $this->reset_default_tblspc; + } + + /** + * Generated from protobuf field bool skip_validation = 5 [json_name = "skip_validation"];. + * + * @return bool + */ + public function getSkipValidation() + { + return $this->skip_validation; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 21 [json_name = "where_clause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + public function hasPktable() + { + return isset($this->pktable); + } + + public function hasRawExpr() + { + return isset($this->raw_expr); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + /** + * Generated from protobuf field string access_method = 20 [json_name = "access_method"];. + * + * @param string $var + * + * @return $this + */ + public function setAccessMethod($var) + { + GPBUtil::checkString($var, true); + $this->access_method = $var; + + return $this; + } + + /** + * Generated from protobuf field string conname = 2 [json_name = "conname"];. + * + * @param string $var + * + * @return $this + */ + public function setConname($var) + { + GPBUtil::checkString($var, true); + $this->conname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ConstrType contype = 1 [json_name = "contype"];. + * + * @param int $var + * + * @return $this + */ + public function setContype($var) + { + GPBUtil::checkEnum($var, ConstrType::class); + $this->contype = $var; + + return $this; + } + + /** + * Generated from protobuf field string cooked_expr = 9 [json_name = "cooked_expr"];. + * + * @param string $var + * + * @return $this + */ + public function setCookedExpr($var) + { + GPBUtil::checkString($var, true); + $this->cooked_expr = $var; + + return $this; + } + + /** + * Generated from protobuf field bool deferrable = 3 [json_name = "deferrable"];. + * + * @param bool $var + * + * @return $this + */ + public function setDeferrable($var) + { + GPBUtil::checkBool($var); + $this->deferrable = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exclusions = 15 [json_name = "exclusions"];. + * + * @param array $var + * + * @return $this + */ + public function setExclusions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->exclusions = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fk_attrs = 23 [json_name = "fk_attrs"];. + * + * @param array $var + * + * @return $this + */ + public function setFkAttrs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->fk_attrs = $arr; + + return $this; + } + + /** + * Generated from protobuf field string fk_del_action = 27 [json_name = "fk_del_action"];. + * + * @param string $var + * + * @return $this + */ + public function setFkDelAction($var) + { + GPBUtil::checkString($var, true); + $this->fk_del_action = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fk_del_set_cols = 28 [json_name = "fk_del_set_cols"];. + * + * @param array $var + * + * @return $this + */ + public function setFkDelSetCols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->fk_del_set_cols = $arr; + + return $this; + } + + /** + * Generated from protobuf field string fk_matchtype = 25 [json_name = "fk_matchtype"];. + * + * @param string $var + * + * @return $this + */ + public function setFkMatchtype($var) + { + GPBUtil::checkString($var, true); + $this->fk_matchtype = $var; + + return $this; + } + + /** + * Generated from protobuf field string fk_upd_action = 26 [json_name = "fk_upd_action"];. + * + * @param string $var + * + * @return $this + */ + public function setFkUpdAction($var) + { + GPBUtil::checkString($var, true); + $this->fk_upd_action = $var; + + return $this; + } + + /** + * Generated from protobuf field string generated_when = 10 [json_name = "generated_when"];. + * + * @param string $var + * + * @return $this + */ + public function setGeneratedWhen($var) + { + GPBUtil::checkString($var, true); + $this->generated_when = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node including = 14 [json_name = "including"];. + * + * @param array $var + * + * @return $this + */ + public function setIncluding($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->including = $arr; + + return $this; + } + + /** + * Generated from protobuf field string indexname = 17 [json_name = "indexname"];. + * + * @param string $var + * + * @return $this + */ + public function setIndexname($var) + { + GPBUtil::checkString($var, true); + $this->indexname = $var; + + return $this; + } + + /** + * Generated from protobuf field string indexspace = 18 [json_name = "indexspace"];. + * + * @param string $var + * + * @return $this + */ + public function setIndexspace($var) + { + GPBUtil::checkString($var, true); + $this->indexspace = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 inhcount = 11 [json_name = "inhcount"];. + * + * @param int $var + * + * @return $this + */ + public function setInhcount($var) + { + GPBUtil::checkInt32($var); + $this->inhcount = $var; + + return $this; + } + + /** + * Generated from protobuf field bool initdeferred = 4 [json_name = "initdeferred"];. + * + * @param bool $var + * + * @return $this + */ + public function setInitdeferred($var) + { + GPBUtil::checkBool($var); + $this->initdeferred = $var; + + return $this; + } + + /** + * Generated from protobuf field bool initially_valid = 6 [json_name = "initially_valid"];. + * + * @param bool $var + * + * @return $this + */ + public function setInitiallyValid($var) + { + GPBUtil::checkBool($var); + $this->initially_valid = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_no_inherit = 7 [json_name = "is_no_inherit"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsNoInherit($var) + { + GPBUtil::checkBool($var); + $this->is_no_inherit = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node keys = 13 [json_name = "keys"];. + * + * @param array $var + * + * @return $this + */ + public function setKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->keys = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 31 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field bool nulls_not_distinct = 12 [json_name = "nulls_not_distinct"];. + * + * @param bool $var + * + * @return $this + */ + public function setNullsNotDistinct($var) + { + GPBUtil::checkBool($var); + $this->nulls_not_distinct = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node old_conpfeqop = 29 [json_name = "old_conpfeqop"];. + * + * @param array $var + * + * @return $this + */ + public function setOldConpfeqop($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->old_conpfeqop = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 old_pktable_oid = 30 [json_name = "old_pktable_oid"];. + * + * @param int $var + * + * @return $this + */ + public function setOldPktableOid($var) + { + GPBUtil::checkUint32($var); + $this->old_pktable_oid = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 16 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node pk_attrs = 24 [json_name = "pk_attrs"];. + * + * @param array $var + * + * @return $this + */ + public function setPkAttrs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->pk_attrs = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar pktable = 22 [json_name = "pktable"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setPktable($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->pktable = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node raw_expr = 8 [json_name = "raw_expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setRawExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->raw_expr = $var; + + return $this; + } + + /** + * Generated from protobuf field bool reset_default_tblspc = 19 [json_name = "reset_default_tblspc"];. + * + * @param bool $var + * + * @return $this + */ + public function setResetDefaultTblspc($var) + { + GPBUtil::checkBool($var); + $this->reset_default_tblspc = $var; + + return $this; + } + + /** + * Generated from protobuf field bool skip_validation = 5 [json_name = "skip_validation"];. + * + * @param bool $var + * + * @return $this + */ + public function setSkipValidation($var) + { + GPBUtil::checkBool($var); + $this->skip_validation = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 21 [json_name = "where_clause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConstraintsSetStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConstraintsSetStmt.php new file mode 100644 index 000000000..8d7950853 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConstraintsSetStmt.php @@ -0,0 +1,94 @@ +pg_query.ConstraintsSetStmt. + */ +class ConstraintsSetStmt extends Message +{ + /** + * Generated from protobuf field bool deferred = 2 [json_name = "deferred"];. + */ + protected $deferred = false; + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 1 [json_name = "constraints"];. + */ + private $constraints; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $constraints + * @var bool $deferred + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 1 [json_name = "constraints"];. + * + * @return RepeatedField + */ + public function getConstraints() + { + return $this->constraints; + } + + /** + * Generated from protobuf field bool deferred = 2 [json_name = "deferred"];. + * + * @return bool + */ + public function getDeferred() + { + return $this->deferred; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 1 [json_name = "constraints"];. + * + * @param array $var + * + * @return $this + */ + public function setConstraints($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->constraints = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool deferred = 2 [json_name = "deferred"];. + * + * @param bool $var + * + * @return $this + */ + public function setDeferred($var) + { + GPBUtil::checkBool($var); + $this->deferred = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConvertRowtypeExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConvertRowtypeExpr.php new file mode 100644 index 000000000..8ab10a5a9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ConvertRowtypeExpr.php @@ -0,0 +1,206 @@ +pg_query.ConvertRowtypeExpr. + */ +class ConvertRowtypeExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field .pg_query.CoercionForm convertformat = 4 [json_name = "convertformat"];. + */ + protected $convertformat = 0; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + */ + protected $resulttype = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var int $resulttype + * @var int $convertformat + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm convertformat = 4 [json_name = "convertformat"];. + * + * @return int + */ + public function getConvertformat() + { + return $this->convertformat; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + * + * @return int + */ + public function getResulttype() + { + return $this->resulttype; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm convertformat = 4 [json_name = "convertformat"];. + * + * @param int $var + * + * @return $this + */ + public function setConvertformat($var) + { + GPBUtil::checkEnum($var, CoercionForm::class); + $this->convertformat = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttype($var) + { + GPBUtil::checkUint32($var); + $this->resulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CopyStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CopyStmt.php new file mode 100644 index 000000000..20f96fc8a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CopyStmt.php @@ -0,0 +1,310 @@ +pg_query.CopyStmt. + */ +class CopyStmt extends Message +{ + /** + * Generated from protobuf field string filename = 6 [json_name = "filename"];. + */ + protected $filename = ''; + + /** + * Generated from protobuf field bool is_from = 4 [json_name = "is_from"];. + */ + protected $is_from = false; + + /** + * Generated from protobuf field bool is_program = 5 [json_name = "is_program"];. + */ + protected $is_program = false; + + /** + * Generated from protobuf field .pg_query.Node query = 2 [json_name = "query"];. + */ + protected $query; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 8 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node attlist = 3 [json_name = "attlist"];. + */ + private $attlist; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 7 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var Node $query + * @var array $attlist + * @var bool $is_from + * @var bool $is_program + * @var string $filename + * @var array $options + * @var Node $where_clause + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQuery() : void + { + $this->query = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node attlist = 3 [json_name = "attlist"];. + * + * @return RepeatedField + */ + public function getAttlist() + { + return $this->attlist; + } + + /** + * Generated from protobuf field string filename = 6 [json_name = "filename"];. + * + * @return string + */ + public function getFilename() + { + return $this->filename; + } + + /** + * Generated from protobuf field bool is_from = 4 [json_name = "is_from"];. + * + * @return bool + */ + public function getIsFrom() + { + return $this->is_from; + } + + /** + * Generated from protobuf field bool is_program = 5 [json_name = "is_program"];. + * + * @return bool + */ + public function getIsProgram() + { + return $this->is_program; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 7 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.Node query = 2 [json_name = "query"];. + * + * @return null|Node + */ + public function getQuery() + { + return $this->query; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 8 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + public function hasQuery() + { + return isset($this->query); + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + /** + * Generated from protobuf field repeated .pg_query.Node attlist = 3 [json_name = "attlist"];. + * + * @param array $var + * + * @return $this + */ + public function setAttlist($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->attlist = $arr; + + return $this; + } + + /** + * Generated from protobuf field string filename = 6 [json_name = "filename"];. + * + * @param string $var + * + * @return $this + */ + public function setFilename($var) + { + GPBUtil::checkString($var, true); + $this->filename = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_from = 4 [json_name = "is_from"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsFrom($var) + { + GPBUtil::checkBool($var); + $this->is_from = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_program = 5 [json_name = "is_program"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsProgram($var) + { + GPBUtil::checkBool($var); + $this->is_program = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 7 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node query = 2 [json_name = "query"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->query = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 8 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateAmStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateAmStmt.php new file mode 100644 index 000000000..12cb699fb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateAmStmt.php @@ -0,0 +1,125 @@ +pg_query.CreateAmStmt. + */ +class CreateAmStmt extends Message +{ + /** + * Generated from protobuf field string amname = 1 [json_name = "amname"];. + */ + protected $amname = ''; + + /** + * Generated from protobuf field string amtype = 3 [json_name = "amtype"];. + */ + protected $amtype = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node handler_name = 2 [json_name = "handler_name"];. + */ + private $handler_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $amname + * @var array $handler_name + * @var string $amtype + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string amname = 1 [json_name = "amname"];. + * + * @return string + */ + public function getAmname() + { + return $this->amname; + } + + /** + * Generated from protobuf field string amtype = 3 [json_name = "amtype"];. + * + * @return string + */ + public function getAmtype() + { + return $this->amtype; + } + + /** + * Generated from protobuf field repeated .pg_query.Node handler_name = 2 [json_name = "handler_name"];. + * + * @return RepeatedField + */ + public function getHandlerName() + { + return $this->handler_name; + } + + /** + * Generated from protobuf field string amname = 1 [json_name = "amname"];. + * + * @param string $var + * + * @return $this + */ + public function setAmname($var) + { + GPBUtil::checkString($var, true); + $this->amname = $var; + + return $this; + } + + /** + * Generated from protobuf field string amtype = 3 [json_name = "amtype"];. + * + * @param string $var + * + * @return $this + */ + public function setAmtype($var) + { + GPBUtil::checkString($var, true); + $this->amtype = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node handler_name = 2 [json_name = "handler_name"];. + * + * @param array $var + * + * @return $this + */ + public function setHandlerName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->handler_name = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateCastStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateCastStmt.php new file mode 100644 index 000000000..5885603f2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateCastStmt.php @@ -0,0 +1,216 @@ +pg_query.CreateCastStmt. + */ +class CreateCastStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.CoercionContext context = 4 [json_name = "context"];. + */ + protected $context = 0; + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs func = 3 [json_name = "func"];. + */ + protected $func; + + /** + * Generated from protobuf field bool inout = 5 [json_name = "inout"];. + */ + protected $inout = false; + + /** + * Generated from protobuf field .pg_query.TypeName sourcetype = 1 [json_name = "sourcetype"];. + */ + protected $sourcetype; + + /** + * Generated from protobuf field .pg_query.TypeName targettype = 2 [json_name = "targettype"];. + */ + protected $targettype; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var TypeName $sourcetype + * @var TypeName $targettype + * @var ObjectWithArgs $func + * @var int $context + * @var bool $inout + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFunc() : void + { + $this->func = null; + } + + public function clearSourcetype() : void + { + $this->sourcetype = null; + } + + public function clearTargettype() : void + { + $this->targettype = null; + } + + /** + * Generated from protobuf field .pg_query.CoercionContext context = 4 [json_name = "context"];. + * + * @return int + */ + public function getContext() + { + return $this->context; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs func = 3 [json_name = "func"];. + * + * @return null|ObjectWithArgs + */ + public function getFunc() + { + return $this->func; + } + + /** + * Generated from protobuf field bool inout = 5 [json_name = "inout"];. + * + * @return bool + */ + public function getInout() + { + return $this->inout; + } + + /** + * Generated from protobuf field .pg_query.TypeName sourcetype = 1 [json_name = "sourcetype"];. + * + * @return null|TypeName + */ + public function getSourcetype() + { + return $this->sourcetype; + } + + /** + * Generated from protobuf field .pg_query.TypeName targettype = 2 [json_name = "targettype"];. + * + * @return null|TypeName + */ + public function getTargettype() + { + return $this->targettype; + } + + public function hasFunc() + { + return isset($this->func); + } + + public function hasSourcetype() + { + return isset($this->sourcetype); + } + + public function hasTargettype() + { + return isset($this->targettype); + } + + /** + * Generated from protobuf field .pg_query.CoercionContext context = 4 [json_name = "context"];. + * + * @param int $var + * + * @return $this + */ + public function setContext($var) + { + GPBUtil::checkEnum($var, CoercionContext::class); + $this->context = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs func = 3 [json_name = "func"];. + * + * @param ObjectWithArgs $var + * + * @return $this + */ + public function setFunc($var) + { + GPBUtil::checkMessage($var, ObjectWithArgs::class); + $this->func = $var; + + return $this; + } + + /** + * Generated from protobuf field bool inout = 5 [json_name = "inout"];. + * + * @param bool $var + * + * @return $this + */ + public function setInout($var) + { + GPBUtil::checkBool($var); + $this->inout = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName sourcetype = 1 [json_name = "sourcetype"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setSourcetype($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->sourcetype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName targettype = 2 [json_name = "targettype"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTargettype($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->targettype = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateConversionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateConversionStmt.php new file mode 100644 index 000000000..6762b8aff --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateConversionStmt.php @@ -0,0 +1,187 @@ +pg_query.CreateConversionStmt. + */ +class CreateConversionStmt extends Message +{ + /** + * Generated from protobuf field bool def = 5 [json_name = "def"];. + */ + protected $def = false; + + /** + * Generated from protobuf field string for_encoding_name = 2 [json_name = "for_encoding_name"];. + */ + protected $for_encoding_name = ''; + + /** + * Generated from protobuf field string to_encoding_name = 3 [json_name = "to_encoding_name"];. + */ + protected $to_encoding_name = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node conversion_name = 1 [json_name = "conversion_name"];. + */ + private $conversion_name; + + /** + * Generated from protobuf field repeated .pg_query.Node func_name = 4 [json_name = "func_name"];. + */ + private $func_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $conversion_name + * @var string $for_encoding_name + * @var string $to_encoding_name + * @var array $func_name + * @var bool $def + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node conversion_name = 1 [json_name = "conversion_name"];. + * + * @return RepeatedField + */ + public function getConversionName() + { + return $this->conversion_name; + } + + /** + * Generated from protobuf field bool def = 5 [json_name = "def"];. + * + * @return bool + */ + public function getDef() + { + return $this->def; + } + + /** + * Generated from protobuf field string for_encoding_name = 2 [json_name = "for_encoding_name"];. + * + * @return string + */ + public function getForEncodingName() + { + return $this->for_encoding_name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node func_name = 4 [json_name = "func_name"];. + * + * @return RepeatedField + */ + public function getFuncName() + { + return $this->func_name; + } + + /** + * Generated from protobuf field string to_encoding_name = 3 [json_name = "to_encoding_name"];. + * + * @return string + */ + public function getToEncodingName() + { + return $this->to_encoding_name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node conversion_name = 1 [json_name = "conversion_name"];. + * + * @param array $var + * + * @return $this + */ + public function setConversionName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->conversion_name = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool def = 5 [json_name = "def"];. + * + * @param bool $var + * + * @return $this + */ + public function setDef($var) + { + GPBUtil::checkBool($var); + $this->def = $var; + + return $this; + } + + /** + * Generated from protobuf field string for_encoding_name = 2 [json_name = "for_encoding_name"];. + * + * @param string $var + * + * @return $this + */ + public function setForEncodingName($var) + { + GPBUtil::checkString($var, true); + $this->for_encoding_name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node func_name = 4 [json_name = "func_name"];. + * + * @param array $var + * + * @return $this + */ + public function setFuncName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->func_name = $arr; + + return $this; + } + + /** + * Generated from protobuf field string to_encoding_name = 3 [json_name = "to_encoding_name"];. + * + * @param string $var + * + * @return $this + */ + public function setToEncodingName($var) + { + GPBUtil::checkString($var, true); + $this->to_encoding_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateDomainStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateDomainStmt.php new file mode 100644 index 000000000..d79beb220 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateDomainStmt.php @@ -0,0 +1,176 @@ +pg_query.CreateDomainStmt. + */ +class CreateDomainStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.CollateClause coll_clause = 3 [json_name = "collClause"];. + */ + protected $coll_clause; + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + */ + protected $type_name; + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 4 [json_name = "constraints"];. + */ + private $constraints; + + /** + * Generated from protobuf field repeated .pg_query.Node domainname = 1 [json_name = "domainname"];. + */ + private $domainname; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $domainname + * @var TypeName $type_name + * @var CollateClause $coll_clause + * @var array $constraints + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearCollClause() : void + { + $this->coll_clause = null; + } + + public function clearTypeName() : void + { + $this->type_name = null; + } + + /** + * Generated from protobuf field .pg_query.CollateClause coll_clause = 3 [json_name = "collClause"];. + * + * @return null|CollateClause + */ + public function getCollClause() + { + return $this->coll_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 4 [json_name = "constraints"];. + * + * @return RepeatedField + */ + public function getConstraints() + { + return $this->constraints; + } + + /** + * Generated from protobuf field repeated .pg_query.Node domainname = 1 [json_name = "domainname"];. + * + * @return RepeatedField + */ + public function getDomainname() + { + return $this->domainname; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->type_name; + } + + public function hasCollClause() + { + return isset($this->coll_clause); + } + + public function hasTypeName() + { + return isset($this->type_name); + } + + /** + * Generated from protobuf field .pg_query.CollateClause coll_clause = 3 [json_name = "collClause"];. + * + * @param CollateClause $var + * + * @return $this + */ + public function setCollClause($var) + { + GPBUtil::checkMessage($var, CollateClause::class); + $this->coll_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 4 [json_name = "constraints"];. + * + * @param array $var + * + * @return $this + */ + public function setConstraints($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->constraints = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node domainname = 1 [json_name = "domainname"];. + * + * @param array $var + * + * @return $this + */ + public function setDomainname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->domainname = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->type_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateEnumStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateEnumStmt.php new file mode 100644 index 000000000..0b695b08e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateEnumStmt.php @@ -0,0 +1,94 @@ +pg_query.CreateEnumStmt. + */ +class CreateEnumStmt extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + */ + private $type_name; + + /** + * Generated from protobuf field repeated .pg_query.Node vals = 2 [json_name = "vals"];. + */ + private $vals; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $type_name + * @var array $vals + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + * + * @return RepeatedField + */ + public function getTypeName() + { + return $this->type_name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node vals = 2 [json_name = "vals"];. + * + * @return RepeatedField + */ + public function getVals() + { + return $this->vals; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + * + * @param array $var + * + * @return $this + */ + public function setTypeName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->type_name = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node vals = 2 [json_name = "vals"];. + * + * @param array $var + * + * @return $this + */ + public function setVals($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->vals = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateEventTrigStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateEventTrigStmt.php new file mode 100644 index 000000000..06048d2ee --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateEventTrigStmt.php @@ -0,0 +1,156 @@ +pg_query.CreateEventTrigStmt. + */ +class CreateEventTrigStmt extends Message +{ + /** + * Generated from protobuf field string eventname = 2 [json_name = "eventname"];. + */ + protected $eventname = ''; + + /** + * Generated from protobuf field string trigname = 1 [json_name = "trigname"];. + */ + protected $trigname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 4 [json_name = "funcname"];. + */ + private $funcname; + + /** + * Generated from protobuf field repeated .pg_query.Node whenclause = 3 [json_name = "whenclause"];. + */ + private $whenclause; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $trigname + * @var string $eventname + * @var array $whenclause + * @var array $funcname + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string eventname = 2 [json_name = "eventname"];. + * + * @return string + */ + public function getEventname() + { + return $this->eventname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 4 [json_name = "funcname"];. + * + * @return RepeatedField + */ + public function getFuncname() + { + return $this->funcname; + } + + /** + * Generated from protobuf field string trigname = 1 [json_name = "trigname"];. + * + * @return string + */ + public function getTrigname() + { + return $this->trigname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node whenclause = 3 [json_name = "whenclause"];. + * + * @return RepeatedField + */ + public function getWhenclause() + { + return $this->whenclause; + } + + /** + * Generated from protobuf field string eventname = 2 [json_name = "eventname"];. + * + * @param string $var + * + * @return $this + */ + public function setEventname($var) + { + GPBUtil::checkString($var, true); + $this->eventname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 4 [json_name = "funcname"];. + * + * @param array $var + * + * @return $this + */ + public function setFuncname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->funcname = $arr; + + return $this; + } + + /** + * Generated from protobuf field string trigname = 1 [json_name = "trigname"];. + * + * @param string $var + * + * @return $this + */ + public function setTrigname($var) + { + GPBUtil::checkString($var, true); + $this->trigname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node whenclause = 3 [json_name = "whenclause"];. + * + * @param array $var + * + * @return $this + */ + public function setWhenclause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->whenclause = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateExtensionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateExtensionStmt.php new file mode 100644 index 000000000..fb28e0e33 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateExtensionStmt.php @@ -0,0 +1,125 @@ +pg_query.CreateExtensionStmt. + */ +class CreateExtensionStmt extends Message +{ + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + */ + protected $extname = ''; + + /** + * Generated from protobuf field bool if_not_exists = 2 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $extname + * @var bool $if_not_exists + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + * + * @return string + */ + public function getExtname() + { + return $this->extname; + } + + /** + * Generated from protobuf field bool if_not_exists = 2 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string extname = 1 [json_name = "extname"];. + * + * @param string $var + * + * @return $this + */ + public function setExtname($var) + { + GPBUtil::checkString($var, true); + $this->extname = $var; + + return $this; + } + + /** + * Generated from protobuf field bool if_not_exists = 2 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateFdwStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateFdwStmt.php new file mode 100644 index 000000000..5acc77829 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateFdwStmt.php @@ -0,0 +1,125 @@ +pg_query.CreateFdwStmt. + */ +class CreateFdwStmt extends Message +{ + /** + * Generated from protobuf field string fdwname = 1 [json_name = "fdwname"];. + */ + protected $fdwname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node func_options = 2 [json_name = "func_options"];. + */ + private $func_options; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $fdwname + * @var array $func_options + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string fdwname = 1 [json_name = "fdwname"];. + * + * @return string + */ + public function getFdwname() + { + return $this->fdwname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node func_options = 2 [json_name = "func_options"];. + * + * @return RepeatedField + */ + public function getFuncOptions() + { + return $this->func_options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string fdwname = 1 [json_name = "fdwname"];. + * + * @param string $var + * + * @return $this + */ + public function setFdwname($var) + { + GPBUtil::checkString($var, true); + $this->fdwname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node func_options = 2 [json_name = "func_options"];. + * + * @param array $var + * + * @return $this + */ + public function setFuncOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->func_options = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateForeignServerStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateForeignServerStmt.php new file mode 100644 index 000000000..3ba154fcc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateForeignServerStmt.php @@ -0,0 +1,218 @@ +pg_query.CreateForeignServerStmt. + */ +class CreateForeignServerStmt extends Message +{ + /** + * Generated from protobuf field string fdwname = 4 [json_name = "fdwname"];. + */ + protected $fdwname = ''; + + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field string servername = 1 [json_name = "servername"];. + */ + protected $servername = ''; + + /** + * Generated from protobuf field string servertype = 2 [json_name = "servertype"];. + */ + protected $servertype = ''; + + /** + * Generated from protobuf field string version = 3 [json_name = "version"];. + */ + protected $version = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $servername + * @var string $servertype + * @var string $version + * @var string $fdwname + * @var bool $if_not_exists + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string fdwname = 4 [json_name = "fdwname"];. + * + * @return string + */ + public function getFdwname() + { + return $this->fdwname; + } + + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string servername = 1 [json_name = "servername"];. + * + * @return string + */ + public function getServername() + { + return $this->servername; + } + + /** + * Generated from protobuf field string servertype = 2 [json_name = "servertype"];. + * + * @return string + */ + public function getServertype() + { + return $this->servertype; + } + + /** + * Generated from protobuf field string version = 3 [json_name = "version"];. + * + * @return string + */ + public function getVersion() + { + return $this->version; + } + + /** + * Generated from protobuf field string fdwname = 4 [json_name = "fdwname"];. + * + * @param string $var + * + * @return $this + */ + public function setFdwname($var) + { + GPBUtil::checkString($var, true); + $this->fdwname = $var; + + return $this; + } + + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string servername = 1 [json_name = "servername"];. + * + * @param string $var + * + * @return $this + */ + public function setServername($var) + { + GPBUtil::checkString($var, true); + $this->servername = $var; + + return $this; + } + + /** + * Generated from protobuf field string servertype = 2 [json_name = "servertype"];. + * + * @param string $var + * + * @return $this + */ + public function setServertype($var) + { + GPBUtil::checkString($var, true); + $this->servertype = $var; + + return $this; + } + + /** + * Generated from protobuf field string version = 3 [json_name = "version"];. + * + * @param string $var + * + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkString($var, true); + $this->version = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateForeignTableStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateForeignTableStmt.php new file mode 100644 index 000000000..09aea8bfb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateForeignTableStmt.php @@ -0,0 +1,135 @@ +pg_query.CreateForeignTableStmt. + */ +class CreateForeignTableStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.CreateStmt base_stmt = 1 [json_name = "base"];. + */ + protected $base_stmt; + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + */ + protected $servername = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var CreateStmt $base_stmt + * @var string $servername + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearBaseStmt() : void + { + $this->base_stmt = null; + } + + /** + * Generated from protobuf field .pg_query.CreateStmt base_stmt = 1 [json_name = "base"];. + * + * @return null|CreateStmt + */ + public function getBaseStmt() + { + return $this->base_stmt; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + * + * @return string + */ + public function getServername() + { + return $this->servername; + } + + public function hasBaseStmt() + { + return isset($this->base_stmt); + } + + /** + * Generated from protobuf field .pg_query.CreateStmt base_stmt = 1 [json_name = "base"];. + * + * @param CreateStmt $var + * + * @return $this + */ + public function setBaseStmt($var) + { + GPBUtil::checkMessage($var, CreateStmt::class); + $this->base_stmt = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + * + * @param string $var + * + * @return $this + */ + public function setServername($var) + { + GPBUtil::checkString($var, true); + $this->servername = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateFunctionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateFunctionStmt.php new file mode 100644 index 000000000..026290939 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateFunctionStmt.php @@ -0,0 +1,269 @@ +pg_query.CreateFunctionStmt. + */ +class CreateFunctionStmt extends Message +{ + /** + * Generated from protobuf field bool is_procedure = 1 [json_name = "is_procedure"];. + */ + protected $is_procedure = false; + + /** + * Generated from protobuf field bool replace = 2 [json_name = "replace"];. + */ + protected $replace = false; + + /** + * Generated from protobuf field .pg_query.TypeName return_type = 5 [json_name = "returnType"];. + */ + protected $return_type; + + /** + * Generated from protobuf field .pg_query.Node sql_body = 7 [json_name = "sql_body"];. + */ + protected $sql_body; + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 3 [json_name = "funcname"];. + */ + private $funcname; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node parameters = 4 [json_name = "parameters"];. + */ + private $parameters; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $is_procedure + * @var bool $replace + * @var array $funcname + * @var array $parameters + * @var TypeName $return_type + * @var array $options + * @var Node $sql_body + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearReturnType() : void + { + $this->return_type = null; + } + + public function clearSqlBody() : void + { + $this->sql_body = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 3 [json_name = "funcname"];. + * + * @return RepeatedField + */ + public function getFuncname() + { + return $this->funcname; + } + + /** + * Generated from protobuf field bool is_procedure = 1 [json_name = "is_procedure"];. + * + * @return bool + */ + public function getIsProcedure() + { + return $this->is_procedure; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node parameters = 4 [json_name = "parameters"];. + * + * @return RepeatedField + */ + public function getParameters() + { + return $this->parameters; + } + + /** + * Generated from protobuf field bool replace = 2 [json_name = "replace"];. + * + * @return bool + */ + public function getReplace() + { + return $this->replace; + } + + /** + * Generated from protobuf field .pg_query.TypeName return_type = 5 [json_name = "returnType"];. + * + * @return null|TypeName + */ + public function getReturnType() + { + return $this->return_type; + } + + /** + * Generated from protobuf field .pg_query.Node sql_body = 7 [json_name = "sql_body"];. + * + * @return null|Node + */ + public function getSqlBody() + { + return $this->sql_body; + } + + public function hasReturnType() + { + return isset($this->return_type); + } + + public function hasSqlBody() + { + return isset($this->sql_body); + } + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 3 [json_name = "funcname"];. + * + * @param array $var + * + * @return $this + */ + public function setFuncname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->funcname = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool is_procedure = 1 [json_name = "is_procedure"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsProcedure($var) + { + GPBUtil::checkBool($var); + $this->is_procedure = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node parameters = 4 [json_name = "parameters"];. + * + * @param array $var + * + * @return $this + */ + public function setParameters($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->parameters = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool replace = 2 [json_name = "replace"];. + * + * @param bool $var + * + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkBool($var); + $this->replace = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName return_type = 5 [json_name = "returnType"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setReturnType($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->return_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node sql_body = 7 [json_name = "sql_body"];. + * + * @param Node $var + * + * @return $this + */ + public function setSqlBody($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->sql_body = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpClassItem.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpClassItem.php new file mode 100644 index 000000000..ac988fa96 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpClassItem.php @@ -0,0 +1,238 @@ +pg_query.CreateOpClassItem. + */ +class CreateOpClassItem extends Message +{ + /** + * Generated from protobuf field int32 itemtype = 1 [json_name = "itemtype"];. + */ + protected $itemtype = 0; + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs name = 2 [json_name = "name"];. + */ + protected $name; + + /** + * Generated from protobuf field int32 number = 3 [json_name = "number"];. + */ + protected $number = 0; + + /** + * Generated from protobuf field .pg_query.TypeName storedtype = 6 [json_name = "storedtype"];. + */ + protected $storedtype; + + /** + * Generated from protobuf field repeated .pg_query.Node class_args = 5 [json_name = "class_args"];. + */ + private $class_args; + + /** + * Generated from protobuf field repeated .pg_query.Node order_family = 4 [json_name = "order_family"];. + */ + private $order_family; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $itemtype + * @var ObjectWithArgs $name + * @var int $number + * @var array $order_family + * @var array $class_args + * @var TypeName $storedtype + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearName() : void + { + $this->name = null; + } + + public function clearStoredtype() : void + { + $this->storedtype = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node class_args = 5 [json_name = "class_args"];. + * + * @return RepeatedField + */ + public function getClassArgs() + { + return $this->class_args; + } + + /** + * Generated from protobuf field int32 itemtype = 1 [json_name = "itemtype"];. + * + * @return int + */ + public function getItemtype() + { + return $this->itemtype; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs name = 2 [json_name = "name"];. + * + * @return null|ObjectWithArgs + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field int32 number = 3 [json_name = "number"];. + * + * @return int + */ + public function getNumber() + { + return $this->number; + } + + /** + * Generated from protobuf field repeated .pg_query.Node order_family = 4 [json_name = "order_family"];. + * + * @return RepeatedField + */ + public function getOrderFamily() + { + return $this->order_family; + } + + /** + * Generated from protobuf field .pg_query.TypeName storedtype = 6 [json_name = "storedtype"];. + * + * @return null|TypeName + */ + public function getStoredtype() + { + return $this->storedtype; + } + + public function hasName() + { + return isset($this->name); + } + + public function hasStoredtype() + { + return isset($this->storedtype); + } + + /** + * Generated from protobuf field repeated .pg_query.Node class_args = 5 [json_name = "class_args"];. + * + * @param array $var + * + * @return $this + */ + public function setClassArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->class_args = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 itemtype = 1 [json_name = "itemtype"];. + * + * @param int $var + * + * @return $this + */ + public function setItemtype($var) + { + GPBUtil::checkInt32($var); + $this->itemtype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs name = 2 [json_name = "name"];. + * + * @param ObjectWithArgs $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkMessage($var, ObjectWithArgs::class); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 number = 3 [json_name = "number"];. + * + * @param int $var + * + * @return $this + */ + public function setNumber($var) + { + GPBUtil::checkInt32($var); + $this->number = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node order_family = 4 [json_name = "order_family"];. + * + * @param array $var + * + * @return $this + */ + public function setOrderFamily($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->order_family = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName storedtype = 6 [json_name = "storedtype"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setStoredtype($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->storedtype = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpClassStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpClassStmt.php new file mode 100644 index 000000000..90d37aba3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpClassStmt.php @@ -0,0 +1,228 @@ +pg_query.CreateOpClassStmt. + */ +class CreateOpClassStmt extends Message +{ + /** + * Generated from protobuf field string amname = 3 [json_name = "amname"];. + */ + protected $amname = ''; + + /** + * Generated from protobuf field .pg_query.TypeName datatype = 4 [json_name = "datatype"];. + */ + protected $datatype; + + /** + * Generated from protobuf field bool is_default = 6 [json_name = "isDefault"];. + */ + protected $is_default = false; + + /** + * Generated from protobuf field repeated .pg_query.Node items = 5 [json_name = "items"];. + */ + private $items; + + /** + * Generated from protobuf field repeated .pg_query.Node opclassname = 1 [json_name = "opclassname"];. + */ + private $opclassname; + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 2 [json_name = "opfamilyname"];. + */ + private $opfamilyname; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $opclassname + * @var array $opfamilyname + * @var string $amname + * @var TypeName $datatype + * @var array $items + * @var bool $is_default + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearDatatype() : void + { + $this->datatype = null; + } + + /** + * Generated from protobuf field string amname = 3 [json_name = "amname"];. + * + * @return string + */ + public function getAmname() + { + return $this->amname; + } + + /** + * Generated from protobuf field .pg_query.TypeName datatype = 4 [json_name = "datatype"];. + * + * @return null|TypeName + */ + public function getDatatype() + { + return $this->datatype; + } + + /** + * Generated from protobuf field bool is_default = 6 [json_name = "isDefault"];. + * + * @return bool + */ + public function getIsDefault() + { + return $this->is_default; + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 5 [json_name = "items"];. + * + * @return RepeatedField + */ + public function getItems() + { + return $this->items; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opclassname = 1 [json_name = "opclassname"];. + * + * @return RepeatedField + */ + public function getOpclassname() + { + return $this->opclassname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 2 [json_name = "opfamilyname"];. + * + * @return RepeatedField + */ + public function getOpfamilyname() + { + return $this->opfamilyname; + } + + public function hasDatatype() + { + return isset($this->datatype); + } + + /** + * Generated from protobuf field string amname = 3 [json_name = "amname"];. + * + * @param string $var + * + * @return $this + */ + public function setAmname($var) + { + GPBUtil::checkString($var, true); + $this->amname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName datatype = 4 [json_name = "datatype"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setDatatype($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->datatype = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_default = 6 [json_name = "isDefault"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsDefault($var) + { + GPBUtil::checkBool($var); + $this->is_default = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 5 [json_name = "items"];. + * + * @param array $var + * + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->items = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opclassname = 1 [json_name = "opclassname"];. + * + * @param array $var + * + * @return $this + */ + public function setOpclassname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opclassname = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 2 [json_name = "opfamilyname"];. + * + * @param array $var + * + * @return $this + */ + public function setOpfamilyname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opfamilyname = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpFamilyStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpFamilyStmt.php new file mode 100644 index 000000000..dc34c5c2c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateOpFamilyStmt.php @@ -0,0 +1,94 @@ +pg_query.CreateOpFamilyStmt. + */ +class CreateOpFamilyStmt extends Message +{ + /** + * Generated from protobuf field string amname = 2 [json_name = "amname"];. + */ + protected $amname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"];. + */ + private $opfamilyname; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $opfamilyname + * @var string $amname + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string amname = 2 [json_name = "amname"];. + * + * @return string + */ + public function getAmname() + { + return $this->amname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"];. + * + * @return RepeatedField + */ + public function getOpfamilyname() + { + return $this->opfamilyname; + } + + /** + * Generated from protobuf field string amname = 2 [json_name = "amname"];. + * + * @param string $var + * + * @return $this + */ + public function setAmname($var) + { + GPBUtil::checkString($var, true); + $this->amname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilyname = 1 [json_name = "opfamilyname"];. + * + * @param array $var + * + * @return $this + */ + public function setOpfamilyname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opfamilyname = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePLangStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePLangStmt.php new file mode 100644 index 000000000..73c44d3f9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePLangStmt.php @@ -0,0 +1,218 @@ +pg_query.CreatePLangStmt. + */ +class CreatePLangStmt extends Message +{ + /** + * Generated from protobuf field string plname = 2 [json_name = "plname"];. + */ + protected $plname = ''; + + /** + * Generated from protobuf field bool pltrusted = 6 [json_name = "pltrusted"];. + */ + protected $pltrusted = false; + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + */ + protected $replace = false; + + /** + * Generated from protobuf field repeated .pg_query.Node plhandler = 3 [json_name = "plhandler"];. + */ + private $plhandler; + + /** + * Generated from protobuf field repeated .pg_query.Node plinline = 4 [json_name = "plinline"];. + */ + private $plinline; + + /** + * Generated from protobuf field repeated .pg_query.Node plvalidator = 5 [json_name = "plvalidator"];. + */ + private $plvalidator; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $replace + * @var string $plname + * @var array $plhandler + * @var array $plinline + * @var array $plvalidator + * @var bool $pltrusted + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node plhandler = 3 [json_name = "plhandler"];. + * + * @return RepeatedField + */ + public function getPlhandler() + { + return $this->plhandler; + } + + /** + * Generated from protobuf field repeated .pg_query.Node plinline = 4 [json_name = "plinline"];. + * + * @return RepeatedField + */ + public function getPlinline() + { + return $this->plinline; + } + + /** + * Generated from protobuf field string plname = 2 [json_name = "plname"];. + * + * @return string + */ + public function getPlname() + { + return $this->plname; + } + + /** + * Generated from protobuf field bool pltrusted = 6 [json_name = "pltrusted"];. + * + * @return bool + */ + public function getPltrusted() + { + return $this->pltrusted; + } + + /** + * Generated from protobuf field repeated .pg_query.Node plvalidator = 5 [json_name = "plvalidator"];. + * + * @return RepeatedField + */ + public function getPlvalidator() + { + return $this->plvalidator; + } + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + * + * @return bool + */ + public function getReplace() + { + return $this->replace; + } + + /** + * Generated from protobuf field repeated .pg_query.Node plhandler = 3 [json_name = "plhandler"];. + * + * @param array $var + * + * @return $this + */ + public function setPlhandler($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->plhandler = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node plinline = 4 [json_name = "plinline"];. + * + * @param array $var + * + * @return $this + */ + public function setPlinline($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->plinline = $arr; + + return $this; + } + + /** + * Generated from protobuf field string plname = 2 [json_name = "plname"];. + * + * @param string $var + * + * @return $this + */ + public function setPlname($var) + { + GPBUtil::checkString($var, true); + $this->plname = $var; + + return $this; + } + + /** + * Generated from protobuf field bool pltrusted = 6 [json_name = "pltrusted"];. + * + * @param bool $var + * + * @return $this + */ + public function setPltrusted($var) + { + GPBUtil::checkBool($var); + $this->pltrusted = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node plvalidator = 5 [json_name = "plvalidator"];. + * + * @param array $var + * + * @return $this + */ + public function setPlvalidator($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->plvalidator = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + * + * @param bool $var + * + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkBool($var); + $this->replace = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePolicyStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePolicyStmt.php new file mode 100644 index 000000000..5f135fba9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePolicyStmt.php @@ -0,0 +1,279 @@ +pg_query.CreatePolicyStmt. + */ +class CreatePolicyStmt extends Message +{ + /** + * Generated from protobuf field string cmd_name = 3 [json_name = "cmd_name"];. + */ + protected $cmd_name = ''; + + /** + * Generated from protobuf field bool permissive = 4 [json_name = "permissive"];. + */ + protected $permissive = false; + + /** + * Generated from protobuf field string policy_name = 1 [json_name = "policy_name"];. + */ + protected $policy_name = ''; + + /** + * Generated from protobuf field .pg_query.Node qual = 6 [json_name = "qual"];. + */ + protected $qual; + + /** + * Generated from protobuf field .pg_query.RangeVar table = 2 [json_name = "table"];. + */ + protected $table; + + /** + * Generated from protobuf field .pg_query.Node with_check = 7 [json_name = "with_check"];. + */ + protected $with_check; + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 5 [json_name = "roles"];. + */ + private $roles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $policy_name + * @var RangeVar $table + * @var string $cmd_name + * @var bool $permissive + * @var array $roles + * @var Node $qual + * @var Node $with_check + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQual() : void + { + $this->qual = null; + } + + public function clearTable() : void + { + $this->table = null; + } + + public function clearWithCheck() : void + { + $this->with_check = null; + } + + /** + * Generated from protobuf field string cmd_name = 3 [json_name = "cmd_name"];. + * + * @return string + */ + public function getCmdName() + { + return $this->cmd_name; + } + + /** + * Generated from protobuf field bool permissive = 4 [json_name = "permissive"];. + * + * @return bool + */ + public function getPermissive() + { + return $this->permissive; + } + + /** + * Generated from protobuf field string policy_name = 1 [json_name = "policy_name"];. + * + * @return string + */ + public function getPolicyName() + { + return $this->policy_name; + } + + /** + * Generated from protobuf field .pg_query.Node qual = 6 [json_name = "qual"];. + * + * @return null|Node + */ + public function getQual() + { + return $this->qual; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 5 [json_name = "roles"];. + * + * @return RepeatedField + */ + public function getRoles() + { + return $this->roles; + } + + /** + * Generated from protobuf field .pg_query.RangeVar table = 2 [json_name = "table"];. + * + * @return null|RangeVar + */ + public function getTable() + { + return $this->table; + } + + /** + * Generated from protobuf field .pg_query.Node with_check = 7 [json_name = "with_check"];. + * + * @return null|Node + */ + public function getWithCheck() + { + return $this->with_check; + } + + public function hasQual() + { + return isset($this->qual); + } + + public function hasTable() + { + return isset($this->table); + } + + public function hasWithCheck() + { + return isset($this->with_check); + } + + /** + * Generated from protobuf field string cmd_name = 3 [json_name = "cmd_name"];. + * + * @param string $var + * + * @return $this + */ + public function setCmdName($var) + { + GPBUtil::checkString($var, true); + $this->cmd_name = $var; + + return $this; + } + + /** + * Generated from protobuf field bool permissive = 4 [json_name = "permissive"];. + * + * @param bool $var + * + * @return $this + */ + public function setPermissive($var) + { + GPBUtil::checkBool($var); + $this->permissive = $var; + + return $this; + } + + /** + * Generated from protobuf field string policy_name = 1 [json_name = "policy_name"];. + * + * @param string $var + * + * @return $this + */ + public function setPolicyName($var) + { + GPBUtil::checkString($var, true); + $this->policy_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node qual = 6 [json_name = "qual"];. + * + * @param Node $var + * + * @return $this + */ + public function setQual($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->qual = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 5 [json_name = "roles"];. + * + * @param array $var + * + * @return $this + */ + public function setRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->roles = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar table = 2 [json_name = "table"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setTable($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->table = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node with_check = 7 [json_name = "with_check"];. + * + * @param Node $var + * + * @return $this + */ + public function setWithCheck($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->with_check = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePublicationStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePublicationStmt.php new file mode 100644 index 000000000..30d393a65 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatePublicationStmt.php @@ -0,0 +1,156 @@ +pg_query.CreatePublicationStmt. + */ +class CreatePublicationStmt extends Message +{ + /** + * Generated from protobuf field bool for_all_tables = 4 [json_name = "for_all_tables"];. + */ + protected $for_all_tables = false; + + /** + * Generated from protobuf field string pubname = 1 [json_name = "pubname"];. + */ + protected $pubname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"];. + */ + private $pubobjects; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $pubname + * @var array $options + * @var array $pubobjects + * @var bool $for_all_tables + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool for_all_tables = 4 [json_name = "for_all_tables"];. + * + * @return bool + */ + public function getForAllTables() + { + return $this->for_all_tables; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string pubname = 1 [json_name = "pubname"];. + * + * @return string + */ + public function getPubname() + { + return $this->pubname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"];. + * + * @return RepeatedField + */ + public function getPubobjects() + { + return $this->pubobjects; + } + + /** + * Generated from protobuf field bool for_all_tables = 4 [json_name = "for_all_tables"];. + * + * @param bool $var + * + * @return $this + */ + public function setForAllTables($var) + { + GPBUtil::checkBool($var); + $this->for_all_tables = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string pubname = 1 [json_name = "pubname"];. + * + * @param string $var + * + * @return $this + */ + public function setPubname($var) + { + GPBUtil::checkString($var, true); + $this->pubname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node pubobjects = 3 [json_name = "pubobjects"];. + * + * @param array $var + * + * @return $this + */ + public function setPubobjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->pubobjects = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateRangeStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateRangeStmt.php new file mode 100644 index 000000000..c04b59bf2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateRangeStmt.php @@ -0,0 +1,94 @@ +pg_query.CreateRangeStmt. + */ +class CreateRangeStmt extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node params = 2 [json_name = "params"];. + */ + private $params; + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + */ + private $type_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $type_name + * @var array $params + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node params = 2 [json_name = "params"];. + * + * @return RepeatedField + */ + public function getParams() + { + return $this->params; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + * + * @return RepeatedField + */ + public function getTypeName() + { + return $this->type_name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node params = 2 [json_name = "params"];. + * + * @param array $var + * + * @return $this + */ + public function setParams($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->params = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node type_name = 1 [json_name = "typeName"];. + * + * @param array $var + * + * @return $this + */ + public function setTypeName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->type_name = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateRoleStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateRoleStmt.php new file mode 100644 index 000000000..beb93350b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateRoleStmt.php @@ -0,0 +1,125 @@ +pg_query.CreateRoleStmt. + */ +class CreateRoleStmt extends Message +{ + /** + * Generated from protobuf field string role = 2 [json_name = "role"];. + */ + protected $role = ''; + + /** + * Generated from protobuf field .pg_query.RoleStmtType stmt_type = 1 [json_name = "stmt_type"];. + */ + protected $stmt_type = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $stmt_type + * @var string $role + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string role = 2 [json_name = "role"];. + * + * @return string + */ + public function getRole() + { + return $this->role; + } + + /** + * Generated from protobuf field .pg_query.RoleStmtType stmt_type = 1 [json_name = "stmt_type"];. + * + * @return int + */ + public function getStmtType() + { + return $this->stmt_type; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string role = 2 [json_name = "role"];. + * + * @param string $var + * + * @return $this + */ + public function setRole($var) + { + GPBUtil::checkString($var, true); + $this->role = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleStmtType stmt_type = 1 [json_name = "stmt_type"];. + * + * @param int $var + * + * @return $this + */ + public function setStmtType($var) + { + GPBUtil::checkEnum($var, RoleStmtType::class); + $this->stmt_type = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSchemaStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSchemaStmt.php new file mode 100644 index 000000000..b2b4387cf --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSchemaStmt.php @@ -0,0 +1,166 @@ +pg_query.CreateSchemaStmt. + */ +class CreateSchemaStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.RoleSpec authrole = 2 [json_name = "authrole"];. + */ + protected $authrole; + + /** + * Generated from protobuf field bool if_not_exists = 4 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field string schemaname = 1 [json_name = "schemaname"];. + */ + protected $schemaname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node schema_elts = 3 [json_name = "schemaElts"];. + */ + private $schema_elts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $schemaname + * @var RoleSpec $authrole + * @var array $schema_elts + * @var bool $if_not_exists + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAuthrole() : void + { + $this->authrole = null; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec authrole = 2 [json_name = "authrole"];. + * + * @return null|RoleSpec + */ + public function getAuthrole() + { + return $this->authrole; + } + + /** + * Generated from protobuf field bool if_not_exists = 4 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node schema_elts = 3 [json_name = "schemaElts"];. + * + * @return RepeatedField + */ + public function getSchemaElts() + { + return $this->schema_elts; + } + + /** + * Generated from protobuf field string schemaname = 1 [json_name = "schemaname"];. + * + * @return string + */ + public function getSchemaname() + { + return $this->schemaname; + } + + public function hasAuthrole() + { + return isset($this->authrole); + } + + /** + * Generated from protobuf field .pg_query.RoleSpec authrole = 2 [json_name = "authrole"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setAuthrole($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->authrole = $var; + + return $this; + } + + /** + * Generated from protobuf field bool if_not_exists = 4 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node schema_elts = 3 [json_name = "schemaElts"];. + * + * @param array $var + * + * @return $this + */ + public function setSchemaElts($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->schema_elts = $arr; + + return $this; + } + + /** + * Generated from protobuf field string schemaname = 1 [json_name = "schemaname"];. + * + * @param string $var + * + * @return $this + */ + public function setSchemaname($var) + { + GPBUtil::checkString($var, true); + $this->schemaname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSeqStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSeqStmt.php new file mode 100644 index 000000000..6925a9ec0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSeqStmt.php @@ -0,0 +1,197 @@ +pg_query.CreateSeqStmt. + */ +class CreateSeqStmt extends Message +{ + /** + * Generated from protobuf field bool for_identity = 4 [json_name = "for_identity"];. + */ + protected $for_identity = false; + + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field uint32 owner_id = 3 [json_name = "ownerId"];. + */ + protected $owner_id = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar sequence = 1 [json_name = "sequence"];. + */ + protected $sequence; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $sequence + * @var array $options + * @var int $owner_id + * @var bool $for_identity + * @var bool $if_not_exists + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearSequence() : void + { + $this->sequence = null; + } + + /** + * Generated from protobuf field bool for_identity = 4 [json_name = "for_identity"];. + * + * @return bool + */ + public function getForIdentity() + { + return $this->for_identity; + } + + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field uint32 owner_id = 3 [json_name = "ownerId"];. + * + * @return int + */ + public function getOwnerId() + { + return $this->owner_id; + } + + /** + * Generated from protobuf field .pg_query.RangeVar sequence = 1 [json_name = "sequence"];. + * + * @return null|RangeVar + */ + public function getSequence() + { + return $this->sequence; + } + + public function hasSequence() + { + return isset($this->sequence); + } + + /** + * Generated from protobuf field bool for_identity = 4 [json_name = "for_identity"];. + * + * @param bool $var + * + * @return $this + */ + public function setForIdentity($var) + { + GPBUtil::checkBool($var); + $this->for_identity = $var; + + return $this; + } + + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 owner_id = 3 [json_name = "ownerId"];. + * + * @param int $var + * + * @return $this + */ + public function setOwnerId($var) + { + GPBUtil::checkUint32($var); + $this->owner_id = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar sequence = 1 [json_name = "sequence"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setSequence($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->sequence = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateStatsStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateStatsStmt.php new file mode 100644 index 000000000..552c847b2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateStatsStmt.php @@ -0,0 +1,249 @@ +pg_query.CreateStatsStmt. + */ +class CreateStatsStmt extends Message +{ + /** + * Generated from protobuf field bool if_not_exists = 7 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field string stxcomment = 5 [json_name = "stxcomment"];. + */ + protected $stxcomment = ''; + + /** + * Generated from protobuf field bool transformed = 6 [json_name = "transformed"];. + */ + protected $transformed = false; + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 1 [json_name = "defnames"];. + */ + private $defnames; + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 3 [json_name = "exprs"];. + */ + private $exprs; + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 4 [json_name = "relations"];. + */ + private $relations; + + /** + * Generated from protobuf field repeated .pg_query.Node stat_types = 2 [json_name = "stat_types"];. + */ + private $stat_types; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $defnames + * @var array $stat_types + * @var array $exprs + * @var array $relations + * @var string $stxcomment + * @var bool $transformed + * @var bool $if_not_exists + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 1 [json_name = "defnames"];. + * + * @return RepeatedField + */ + public function getDefnames() + { + return $this->defnames; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 3 [json_name = "exprs"];. + * + * @return RepeatedField + */ + public function getExprs() + { + return $this->exprs; + } + + /** + * Generated from protobuf field bool if_not_exists = 7 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 4 [json_name = "relations"];. + * + * @return RepeatedField + */ + public function getRelations() + { + return $this->relations; + } + + /** + * Generated from protobuf field repeated .pg_query.Node stat_types = 2 [json_name = "stat_types"];. + * + * @return RepeatedField + */ + public function getStatTypes() + { + return $this->stat_types; + } + + /** + * Generated from protobuf field string stxcomment = 5 [json_name = "stxcomment"];. + * + * @return string + */ + public function getStxcomment() + { + return $this->stxcomment; + } + + /** + * Generated from protobuf field bool transformed = 6 [json_name = "transformed"];. + * + * @return bool + */ + public function getTransformed() + { + return $this->transformed; + } + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 1 [json_name = "defnames"];. + * + * @param array $var + * + * @return $this + */ + public function setDefnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->defnames = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 3 [json_name = "exprs"];. + * + * @param array $var + * + * @return $this + */ + public function setExprs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->exprs = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool if_not_exists = 7 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 4 [json_name = "relations"];. + * + * @param array $var + * + * @return $this + */ + public function setRelations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->relations = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node stat_types = 2 [json_name = "stat_types"];. + * + * @param array $var + * + * @return $this + */ + public function setStatTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->stat_types = $arr; + + return $this; + } + + /** + * Generated from protobuf field string stxcomment = 5 [json_name = "stxcomment"];. + * + * @param string $var + * + * @return $this + */ + public function setStxcomment($var) + { + GPBUtil::checkString($var, true); + $this->stxcomment = $var; + + return $this; + } + + /** + * Generated from protobuf field bool transformed = 6 [json_name = "transformed"];. + * + * @param bool $var + * + * @return $this + */ + public function setTransformed($var) + { + GPBUtil::checkBool($var); + $this->transformed = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateStmt.php new file mode 100644 index 000000000..3510bcc30 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateStmt.php @@ -0,0 +1,444 @@ +pg_query.CreateStmt. + */ +class CreateStmt extends Message +{ + /** + * Generated from protobuf field string access_method = 11 [json_name = "accessMethod"];. + */ + protected $access_method = ''; + + /** + * Generated from protobuf field bool if_not_exists = 12 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field .pg_query.TypeName of_typename = 6 [json_name = "ofTypename"];. + */ + protected $of_typename; + + /** + * Generated from protobuf field .pg_query.OnCommitAction oncommit = 9 [json_name = "oncommit"];. + */ + protected $oncommit = 0; + + /** + * Generated from protobuf field .pg_query.PartitionBoundSpec partbound = 4 [json_name = "partbound"];. + */ + protected $partbound; + + /** + * Generated from protobuf field .pg_query.PartitionSpec partspec = 5 [json_name = "partspec"];. + */ + protected $partspec; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field string tablespacename = 10 [json_name = "tablespacename"];. + */ + protected $tablespacename = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 7 [json_name = "constraints"];. + */ + private $constraints; + + /** + * Generated from protobuf field repeated .pg_query.Node inh_relations = 3 [json_name = "inhRelations"];. + */ + private $inh_relations; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 8 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node table_elts = 2 [json_name = "tableElts"];. + */ + private $table_elts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var array $table_elts + * @var array $inh_relations + * @var PartitionBoundSpec $partbound + * @var PartitionSpec $partspec + * @var TypeName $of_typename + * @var array $constraints + * @var array $options + * @var int $oncommit + * @var string $tablespacename + * @var string $access_method + * @var bool $if_not_exists + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearOfTypename() : void + { + $this->of_typename = null; + } + + public function clearPartbound() : void + { + $this->partbound = null; + } + + public function clearPartspec() : void + { + $this->partspec = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field string access_method = 11 [json_name = "accessMethod"];. + * + * @return string + */ + public function getAccessMethod() + { + return $this->access_method; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 7 [json_name = "constraints"];. + * + * @return RepeatedField + */ + public function getConstraints() + { + return $this->constraints; + } + + /** + * Generated from protobuf field bool if_not_exists = 12 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node inh_relations = 3 [json_name = "inhRelations"];. + * + * @return RepeatedField + */ + public function getInhRelations() + { + return $this->inh_relations; + } + + /** + * Generated from protobuf field .pg_query.TypeName of_typename = 6 [json_name = "ofTypename"];. + * + * @return null|TypeName + */ + public function getOfTypename() + { + return $this->of_typename; + } + + /** + * Generated from protobuf field .pg_query.OnCommitAction oncommit = 9 [json_name = "oncommit"];. + * + * @return int + */ + public function getOncommit() + { + return $this->oncommit; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 8 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.PartitionBoundSpec partbound = 4 [json_name = "partbound"];. + * + * @return null|PartitionBoundSpec + */ + public function getPartbound() + { + return $this->partbound; + } + + /** + * Generated from protobuf field .pg_query.PartitionSpec partspec = 5 [json_name = "partspec"];. + * + * @return null|PartitionSpec + */ + public function getPartspec() + { + return $this->partspec; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field repeated .pg_query.Node table_elts = 2 [json_name = "tableElts"];. + * + * @return RepeatedField + */ + public function getTableElts() + { + return $this->table_elts; + } + + /** + * Generated from protobuf field string tablespacename = 10 [json_name = "tablespacename"];. + * + * @return string + */ + public function getTablespacename() + { + return $this->tablespacename; + } + + public function hasOfTypename() + { + return isset($this->of_typename); + } + + public function hasPartbound() + { + return isset($this->partbound); + } + + public function hasPartspec() + { + return isset($this->partspec); + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field string access_method = 11 [json_name = "accessMethod"];. + * + * @param string $var + * + * @return $this + */ + public function setAccessMethod($var) + { + GPBUtil::checkString($var, true); + $this->access_method = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraints = 7 [json_name = "constraints"];. + * + * @param array $var + * + * @return $this + */ + public function setConstraints($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->constraints = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool if_not_exists = 12 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node inh_relations = 3 [json_name = "inhRelations"];. + * + * @param array $var + * + * @return $this + */ + public function setInhRelations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->inh_relations = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName of_typename = 6 [json_name = "ofTypename"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setOfTypename($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->of_typename = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OnCommitAction oncommit = 9 [json_name = "oncommit"];. + * + * @param int $var + * + * @return $this + */ + public function setOncommit($var) + { + GPBUtil::checkEnum($var, OnCommitAction::class); + $this->oncommit = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 8 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PartitionBoundSpec partbound = 4 [json_name = "partbound"];. + * + * @param PartitionBoundSpec $var + * + * @return $this + */ + public function setPartbound($var) + { + GPBUtil::checkMessage($var, PartitionBoundSpec::class); + $this->partbound = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PartitionSpec partspec = 5 [json_name = "partspec"];. + * + * @param PartitionSpec $var + * + * @return $this + */ + public function setPartspec($var) + { + GPBUtil::checkMessage($var, PartitionSpec::class); + $this->partspec = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node table_elts = 2 [json_name = "tableElts"];. + * + * @param array $var + * + * @return $this + */ + public function setTableElts($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->table_elts = $arr; + + return $this; + } + + /** + * Generated from protobuf field string tablespacename = 10 [json_name = "tablespacename"];. + * + * @param string $var + * + * @return $this + */ + public function setTablespacename($var) + { + GPBUtil::checkString($var, true); + $this->tablespacename = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSubscriptionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSubscriptionStmt.php new file mode 100644 index 000000000..da808116a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateSubscriptionStmt.php @@ -0,0 +1,156 @@ +pg_query.CreateSubscriptionStmt. + */ +class CreateSubscriptionStmt extends Message +{ + /** + * Generated from protobuf field string conninfo = 2 [json_name = "conninfo"];. + */ + protected $conninfo = ''; + + /** + * Generated from protobuf field string subname = 1 [json_name = "subname"];. + */ + protected $subname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node publication = 3 [json_name = "publication"];. + */ + private $publication; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $subname + * @var string $conninfo + * @var array $publication + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string conninfo = 2 [json_name = "conninfo"];. + * + * @return string + */ + public function getConninfo() + { + return $this->conninfo; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node publication = 3 [json_name = "publication"];. + * + * @return RepeatedField + */ + public function getPublication() + { + return $this->publication; + } + + /** + * Generated from protobuf field string subname = 1 [json_name = "subname"];. + * + * @return string + */ + public function getSubname() + { + return $this->subname; + } + + /** + * Generated from protobuf field string conninfo = 2 [json_name = "conninfo"];. + * + * @param string $var + * + * @return $this + */ + public function setConninfo($var) + { + GPBUtil::checkString($var, true); + $this->conninfo = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node publication = 3 [json_name = "publication"];. + * + * @param array $var + * + * @return $this + */ + public function setPublication($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->publication = $arr; + + return $this; + } + + /** + * Generated from protobuf field string subname = 1 [json_name = "subname"];. + * + * @param string $var + * + * @return $this + */ + public function setSubname($var) + { + GPBUtil::checkString($var, true); + $this->subname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTableAsStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTableAsStmt.php new file mode 100644 index 000000000..5467d407e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTableAsStmt.php @@ -0,0 +1,206 @@ +pg_query.CreateTableAsStmt. + */ +class CreateTableAsStmt extends Message +{ + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field .pg_query.IntoClause into = 2 [json_name = "into"];. + */ + protected $into; + + /** + * Generated from protobuf field bool is_select_into = 4 [json_name = "is_select_into"];. + */ + protected $is_select_into = false; + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + */ + protected $objtype = 0; + + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + */ + protected $query; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $query + * @var IntoClause $into + * @var int $objtype + * @var bool $is_select_into + * @var bool $if_not_exists + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearInto() : void + { + $this->into = null; + } + + public function clearQuery() : void + { + $this->query = null; + } + + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field .pg_query.IntoClause into = 2 [json_name = "into"];. + * + * @return null|IntoClause + */ + public function getInto() + { + return $this->into; + } + + /** + * Generated from protobuf field bool is_select_into = 4 [json_name = "is_select_into"];. + * + * @return bool + */ + public function getIsSelectInto() + { + return $this->is_select_into; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + * + * @return int + */ + public function getObjtype() + { + return $this->objtype; + } + + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + * + * @return null|Node + */ + public function getQuery() + { + return $this->query; + } + + public function hasInto() + { + return isset($this->into); + } + + public function hasQuery() + { + return isset($this->query); + } + + /** + * Generated from protobuf field bool if_not_exists = 5 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.IntoClause into = 2 [json_name = "into"];. + * + * @param IntoClause $var + * + * @return $this + */ + public function setInto($var) + { + GPBUtil::checkMessage($var, IntoClause::class); + $this->into = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_select_into = 4 [json_name = "is_select_into"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsSelectInto($var) + { + GPBUtil::checkBool($var); + $this->is_select_into = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + * + * @param int $var + * + * @return $this + */ + public function setObjtype($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->objtype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->query = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTableSpaceStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTableSpaceStmt.php new file mode 100644 index 000000000..6709bdc25 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTableSpaceStmt.php @@ -0,0 +1,166 @@ +pg_query.CreateTableSpaceStmt. + */ +class CreateTableSpaceStmt extends Message +{ + /** + * Generated from protobuf field string location = 3 [json_name = "location"];. + */ + protected $location = ''; + + /** + * Generated from protobuf field .pg_query.RoleSpec owner = 2 [json_name = "owner"];. + */ + protected $owner; + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + */ + protected $tablespacename = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $tablespacename + * @var RoleSpec $owner + * @var string $location + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearOwner() : void + { + $this->owner = null; + } + + /** + * Generated from protobuf field string location = 3 [json_name = "location"];. + * + * @return string + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec owner = 2 [json_name = "owner"];. + * + * @return null|RoleSpec + */ + public function getOwner() + { + return $this->owner; + } + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + * + * @return string + */ + public function getTablespacename() + { + return $this->tablespacename; + } + + public function hasOwner() + { + return isset($this->owner); + } + + /** + * Generated from protobuf field string location = 3 [json_name = "location"];. + * + * @param string $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkString($var, true); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec owner = 2 [json_name = "owner"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setOwner($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->owner = $var; + + return $this; + } + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + * + * @param string $var + * + * @return $this + */ + public function setTablespacename($var) + { + GPBUtil::checkString($var, true); + $this->tablespacename = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTransformStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTransformStmt.php new file mode 100644 index 000000000..8c0e84cc6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTransformStmt.php @@ -0,0 +1,216 @@ +pg_query.CreateTransformStmt. + */ +class CreateTransformStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.ObjectWithArgs fromsql = 4 [json_name = "fromsql"];. + */ + protected $fromsql; + + /** + * Generated from protobuf field string lang = 3 [json_name = "lang"];. + */ + protected $lang = ''; + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + */ + protected $replace = false; + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs tosql = 5 [json_name = "tosql"];. + */ + protected $tosql; + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "type_name"];. + */ + protected $type_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $replace + * @var TypeName $type_name + * @var string $lang + * @var ObjectWithArgs $fromsql + * @var ObjectWithArgs $tosql + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFromsql() : void + { + $this->fromsql = null; + } + + public function clearTosql() : void + { + $this->tosql = null; + } + + public function clearTypeName() : void + { + $this->type_name = null; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs fromsql = 4 [json_name = "fromsql"];. + * + * @return null|ObjectWithArgs + */ + public function getFromsql() + { + return $this->fromsql; + } + + /** + * Generated from protobuf field string lang = 3 [json_name = "lang"];. + * + * @return string + */ + public function getLang() + { + return $this->lang; + } + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + * + * @return bool + */ + public function getReplace() + { + return $this->replace; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs tosql = 5 [json_name = "tosql"];. + * + * @return null|ObjectWithArgs + */ + public function getTosql() + { + return $this->tosql; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "type_name"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->type_name; + } + + public function hasFromsql() + { + return isset($this->fromsql); + } + + public function hasTosql() + { + return isset($this->tosql); + } + + public function hasTypeName() + { + return isset($this->type_name); + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs fromsql = 4 [json_name = "fromsql"];. + * + * @param ObjectWithArgs $var + * + * @return $this + */ + public function setFromsql($var) + { + GPBUtil::checkMessage($var, ObjectWithArgs::class); + $this->fromsql = $var; + + return $this; + } + + /** + * Generated from protobuf field string lang = 3 [json_name = "lang"];. + * + * @param string $var + * + * @return $this + */ + public function setLang($var) + { + GPBUtil::checkString($var, true); + $this->lang = $var; + + return $this; + } + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + * + * @param bool $var + * + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkBool($var); + $this->replace = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs tosql = 5 [json_name = "tosql"];. + * + * @param ObjectWithArgs $var + * + * @return $this + */ + public function setTosql($var) + { + GPBUtil::checkMessage($var, ObjectWithArgs::class); + $this->tosql = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "type_name"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->type_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTrigStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTrigStmt.php new file mode 100644 index 000000000..48a6f4627 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateTrigStmt.php @@ -0,0 +1,527 @@ +pg_query.CreateTrigStmt. + */ +class CreateTrigStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.RangeVar constrrel = 15 [json_name = "constrrel"];. + */ + protected $constrrel; + + /** + * Generated from protobuf field bool deferrable = 13 [json_name = "deferrable"];. + */ + protected $deferrable = false; + + /** + * Generated from protobuf field int32 events = 9 [json_name = "events"];. + */ + protected $events = 0; + + /** + * Generated from protobuf field bool initdeferred = 14 [json_name = "initdeferred"];. + */ + protected $initdeferred = false; + + /** + * Generated from protobuf field bool isconstraint = 2 [json_name = "isconstraint"];. + */ + protected $isconstraint = false; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 4 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + */ + protected $replace = false; + + /** + * Generated from protobuf field bool row = 7 [json_name = "row"];. + */ + protected $row = false; + + /** + * Generated from protobuf field int32 timing = 8 [json_name = "timing"];. + */ + protected $timing = 0; + + /** + * Generated from protobuf field string trigname = 3 [json_name = "trigname"];. + */ + protected $trigname = ''; + + /** + * Generated from protobuf field .pg_query.Node when_clause = 11 [json_name = "whenClause"];. + */ + protected $when_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 10 [json_name = "columns"];. + */ + private $columns; + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 5 [json_name = "funcname"];. + */ + private $funcname; + + /** + * Generated from protobuf field repeated .pg_query.Node transition_rels = 12 [json_name = "transitionRels"];. + */ + private $transition_rels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $replace + * @var bool $isconstraint + * @var string $trigname + * @var RangeVar $relation + * @var array $funcname + * @var array $args + * @var bool $row + * @var int $timing + * @var int $events + * @var array $columns + * @var Node $when_clause + * @var array $transition_rels + * @var bool $deferrable + * @var bool $initdeferred + * @var RangeVar $constrrel + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearConstrrel() : void + { + $this->constrrel = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearWhenClause() : void + { + $this->when_clause = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 10 [json_name = "columns"];. + * + * @return RepeatedField + */ + public function getColumns() + { + return $this->columns; + } + + /** + * Generated from protobuf field .pg_query.RangeVar constrrel = 15 [json_name = "constrrel"];. + * + * @return null|RangeVar + */ + public function getConstrrel() + { + return $this->constrrel; + } + + /** + * Generated from protobuf field bool deferrable = 13 [json_name = "deferrable"];. + * + * @return bool + */ + public function getDeferrable() + { + return $this->deferrable; + } + + /** + * Generated from protobuf field int32 events = 9 [json_name = "events"];. + * + * @return int + */ + public function getEvents() + { + return $this->events; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 5 [json_name = "funcname"];. + * + * @return RepeatedField + */ + public function getFuncname() + { + return $this->funcname; + } + + /** + * Generated from protobuf field bool initdeferred = 14 [json_name = "initdeferred"];. + * + * @return bool + */ + public function getInitdeferred() + { + return $this->initdeferred; + } + + /** + * Generated from protobuf field bool isconstraint = 2 [json_name = "isconstraint"];. + * + * @return bool + */ + public function getIsconstraint() + { + return $this->isconstraint; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 4 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + * + * @return bool + */ + public function getReplace() + { + return $this->replace; + } + + /** + * Generated from protobuf field bool row = 7 [json_name = "row"];. + * + * @return bool + */ + public function getRow() + { + return $this->row; + } + + /** + * Generated from protobuf field int32 timing = 8 [json_name = "timing"];. + * + * @return int + */ + public function getTiming() + { + return $this->timing; + } + + /** + * Generated from protobuf field repeated .pg_query.Node transition_rels = 12 [json_name = "transitionRels"];. + * + * @return RepeatedField + */ + public function getTransitionRels() + { + return $this->transition_rels; + } + + /** + * Generated from protobuf field string trigname = 3 [json_name = "trigname"];. + * + * @return string + */ + public function getTrigname() + { + return $this->trigname; + } + + /** + * Generated from protobuf field .pg_query.Node when_clause = 11 [json_name = "whenClause"];. + * + * @return null|Node + */ + public function getWhenClause() + { + return $this->when_clause; + } + + public function hasConstrrel() + { + return isset($this->constrrel); + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasWhenClause() + { + return isset($this->when_clause); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 10 [json_name = "columns"];. + * + * @param array $var + * + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->columns = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar constrrel = 15 [json_name = "constrrel"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setConstrrel($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->constrrel = $var; + + return $this; + } + + /** + * Generated from protobuf field bool deferrable = 13 [json_name = "deferrable"];. + * + * @param bool $var + * + * @return $this + */ + public function setDeferrable($var) + { + GPBUtil::checkBool($var); + $this->deferrable = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 events = 9 [json_name = "events"];. + * + * @param int $var + * + * @return $this + */ + public function setEvents($var) + { + GPBUtil::checkInt32($var); + $this->events = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 5 [json_name = "funcname"];. + * + * @param array $var + * + * @return $this + */ + public function setFuncname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->funcname = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool initdeferred = 14 [json_name = "initdeferred"];. + * + * @param bool $var + * + * @return $this + */ + public function setInitdeferred($var) + { + GPBUtil::checkBool($var); + $this->initdeferred = $var; + + return $this; + } + + /** + * Generated from protobuf field bool isconstraint = 2 [json_name = "isconstraint"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsconstraint($var) + { + GPBUtil::checkBool($var); + $this->isconstraint = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 4 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field bool replace = 1 [json_name = "replace"];. + * + * @param bool $var + * + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkBool($var); + $this->replace = $var; + + return $this; + } + + /** + * Generated from protobuf field bool row = 7 [json_name = "row"];. + * + * @param bool $var + * + * @return $this + */ + public function setRow($var) + { + GPBUtil::checkBool($var); + $this->row = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 timing = 8 [json_name = "timing"];. + * + * @param int $var + * + * @return $this + */ + public function setTiming($var) + { + GPBUtil::checkInt32($var); + $this->timing = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node transition_rels = 12 [json_name = "transitionRels"];. + * + * @param array $var + * + * @return $this + */ + public function setTransitionRels($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->transition_rels = $arr; + + return $this; + } + + /** + * Generated from protobuf field string trigname = 3 [json_name = "trigname"];. + * + * @param string $var + * + * @return $this + */ + public function setTrigname($var) + { + GPBUtil::checkString($var, true); + $this->trigname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node when_clause = 11 [json_name = "whenClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhenClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->when_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateUserMappingStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateUserMappingStmt.php new file mode 100644 index 000000000..cff74f037 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreateUserMappingStmt.php @@ -0,0 +1,166 @@ +pg_query.CreateUserMappingStmt. + */ +class CreateUserMappingStmt extends Message +{ + /** + * Generated from protobuf field bool if_not_exists = 3 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + */ + protected $servername = ''; + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + */ + protected $user; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RoleSpec $user + * @var string $servername + * @var bool $if_not_exists + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearUser() : void + { + $this->user = null; + } + + /** + * Generated from protobuf field bool if_not_exists = 3 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + * + * @return string + */ + public function getServername() + { + return $this->servername; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + * + * @return null|RoleSpec + */ + public function getUser() + { + return $this->user; + } + + public function hasUser() + { + return isset($this->user); + } + + /** + * Generated from protobuf field bool if_not_exists = 3 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + * + * @param string $var + * + * @return $this + */ + public function setServername($var) + { + GPBUtil::checkString($var, true); + $this->servername = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->user = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatedbStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatedbStmt.php new file mode 100644 index 000000000..997ceb62a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CreatedbStmt.php @@ -0,0 +1,94 @@ +pg_query.CreatedbStmt. + */ +class CreatedbStmt extends Message +{ + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + */ + protected $dbname = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $dbname + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @return string + */ + public function getDbname() + { + return $this->dbname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @param string $var + * + * @return $this + */ + public function setDbname($var) + { + GPBUtil::checkString($var, true); + $this->dbname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CurrentOfExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CurrentOfExpr.php new file mode 100644 index 000000000..a97cf9187 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/CurrentOfExpr.php @@ -0,0 +1,165 @@ +pg_query.CurrentOfExpr. + */ +class CurrentOfExpr extends Message +{ + /** + * Generated from protobuf field string cursor_name = 3 [json_name = "cursor_name"];. + */ + protected $cursor_name = ''; + + /** + * Generated from protobuf field int32 cursor_param = 4 [json_name = "cursor_param"];. + */ + protected $cursor_param = 0; + + /** + * Generated from protobuf field uint32 cvarno = 2 [json_name = "cvarno"];. + */ + protected $cvarno = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $cvarno + * @var string $cursor_name + * @var int $cursor_param + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field string cursor_name = 3 [json_name = "cursor_name"];. + * + * @return string + */ + public function getCursorName() + { + return $this->cursor_name; + } + + /** + * Generated from protobuf field int32 cursor_param = 4 [json_name = "cursor_param"];. + * + * @return int + */ + public function getCursorParam() + { + return $this->cursor_param; + } + + /** + * Generated from protobuf field uint32 cvarno = 2 [json_name = "cvarno"];. + * + * @return int + */ + public function getCvarno() + { + return $this->cvarno; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field string cursor_name = 3 [json_name = "cursor_name"];. + * + * @param string $var + * + * @return $this + */ + public function setCursorName($var) + { + GPBUtil::checkString($var, true); + $this->cursor_name = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 cursor_param = 4 [json_name = "cursor_param"];. + * + * @param int $var + * + * @return $this + */ + public function setCursorParam($var) + { + GPBUtil::checkInt32($var); + $this->cursor_param = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 cvarno = 2 [json_name = "cvarno"];. + * + * @param int $var + * + * @return $this + */ + public function setCvarno($var) + { + GPBUtil::checkUint32($var); + $this->cvarno = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeallocateStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeallocateStmt.php new file mode 100644 index 000000000..89aa8db07 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeallocateStmt.php @@ -0,0 +1,124 @@ +pg_query.DeallocateStmt. + */ +class DeallocateStmt extends Message +{ + /** + * Generated from protobuf field bool isall = 2 [json_name = "isall"];. + */ + protected $isall = false; + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var bool $isall + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool isall = 2 [json_name = "isall"];. + * + * @return bool + */ + public function getIsall() + { + return $this->isall; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field bool isall = 2 [json_name = "isall"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsall($var) + { + GPBUtil::checkBool($var); + $this->isall = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeclareCursorStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeclareCursorStmt.php new file mode 100644 index 000000000..29d4e5273 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeclareCursorStmt.php @@ -0,0 +1,134 @@ +pg_query.DeclareCursorStmt. + */ +class DeclareCursorStmt extends Message +{ + /** + * Generated from protobuf field int32 options = 2 [json_name = "options"];. + */ + protected $options = 0; + + /** + * Generated from protobuf field string portalname = 1 [json_name = "portalname"];. + */ + protected $portalname = ''; + + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + */ + protected $query; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $portalname + * @var int $options + * @var Node $query + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQuery() : void + { + $this->query = null; + } + + /** + * Generated from protobuf field int32 options = 2 [json_name = "options"];. + * + * @return int + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string portalname = 1 [json_name = "portalname"];. + * + * @return string + */ + public function getPortalname() + { + return $this->portalname; + } + + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + * + * @return null|Node + */ + public function getQuery() + { + return $this->query; + } + + public function hasQuery() + { + return isset($this->query); + } + + /** + * Generated from protobuf field int32 options = 2 [json_name = "options"];. + * + * @param int $var + * + * @return $this + */ + public function setOptions($var) + { + GPBUtil::checkInt32($var); + $this->options = $var; + + return $this; + } + + /** + * Generated from protobuf field string portalname = 1 [json_name = "portalname"];. + * + * @param string $var + * + * @return $this + */ + public function setPortalname($var) + { + GPBUtil::checkString($var, true); + $this->portalname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->query = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefElem.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefElem.php new file mode 100644 index 000000000..aaef01baa --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefElem.php @@ -0,0 +1,196 @@ +pg_query.DefElem. + */ +class DefElem extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 3 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field .pg_query.DefElemAction defaction = 4 [json_name = "defaction"];. + */ + protected $defaction = 0; + + /** + * Generated from protobuf field string defname = 2 [json_name = "defname"];. + */ + protected $defname = ''; + + /** + * Generated from protobuf field string defnamespace = 1 [json_name = "defnamespace"];. + */ + protected $defnamespace = ''; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $defnamespace + * @var string $defname + * @var Node $arg + * @var int $defaction + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 3 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field .pg_query.DefElemAction defaction = 4 [json_name = "defaction"];. + * + * @return int + */ + public function getDefaction() + { + return $this->defaction; + } + + /** + * Generated from protobuf field string defname = 2 [json_name = "defname"];. + * + * @return string + */ + public function getDefname() + { + return $this->defname; + } + + /** + * Generated from protobuf field string defnamespace = 1 [json_name = "defnamespace"];. + * + * @return string + */ + public function getDefnamespace() + { + return $this->defnamespace; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + public function hasArg() + { + return isset($this->arg); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 3 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DefElemAction defaction = 4 [json_name = "defaction"];. + * + * @param int $var + * + * @return $this + */ + public function setDefaction($var) + { + GPBUtil::checkEnum($var, DefElemAction::class); + $this->defaction = $var; + + return $this; + } + + /** + * Generated from protobuf field string defname = 2 [json_name = "defname"];. + * + * @param string $var + * + * @return $this + */ + public function setDefname($var) + { + GPBUtil::checkString($var, true); + $this->defname = $var; + + return $this; + } + + /** + * Generated from protobuf field string defnamespace = 1 [json_name = "defnamespace"];. + * + * @param string $var + * + * @return $this + */ + public function setDefnamespace($var) + { + GPBUtil::checkString($var, true); + $this->defnamespace = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefElemAction.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefElemAction.php new file mode 100644 index 000000000..f9f364d01 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefElemAction.php @@ -0,0 +1,75 @@ +pg_query.DefElemAction. + */ +class DefElemAction +{ + /** + * Generated from protobuf enum DEF_ELEM_ACTION_UNDEFINED = 0;. + */ + public const DEF_ELEM_ACTION_UNDEFINED = 0; + + /** + * Generated from protobuf enum DEFELEM_ADD = 3;. + */ + public const DEFELEM_ADD = 3; + + /** + * Generated from protobuf enum DEFELEM_DROP = 4;. + */ + public const DEFELEM_DROP = 4; + + /** + * Generated from protobuf enum DEFELEM_SET = 2;. + */ + public const DEFELEM_SET = 2; + + /** + * Generated from protobuf enum DEFELEM_UNSPEC = 1;. + */ + public const DEFELEM_UNSPEC = 1; + + private static $valueToName = [ + self::DEF_ELEM_ACTION_UNDEFINED => 'DEF_ELEM_ACTION_UNDEFINED', + self::DEFELEM_UNSPEC => 'DEFELEM_UNSPEC', + self::DEFELEM_SET => 'DEFELEM_SET', + self::DEFELEM_ADD => 'DEFELEM_ADD', + self::DEFELEM_DROP => 'DEFELEM_DROP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefineStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefineStmt.php new file mode 100644 index 000000000..ddb87ebc3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DefineStmt.php @@ -0,0 +1,249 @@ +pg_query.DefineStmt. + */ +class DefineStmt extends Message +{ + /** + * Generated from protobuf field bool if_not_exists = 6 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field .pg_query.ObjectType kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field bool oldstyle = 2 [json_name = "oldstyle"];. + */ + protected $oldstyle = false; + + /** + * Generated from protobuf field bool replace = 7 [json_name = "replace"];. + */ + protected $replace = false; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 4 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node definition = 5 [json_name = "definition"];. + */ + private $definition; + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 3 [json_name = "defnames"];. + */ + private $defnames; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var bool $oldstyle + * @var array $defnames + * @var array $args + * @var array $definition + * @var bool $if_not_exists + * @var bool $replace + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 4 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field repeated .pg_query.Node definition = 5 [json_name = "definition"];. + * + * @return RepeatedField + */ + public function getDefinition() + { + return $this->definition; + } + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 3 [json_name = "defnames"];. + * + * @return RepeatedField + */ + public function getDefnames() + { + return $this->defnames; + } + + /** + * Generated from protobuf field bool if_not_exists = 6 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field .pg_query.ObjectType kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field bool oldstyle = 2 [json_name = "oldstyle"];. + * + * @return bool + */ + public function getOldstyle() + { + return $this->oldstyle; + } + + /** + * Generated from protobuf field bool replace = 7 [json_name = "replace"];. + * + * @return bool + */ + public function getReplace() + { + return $this->replace; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 4 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node definition = 5 [json_name = "definition"];. + * + * @param array $var + * + * @return $this + */ + public function setDefinition($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->definition = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node defnames = 3 [json_name = "defnames"];. + * + * @param array $var + * + * @return $this + */ + public function setDefnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->defnames = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool if_not_exists = 6 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field bool oldstyle = 2 [json_name = "oldstyle"];. + * + * @param bool $var + * + * @return $this + */ + public function setOldstyle($var) + { + GPBUtil::checkBool($var); + $this->oldstyle = $var; + + return $this; + } + + /** + * Generated from protobuf field bool replace = 7 [json_name = "replace"];. + * + * @param bool $var + * + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkBool($var); + $this->replace = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeleteStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeleteStmt.php new file mode 100644 index 000000000..a73e00c62 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DeleteStmt.php @@ -0,0 +1,217 @@ +pg_query.DeleteStmt. + */ +class DeleteStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 5 [json_name = "withClause"];. + */ + protected $with_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 4 [json_name = "returningList"];. + */ + private $returning_list; + + /** + * Generated from protobuf field repeated .pg_query.Node using_clause = 2 [json_name = "usingClause"];. + */ + private $using_clause; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var array $using_clause + * @var Node $where_clause + * @var array $returning_list + * @var WithClause $with_clause + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + public function clearWithClause() : void + { + $this->with_clause = null; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 4 [json_name = "returningList"];. + * + * @return RepeatedField + */ + public function getReturningList() + { + return $this->returning_list; + } + + /** + * Generated from protobuf field repeated .pg_query.Node using_clause = 2 [json_name = "usingClause"];. + * + * @return RepeatedField + */ + public function getUsingClause() + { + return $this->using_clause; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 5 [json_name = "withClause"];. + * + * @return null|WithClause + */ + public function getWithClause() + { + return $this->with_clause; + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + public function hasWithClause() + { + return isset($this->with_clause); + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 4 [json_name = "returningList"];. + * + * @param array $var + * + * @return $this + */ + public function setReturningList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->returning_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node using_clause = 2 [json_name = "usingClause"];. + * + * @param array $var + * + * @return $this + */ + public function setUsingClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->using_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 5 [json_name = "withClause"];. + * + * @param WithClause $var + * + * @return $this + */ + public function setWithClause($var) + { + GPBUtil::checkMessage($var, WithClause::class); + $this->with_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DiscardMode.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DiscardMode.php new file mode 100644 index 000000000..f3ac49f67 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DiscardMode.php @@ -0,0 +1,75 @@ +pg_query.DiscardMode. + */ +class DiscardMode +{ + /** + * Generated from protobuf enum DISCARD_ALL = 1;. + */ + public const DISCARD_ALL = 1; + + /** + * Generated from protobuf enum DISCARD_MODE_UNDEFINED = 0;. + */ + public const DISCARD_MODE_UNDEFINED = 0; + + /** + * Generated from protobuf enum DISCARD_PLANS = 2;. + */ + public const DISCARD_PLANS = 2; + + /** + * Generated from protobuf enum DISCARD_SEQUENCES = 3;. + */ + public const DISCARD_SEQUENCES = 3; + + /** + * Generated from protobuf enum DISCARD_TEMP = 4;. + */ + public const DISCARD_TEMP = 4; + + private static $valueToName = [ + self::DISCARD_MODE_UNDEFINED => 'DISCARD_MODE_UNDEFINED', + self::DISCARD_ALL => 'DISCARD_ALL', + self::DISCARD_PLANS => 'DISCARD_PLANS', + self::DISCARD_SEQUENCES => 'DISCARD_SEQUENCES', + self::DISCARD_TEMP => 'DISCARD_TEMP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DiscardStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DiscardStmt.php new file mode 100644 index 000000000..0376f197c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DiscardStmt.php @@ -0,0 +1,62 @@ +pg_query.DiscardStmt. + */ +class DiscardStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DiscardMode target = 1 [json_name = "target"];. + */ + protected $target = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $target + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.DiscardMode target = 1 [json_name = "target"];. + * + * @return int + */ + public function getTarget() + { + return $this->target; + } + + /** + * Generated from protobuf field .pg_query.DiscardMode target = 1 [json_name = "target"];. + * + * @param int $var + * + * @return $this + */ + public function setTarget($var) + { + GPBUtil::checkEnum($var, DiscardMode::class); + $this->target = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DistinctExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DistinctExpr.php new file mode 100644 index 000000000..568e9ee97 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DistinctExpr.php @@ -0,0 +1,290 @@ +pg_query.DistinctExpr. + */ +class DistinctExpr extends Message +{ + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + */ + protected $opcollid = 0; + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + */ + protected $opno = 0; + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + */ + protected $opresulttype = 0; + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + */ + protected $opretset = false; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $opno + * @var int $opresulttype + * @var bool $opretset + * @var int $opcollid + * @var int $inputcollid + * @var array $args + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + * + * @return int + */ + public function getOpcollid() + { + return $this->opcollid; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @return int + */ + public function getOpno() + { + return $this->opno; + } + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + * + * @return int + */ + public function getOpresulttype() + { + return $this->opresulttype; + } + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + * + * @return bool + */ + public function getOpretset() + { + return $this->opretset; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setOpcollid($var) + { + GPBUtil::checkUint32($var); + $this->opcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @param int $var + * + * @return $this + */ + public function setOpno($var) + { + GPBUtil::checkUint32($var); + $this->opno = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setOpresulttype($var) + { + GPBUtil::checkUint32($var); + $this->opresulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + * + * @param bool $var + * + * @return $this + */ + public function setOpretset($var) + { + GPBUtil::checkBool($var); + $this->opretset = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DoStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DoStmt.php new file mode 100644 index 000000000..dcc45d964 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DoStmt.php @@ -0,0 +1,63 @@ +pg_query.DoStmt. + */ +class DoStmt extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node args = 1 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $args + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 1 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 1 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropBehavior.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropBehavior.php new file mode 100644 index 000000000..da38affe2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropBehavior.php @@ -0,0 +1,63 @@ +pg_query.DropBehavior. + */ +class DropBehavior +{ + /** + * Generated from protobuf enum DROP_BEHAVIOR_UNDEFINED = 0;. + */ + public const DROP_BEHAVIOR_UNDEFINED = 0; + + /** + * Generated from protobuf enum DROP_CASCADE = 2;. + */ + public const DROP_CASCADE = 2; + + /** + * Generated from protobuf enum DROP_RESTRICT = 1;. + */ + public const DROP_RESTRICT = 1; + + private static $valueToName = [ + self::DROP_BEHAVIOR_UNDEFINED => 'DROP_BEHAVIOR_UNDEFINED', + self::DROP_RESTRICT => 'DROP_RESTRICT', + self::DROP_CASCADE => 'DROP_CASCADE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropOwnedStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropOwnedStmt.php new file mode 100644 index 000000000..5aa31618e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropOwnedStmt.php @@ -0,0 +1,94 @@ +pg_query.DropOwnedStmt. + */ +class DropOwnedStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 2 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + */ + private $roles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $roles + * @var int $behavior + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 2 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + * + * @return RepeatedField + */ + public function getRoles() + { + return $this->roles; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 2 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + * + * @param array $var + * + * @return $this + */ + public function setRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->roles = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropRoleStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropRoleStmt.php new file mode 100644 index 000000000..8273751c8 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropRoleStmt.php @@ -0,0 +1,94 @@ +pg_query.DropRoleStmt. + */ +class DropRoleStmt extends Message +{ + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + */ + private $roles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $roles + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + * + * @return RepeatedField + */ + public function getRoles() + { + return $this->roles; + } + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + * + * @param array $var + * + * @return $this + */ + public function setRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->roles = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropStmt.php new file mode 100644 index 000000000..a470acb1b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropStmt.php @@ -0,0 +1,187 @@ +pg_query.DropStmt. + */ +class DropStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field bool concurrent = 5 [json_name = "concurrent"];. + */ + protected $concurrent = false; + + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field .pg_query.ObjectType remove_type = 2 [json_name = "removeType"];. + */ + protected $remove_type = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node objects = 1 [json_name = "objects"];. + */ + private $objects; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $objects + * @var int $remove_type + * @var int $behavior + * @var bool $missing_ok + * @var bool $concurrent + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field bool concurrent = 5 [json_name = "concurrent"];. + * + * @return bool + */ + public function getConcurrent() + { + return $this->concurrent; + } + + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objects = 1 [json_name = "objects"];. + * + * @return RepeatedField + */ + public function getObjects() + { + return $this->objects; + } + + /** + * Generated from protobuf field .pg_query.ObjectType remove_type = 2 [json_name = "removeType"];. + * + * @return int + */ + public function getRemoveType() + { + return $this->remove_type; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field bool concurrent = 5 [json_name = "concurrent"];. + * + * @param bool $var + * + * @return $this + */ + public function setConcurrent($var) + { + GPBUtil::checkBool($var); + $this->concurrent = $var; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 4 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objects = 1 [json_name = "objects"];. + * + * @param array $var + * + * @return $this + */ + public function setObjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->objects = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType remove_type = 2 [json_name = "removeType"];. + * + * @param int $var + * + * @return $this + */ + public function setRemoveType($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->remove_type = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropSubscriptionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropSubscriptionStmt.php new file mode 100644 index 000000000..cd67aa7b5 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropSubscriptionStmt.php @@ -0,0 +1,124 @@ +pg_query.DropSubscriptionStmt. + */ +class DropSubscriptionStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field string subname = 1 [json_name = "subname"];. + */ + protected $subname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $subname + * @var bool $missing_ok + * @var int $behavior + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field string subname = 1 [json_name = "subname"];. + * + * @return string + */ + public function getSubname() + { + return $this->subname; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field string subname = 1 [json_name = "subname"];. + * + * @param string $var + * + * @return $this + */ + public function setSubname($var) + { + GPBUtil::checkString($var, true); + $this->subname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropTableSpaceStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropTableSpaceStmt.php new file mode 100644 index 000000000..bbf963df6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropTableSpaceStmt.php @@ -0,0 +1,93 @@ +pg_query.DropTableSpaceStmt. + */ +class DropTableSpaceStmt extends Message +{ + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + */ + protected $tablespacename = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $tablespacename + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + * + * @return string + */ + public function getTablespacename() + { + return $this->tablespacename; + } + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field string tablespacename = 1 [json_name = "tablespacename"];. + * + * @param string $var + * + * @return $this + */ + public function setTablespacename($var) + { + GPBUtil::checkString($var, true); + $this->tablespacename = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropUserMappingStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropUserMappingStmt.php new file mode 100644 index 000000000..f24e35a13 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropUserMappingStmt.php @@ -0,0 +1,134 @@ +pg_query.DropUserMappingStmt. + */ +class DropUserMappingStmt extends Message +{ + /** + * Generated from protobuf field bool missing_ok = 3 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + */ + protected $servername = ''; + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + */ + protected $user; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RoleSpec $user + * @var string $servername + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearUser() : void + { + $this->user = null; + } + + /** + * Generated from protobuf field bool missing_ok = 3 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + * + * @return string + */ + public function getServername() + { + return $this->servername; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + * + * @return null|RoleSpec + */ + public function getUser() + { + return $this->user; + } + + public function hasUser() + { + return isset($this->user); + } + + /** + * Generated from protobuf field bool missing_ok = 3 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field string servername = 2 [json_name = "servername"];. + * + * @param string $var + * + * @return $this + */ + public function setServername($var) + { + GPBUtil::checkString($var, true); + $this->servername = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec user = 1 [json_name = "user"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->user = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropdbStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropdbStmt.php new file mode 100644 index 000000000..58f28c7fd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/DropdbStmt.php @@ -0,0 +1,125 @@ +pg_query.DropdbStmt. + */ +class DropdbStmt extends Message +{ + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + */ + protected $dbname = ''; + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $dbname + * @var bool $missing_ok + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @return string + */ + public function getDbname() + { + return $this->dbname; + } + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string dbname = 1 [json_name = "dbname"];. + * + * @param string $var + * + * @return $this + */ + public function setDbname($var) + { + GPBUtil::checkString($var, true); + $this->dbname = $var; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 2 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 3 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ExecuteStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ExecuteStmt.php new file mode 100644 index 000000000..9960b6e0a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ExecuteStmt.php @@ -0,0 +1,94 @@ +pg_query.ExecuteStmt. + */ +class ExecuteStmt extends Message +{ + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node params = 2 [json_name = "params"];. + */ + private $params; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var array $params + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node params = 2 [json_name = "params"];. + * + * @return RepeatedField + */ + public function getParams() + { + return $this->params; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node params = 2 [json_name = "params"];. + * + * @param array $var + * + * @return $this + */ + public function setParams($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->params = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ExplainStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ExplainStmt.php new file mode 100644 index 000000000..00da405f3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ExplainStmt.php @@ -0,0 +1,104 @@ +pg_query.ExplainStmt. + */ +class ExplainStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + */ + protected $query; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $query + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQuery() : void + { + $this->query = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + * + * @return null|Node + */ + public function getQuery() + { + return $this->query; + } + + public function hasQuery() + { + return isset($this->query); + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->query = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FetchDirection.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FetchDirection.php new file mode 100644 index 000000000..3c04d71fd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FetchDirection.php @@ -0,0 +1,75 @@ +pg_query.FetchDirection. + */ +class FetchDirection +{ + /** + * Generated from protobuf enum FETCH_ABSOLUTE = 3;. + */ + public const FETCH_ABSOLUTE = 3; + + /** + * Generated from protobuf enum FETCH_BACKWARD = 2;. + */ + public const FETCH_BACKWARD = 2; + + /** + * Generated from protobuf enum FETCH_DIRECTION_UNDEFINED = 0;. + */ + public const FETCH_DIRECTION_UNDEFINED = 0; + + /** + * Generated from protobuf enum FETCH_FORWARD = 1;. + */ + public const FETCH_FORWARD = 1; + + /** + * Generated from protobuf enum FETCH_RELATIVE = 4;. + */ + public const FETCH_RELATIVE = 4; + + private static $valueToName = [ + self::FETCH_DIRECTION_UNDEFINED => 'FETCH_DIRECTION_UNDEFINED', + self::FETCH_FORWARD => 'FETCH_FORWARD', + self::FETCH_BACKWARD => 'FETCH_BACKWARD', + self::FETCH_ABSOLUTE => 'FETCH_ABSOLUTE', + self::FETCH_RELATIVE => 'FETCH_RELATIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FetchStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FetchStmt.php new file mode 100644 index 000000000..39a7399d5 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FetchStmt.php @@ -0,0 +1,155 @@ +pg_query.FetchStmt. + */ +class FetchStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.FetchDirection direction = 1 [json_name = "direction"];. + */ + protected $direction = 0; + + /** + * Generated from protobuf field int64 how_many = 2 [json_name = "howMany"];. + */ + protected $how_many = 0; + + /** + * Generated from protobuf field bool ismove = 4 [json_name = "ismove"];. + */ + protected $ismove = false; + + /** + * Generated from protobuf field string portalname = 3 [json_name = "portalname"];. + */ + protected $portalname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $direction + * @var int|string $how_many + * @var string $portalname + * @var bool $ismove + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.FetchDirection direction = 1 [json_name = "direction"];. + * + * @return int + */ + public function getDirection() + { + return $this->direction; + } + + /** + * Generated from protobuf field int64 how_many = 2 [json_name = "howMany"];. + * + * @return int|string + */ + public function getHowMany() + { + return $this->how_many; + } + + /** + * Generated from protobuf field bool ismove = 4 [json_name = "ismove"];. + * + * @return bool + */ + public function getIsmove() + { + return $this->ismove; + } + + /** + * Generated from protobuf field string portalname = 3 [json_name = "portalname"];. + * + * @return string + */ + public function getPortalname() + { + return $this->portalname; + } + + /** + * Generated from protobuf field .pg_query.FetchDirection direction = 1 [json_name = "direction"];. + * + * @param int $var + * + * @return $this + */ + public function setDirection($var) + { + GPBUtil::checkEnum($var, FetchDirection::class); + $this->direction = $var; + + return $this; + } + + /** + * Generated from protobuf field int64 how_many = 2 [json_name = "howMany"];. + * + * @param int|string $var + * + * @return $this + */ + public function setHowMany($var) + { + GPBUtil::checkInt64($var); + $this->how_many = $var; + + return $this; + } + + /** + * Generated from protobuf field bool ismove = 4 [json_name = "ismove"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsmove($var) + { + GPBUtil::checkBool($var); + $this->ismove = $var; + + return $this; + } + + /** + * Generated from protobuf field string portalname = 3 [json_name = "portalname"];. + * + * @param string $var + * + * @return $this + */ + public function setPortalname($var) + { + GPBUtil::checkString($var, true); + $this->portalname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FieldSelect.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FieldSelect.php new file mode 100644 index 000000000..40e191566 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FieldSelect.php @@ -0,0 +1,237 @@ +pg_query.FieldSelect. + */ +class FieldSelect extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field int32 fieldnum = 3 [json_name = "fieldnum"];. + */ + protected $fieldnum = 0; + + /** + * Generated from protobuf field uint32 resultcollid = 6 [json_name = "resultcollid"];. + */ + protected $resultcollid = 0; + + /** + * Generated from protobuf field uint32 resulttype = 4 [json_name = "resulttype"];. + */ + protected $resulttype = 0; + + /** + * Generated from protobuf field int32 resulttypmod = 5 [json_name = "resulttypmod"];. + */ + protected $resulttypmod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var int $fieldnum + * @var int $resulttype + * @var int $resulttypmod + * @var int $resultcollid + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field int32 fieldnum = 3 [json_name = "fieldnum"];. + * + * @return int + */ + public function getFieldnum() + { + return $this->fieldnum; + } + + /** + * Generated from protobuf field uint32 resultcollid = 6 [json_name = "resultcollid"];. + * + * @return int + */ + public function getResultcollid() + { + return $this->resultcollid; + } + + /** + * Generated from protobuf field uint32 resulttype = 4 [json_name = "resulttype"];. + * + * @return int + */ + public function getResulttype() + { + return $this->resulttype; + } + + /** + * Generated from protobuf field int32 resulttypmod = 5 [json_name = "resulttypmod"];. + * + * @return int + */ + public function getResulttypmod() + { + return $this->resulttypmod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 fieldnum = 3 [json_name = "fieldnum"];. + * + * @param int $var + * + * @return $this + */ + public function setFieldnum($var) + { + GPBUtil::checkInt32($var); + $this->fieldnum = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resultcollid = 6 [json_name = "resultcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setResultcollid($var) + { + GPBUtil::checkUint32($var); + $this->resultcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resulttype = 4 [json_name = "resulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttype($var) + { + GPBUtil::checkUint32($var); + $this->resulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 resulttypmod = 5 [json_name = "resulttypmod"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttypmod($var) + { + GPBUtil::checkInt32($var); + $this->resulttypmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FieldStore.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FieldStore.php new file mode 100644 index 000000000..ed13f867a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FieldStore.php @@ -0,0 +1,207 @@ +pg_query.FieldStore. + */ +class FieldStore extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field uint32 resulttype = 5 [json_name = "resulttype"];. + */ + protected $resulttype = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node fieldnums = 4 [json_name = "fieldnums"];. + */ + private $fieldnums; + + /** + * Generated from protobuf field repeated .pg_query.Node newvals = 3 [json_name = "newvals"];. + */ + private $newvals; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var array $newvals + * @var array $fieldnums + * @var int $resulttype + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fieldnums = 4 [json_name = "fieldnums"];. + * + * @return RepeatedField + */ + public function getFieldnums() + { + return $this->fieldnums; + } + + /** + * Generated from protobuf field repeated .pg_query.Node newvals = 3 [json_name = "newvals"];. + * + * @return RepeatedField + */ + public function getNewvals() + { + return $this->newvals; + } + + /** + * Generated from protobuf field uint32 resulttype = 5 [json_name = "resulttype"];. + * + * @return int + */ + public function getResulttype() + { + return $this->resulttype; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fieldnums = 4 [json_name = "fieldnums"];. + * + * @param array $var + * + * @return $this + */ + public function setFieldnums($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->fieldnums = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node newvals = 3 [json_name = "newvals"];. + * + * @param array $var + * + * @return $this + */ + public function setNewvals($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->newvals = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 resulttype = 5 [json_name = "resulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttype($var) + { + GPBUtil::checkUint32($var); + $this->resulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FromExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FromExpr.php new file mode 100644 index 000000000..0c3cbb08d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FromExpr.php @@ -0,0 +1,104 @@ +pg_query.FromExpr. + */ +class FromExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.Node quals = 2 [json_name = "quals"];. + */ + protected $quals; + + /** + * Generated from protobuf field repeated .pg_query.Node fromlist = 1 [json_name = "fromlist"];. + */ + private $fromlist; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $fromlist + * @var Node $quals + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQuals() : void + { + $this->quals = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node fromlist = 1 [json_name = "fromlist"];. + * + * @return RepeatedField + */ + public function getFromlist() + { + return $this->fromlist; + } + + /** + * Generated from protobuf field .pg_query.Node quals = 2 [json_name = "quals"];. + * + * @return null|Node + */ + public function getQuals() + { + return $this->quals; + } + + public function hasQuals() + { + return isset($this->quals); + } + + /** + * Generated from protobuf field repeated .pg_query.Node fromlist = 1 [json_name = "fromlist"];. + * + * @param array $var + * + * @return $this + */ + public function setFromlist($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->fromlist = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node quals = 2 [json_name = "quals"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuals($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->quals = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FuncCall.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FuncCall.php new file mode 100644 index 000000000..fa6a5659a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FuncCall.php @@ -0,0 +1,393 @@ +pg_query.FuncCall. + */ +class FuncCall extends Message +{ + /** + * Generated from protobuf field bool agg_distinct = 8 [json_name = "agg_distinct"];. + */ + protected $agg_distinct = false; + + /** + * Generated from protobuf field .pg_query.Node agg_filter = 4 [json_name = "agg_filter"];. + */ + protected $agg_filter; + + /** + * Generated from protobuf field bool agg_star = 7 [json_name = "agg_star"];. + */ + protected $agg_star = false; + + /** + * Generated from protobuf field bool agg_within_group = 6 [json_name = "agg_within_group"];. + */ + protected $agg_within_group = false; + + /** + * Generated from protobuf field bool func_variadic = 9 [json_name = "func_variadic"];. + */ + protected $func_variadic = false; + + /** + * Generated from protobuf field .pg_query.CoercionForm funcformat = 10 [json_name = "funcformat"];. + */ + protected $funcformat = 0; + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.WindowDef over = 5 [json_name = "over"];. + */ + protected $over; + + /** + * Generated from protobuf field repeated .pg_query.Node agg_order = 3 [json_name = "agg_order"];. + */ + private $agg_order; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 1 [json_name = "funcname"];. + */ + private $funcname; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $funcname + * @var array $args + * @var array $agg_order + * @var Node $agg_filter + * @var WindowDef $over + * @var bool $agg_within_group + * @var bool $agg_star + * @var bool $agg_distinct + * @var bool $func_variadic + * @var int $funcformat + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAggFilter() : void + { + $this->agg_filter = null; + } + + public function clearOver() : void + { + $this->over = null; + } + + /** + * Generated from protobuf field bool agg_distinct = 8 [json_name = "agg_distinct"];. + * + * @return bool + */ + public function getAggDistinct() + { + return $this->agg_distinct; + } + + /** + * Generated from protobuf field .pg_query.Node agg_filter = 4 [json_name = "agg_filter"];. + * + * @return null|Node + */ + public function getAggFilter() + { + return $this->agg_filter; + } + + /** + * Generated from protobuf field repeated .pg_query.Node agg_order = 3 [json_name = "agg_order"];. + * + * @return RepeatedField + */ + public function getAggOrder() + { + return $this->agg_order; + } + + /** + * Generated from protobuf field bool agg_star = 7 [json_name = "agg_star"];. + * + * @return bool + */ + public function getAggStar() + { + return $this->agg_star; + } + + /** + * Generated from protobuf field bool agg_within_group = 6 [json_name = "agg_within_group"];. + * + * @return bool + */ + public function getAggWithinGroup() + { + return $this->agg_within_group; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm funcformat = 10 [json_name = "funcformat"];. + * + * @return int + */ + public function getFuncformat() + { + return $this->funcformat; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 1 [json_name = "funcname"];. + * + * @return RepeatedField + */ + public function getFuncname() + { + return $this->funcname; + } + + /** + * Generated from protobuf field bool func_variadic = 9 [json_name = "func_variadic"];. + * + * @return bool + */ + public function getFuncVariadic() + { + return $this->func_variadic; + } + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.WindowDef over = 5 [json_name = "over"];. + * + * @return null|WindowDef + */ + public function getOver() + { + return $this->over; + } + + public function hasAggFilter() + { + return isset($this->agg_filter); + } + + public function hasOver() + { + return isset($this->over); + } + + /** + * Generated from protobuf field bool agg_distinct = 8 [json_name = "agg_distinct"];. + * + * @param bool $var + * + * @return $this + */ + public function setAggDistinct($var) + { + GPBUtil::checkBool($var); + $this->agg_distinct = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node agg_filter = 4 [json_name = "agg_filter"];. + * + * @param Node $var + * + * @return $this + */ + public function setAggFilter($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->agg_filter = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node agg_order = 3 [json_name = "agg_order"];. + * + * @param array $var + * + * @return $this + */ + public function setAggOrder($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->agg_order = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool agg_star = 7 [json_name = "agg_star"];. + * + * @param bool $var + * + * @return $this + */ + public function setAggStar($var) + { + GPBUtil::checkBool($var); + $this->agg_star = $var; + + return $this; + } + + /** + * Generated from protobuf field bool agg_within_group = 6 [json_name = "agg_within_group"];. + * + * @param bool $var + * + * @return $this + */ + public function setAggWithinGroup($var) + { + GPBUtil::checkBool($var); + $this->agg_within_group = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm funcformat = 10 [json_name = "funcformat"];. + * + * @param int $var + * + * @return $this + */ + public function setFuncformat($var) + { + GPBUtil::checkEnum($var, CoercionForm::class); + $this->funcformat = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funcname = 1 [json_name = "funcname"];. + * + * @param array $var + * + * @return $this + */ + public function setFuncname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->funcname = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool func_variadic = 9 [json_name = "func_variadic"];. + * + * @param bool $var + * + * @return $this + */ + public function setFuncVariadic($var) + { + GPBUtil::checkBool($var); + $this->func_variadic = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WindowDef over = 5 [json_name = "over"];. + * + * @param WindowDef $var + * + * @return $this + */ + public function setOver($var) + { + GPBUtil::checkMessage($var, WindowDef::class); + $this->over = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FuncExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FuncExpr.php new file mode 100644 index 000000000..937b412ee --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FuncExpr.php @@ -0,0 +1,352 @@ +pg_query.FuncExpr. + */ +class FuncExpr extends Message +{ + /** + * Generated from protobuf field uint32 funccollid = 7 [json_name = "funccollid"];. + */ + protected $funccollid = 0; + + /** + * Generated from protobuf field .pg_query.CoercionForm funcformat = 6 [json_name = "funcformat"];. + */ + protected $funcformat = 0; + + /** + * Generated from protobuf field uint32 funcid = 2 [json_name = "funcid"];. + */ + protected $funcid = 0; + + /** + * Generated from protobuf field uint32 funcresulttype = 3 [json_name = "funcresulttype"];. + */ + protected $funcresulttype = 0; + + /** + * Generated from protobuf field bool funcretset = 4 [json_name = "funcretset"];. + */ + protected $funcretset = false; + + /** + * Generated from protobuf field bool funcvariadic = 5 [json_name = "funcvariadic"];. + */ + protected $funcvariadic = false; + + /** + * Generated from protobuf field uint32 inputcollid = 8 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field int32 location = 10 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 9 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $funcid + * @var int $funcresulttype + * @var bool $funcretset + * @var bool $funcvariadic + * @var int $funcformat + * @var int $funccollid + * @var int $inputcollid + * @var array $args + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 9 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 funccollid = 7 [json_name = "funccollid"];. + * + * @return int + */ + public function getFunccollid() + { + return $this->funccollid; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm funcformat = 6 [json_name = "funcformat"];. + * + * @return int + */ + public function getFuncformat() + { + return $this->funcformat; + } + + /** + * Generated from protobuf field uint32 funcid = 2 [json_name = "funcid"];. + * + * @return int + */ + public function getFuncid() + { + return $this->funcid; + } + + /** + * Generated from protobuf field uint32 funcresulttype = 3 [json_name = "funcresulttype"];. + * + * @return int + */ + public function getFuncresulttype() + { + return $this->funcresulttype; + } + + /** + * Generated from protobuf field bool funcretset = 4 [json_name = "funcretset"];. + * + * @return bool + */ + public function getFuncretset() + { + return $this->funcretset; + } + + /** + * Generated from protobuf field bool funcvariadic = 5 [json_name = "funcvariadic"];. + * + * @return bool + */ + public function getFuncvariadic() + { + return $this->funcvariadic; + } + + /** + * Generated from protobuf field uint32 inputcollid = 8 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field int32 location = 10 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 9 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 funccollid = 7 [json_name = "funccollid"];. + * + * @param int $var + * + * @return $this + */ + public function setFunccollid($var) + { + GPBUtil::checkUint32($var); + $this->funccollid = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm funcformat = 6 [json_name = "funcformat"];. + * + * @param int $var + * + * @return $this + */ + public function setFuncformat($var) + { + GPBUtil::checkEnum($var, CoercionForm::class); + $this->funcformat = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 funcid = 2 [json_name = "funcid"];. + * + * @param int $var + * + * @return $this + */ + public function setFuncid($var) + { + GPBUtil::checkUint32($var); + $this->funcid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 funcresulttype = 3 [json_name = "funcresulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setFuncresulttype($var) + { + GPBUtil::checkUint32($var); + $this->funcresulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field bool funcretset = 4 [json_name = "funcretset"];. + * + * @param bool $var + * + * @return $this + */ + public function setFuncretset($var) + { + GPBUtil::checkBool($var); + $this->funcretset = $var; + + return $this; + } + + /** + * Generated from protobuf field bool funcvariadic = 5 [json_name = "funcvariadic"];. + * + * @param bool $var + * + * @return $this + */ + public function setFuncvariadic($var) + { + GPBUtil::checkBool($var); + $this->funcvariadic = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 8 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 10 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FunctionParameter.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FunctionParameter.php new file mode 100644 index 000000000..20b194381 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FunctionParameter.php @@ -0,0 +1,175 @@ +pg_query.FunctionParameter. + */ +class FunctionParameter extends Message +{ + /** + * Generated from protobuf field .pg_query.TypeName arg_type = 2 [json_name = "argType"];. + */ + protected $arg_type; + + /** + * Generated from protobuf field .pg_query.Node defexpr = 4 [json_name = "defexpr"];. + */ + protected $defexpr; + + /** + * Generated from protobuf field .pg_query.FunctionParameterMode mode = 3 [json_name = "mode"];. + */ + protected $mode = 0; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var TypeName $arg_type + * @var int $mode + * @var Node $defexpr + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArgType() : void + { + $this->arg_type = null; + } + + public function clearDefexpr() : void + { + $this->defexpr = null; + } + + /** + * Generated from protobuf field .pg_query.TypeName arg_type = 2 [json_name = "argType"];. + * + * @return null|TypeName + */ + public function getArgType() + { + return $this->arg_type; + } + + /** + * Generated from protobuf field .pg_query.Node defexpr = 4 [json_name = "defexpr"];. + * + * @return null|Node + */ + public function getDefexpr() + { + return $this->defexpr; + } + + /** + * Generated from protobuf field .pg_query.FunctionParameterMode mode = 3 [json_name = "mode"];. + * + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + public function hasArgType() + { + return isset($this->arg_type); + } + + public function hasDefexpr() + { + return isset($this->defexpr); + } + + /** + * Generated from protobuf field .pg_query.TypeName arg_type = 2 [json_name = "argType"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setArgType($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->arg_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node defexpr = 4 [json_name = "defexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setDefexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->defexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FunctionParameterMode mode = 3 [json_name = "mode"];. + * + * @param int $var + * + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkEnum($var, FunctionParameterMode::class); + $this->mode = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FunctionParameterMode.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FunctionParameterMode.php new file mode 100644 index 000000000..e41b91f3d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/FunctionParameterMode.php @@ -0,0 +1,87 @@ +pg_query.FunctionParameterMode. + */ +class FunctionParameterMode +{ + /** + * Generated from protobuf enum FUNC_PARAM_DEFAULT = 6;. + */ + public const FUNC_PARAM_DEFAULT = 6; + + /** + * Generated from protobuf enum FUNC_PARAM_IN = 1;. + */ + public const FUNC_PARAM_IN = 1; + + /** + * Generated from protobuf enum FUNC_PARAM_INOUT = 3;. + */ + public const FUNC_PARAM_INOUT = 3; + + /** + * Generated from protobuf enum FUNC_PARAM_OUT = 2;. + */ + public const FUNC_PARAM_OUT = 2; + + /** + * Generated from protobuf enum FUNC_PARAM_TABLE = 5;. + */ + public const FUNC_PARAM_TABLE = 5; + + /** + * Generated from protobuf enum FUNC_PARAM_VARIADIC = 4;. + */ + public const FUNC_PARAM_VARIADIC = 4; + + /** + * Generated from protobuf enum FUNCTION_PARAMETER_MODE_UNDEFINED = 0;. + */ + public const FUNCTION_PARAMETER_MODE_UNDEFINED = 0; + + private static $valueToName = [ + self::FUNCTION_PARAMETER_MODE_UNDEFINED => 'FUNCTION_PARAMETER_MODE_UNDEFINED', + self::FUNC_PARAM_IN => 'FUNC_PARAM_IN', + self::FUNC_PARAM_OUT => 'FUNC_PARAM_OUT', + self::FUNC_PARAM_INOUT => 'FUNC_PARAM_INOUT', + self::FUNC_PARAM_VARIADIC => 'FUNC_PARAM_VARIADIC', + self::FUNC_PARAM_TABLE => 'FUNC_PARAM_TABLE', + self::FUNC_PARAM_DEFAULT => 'FUNC_PARAM_DEFAULT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantRoleStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantRoleStmt.php new file mode 100644 index 000000000..d46e45c34 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantRoleStmt.php @@ -0,0 +1,228 @@ +pg_query.GrantRoleStmt. + */ +class GrantRoleStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 6 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field .pg_query.RoleSpec grantor = 5 [json_name = "grantor"];. + */ + protected $grantor; + + /** + * Generated from protobuf field bool is_grant = 3 [json_name = "is_grant"];. + */ + protected $is_grant = false; + + /** + * Generated from protobuf field repeated .pg_query.Node granted_roles = 1 [json_name = "granted_roles"];. + */ + private $granted_roles; + + /** + * Generated from protobuf field repeated .pg_query.Node grantee_roles = 2 [json_name = "grantee_roles"];. + */ + private $grantee_roles; + + /** + * Generated from protobuf field repeated .pg_query.Node opt = 4 [json_name = "opt"];. + */ + private $opt; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $granted_roles + * @var array $grantee_roles + * @var bool $is_grant + * @var array $opt + * @var RoleSpec $grantor + * @var int $behavior + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearGrantor() : void + { + $this->grantor = null; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 6 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field repeated .pg_query.Node granted_roles = 1 [json_name = "granted_roles"];. + * + * @return RepeatedField + */ + public function getGrantedRoles() + { + return $this->granted_roles; + } + + /** + * Generated from protobuf field repeated .pg_query.Node grantee_roles = 2 [json_name = "grantee_roles"];. + * + * @return RepeatedField + */ + public function getGranteeRoles() + { + return $this->grantee_roles; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec grantor = 5 [json_name = "grantor"];. + * + * @return null|RoleSpec + */ + public function getGrantor() + { + return $this->grantor; + } + + /** + * Generated from protobuf field bool is_grant = 3 [json_name = "is_grant"];. + * + * @return bool + */ + public function getIsGrant() + { + return $this->is_grant; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opt = 4 [json_name = "opt"];. + * + * @return RepeatedField + */ + public function getOpt() + { + return $this->opt; + } + + public function hasGrantor() + { + return isset($this->grantor); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 6 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node granted_roles = 1 [json_name = "granted_roles"];. + * + * @param array $var + * + * @return $this + */ + public function setGrantedRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->granted_roles = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node grantee_roles = 2 [json_name = "grantee_roles"];. + * + * @param array $var + * + * @return $this + */ + public function setGranteeRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->grantee_roles = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec grantor = 5 [json_name = "grantor"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setGrantor($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->grantor = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_grant = 3 [json_name = "is_grant"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsGrant($var) + { + GPBUtil::checkBool($var); + $this->is_grant = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opt = 4 [json_name = "opt"];. + * + * @param array $var + * + * @return $this + */ + public function setOpt($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opt = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantStmt.php new file mode 100644 index 000000000..fe55fd937 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantStmt.php @@ -0,0 +1,321 @@ +pg_query.GrantStmt. + */ +class GrantStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 9 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field bool grant_option = 7 [json_name = "grant_option"];. + */ + protected $grant_option = false; + + /** + * Generated from protobuf field .pg_query.RoleSpec grantor = 8 [json_name = "grantor"];. + */ + protected $grantor; + + /** + * Generated from protobuf field bool is_grant = 1 [json_name = "is_grant"];. + */ + protected $is_grant = false; + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + */ + protected $objtype = 0; + + /** + * Generated from protobuf field .pg_query.GrantTargetType targtype = 2 [json_name = "targtype"];. + */ + protected $targtype = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node grantees = 6 [json_name = "grantees"];. + */ + private $grantees; + + /** + * Generated from protobuf field repeated .pg_query.Node objects = 4 [json_name = "objects"];. + */ + private $objects; + + /** + * Generated from protobuf field repeated .pg_query.Node privileges = 5 [json_name = "privileges"];. + */ + private $privileges; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $is_grant + * @var int $targtype + * @var int $objtype + * @var array $objects + * @var array $privileges + * @var array $grantees + * @var bool $grant_option + * @var RoleSpec $grantor + * @var int $behavior + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearGrantor() : void + { + $this->grantor = null; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 9 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field repeated .pg_query.Node grantees = 6 [json_name = "grantees"];. + * + * @return RepeatedField + */ + public function getGrantees() + { + return $this->grantees; + } + + /** + * Generated from protobuf field bool grant_option = 7 [json_name = "grant_option"];. + * + * @return bool + */ + public function getGrantOption() + { + return $this->grant_option; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec grantor = 8 [json_name = "grantor"];. + * + * @return null|RoleSpec + */ + public function getGrantor() + { + return $this->grantor; + } + + /** + * Generated from protobuf field bool is_grant = 1 [json_name = "is_grant"];. + * + * @return bool + */ + public function getIsGrant() + { + return $this->is_grant; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objects = 4 [json_name = "objects"];. + * + * @return RepeatedField + */ + public function getObjects() + { + return $this->objects; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + * + * @return int + */ + public function getObjtype() + { + return $this->objtype; + } + + /** + * Generated from protobuf field repeated .pg_query.Node privileges = 5 [json_name = "privileges"];. + * + * @return RepeatedField + */ + public function getPrivileges() + { + return $this->privileges; + } + + /** + * Generated from protobuf field .pg_query.GrantTargetType targtype = 2 [json_name = "targtype"];. + * + * @return int + */ + public function getTargtype() + { + return $this->targtype; + } + + public function hasGrantor() + { + return isset($this->grantor); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 9 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node grantees = 6 [json_name = "grantees"];. + * + * @param array $var + * + * @return $this + */ + public function setGrantees($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->grantees = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool grant_option = 7 [json_name = "grant_option"];. + * + * @param bool $var + * + * @return $this + */ + public function setGrantOption($var) + { + GPBUtil::checkBool($var); + $this->grant_option = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec grantor = 8 [json_name = "grantor"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setGrantor($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->grantor = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_grant = 1 [json_name = "is_grant"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsGrant($var) + { + GPBUtil::checkBool($var); + $this->is_grant = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objects = 4 [json_name = "objects"];. + * + * @param array $var + * + * @return $this + */ + public function setObjects($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->objects = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 3 [json_name = "objtype"];. + * + * @param int $var + * + * @return $this + */ + public function setObjtype($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->objtype = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node privileges = 5 [json_name = "privileges"];. + * + * @param array $var + * + * @return $this + */ + public function setPrivileges($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->privileges = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.GrantTargetType targtype = 2 [json_name = "targtype"];. + * + * @param int $var + * + * @return $this + */ + public function setTargtype($var) + { + GPBUtil::checkEnum($var, GrantTargetType::class); + $this->targtype = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantTargetType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantTargetType.php new file mode 100644 index 000000000..9e4dc901c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GrantTargetType.php @@ -0,0 +1,69 @@ +pg_query.GrantTargetType. + */ +class GrantTargetType +{ + /** + * Generated from protobuf enum ACL_TARGET_ALL_IN_SCHEMA = 2;. + */ + public const ACL_TARGET_ALL_IN_SCHEMA = 2; + + /** + * Generated from protobuf enum ACL_TARGET_DEFAULTS = 3;. + */ + public const ACL_TARGET_DEFAULTS = 3; + + /** + * Generated from protobuf enum ACL_TARGET_OBJECT = 1;. + */ + public const ACL_TARGET_OBJECT = 1; + + /** + * Generated from protobuf enum GRANT_TARGET_TYPE_UNDEFINED = 0;. + */ + public const GRANT_TARGET_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::GRANT_TARGET_TYPE_UNDEFINED => 'GRANT_TARGET_TYPE_UNDEFINED', + self::ACL_TARGET_OBJECT => 'ACL_TARGET_OBJECT', + self::ACL_TARGET_ALL_IN_SCHEMA => 'ACL_TARGET_ALL_IN_SCHEMA', + self::ACL_TARGET_DEFAULTS => 'ACL_TARGET_DEFAULTS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingFunc.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingFunc.php new file mode 100644 index 000000000..a43394f3f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingFunc.php @@ -0,0 +1,197 @@ +pg_query.GroupingFunc. + */ +class GroupingFunc extends Message +{ + /** + * Generated from protobuf field uint32 agglevelsup = 4 [json_name = "agglevelsup"];. + */ + protected $agglevelsup = 0; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node refs = 3 [json_name = "refs"];. + */ + private $refs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var array $args + * @var array $refs + * @var int $agglevelsup + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field uint32 agglevelsup = 4 [json_name = "agglevelsup"];. + * + * @return int + */ + public function getAgglevelsup() + { + return $this->agglevelsup; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node refs = 3 [json_name = "refs"];. + * + * @return RepeatedField + */ + public function getRefs() + { + return $this->refs; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field uint32 agglevelsup = 4 [json_name = "agglevelsup"];. + * + * @param int $var + * + * @return $this + */ + public function setAgglevelsup($var) + { + GPBUtil::checkUint32($var); + $this->agglevelsup = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node refs = 3 [json_name = "refs"];. + * + * @param array $var + * + * @return $this + */ + public function setRefs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->refs = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingSet.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingSet.php new file mode 100644 index 000000000..b367c6da9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingSet.php @@ -0,0 +1,125 @@ +pg_query.GroupingSet. + */ +class GroupingSet extends Message +{ + /** + * Generated from protobuf field .pg_query.GroupingSetKind kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node content = 2 [json_name = "content"];. + */ + private $content; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var array $content + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node content = 2 [json_name = "content"];. + * + * @return RepeatedField + */ + public function getContent() + { + return $this->content; + } + + /** + * Generated from protobuf field .pg_query.GroupingSetKind kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node content = 2 [json_name = "content"];. + * + * @param array $var + * + * @return $this + */ + public function setContent($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->content = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.GroupingSetKind kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, GroupingSetKind::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingSetKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingSetKind.php new file mode 100644 index 000000000..6c3188151 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/GroupingSetKind.php @@ -0,0 +1,81 @@ +pg_query.GroupingSetKind. + */ +class GroupingSetKind +{ + /** + * Generated from protobuf enum GROUPING_SET_CUBE = 4;. + */ + public const GROUPING_SET_CUBE = 4; + + /** + * Generated from protobuf enum GROUPING_SET_EMPTY = 1;. + */ + public const GROUPING_SET_EMPTY = 1; + + /** + * Generated from protobuf enum GROUPING_SET_KIND_UNDEFINED = 0;. + */ + public const GROUPING_SET_KIND_UNDEFINED = 0; + + /** + * Generated from protobuf enum GROUPING_SET_ROLLUP = 3;. + */ + public const GROUPING_SET_ROLLUP = 3; + + /** + * Generated from protobuf enum GROUPING_SET_SETS = 5;. + */ + public const GROUPING_SET_SETS = 5; + + /** + * Generated from protobuf enum GROUPING_SET_SIMPLE = 2;. + */ + public const GROUPING_SET_SIMPLE = 2; + + private static $valueToName = [ + self::GROUPING_SET_KIND_UNDEFINED => 'GROUPING_SET_KIND_UNDEFINED', + self::GROUPING_SET_EMPTY => 'GROUPING_SET_EMPTY', + self::GROUPING_SET_SIMPLE => 'GROUPING_SET_SIMPLE', + self::GROUPING_SET_ROLLUP => 'GROUPING_SET_ROLLUP', + self::GROUPING_SET_CUBE => 'GROUPING_SET_CUBE', + self::GROUPING_SET_SETS => 'GROUPING_SET_SETS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ImportForeignSchemaStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ImportForeignSchemaStmt.php new file mode 100644 index 000000000..77a7c88a5 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ImportForeignSchemaStmt.php @@ -0,0 +1,218 @@ +pg_query.ImportForeignSchemaStmt. + */ +class ImportForeignSchemaStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.ImportForeignSchemaType list_type = 4 [json_name = "list_type"];. + */ + protected $list_type = 0; + + /** + * Generated from protobuf field string local_schema = 3 [json_name = "local_schema"];. + */ + protected $local_schema = ''; + + /** + * Generated from protobuf field string remote_schema = 2 [json_name = "remote_schema"];. + */ + protected $remote_schema = ''; + + /** + * Generated from protobuf field string server_name = 1 [json_name = "server_name"];. + */ + protected $server_name = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node table_list = 5 [json_name = "table_list"];. + */ + private $table_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $server_name + * @var string $remote_schema + * @var string $local_schema + * @var int $list_type + * @var array $table_list + * @var array $options + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.ImportForeignSchemaType list_type = 4 [json_name = "list_type"];. + * + * @return int + */ + public function getListType() + { + return $this->list_type; + } + + /** + * Generated from protobuf field string local_schema = 3 [json_name = "local_schema"];. + * + * @return string + */ + public function getLocalSchema() + { + return $this->local_schema; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string remote_schema = 2 [json_name = "remote_schema"];. + * + * @return string + */ + public function getRemoteSchema() + { + return $this->remote_schema; + } + + /** + * Generated from protobuf field string server_name = 1 [json_name = "server_name"];. + * + * @return string + */ + public function getServerName() + { + return $this->server_name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node table_list = 5 [json_name = "table_list"];. + * + * @return RepeatedField + */ + public function getTableList() + { + return $this->table_list; + } + + /** + * Generated from protobuf field .pg_query.ImportForeignSchemaType list_type = 4 [json_name = "list_type"];. + * + * @param int $var + * + * @return $this + */ + public function setListType($var) + { + GPBUtil::checkEnum($var, ImportForeignSchemaType::class); + $this->list_type = $var; + + return $this; + } + + /** + * Generated from protobuf field string local_schema = 3 [json_name = "local_schema"];. + * + * @param string $var + * + * @return $this + */ + public function setLocalSchema($var) + { + GPBUtil::checkString($var, true); + $this->local_schema = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 6 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string remote_schema = 2 [json_name = "remote_schema"];. + * + * @param string $var + * + * @return $this + */ + public function setRemoteSchema($var) + { + GPBUtil::checkString($var, true); + $this->remote_schema = $var; + + return $this; + } + + /** + * Generated from protobuf field string server_name = 1 [json_name = "server_name"];. + * + * @param string $var + * + * @return $this + */ + public function setServerName($var) + { + GPBUtil::checkString($var, true); + $this->server_name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node table_list = 5 [json_name = "table_list"];. + * + * @param array $var + * + * @return $this + */ + public function setTableList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->table_list = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ImportForeignSchemaType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ImportForeignSchemaType.php new file mode 100644 index 000000000..eba7fe800 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ImportForeignSchemaType.php @@ -0,0 +1,69 @@ +pg_query.ImportForeignSchemaType. + */ +class ImportForeignSchemaType +{ + /** + * Generated from protobuf enum FDW_IMPORT_SCHEMA_ALL = 1;. + */ + public const FDW_IMPORT_SCHEMA_ALL = 1; + + /** + * Generated from protobuf enum FDW_IMPORT_SCHEMA_EXCEPT = 3;. + */ + public const FDW_IMPORT_SCHEMA_EXCEPT = 3; + + /** + * Generated from protobuf enum FDW_IMPORT_SCHEMA_LIMIT_TO = 2;. + */ + public const FDW_IMPORT_SCHEMA_LIMIT_TO = 2; + + /** + * Generated from protobuf enum IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED = 0;. + */ + public const IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED => 'IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED', + self::FDW_IMPORT_SCHEMA_ALL => 'FDW_IMPORT_SCHEMA_ALL', + self::FDW_IMPORT_SCHEMA_LIMIT_TO => 'FDW_IMPORT_SCHEMA_LIMIT_TO', + self::FDW_IMPORT_SCHEMA_EXCEPT => 'FDW_IMPORT_SCHEMA_EXCEPT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IndexElem.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IndexElem.php new file mode 100644 index 000000000..cb55057b7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IndexElem.php @@ -0,0 +1,290 @@ +pg_query.IndexElem. + */ +class IndexElem extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field string indexcolname = 3 [json_name = "indexcolname"];. + */ + protected $indexcolname = ''; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.SortByNulls nulls_ordering = 8 [json_name = "nulls_ordering"];. + */ + protected $nulls_ordering = 0; + + /** + * Generated from protobuf field .pg_query.SortByDir ordering = 7 [json_name = "ordering"];. + */ + protected $ordering = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node collation = 4 [json_name = "collation"];. + */ + private $collation; + + /** + * Generated from protobuf field repeated .pg_query.Node opclass = 5 [json_name = "opclass"];. + */ + private $opclass; + + /** + * Generated from protobuf field repeated .pg_query.Node opclassopts = 6 [json_name = "opclassopts"];. + */ + private $opclassopts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var Node $expr + * @var string $indexcolname + * @var array $collation + * @var array $opclass + * @var array $opclassopts + * @var int $ordering + * @var int $nulls_ordering + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node collation = 4 [json_name = "collation"];. + * + * @return RepeatedField + */ + public function getCollation() + { + return $this->collation; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field string indexcolname = 3 [json_name = "indexcolname"];. + * + * @return string + */ + public function getIndexcolname() + { + return $this->indexcolname; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.SortByNulls nulls_ordering = 8 [json_name = "nulls_ordering"];. + * + * @return int + */ + public function getNullsOrdering() + { + return $this->nulls_ordering; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opclass = 5 [json_name = "opclass"];. + * + * @return RepeatedField + */ + public function getOpclass() + { + return $this->opclass; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opclassopts = 6 [json_name = "opclassopts"];. + * + * @return RepeatedField + */ + public function getOpclassopts() + { + return $this->opclassopts; + } + + /** + * Generated from protobuf field .pg_query.SortByDir ordering = 7 [json_name = "ordering"];. + * + * @return int + */ + public function getOrdering() + { + return $this->ordering; + } + + public function hasExpr() + { + return isset($this->expr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node collation = 4 [json_name = "collation"];. + * + * @param array $var + * + * @return $this + */ + public function setCollation($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->collation = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field string indexcolname = 3 [json_name = "indexcolname"];. + * + * @param string $var + * + * @return $this + */ + public function setIndexcolname($var) + { + GPBUtil::checkString($var, true); + $this->indexcolname = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SortByNulls nulls_ordering = 8 [json_name = "nulls_ordering"];. + * + * @param int $var + * + * @return $this + */ + public function setNullsOrdering($var) + { + GPBUtil::checkEnum($var, SortByNulls::class); + $this->nulls_ordering = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opclass = 5 [json_name = "opclass"];. + * + * @param array $var + * + * @return $this + */ + public function setOpclass($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opclass = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opclassopts = 6 [json_name = "opclassopts"];. + * + * @param array $var + * + * @return $this + */ + public function setOpclassopts($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opclassopts = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SortByDir ordering = 7 [json_name = "ordering"];. + * + * @param int $var + * + * @return $this + */ + public function setOrdering($var) + { + GPBUtil::checkEnum($var, SortByDir::class); + $this->ordering = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IndexStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IndexStmt.php new file mode 100644 index 000000000..1ea142a96 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IndexStmt.php @@ -0,0 +1,796 @@ +pg_query.IndexStmt. + */ +class IndexStmt extends Message +{ + /** + * Generated from protobuf field string access_method = 3 [json_name = "accessMethod"];. + */ + protected $access_method = ''; + + /** + * Generated from protobuf field bool concurrent = 22 [json_name = "concurrent"];. + */ + protected $concurrent = false; + + /** + * Generated from protobuf field bool deferrable = 19 [json_name = "deferrable"];. + */ + protected $deferrable = false; + + /** + * Generated from protobuf field string idxcomment = 10 [json_name = "idxcomment"];. + */ + protected $idxcomment = ''; + + /** + * Generated from protobuf field string idxname = 1 [json_name = "idxname"];. + */ + protected $idxname = ''; + + /** + * Generated from protobuf field bool if_not_exists = 23 [json_name = "if_not_exists"];. + */ + protected $if_not_exists = false; + + /** + * Generated from protobuf field uint32 index_oid = 11 [json_name = "indexOid"];. + */ + protected $index_oid = 0; + + /** + * Generated from protobuf field bool initdeferred = 20 [json_name = "initdeferred"];. + */ + protected $initdeferred = false; + + /** + * Generated from protobuf field bool isconstraint = 18 [json_name = "isconstraint"];. + */ + protected $isconstraint = false; + + /** + * Generated from protobuf field bool nulls_not_distinct = 16 [json_name = "nulls_not_distinct"];. + */ + protected $nulls_not_distinct = false; + + /** + * Generated from protobuf field uint32 old_create_subid = 13 [json_name = "oldCreateSubid"];. + */ + protected $old_create_subid = 0; + + /** + * Generated from protobuf field uint32 old_first_relfilelocator_subid = 14 [json_name = "oldFirstRelfilelocatorSubid"];. + */ + protected $old_first_relfilelocator_subid = 0; + + /** + * Generated from protobuf field uint32 old_number = 12 [json_name = "oldNumber"];. + */ + protected $old_number = 0; + + /** + * Generated from protobuf field bool primary = 17 [json_name = "primary"];. + */ + protected $primary = false; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field bool reset_default_tblspc = 24 [json_name = "reset_default_tblspc"];. + */ + protected $reset_default_tblspc = false; + + /** + * Generated from protobuf field string table_space = 4 [json_name = "tableSpace"];. + */ + protected $table_space = ''; + + /** + * Generated from protobuf field bool transformed = 21 [json_name = "transformed"];. + */ + protected $transformed = false; + + /** + * Generated from protobuf field bool unique = 15 [json_name = "unique"];. + */ + protected $unique = false; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 8 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node exclude_op_names = 9 [json_name = "excludeOpNames"];. + */ + private $exclude_op_names; + + /** + * Generated from protobuf field repeated .pg_query.Node index_including_params = 6 [json_name = "indexIncludingParams"];. + */ + private $index_including_params; + + /** + * Generated from protobuf field repeated .pg_query.Node index_params = 5 [json_name = "indexParams"];. + */ + private $index_params; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 7 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $idxname + * @var RangeVar $relation + * @var string $access_method + * @var string $table_space + * @var array $index_params + * @var array $index_including_params + * @var array $options + * @var Node $where_clause + * @var array $exclude_op_names + * @var string $idxcomment + * @var int $index_oid + * @var int $old_number + * @var int $old_create_subid + * @var int $old_first_relfilelocator_subid + * @var bool $unique + * @var bool $nulls_not_distinct + * @var bool $primary + * @var bool $isconstraint + * @var bool $deferrable + * @var bool $initdeferred + * @var bool $transformed + * @var bool $concurrent + * @var bool $if_not_exists + * @var bool $reset_default_tblspc + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + /** + * Generated from protobuf field string access_method = 3 [json_name = "accessMethod"];. + * + * @return string + */ + public function getAccessMethod() + { + return $this->access_method; + } + + /** + * Generated from protobuf field bool concurrent = 22 [json_name = "concurrent"];. + * + * @return bool + */ + public function getConcurrent() + { + return $this->concurrent; + } + + /** + * Generated from protobuf field bool deferrable = 19 [json_name = "deferrable"];. + * + * @return bool + */ + public function getDeferrable() + { + return $this->deferrable; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exclude_op_names = 9 [json_name = "excludeOpNames"];. + * + * @return RepeatedField + */ + public function getExcludeOpNames() + { + return $this->exclude_op_names; + } + + /** + * Generated from protobuf field string idxcomment = 10 [json_name = "idxcomment"];. + * + * @return string + */ + public function getIdxcomment() + { + return $this->idxcomment; + } + + /** + * Generated from protobuf field string idxname = 1 [json_name = "idxname"];. + * + * @return string + */ + public function getIdxname() + { + return $this->idxname; + } + + /** + * Generated from protobuf field bool if_not_exists = 23 [json_name = "if_not_exists"];. + * + * @return bool + */ + public function getIfNotExists() + { + return $this->if_not_exists; + } + + /** + * Generated from protobuf field repeated .pg_query.Node index_including_params = 6 [json_name = "indexIncludingParams"];. + * + * @return RepeatedField + */ + public function getIndexIncludingParams() + { + return $this->index_including_params; + } + + /** + * Generated from protobuf field uint32 index_oid = 11 [json_name = "indexOid"];. + * + * @return int + */ + public function getIndexOid() + { + return $this->index_oid; + } + + /** + * Generated from protobuf field repeated .pg_query.Node index_params = 5 [json_name = "indexParams"];. + * + * @return RepeatedField + */ + public function getIndexParams() + { + return $this->index_params; + } + + /** + * Generated from protobuf field bool initdeferred = 20 [json_name = "initdeferred"];. + * + * @return bool + */ + public function getInitdeferred() + { + return $this->initdeferred; + } + + /** + * Generated from protobuf field bool isconstraint = 18 [json_name = "isconstraint"];. + * + * @return bool + */ + public function getIsconstraint() + { + return $this->isconstraint; + } + + /** + * Generated from protobuf field bool nulls_not_distinct = 16 [json_name = "nulls_not_distinct"];. + * + * @return bool + */ + public function getNullsNotDistinct() + { + return $this->nulls_not_distinct; + } + + /** + * Generated from protobuf field uint32 old_create_subid = 13 [json_name = "oldCreateSubid"];. + * + * @return int + */ + public function getOldCreateSubid() + { + return $this->old_create_subid; + } + + /** + * Generated from protobuf field uint32 old_first_relfilelocator_subid = 14 [json_name = "oldFirstRelfilelocatorSubid"];. + * + * @return int + */ + public function getOldFirstRelfilelocatorSubid() + { + return $this->old_first_relfilelocator_subid; + } + + /** + * Generated from protobuf field uint32 old_number = 12 [json_name = "oldNumber"];. + * + * @return int + */ + public function getOldNumber() + { + return $this->old_number; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 7 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field bool primary = 17 [json_name = "primary"];. + * + * @return bool + */ + public function getPrimary() + { + return $this->primary; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field bool reset_default_tblspc = 24 [json_name = "reset_default_tblspc"];. + * + * @return bool + */ + public function getResetDefaultTblspc() + { + return $this->reset_default_tblspc; + } + + /** + * Generated from protobuf field string table_space = 4 [json_name = "tableSpace"];. + * + * @return string + */ + public function getTableSpace() + { + return $this->table_space; + } + + /** + * Generated from protobuf field bool transformed = 21 [json_name = "transformed"];. + * + * @return bool + */ + public function getTransformed() + { + return $this->transformed; + } + + /** + * Generated from protobuf field bool unique = 15 [json_name = "unique"];. + * + * @return bool + */ + public function getUnique() + { + return $this->unique; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 8 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + /** + * Generated from protobuf field string access_method = 3 [json_name = "accessMethod"];. + * + * @param string $var + * + * @return $this + */ + public function setAccessMethod($var) + { + GPBUtil::checkString($var, true); + $this->access_method = $var; + + return $this; + } + + /** + * Generated from protobuf field bool concurrent = 22 [json_name = "concurrent"];. + * + * @param bool $var + * + * @return $this + */ + public function setConcurrent($var) + { + GPBUtil::checkBool($var); + $this->concurrent = $var; + + return $this; + } + + /** + * Generated from protobuf field bool deferrable = 19 [json_name = "deferrable"];. + * + * @param bool $var + * + * @return $this + */ + public function setDeferrable($var) + { + GPBUtil::checkBool($var); + $this->deferrable = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exclude_op_names = 9 [json_name = "excludeOpNames"];. + * + * @param array $var + * + * @return $this + */ + public function setExcludeOpNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->exclude_op_names = $arr; + + return $this; + } + + /** + * Generated from protobuf field string idxcomment = 10 [json_name = "idxcomment"];. + * + * @param string $var + * + * @return $this + */ + public function setIdxcomment($var) + { + GPBUtil::checkString($var, true); + $this->idxcomment = $var; + + return $this; + } + + /** + * Generated from protobuf field string idxname = 1 [json_name = "idxname"];. + * + * @param string $var + * + * @return $this + */ + public function setIdxname($var) + { + GPBUtil::checkString($var, true); + $this->idxname = $var; + + return $this; + } + + /** + * Generated from protobuf field bool if_not_exists = 23 [json_name = "if_not_exists"];. + * + * @param bool $var + * + * @return $this + */ + public function setIfNotExists($var) + { + GPBUtil::checkBool($var); + $this->if_not_exists = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node index_including_params = 6 [json_name = "indexIncludingParams"];. + * + * @param array $var + * + * @return $this + */ + public function setIndexIncludingParams($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->index_including_params = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 index_oid = 11 [json_name = "indexOid"];. + * + * @param int $var + * + * @return $this + */ + public function setIndexOid($var) + { + GPBUtil::checkUint32($var); + $this->index_oid = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node index_params = 5 [json_name = "indexParams"];. + * + * @param array $var + * + * @return $this + */ + public function setIndexParams($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->index_params = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool initdeferred = 20 [json_name = "initdeferred"];. + * + * @param bool $var + * + * @return $this + */ + public function setInitdeferred($var) + { + GPBUtil::checkBool($var); + $this->initdeferred = $var; + + return $this; + } + + /** + * Generated from protobuf field bool isconstraint = 18 [json_name = "isconstraint"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsconstraint($var) + { + GPBUtil::checkBool($var); + $this->isconstraint = $var; + + return $this; + } + + /** + * Generated from protobuf field bool nulls_not_distinct = 16 [json_name = "nulls_not_distinct"];. + * + * @param bool $var + * + * @return $this + */ + public function setNullsNotDistinct($var) + { + GPBUtil::checkBool($var); + $this->nulls_not_distinct = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 old_create_subid = 13 [json_name = "oldCreateSubid"];. + * + * @param int $var + * + * @return $this + */ + public function setOldCreateSubid($var) + { + GPBUtil::checkUint32($var); + $this->old_create_subid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 old_first_relfilelocator_subid = 14 [json_name = "oldFirstRelfilelocatorSubid"];. + * + * @param int $var + * + * @return $this + */ + public function setOldFirstRelfilelocatorSubid($var) + { + GPBUtil::checkUint32($var); + $this->old_first_relfilelocator_subid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 old_number = 12 [json_name = "oldNumber"];. + * + * @param int $var + * + * @return $this + */ + public function setOldNumber($var) + { + GPBUtil::checkUint32($var); + $this->old_number = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 7 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool primary = 17 [json_name = "primary"];. + * + * @param bool $var + * + * @return $this + */ + public function setPrimary($var) + { + GPBUtil::checkBool($var); + $this->primary = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field bool reset_default_tblspc = 24 [json_name = "reset_default_tblspc"];. + * + * @param bool $var + * + * @return $this + */ + public function setResetDefaultTblspc($var) + { + GPBUtil::checkBool($var); + $this->reset_default_tblspc = $var; + + return $this; + } + + /** + * Generated from protobuf field string table_space = 4 [json_name = "tableSpace"];. + * + * @param string $var + * + * @return $this + */ + public function setTableSpace($var) + { + GPBUtil::checkString($var, true); + $this->table_space = $var; + + return $this; + } + + /** + * Generated from protobuf field bool transformed = 21 [json_name = "transformed"];. + * + * @param bool $var + * + * @return $this + */ + public function setTransformed($var) + { + GPBUtil::checkBool($var); + $this->transformed = $var; + + return $this; + } + + /** + * Generated from protobuf field bool unique = 15 [json_name = "unique"];. + * + * @param bool $var + * + * @return $this + */ + public function setUnique($var) + { + GPBUtil::checkBool($var); + $this->unique = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 8 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InferClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InferClause.php new file mode 100644 index 000000000..191dd53fb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InferClause.php @@ -0,0 +1,166 @@ +pg_query.InferClause. + */ +class InferClause extends Message +{ + /** + * Generated from protobuf field string conname = 3 [json_name = "conname"];. + */ + protected $conname = ''; + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 2 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node index_elems = 1 [json_name = "indexElems"];. + */ + private $index_elems; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $index_elems + * @var Node $where_clause + * @var string $conname + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + /** + * Generated from protobuf field string conname = 3 [json_name = "conname"];. + * + * @return string + */ + public function getConname() + { + return $this->conname; + } + + /** + * Generated from protobuf field repeated .pg_query.Node index_elems = 1 [json_name = "indexElems"];. + * + * @return RepeatedField + */ + public function getIndexElems() + { + return $this->index_elems; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 2 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + /** + * Generated from protobuf field string conname = 3 [json_name = "conname"];. + * + * @param string $var + * + * @return $this + */ + public function setConname($var) + { + GPBUtil::checkString($var, true); + $this->conname = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node index_elems = 1 [json_name = "indexElems"];. + * + * @param array $var + * + * @return $this + */ + public function setIndexElems($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->index_elems = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 2 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InferenceElem.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InferenceElem.php new file mode 100644 index 000000000..4826da1e9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InferenceElem.php @@ -0,0 +1,175 @@ +pg_query.InferenceElem. + */ +class InferenceElem extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field uint32 infercollid = 3 [json_name = "infercollid"];. + */ + protected $infercollid = 0; + + /** + * Generated from protobuf field uint32 inferopclass = 4 [json_name = "inferopclass"];. + */ + protected $inferopclass = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $expr + * @var int $infercollid + * @var int $inferopclass + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field uint32 infercollid = 3 [json_name = "infercollid"];. + * + * @return int + */ + public function getInfercollid() + { + return $this->infercollid; + } + + /** + * Generated from protobuf field uint32 inferopclass = 4 [json_name = "inferopclass"];. + * + * @return int + */ + public function getInferopclass() + { + return $this->inferopclass; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasExpr() + { + return isset($this->expr); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 infercollid = 3 [json_name = "infercollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInfercollid($var) + { + GPBUtil::checkUint32($var); + $this->infercollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 inferopclass = 4 [json_name = "inferopclass"];. + * + * @param int $var + * + * @return $this + */ + public function setInferopclass($var) + { + GPBUtil::checkUint32($var); + $this->inferopclass = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InlineCodeBlock.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InlineCodeBlock.php new file mode 100644 index 000000000..a2fe9bb6d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InlineCodeBlock.php @@ -0,0 +1,155 @@ +pg_query.InlineCodeBlock. + */ +class InlineCodeBlock extends Message +{ + /** + * Generated from protobuf field bool atomic = 4 [json_name = "atomic"];. + */ + protected $atomic = false; + + /** + * Generated from protobuf field bool lang_is_trusted = 3 [json_name = "langIsTrusted"];. + */ + protected $lang_is_trusted = false; + + /** + * Generated from protobuf field uint32 lang_oid = 2 [json_name = "langOid"];. + */ + protected $lang_oid = 0; + + /** + * Generated from protobuf field string source_text = 1 [json_name = "source_text"];. + */ + protected $source_text = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $source_text + * @var int $lang_oid + * @var bool $lang_is_trusted + * @var bool $atomic + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool atomic = 4 [json_name = "atomic"];. + * + * @return bool + */ + public function getAtomic() + { + return $this->atomic; + } + + /** + * Generated from protobuf field bool lang_is_trusted = 3 [json_name = "langIsTrusted"];. + * + * @return bool + */ + public function getLangIsTrusted() + { + return $this->lang_is_trusted; + } + + /** + * Generated from protobuf field uint32 lang_oid = 2 [json_name = "langOid"];. + * + * @return int + */ + public function getLangOid() + { + return $this->lang_oid; + } + + /** + * Generated from protobuf field string source_text = 1 [json_name = "source_text"];. + * + * @return string + */ + public function getSourceText() + { + return $this->source_text; + } + + /** + * Generated from protobuf field bool atomic = 4 [json_name = "atomic"];. + * + * @param bool $var + * + * @return $this + */ + public function setAtomic($var) + { + GPBUtil::checkBool($var); + $this->atomic = $var; + + return $this; + } + + /** + * Generated from protobuf field bool lang_is_trusted = 3 [json_name = "langIsTrusted"];. + * + * @param bool $var + * + * @return $this + */ + public function setLangIsTrusted($var) + { + GPBUtil::checkBool($var); + $this->lang_is_trusted = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 lang_oid = 2 [json_name = "langOid"];. + * + * @param int $var + * + * @return $this + */ + public function setLangOid($var) + { + GPBUtil::checkUint32($var); + $this->lang_oid = $var; + + return $this; + } + + /** + * Generated from protobuf field string source_text = 1 [json_name = "source_text"];. + * + * @param string $var + * + * @return $this + */ + public function setSourceText($var) + { + GPBUtil::checkString($var, true); + $this->source_text = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InsertStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InsertStmt.php new file mode 100644 index 000000000..a01582c10 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/InsertStmt.php @@ -0,0 +1,289 @@ +pg_query.InsertStmt. + */ +class InsertStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.OnConflictClause on_conflict_clause = 4 [json_name = "onConflictClause"];. + */ + protected $on_conflict_clause; + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 7 [json_name = "override"];. + */ + protected $override = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field .pg_query.Node select_stmt = 3 [json_name = "selectStmt"];. + */ + protected $select_stmt; + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + */ + protected $with_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node cols = 2 [json_name = "cols"];. + */ + private $cols; + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + */ + private $returning_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var array $cols + * @var Node $select_stmt + * @var OnConflictClause $on_conflict_clause + * @var array $returning_list + * @var WithClause $with_clause + * @var int $override + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearOnConflictClause() : void + { + $this->on_conflict_clause = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearSelectStmt() : void + { + $this->select_stmt = null; + } + + public function clearWithClause() : void + { + $this->with_clause = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node cols = 2 [json_name = "cols"];. + * + * @return RepeatedField + */ + public function getCols() + { + return $this->cols; + } + + /** + * Generated from protobuf field .pg_query.OnConflictClause on_conflict_clause = 4 [json_name = "onConflictClause"];. + * + * @return null|OnConflictClause + */ + public function getOnConflictClause() + { + return $this->on_conflict_clause; + } + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 7 [json_name = "override"];. + * + * @return int + */ + public function getOverride() + { + return $this->override; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + * + * @return RepeatedField + */ + public function getReturningList() + { + return $this->returning_list; + } + + /** + * Generated from protobuf field .pg_query.Node select_stmt = 3 [json_name = "selectStmt"];. + * + * @return null|Node + */ + public function getSelectStmt() + { + return $this->select_stmt; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + * + * @return null|WithClause + */ + public function getWithClause() + { + return $this->with_clause; + } + + public function hasOnConflictClause() + { + return isset($this->on_conflict_clause); + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasSelectStmt() + { + return isset($this->select_stmt); + } + + public function hasWithClause() + { + return isset($this->with_clause); + } + + /** + * Generated from protobuf field repeated .pg_query.Node cols = 2 [json_name = "cols"];. + * + * @param array $var + * + * @return $this + */ + public function setCols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->cols = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OnConflictClause on_conflict_clause = 4 [json_name = "onConflictClause"];. + * + * @param OnConflictClause $var + * + * @return $this + */ + public function setOnConflictClause($var) + { + GPBUtil::checkMessage($var, OnConflictClause::class); + $this->on_conflict_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 7 [json_name = "override"];. + * + * @param int $var + * + * @return $this + */ + public function setOverride($var) + { + GPBUtil::checkEnum($var, OverridingKind::class); + $this->override = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + * + * @param array $var + * + * @return $this + */ + public function setReturningList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->returning_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node select_stmt = 3 [json_name = "selectStmt"];. + * + * @param Node $var + * + * @return $this + */ + public function setSelectStmt($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->select_stmt = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + * + * @param WithClause $var + * + * @return $this + */ + public function setWithClause($var) + { + GPBUtil::checkMessage($var, WithClause::class); + $this->with_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IntList.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IntList.php new file mode 100644 index 000000000..ac310d0fb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IntList.php @@ -0,0 +1,63 @@ +pg_query.IntList. + */ +class IntList extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + */ + private $items; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $items + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + * + * @return RepeatedField + */ + public function getItems() + { + return $this->items; + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + * + * @param array $var + * + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->items = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Integer.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Integer.php new file mode 100644 index 000000000..8ce5e32ef --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Integer.php @@ -0,0 +1,69 @@ +pg_query.Integer. + */ +class Integer extends Message +{ + /** + * machine integer. + * + * Generated from protobuf field int32 ival = 1; + */ + protected $ival = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $ival + * machine integer + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * machine integer. + * + * Generated from protobuf field int32 ival = 1; + * + * @return int + */ + public function getIval() + { + return $this->ival; + } + + /** + * machine integer. + * + * Generated from protobuf field int32 ival = 1; + * + * @param int $var + * + * @return $this + */ + public function setIval($var) + { + GPBUtil::checkInt32($var); + $this->ival = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IntoClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IntoClause.php new file mode 100644 index 000000000..81151d8c0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/IntoClause.php @@ -0,0 +1,300 @@ +pg_query.IntoClause. + */ +class IntoClause extends Message +{ + /** + * Generated from protobuf field string access_method = 3 [json_name = "accessMethod"];. + */ + protected $access_method = ''; + + /** + * Generated from protobuf field .pg_query.OnCommitAction on_commit = 5 [json_name = "onCommit"];. + */ + protected $on_commit = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar rel = 1 [json_name = "rel"];. + */ + protected $rel; + + /** + * Generated from protobuf field bool skip_data = 8 [json_name = "skipData"];. + */ + protected $skip_data = false; + + /** + * Generated from protobuf field string table_space_name = 6 [json_name = "tableSpaceName"];. + */ + protected $table_space_name = ''; + + /** + * Generated from protobuf field .pg_query.Node view_query = 7 [json_name = "viewQuery"];. + */ + protected $view_query; + + /** + * Generated from protobuf field repeated .pg_query.Node col_names = 2 [json_name = "colNames"];. + */ + private $col_names; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $rel + * @var array $col_names + * @var string $access_method + * @var array $options + * @var int $on_commit + * @var string $table_space_name + * @var Node $view_query + * @var bool $skip_data + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRel() : void + { + $this->rel = null; + } + + public function clearViewQuery() : void + { + $this->view_query = null; + } + + /** + * Generated from protobuf field string access_method = 3 [json_name = "accessMethod"];. + * + * @return string + */ + public function getAccessMethod() + { + return $this->access_method; + } + + /** + * Generated from protobuf field repeated .pg_query.Node col_names = 2 [json_name = "colNames"];. + * + * @return RepeatedField + */ + public function getColNames() + { + return $this->col_names; + } + + /** + * Generated from protobuf field .pg_query.OnCommitAction on_commit = 5 [json_name = "onCommit"];. + * + * @return int + */ + public function getOnCommit() + { + return $this->on_commit; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.RangeVar rel = 1 [json_name = "rel"];. + * + * @return null|RangeVar + */ + public function getRel() + { + return $this->rel; + } + + /** + * Generated from protobuf field bool skip_data = 8 [json_name = "skipData"];. + * + * @return bool + */ + public function getSkipData() + { + return $this->skip_data; + } + + /** + * Generated from protobuf field string table_space_name = 6 [json_name = "tableSpaceName"];. + * + * @return string + */ + public function getTableSpaceName() + { + return $this->table_space_name; + } + + /** + * Generated from protobuf field .pg_query.Node view_query = 7 [json_name = "viewQuery"];. + * + * @return null|Node + */ + public function getViewQuery() + { + return $this->view_query; + } + + public function hasRel() + { + return isset($this->rel); + } + + public function hasViewQuery() + { + return isset($this->view_query); + } + + /** + * Generated from protobuf field string access_method = 3 [json_name = "accessMethod"];. + * + * @param string $var + * + * @return $this + */ + public function setAccessMethod($var) + { + GPBUtil::checkString($var, true); + $this->access_method = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node col_names = 2 [json_name = "colNames"];. + * + * @param array $var + * + * @return $this + */ + public function setColNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->col_names = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OnCommitAction on_commit = 5 [json_name = "onCommit"];. + * + * @param int $var + * + * @return $this + */ + public function setOnCommit($var) + { + GPBUtil::checkEnum($var, OnCommitAction::class); + $this->on_commit = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 4 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar rel = 1 [json_name = "rel"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRel($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->rel = $var; + + return $this; + } + + /** + * Generated from protobuf field bool skip_data = 8 [json_name = "skipData"];. + * + * @param bool $var + * + * @return $this + */ + public function setSkipData($var) + { + GPBUtil::checkBool($var); + $this->skip_data = $var; + + return $this; + } + + /** + * Generated from protobuf field string table_space_name = 6 [json_name = "tableSpaceName"];. + * + * @param string $var + * + * @return $this + */ + public function setTableSpaceName($var) + { + GPBUtil::checkString($var, true); + $this->table_space_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node view_query = 7 [json_name = "viewQuery"];. + * + * @param Node $var + * + * @return $this + */ + public function setViewQuery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->view_query = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JoinExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JoinExpr.php new file mode 100644 index 000000000..bf866325c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JoinExpr.php @@ -0,0 +1,361 @@ +pg_query.JoinExpr. + */ +class JoinExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.Alias alias = 8 [json_name = "alias"];. + */ + protected $alias; + + /** + * Generated from protobuf field bool is_natural = 2 [json_name = "isNatural"];. + */ + protected $is_natural = false; + + /** + * Generated from protobuf field .pg_query.Alias join_using_alias = 6 [json_name = "join_using_alias"];. + */ + protected $join_using_alias; + + /** + * Generated from protobuf field .pg_query.JoinType jointype = 1 [json_name = "jointype"];. + */ + protected $jointype = 0; + + /** + * Generated from protobuf field .pg_query.Node larg = 3 [json_name = "larg"];. + */ + protected $larg; + + /** + * Generated from protobuf field .pg_query.Node quals = 7 [json_name = "quals"];. + */ + protected $quals; + + /** + * Generated from protobuf field .pg_query.Node rarg = 4 [json_name = "rarg"];. + */ + protected $rarg; + + /** + * Generated from protobuf field int32 rtindex = 9 [json_name = "rtindex"];. + */ + protected $rtindex = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node using_clause = 5 [json_name = "usingClause"];. + */ + private $using_clause; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $jointype + * @var bool $is_natural + * @var Node $larg + * @var Node $rarg + * @var array $using_clause + * @var Alias $join_using_alias + * @var Node $quals + * @var Alias $alias + * @var int $rtindex + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAlias() : void + { + $this->alias = null; + } + + public function clearJoinUsingAlias() : void + { + $this->join_using_alias = null; + } + + public function clearLarg() : void + { + $this->larg = null; + } + + public function clearQuals() : void + { + $this->quals = null; + } + + public function clearRarg() : void + { + $this->rarg = null; + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 8 [json_name = "alias"];. + * + * @return null|Alias + */ + public function getAlias() + { + return $this->alias; + } + + /** + * Generated from protobuf field bool is_natural = 2 [json_name = "isNatural"];. + * + * @return bool + */ + public function getIsNatural() + { + return $this->is_natural; + } + + /** + * Generated from protobuf field .pg_query.JoinType jointype = 1 [json_name = "jointype"];. + * + * @return int + */ + public function getJointype() + { + return $this->jointype; + } + + /** + * Generated from protobuf field .pg_query.Alias join_using_alias = 6 [json_name = "join_using_alias"];. + * + * @return null|Alias + */ + public function getJoinUsingAlias() + { + return $this->join_using_alias; + } + + /** + * Generated from protobuf field .pg_query.Node larg = 3 [json_name = "larg"];. + * + * @return null|Node + */ + public function getLarg() + { + return $this->larg; + } + + /** + * Generated from protobuf field .pg_query.Node quals = 7 [json_name = "quals"];. + * + * @return null|Node + */ + public function getQuals() + { + return $this->quals; + } + + /** + * Generated from protobuf field .pg_query.Node rarg = 4 [json_name = "rarg"];. + * + * @return null|Node + */ + public function getRarg() + { + return $this->rarg; + } + + /** + * Generated from protobuf field int32 rtindex = 9 [json_name = "rtindex"];. + * + * @return int + */ + public function getRtindex() + { + return $this->rtindex; + } + + /** + * Generated from protobuf field repeated .pg_query.Node using_clause = 5 [json_name = "usingClause"];. + * + * @return RepeatedField + */ + public function getUsingClause() + { + return $this->using_clause; + } + + public function hasAlias() + { + return isset($this->alias); + } + + public function hasJoinUsingAlias() + { + return isset($this->join_using_alias); + } + + public function hasLarg() + { + return isset($this->larg); + } + + public function hasQuals() + { + return isset($this->quals); + } + + public function hasRarg() + { + return isset($this->rarg); + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 8 [json_name = "alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->alias = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_natural = 2 [json_name = "isNatural"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsNatural($var) + { + GPBUtil::checkBool($var); + $this->is_natural = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JoinType jointype = 1 [json_name = "jointype"];. + * + * @param int $var + * + * @return $this + */ + public function setJointype($var) + { + GPBUtil::checkEnum($var, JoinType::class); + $this->jointype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Alias join_using_alias = 6 [json_name = "join_using_alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setJoinUsingAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->join_using_alias = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node larg = 3 [json_name = "larg"];. + * + * @param Node $var + * + * @return $this + */ + public function setLarg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->larg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node quals = 7 [json_name = "quals"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuals($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->quals = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node rarg = 4 [json_name = "rarg"];. + * + * @param Node $var + * + * @return $this + */ + public function setRarg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->rarg = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 rtindex = 9 [json_name = "rtindex"];. + * + * @param int $var + * + * @return $this + */ + public function setRtindex($var) + { + GPBUtil::checkInt32($var); + $this->rtindex = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node using_clause = 5 [json_name = "usingClause"];. + * + * @param array $var + * + * @return $this + */ + public function setUsingClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->using_clause = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JoinType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JoinType.php new file mode 100644 index 000000000..8931ebc4e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JoinType.php @@ -0,0 +1,105 @@ +pg_query.JoinType. + */ +class JoinType +{ + /** + * Generated from protobuf enum JOIN_ANTI = 6;. + */ + public const JOIN_ANTI = 6; + + /** + * Generated from protobuf enum JOIN_FULL = 3;. + */ + public const JOIN_FULL = 3; + + /** + * Generated from protobuf enum JOIN_INNER = 1;. + */ + public const JOIN_INNER = 1; + + /** + * Generated from protobuf enum JOIN_LEFT = 2;. + */ + public const JOIN_LEFT = 2; + + /** + * Generated from protobuf enum JOIN_RIGHT = 4;. + */ + public const JOIN_RIGHT = 4; + + /** + * Generated from protobuf enum JOIN_RIGHT_ANTI = 7;. + */ + public const JOIN_RIGHT_ANTI = 7; + + /** + * Generated from protobuf enum JOIN_SEMI = 5;. + */ + public const JOIN_SEMI = 5; + + /** + * Generated from protobuf enum JOIN_TYPE_UNDEFINED = 0;. + */ + public const JOIN_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum JOIN_UNIQUE_INNER = 9;. + */ + public const JOIN_UNIQUE_INNER = 9; + + /** + * Generated from protobuf enum JOIN_UNIQUE_OUTER = 8;. + */ + public const JOIN_UNIQUE_OUTER = 8; + + private static $valueToName = [ + self::JOIN_TYPE_UNDEFINED => 'JOIN_TYPE_UNDEFINED', + self::JOIN_INNER => 'JOIN_INNER', + self::JOIN_LEFT => 'JOIN_LEFT', + self::JOIN_FULL => 'JOIN_FULL', + self::JOIN_RIGHT => 'JOIN_RIGHT', + self::JOIN_SEMI => 'JOIN_SEMI', + self::JOIN_ANTI => 'JOIN_ANTI', + self::JOIN_RIGHT_ANTI => 'JOIN_RIGHT_ANTI', + self::JOIN_UNIQUE_OUTER => 'JOIN_UNIQUE_OUTER', + self::JOIN_UNIQUE_INNER => 'JOIN_UNIQUE_INNER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonAggConstructor.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonAggConstructor.php new file mode 100644 index 000000000..0283dc06b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonAggConstructor.php @@ -0,0 +1,217 @@ +pg_query.JsonAggConstructor. + */ +class JsonAggConstructor extends Message +{ + /** + * Generated from protobuf field .pg_query.Node agg_filter = 2 [json_name = "agg_filter"];. + */ + protected $agg_filter; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 1 [json_name = "output"];. + */ + protected $output; + + /** + * Generated from protobuf field .pg_query.WindowDef over = 4 [json_name = "over"];. + */ + protected $over; + + /** + * Generated from protobuf field repeated .pg_query.Node agg_order = 3 [json_name = "agg_order"];. + */ + private $agg_order; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var JsonOutput $output + * @var Node $agg_filter + * @var array $agg_order + * @var WindowDef $over + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAggFilter() : void + { + $this->agg_filter = null; + } + + public function clearOutput() : void + { + $this->output = null; + } + + public function clearOver() : void + { + $this->over = null; + } + + /** + * Generated from protobuf field .pg_query.Node agg_filter = 2 [json_name = "agg_filter"];. + * + * @return null|Node + */ + public function getAggFilter() + { + return $this->agg_filter; + } + + /** + * Generated from protobuf field repeated .pg_query.Node agg_order = 3 [json_name = "agg_order"];. + * + * @return RepeatedField + */ + public function getAggOrder() + { + return $this->agg_order; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 1 [json_name = "output"];. + * + * @return null|JsonOutput + */ + public function getOutput() + { + return $this->output; + } + + /** + * Generated from protobuf field .pg_query.WindowDef over = 4 [json_name = "over"];. + * + * @return null|WindowDef + */ + public function getOver() + { + return $this->over; + } + + public function hasAggFilter() + { + return isset($this->agg_filter); + } + + public function hasOutput() + { + return isset($this->output); + } + + public function hasOver() + { + return isset($this->over); + } + + /** + * Generated from protobuf field .pg_query.Node agg_filter = 2 [json_name = "agg_filter"];. + * + * @param Node $var + * + * @return $this + */ + public function setAggFilter($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->agg_filter = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node agg_order = 3 [json_name = "agg_order"];. + * + * @param array $var + * + * @return $this + */ + public function setAggOrder($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->agg_order = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 1 [json_name = "output"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->output = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WindowDef over = 4 [json_name = "over"];. + * + * @param WindowDef $var + * + * @return $this + */ + public function setOver($var) + { + GPBUtil::checkMessage($var, WindowDef::class); + $this->over = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArgument.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArgument.php new file mode 100644 index 000000000..9df7a9633 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArgument.php @@ -0,0 +1,103 @@ +pg_query.JsonArgument. + */ +class JsonArgument extends Message +{ + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.JsonValueExpr val = 1 [json_name = "val"];. + */ + protected $val; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var JsonValueExpr $val + * @var string $name + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearVal() : void + { + $this->val = null; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr val = 1 [json_name = "val"];. + * + * @return null|JsonValueExpr + */ + public function getVal() + { + return $this->val; + } + + public function hasVal() + { + return isset($this->val); + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr val = 1 [json_name = "val"];. + * + * @param JsonValueExpr $var + * + * @return $this + */ + public function setVal($var) + { + GPBUtil::checkMessage($var, JsonValueExpr::class); + $this->val = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayAgg.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayAgg.php new file mode 100644 index 000000000..f74306d36 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayAgg.php @@ -0,0 +1,144 @@ +pg_query.JsonArrayAgg. + */ +class JsonArrayAgg extends Message +{ + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + */ + protected $absent_on_null = false; + + /** + * Generated from protobuf field .pg_query.JsonValueExpr arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field .pg_query.JsonAggConstructor constructor = 1 [json_name = "constructor"];. + */ + protected $constructor; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var JsonAggConstructor $constructor + * @var JsonValueExpr $arg + * @var bool $absent_on_null + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearConstructor() : void + { + $this->constructor = null; + } + + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + * + * @return bool + */ + public function getAbsentOnNull() + { + return $this->absent_on_null; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr arg = 2 [json_name = "arg"];. + * + * @return null|JsonValueExpr + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field .pg_query.JsonAggConstructor constructor = 1 [json_name = "constructor"];. + * + * @return null|JsonAggConstructor + */ + public function getConstructor() + { + return $this->constructor; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasConstructor() + { + return isset($this->constructor); + } + + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + * + * @param bool $var + * + * @return $this + */ + public function setAbsentOnNull($var) + { + GPBUtil::checkBool($var); + $this->absent_on_null = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr arg = 2 [json_name = "arg"];. + * + * @param JsonValueExpr $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, JsonValueExpr::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonAggConstructor constructor = 1 [json_name = "constructor"];. + * + * @param JsonAggConstructor $var + * + * @return $this + */ + public function setConstructor($var) + { + GPBUtil::checkMessage($var, JsonAggConstructor::class); + $this->constructor = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayConstructor.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayConstructor.php new file mode 100644 index 000000000..15bbdc0c0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayConstructor.php @@ -0,0 +1,166 @@ +pg_query.JsonArrayConstructor. + */ +class JsonArrayConstructor extends Message +{ + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + */ + protected $absent_on_null = false; + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + */ + protected $output; + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 1 [json_name = "exprs"];. + */ + private $exprs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $exprs + * @var JsonOutput $output + * @var bool $absent_on_null + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearOutput() : void + { + $this->output = null; + } + + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + * + * @return bool + */ + public function getAbsentOnNull() + { + return $this->absent_on_null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 1 [json_name = "exprs"];. + * + * @return RepeatedField + */ + public function getExprs() + { + return $this->exprs; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @return null|JsonOutput + */ + public function getOutput() + { + return $this->output; + } + + public function hasOutput() + { + return isset($this->output); + } + + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + * + * @param bool $var + * + * @return $this + */ + public function setAbsentOnNull($var) + { + GPBUtil::checkBool($var); + $this->absent_on_null = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 1 [json_name = "exprs"];. + * + * @param array $var + * + * @return $this + */ + public function setExprs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->exprs = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->output = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayQueryConstructor.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayQueryConstructor.php new file mode 100644 index 000000000..5bc122678 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonArrayQueryConstructor.php @@ -0,0 +1,216 @@ +pg_query.JsonArrayQueryConstructor. + */ +class JsonArrayQueryConstructor extends Message +{ + /** + * Generated from protobuf field bool absent_on_null = 4 [json_name = "absent_on_null"];. + */ + protected $absent_on_null = false; + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 3 [json_name = "format"];. + */ + protected $format; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + */ + protected $output; + + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + */ + protected $query; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $query + * @var JsonOutput $output + * @var JsonFormat $format + * @var bool $absent_on_null + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFormat() : void + { + $this->format = null; + } + + public function clearOutput() : void + { + $this->output = null; + } + + public function clearQuery() : void + { + $this->query = null; + } + + /** + * Generated from protobuf field bool absent_on_null = 4 [json_name = "absent_on_null"];. + * + * @return bool + */ + public function getAbsentOnNull() + { + return $this->absent_on_null; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 3 [json_name = "format"];. + * + * @return null|JsonFormat + */ + public function getFormat() + { + return $this->format; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @return null|JsonOutput + */ + public function getOutput() + { + return $this->output; + } + + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + * + * @return null|Node + */ + public function getQuery() + { + return $this->query; + } + + public function hasFormat() + { + return isset($this->format); + } + + public function hasOutput() + { + return isset($this->output); + } + + public function hasQuery() + { + return isset($this->query); + } + + /** + * Generated from protobuf field bool absent_on_null = 4 [json_name = "absent_on_null"];. + * + * @param bool $var + * + * @return $this + */ + public function setAbsentOnNull($var) + { + GPBUtil::checkBool($var); + $this->absent_on_null = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 3 [json_name = "format"];. + * + * @param JsonFormat $var + * + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkMessage($var, JsonFormat::class); + $this->format = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->output = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node query = 1 [json_name = "query"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->query = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonBehavior.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonBehavior.php new file mode 100644 index 000000000..7bb4c2e8f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonBehavior.php @@ -0,0 +1,165 @@ +pg_query.JsonBehavior. + */ +class JsonBehavior extends Message +{ + /** + * Generated from protobuf field .pg_query.JsonBehaviorType btype = 1 [json_name = "btype"];. + */ + protected $btype = 0; + + /** + * Generated from protobuf field bool coerce = 3 [json_name = "coerce"];. + */ + protected $coerce = false; + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $btype + * @var Node $expr + * @var bool $coerce + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + /** + * Generated from protobuf field .pg_query.JsonBehaviorType btype = 1 [json_name = "btype"];. + * + * @return int + */ + public function getBtype() + { + return $this->btype; + } + + /** + * Generated from protobuf field bool coerce = 3 [json_name = "coerce"];. + * + * @return bool + */ + public function getCoerce() + { + return $this->coerce; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + public function hasExpr() + { + return isset($this->expr); + } + + /** + * Generated from protobuf field .pg_query.JsonBehaviorType btype = 1 [json_name = "btype"];. + * + * @param int $var + * + * @return $this + */ + public function setBtype($var) + { + GPBUtil::checkEnum($var, JsonBehaviorType::class); + $this->btype = $var; + + return $this; + } + + /** + * Generated from protobuf field bool coerce = 3 [json_name = "coerce"];. + * + * @param bool $var + * + * @return $this + */ + public function setCoerce($var) + { + GPBUtil::checkBool($var); + $this->coerce = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonBehaviorType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonBehaviorType.php new file mode 100644 index 000000000..4bb328e75 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonBehaviorType.php @@ -0,0 +1,105 @@ +pg_query.JsonBehaviorType. + */ +class JsonBehaviorType +{ + /** + * Generated from protobuf enum JSON_BEHAVIOR_DEFAULT = 9;. + */ + public const JSON_BEHAVIOR_DEFAULT = 9; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_EMPTY = 3;. + */ + public const JSON_BEHAVIOR_EMPTY = 3; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_EMPTY_ARRAY = 7;. + */ + public const JSON_BEHAVIOR_EMPTY_ARRAY = 7; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_EMPTY_OBJECT = 8;. + */ + public const JSON_BEHAVIOR_EMPTY_OBJECT = 8; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_ERROR = 2;. + */ + public const JSON_BEHAVIOR_ERROR = 2; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_FALSE = 5;. + */ + public const JSON_BEHAVIOR_FALSE = 5; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_NULL = 1;. + */ + public const JSON_BEHAVIOR_NULL = 1; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_TRUE = 4;. + */ + public const JSON_BEHAVIOR_TRUE = 4; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_TYPE_UNDEFINED = 0;. + */ + public const JSON_BEHAVIOR_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum JSON_BEHAVIOR_UNKNOWN = 6;. + */ + public const JSON_BEHAVIOR_UNKNOWN = 6; + + private static $valueToName = [ + self::JSON_BEHAVIOR_TYPE_UNDEFINED => 'JSON_BEHAVIOR_TYPE_UNDEFINED', + self::JSON_BEHAVIOR_NULL => 'JSON_BEHAVIOR_NULL', + self::JSON_BEHAVIOR_ERROR => 'JSON_BEHAVIOR_ERROR', + self::JSON_BEHAVIOR_EMPTY => 'JSON_BEHAVIOR_EMPTY', + self::JSON_BEHAVIOR_TRUE => 'JSON_BEHAVIOR_TRUE', + self::JSON_BEHAVIOR_FALSE => 'JSON_BEHAVIOR_FALSE', + self::JSON_BEHAVIOR_UNKNOWN => 'JSON_BEHAVIOR_UNKNOWN', + self::JSON_BEHAVIOR_EMPTY_ARRAY => 'JSON_BEHAVIOR_EMPTY_ARRAY', + self::JSON_BEHAVIOR_EMPTY_OBJECT => 'JSON_BEHAVIOR_EMPTY_OBJECT', + self::JSON_BEHAVIOR_DEFAULT => 'JSON_BEHAVIOR_DEFAULT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonConstructorExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonConstructorExpr.php new file mode 100644 index 000000000..7ffb1be78 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonConstructorExpr.php @@ -0,0 +1,351 @@ +pg_query.JsonConstructorExpr. + */ +class JsonConstructorExpr extends Message +{ + /** + * Generated from protobuf field bool absent_on_null = 7 [json_name = "absent_on_null"];. + */ + protected $absent_on_null = false; + + /** + * Generated from protobuf field .pg_query.Node coercion = 5 [json_name = "coercion"];. + */ + protected $coercion; + + /** + * Generated from protobuf field .pg_query.Node func = 4 [json_name = "func"];. + */ + protected $func; + + /** + * Generated from protobuf field int32 location = 9 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 6 [json_name = "returning"];. + */ + protected $returning; + + /** + * Generated from protobuf field .pg_query.JsonConstructorType type = 2 [json_name = "type"];. + */ + protected $type = 0; + + /** + * Generated from protobuf field bool unique = 8 [json_name = "unique"];. + */ + protected $unique = false; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $type + * @var array $args + * @var Node $func + * @var Node $coercion + * @var JsonReturning $returning + * @var bool $absent_on_null + * @var bool $unique + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearCoercion() : void + { + $this->coercion = null; + } + + public function clearFunc() : void + { + $this->func = null; + } + + public function clearReturning() : void + { + $this->returning = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field bool absent_on_null = 7 [json_name = "absent_on_null"];. + * + * @return bool + */ + public function getAbsentOnNull() + { + return $this->absent_on_null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field .pg_query.Node coercion = 5 [json_name = "coercion"];. + * + * @return null|Node + */ + public function getCoercion() + { + return $this->coercion; + } + + /** + * Generated from protobuf field .pg_query.Node func = 4 [json_name = "func"];. + * + * @return null|Node + */ + public function getFunc() + { + return $this->func; + } + + /** + * Generated from protobuf field int32 location = 9 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 6 [json_name = "returning"];. + * + * @return null|JsonReturning + */ + public function getReturning() + { + return $this->returning; + } + + /** + * Generated from protobuf field .pg_query.JsonConstructorType type = 2 [json_name = "type"];. + * + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Generated from protobuf field bool unique = 8 [json_name = "unique"];. + * + * @return bool + */ + public function getUnique() + { + return $this->unique; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasCoercion() + { + return isset($this->coercion); + } + + public function hasFunc() + { + return isset($this->func); + } + + public function hasReturning() + { + return isset($this->returning); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field bool absent_on_null = 7 [json_name = "absent_on_null"];. + * + * @param bool $var + * + * @return $this + */ + public function setAbsentOnNull($var) + { + GPBUtil::checkBool($var); + $this->absent_on_null = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node coercion = 5 [json_name = "coercion"];. + * + * @param Node $var + * + * @return $this + */ + public function setCoercion($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->coercion = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node func = 4 [json_name = "func"];. + * + * @param Node $var + * + * @return $this + */ + public function setFunc($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->func = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 9 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 6 [json_name = "returning"];. + * + * @param JsonReturning $var + * + * @return $this + */ + public function setReturning($var) + { + GPBUtil::checkMessage($var, JsonReturning::class); + $this->returning = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonConstructorType type = 2 [json_name = "type"];. + * + * @param int $var + * + * @return $this + */ + public function setType($var) + { + GPBUtil::checkEnum($var, JsonConstructorType::class); + $this->type = $var; + + return $this; + } + + /** + * Generated from protobuf field bool unique = 8 [json_name = "unique"];. + * + * @param bool $var + * + * @return $this + */ + public function setUnique($var) + { + GPBUtil::checkBool($var); + $this->unique = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonConstructorType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonConstructorType.php new file mode 100644 index 000000000..ace3af78e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonConstructorType.php @@ -0,0 +1,93 @@ +pg_query.JsonConstructorType. + */ +class JsonConstructorType +{ + /** + * Generated from protobuf enum JSCTOR_JSON_ARRAY = 2;. + */ + public const JSCTOR_JSON_ARRAY = 2; + + /** + * Generated from protobuf enum JSCTOR_JSON_ARRAYAGG = 4;. + */ + public const JSCTOR_JSON_ARRAYAGG = 4; + + /** + * Generated from protobuf enum JSCTOR_JSON_OBJECT = 1;. + */ + public const JSCTOR_JSON_OBJECT = 1; + + /** + * Generated from protobuf enum JSCTOR_JSON_OBJECTAGG = 3;. + */ + public const JSCTOR_JSON_OBJECTAGG = 3; + + /** + * Generated from protobuf enum JSCTOR_JSON_PARSE = 5;. + */ + public const JSCTOR_JSON_PARSE = 5; + + /** + * Generated from protobuf enum JSCTOR_JSON_SCALAR = 6;. + */ + public const JSCTOR_JSON_SCALAR = 6; + + /** + * Generated from protobuf enum JSCTOR_JSON_SERIALIZE = 7;. + */ + public const JSCTOR_JSON_SERIALIZE = 7; + + /** + * Generated from protobuf enum JSON_CONSTRUCTOR_TYPE_UNDEFINED = 0;. + */ + public const JSON_CONSTRUCTOR_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::JSON_CONSTRUCTOR_TYPE_UNDEFINED => 'JSON_CONSTRUCTOR_TYPE_UNDEFINED', + self::JSCTOR_JSON_OBJECT => 'JSCTOR_JSON_OBJECT', + self::JSCTOR_JSON_ARRAY => 'JSCTOR_JSON_ARRAY', + self::JSCTOR_JSON_OBJECTAGG => 'JSCTOR_JSON_OBJECTAGG', + self::JSCTOR_JSON_ARRAYAGG => 'JSCTOR_JSON_ARRAYAGG', + self::JSCTOR_JSON_PARSE => 'JSCTOR_JSON_PARSE', + self::JSCTOR_JSON_SCALAR => 'JSCTOR_JSON_SCALAR', + self::JSCTOR_JSON_SERIALIZE => 'JSCTOR_JSON_SERIALIZE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonEncoding.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonEncoding.php new file mode 100644 index 000000000..14eb0a6b7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonEncoding.php @@ -0,0 +1,75 @@ +pg_query.JsonEncoding. + */ +class JsonEncoding +{ + /** + * Generated from protobuf enum JS_ENC_DEFAULT = 1;. + */ + public const JS_ENC_DEFAULT = 1; + + /** + * Generated from protobuf enum JS_ENC_UTF16 = 3;. + */ + public const JS_ENC_UTF16 = 3; + + /** + * Generated from protobuf enum JS_ENC_UTF32 = 4;. + */ + public const JS_ENC_UTF32 = 4; + + /** + * Generated from protobuf enum JS_ENC_UTF8 = 2;. + */ + public const JS_ENC_UTF8 = 2; + + /** + * Generated from protobuf enum JSON_ENCODING_UNDEFINED = 0;. + */ + public const JSON_ENCODING_UNDEFINED = 0; + + private static $valueToName = [ + self::JSON_ENCODING_UNDEFINED => 'JSON_ENCODING_UNDEFINED', + self::JS_ENC_DEFAULT => 'JS_ENC_DEFAULT', + self::JS_ENC_UTF8 => 'JS_ENC_UTF8', + self::JS_ENC_UTF16 => 'JS_ENC_UTF16', + self::JS_ENC_UTF32 => 'JS_ENC_UTF32', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonExpr.php new file mode 100644 index 000000000..068eebd4b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonExpr.php @@ -0,0 +1,629 @@ +pg_query.JsonExpr. + */ +class JsonExpr extends Message +{ + /** + * Generated from protobuf field uint32 collation = 16 [json_name = "collation"];. + */ + protected $collation = 0; + + /** + * Generated from protobuf field string column_name = 3 [json_name = "column_name"];. + */ + protected $column_name = ''; + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 5 [json_name = "format"];. + */ + protected $format; + + /** + * Generated from protobuf field .pg_query.Node formatted_expr = 4 [json_name = "formatted_expr"];. + */ + protected $formatted_expr; + + /** + * Generated from protobuf field int32 location = 17 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field bool omit_quotes = 15 [json_name = "omit_quotes"];. + */ + protected $omit_quotes = false; + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 10 [json_name = "on_empty"];. + */ + protected $on_empty; + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 11 [json_name = "on_error"];. + */ + protected $on_error; + + /** + * Generated from protobuf field .pg_query.JsonExprOp op = 2 [json_name = "op"];. + */ + protected $op = 0; + + /** + * Generated from protobuf field .pg_query.Node path_spec = 6 [json_name = "path_spec"];. + */ + protected $path_spec; + + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 7 [json_name = "returning"];. + */ + protected $returning; + + /** + * Generated from protobuf field bool use_io_coercion = 12 [json_name = "use_io_coercion"];. + */ + protected $use_io_coercion = false; + + /** + * Generated from protobuf field bool use_json_coercion = 13 [json_name = "use_json_coercion"];. + */ + protected $use_json_coercion = false; + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 14 [json_name = "wrapper"];. + */ + protected $wrapper = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node passing_names = 8 [json_name = "passing_names"];. + */ + private $passing_names; + + /** + * Generated from protobuf field repeated .pg_query.Node passing_values = 9 [json_name = "passing_values"];. + */ + private $passing_values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $op + * @var string $column_name + * @var Node $formatted_expr + * @var JsonFormat $format + * @var Node $path_spec + * @var JsonReturning $returning + * @var array $passing_names + * @var array $passing_values + * @var JsonBehavior $on_empty + * @var JsonBehavior $on_error + * @var bool $use_io_coercion + * @var bool $use_json_coercion + * @var int $wrapper + * @var bool $omit_quotes + * @var int $collation + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFormat() : void + { + $this->format = null; + } + + public function clearFormattedExpr() : void + { + $this->formatted_expr = null; + } + + public function clearOnEmpty() : void + { + $this->on_empty = null; + } + + public function clearOnError() : void + { + $this->on_error = null; + } + + public function clearPathSpec() : void + { + $this->path_spec = null; + } + + public function clearReturning() : void + { + $this->returning = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field uint32 collation = 16 [json_name = "collation"];. + * + * @return int + */ + public function getCollation() + { + return $this->collation; + } + + /** + * Generated from protobuf field string column_name = 3 [json_name = "column_name"];. + * + * @return string + */ + public function getColumnName() + { + return $this->column_name; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 5 [json_name = "format"];. + * + * @return null|JsonFormat + */ + public function getFormat() + { + return $this->format; + } + + /** + * Generated from protobuf field .pg_query.Node formatted_expr = 4 [json_name = "formatted_expr"];. + * + * @return null|Node + */ + public function getFormattedExpr() + { + return $this->formatted_expr; + } + + /** + * Generated from protobuf field int32 location = 17 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field bool omit_quotes = 15 [json_name = "omit_quotes"];. + * + * @return bool + */ + public function getOmitQuotes() + { + return $this->omit_quotes; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 10 [json_name = "on_empty"];. + * + * @return null|JsonBehavior + */ + public function getOnEmpty() + { + return $this->on_empty; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 11 [json_name = "on_error"];. + * + * @return null|JsonBehavior + */ + public function getOnError() + { + return $this->on_error; + } + + /** + * Generated from protobuf field .pg_query.JsonExprOp op = 2 [json_name = "op"];. + * + * @return int + */ + public function getOp() + { + return $this->op; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passing_names = 8 [json_name = "passing_names"];. + * + * @return RepeatedField + */ + public function getPassingNames() + { + return $this->passing_names; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passing_values = 9 [json_name = "passing_values"];. + * + * @return RepeatedField + */ + public function getPassingValues() + { + return $this->passing_values; + } + + /** + * Generated from protobuf field .pg_query.Node path_spec = 6 [json_name = "path_spec"];. + * + * @return null|Node + */ + public function getPathSpec() + { + return $this->path_spec; + } + + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 7 [json_name = "returning"];. + * + * @return null|JsonReturning + */ + public function getReturning() + { + return $this->returning; + } + + /** + * Generated from protobuf field bool use_io_coercion = 12 [json_name = "use_io_coercion"];. + * + * @return bool + */ + public function getUseIoCoercion() + { + return $this->use_io_coercion; + } + + /** + * Generated from protobuf field bool use_json_coercion = 13 [json_name = "use_json_coercion"];. + * + * @return bool + */ + public function getUseJsonCoercion() + { + return $this->use_json_coercion; + } + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 14 [json_name = "wrapper"];. + * + * @return int + */ + public function getWrapper() + { + return $this->wrapper; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasFormat() + { + return isset($this->format); + } + + public function hasFormattedExpr() + { + return isset($this->formatted_expr); + } + + public function hasOnEmpty() + { + return isset($this->on_empty); + } + + public function hasOnError() + { + return isset($this->on_error); + } + + public function hasPathSpec() + { + return isset($this->path_spec); + } + + public function hasReturning() + { + return isset($this->returning); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field uint32 collation = 16 [json_name = "collation"];. + * + * @param int $var + * + * @return $this + */ + public function setCollation($var) + { + GPBUtil::checkUint32($var); + $this->collation = $var; + + return $this; + } + + /** + * Generated from protobuf field string column_name = 3 [json_name = "column_name"];. + * + * @param string $var + * + * @return $this + */ + public function setColumnName($var) + { + GPBUtil::checkString($var, true); + $this->column_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 5 [json_name = "format"];. + * + * @param JsonFormat $var + * + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkMessage($var, JsonFormat::class); + $this->format = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node formatted_expr = 4 [json_name = "formatted_expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setFormattedExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->formatted_expr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 17 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field bool omit_quotes = 15 [json_name = "omit_quotes"];. + * + * @param bool $var + * + * @return $this + */ + public function setOmitQuotes($var) + { + GPBUtil::checkBool($var); + $this->omit_quotes = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 10 [json_name = "on_empty"];. + * + * @param JsonBehavior $var + * + * @return $this + */ + public function setOnEmpty($var) + { + GPBUtil::checkMessage($var, JsonBehavior::class); + $this->on_empty = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 11 [json_name = "on_error"];. + * + * @param JsonBehavior $var + * + * @return $this + */ + public function setOnError($var) + { + GPBUtil::checkMessage($var, JsonBehavior::class); + $this->on_error = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonExprOp op = 2 [json_name = "op"];. + * + * @param int $var + * + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkEnum($var, JsonExprOp::class); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passing_names = 8 [json_name = "passing_names"];. + * + * @param array $var + * + * @return $this + */ + public function setPassingNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->passing_names = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passing_values = 9 [json_name = "passing_values"];. + * + * @param array $var + * + * @return $this + */ + public function setPassingValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->passing_values = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node path_spec = 6 [json_name = "path_spec"];. + * + * @param Node $var + * + * @return $this + */ + public function setPathSpec($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->path_spec = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 7 [json_name = "returning"];. + * + * @param JsonReturning $var + * + * @return $this + */ + public function setReturning($var) + { + GPBUtil::checkMessage($var, JsonReturning::class); + $this->returning = $var; + + return $this; + } + + /** + * Generated from protobuf field bool use_io_coercion = 12 [json_name = "use_io_coercion"];. + * + * @param bool $var + * + * @return $this + */ + public function setUseIoCoercion($var) + { + GPBUtil::checkBool($var); + $this->use_io_coercion = $var; + + return $this; + } + + /** + * Generated from protobuf field bool use_json_coercion = 13 [json_name = "use_json_coercion"];. + * + * @param bool $var + * + * @return $this + */ + public function setUseJsonCoercion($var) + { + GPBUtil::checkBool($var); + $this->use_json_coercion = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 14 [json_name = "wrapper"];. + * + * @param int $var + * + * @return $this + */ + public function setWrapper($var) + { + GPBUtil::checkEnum($var, JsonWrapper::class); + $this->wrapper = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonExprOp.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonExprOp.php new file mode 100644 index 000000000..12fc95330 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonExprOp.php @@ -0,0 +1,75 @@ +pg_query.JsonExprOp. + */ +class JsonExprOp +{ + /** + * Generated from protobuf enum JSON_EXISTS_OP = 1;. + */ + public const JSON_EXISTS_OP = 1; + + /** + * Generated from protobuf enum JSON_EXPR_OP_UNDEFINED = 0;. + */ + public const JSON_EXPR_OP_UNDEFINED = 0; + + /** + * Generated from protobuf enum JSON_QUERY_OP = 2;. + */ + public const JSON_QUERY_OP = 2; + + /** + * Generated from protobuf enum JSON_TABLE_OP = 4;. + */ + public const JSON_TABLE_OP = 4; + + /** + * Generated from protobuf enum JSON_VALUE_OP = 3;. + */ + public const JSON_VALUE_OP = 3; + + private static $valueToName = [ + self::JSON_EXPR_OP_UNDEFINED => 'JSON_EXPR_OP_UNDEFINED', + self::JSON_EXISTS_OP => 'JSON_EXISTS_OP', + self::JSON_QUERY_OP => 'JSON_QUERY_OP', + self::JSON_VALUE_OP => 'JSON_VALUE_OP', + self::JSON_TABLE_OP => 'JSON_TABLE_OP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFormat.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFormat.php new file mode 100644 index 000000000..97b9b71c6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFormat.php @@ -0,0 +1,124 @@ +pg_query.JsonFormat. + */ +class JsonFormat extends Message +{ + /** + * Generated from protobuf field .pg_query.JsonEncoding encoding = 2 [json_name = "encoding"];. + */ + protected $encoding = 0; + + /** + * Generated from protobuf field .pg_query.JsonFormatType format_type = 1 [json_name = "format_type"];. + */ + protected $format_type = 0; + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $format_type + * @var int $encoding + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.JsonEncoding encoding = 2 [json_name = "encoding"];. + * + * @return int + */ + public function getEncoding() + { + return $this->encoding; + } + + /** + * Generated from protobuf field .pg_query.JsonFormatType format_type = 1 [json_name = "format_type"];. + * + * @return int + */ + public function getFormatType() + { + return $this->format_type; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonEncoding encoding = 2 [json_name = "encoding"];. + * + * @param int $var + * + * @return $this + */ + public function setEncoding($var) + { + GPBUtil::checkEnum($var, JsonEncoding::class); + $this->encoding = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonFormatType format_type = 1 [json_name = "format_type"];. + * + * @param int $var + * + * @return $this + */ + public function setFormatType($var) + { + GPBUtil::checkEnum($var, JsonFormatType::class); + $this->format_type = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFormatType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFormatType.php new file mode 100644 index 000000000..885c5ad5a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFormatType.php @@ -0,0 +1,69 @@ +pg_query.JsonFormatType. + */ +class JsonFormatType +{ + /** + * Generated from protobuf enum JS_FORMAT_DEFAULT = 1;. + */ + public const JS_FORMAT_DEFAULT = 1; + + /** + * Generated from protobuf enum JS_FORMAT_JSON = 2;. + */ + public const JS_FORMAT_JSON = 2; + + /** + * Generated from protobuf enum JS_FORMAT_JSONB = 3;. + */ + public const JS_FORMAT_JSONB = 3; + + /** + * Generated from protobuf enum JSON_FORMAT_TYPE_UNDEFINED = 0;. + */ + public const JSON_FORMAT_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::JSON_FORMAT_TYPE_UNDEFINED => 'JSON_FORMAT_TYPE_UNDEFINED', + self::JS_FORMAT_DEFAULT => 'JS_FORMAT_DEFAULT', + self::JS_FORMAT_JSON => 'JS_FORMAT_JSON', + self::JS_FORMAT_JSONB => 'JS_FORMAT_JSONB', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFuncExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFuncExpr.php new file mode 100644 index 000000000..b5ec09a21 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonFuncExpr.php @@ -0,0 +1,423 @@ +pg_query.JsonFuncExpr. + */ +class JsonFuncExpr extends Message +{ + /** + * Generated from protobuf field string column_name = 2 [json_name = "column_name"];. + */ + protected $column_name = ''; + + /** + * Generated from protobuf field .pg_query.JsonValueExpr context_item = 3 [json_name = "context_item"];. + */ + protected $context_item; + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 7 [json_name = "on_empty"];. + */ + protected $on_empty; + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 8 [json_name = "on_error"];. + */ + protected $on_error; + + /** + * Generated from protobuf field .pg_query.JsonExprOp op = 1 [json_name = "op"];. + */ + protected $op = 0; + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 6 [json_name = "output"];. + */ + protected $output; + + /** + * Generated from protobuf field .pg_query.Node pathspec = 4 [json_name = "pathspec"];. + */ + protected $pathspec; + + /** + * Generated from protobuf field .pg_query.JsonQuotes quotes = 10 [json_name = "quotes"];. + */ + protected $quotes = 0; + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 9 [json_name = "wrapper"];. + */ + protected $wrapper = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node passing = 5 [json_name = "passing"];. + */ + private $passing; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $op + * @var string $column_name + * @var JsonValueExpr $context_item + * @var Node $pathspec + * @var array $passing + * @var JsonOutput $output + * @var JsonBehavior $on_empty + * @var JsonBehavior $on_error + * @var int $wrapper + * @var int $quotes + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearContextItem() : void + { + $this->context_item = null; + } + + public function clearOnEmpty() : void + { + $this->on_empty = null; + } + + public function clearOnError() : void + { + $this->on_error = null; + } + + public function clearOutput() : void + { + $this->output = null; + } + + public function clearPathspec() : void + { + $this->pathspec = null; + } + + /** + * Generated from protobuf field string column_name = 2 [json_name = "column_name"];. + * + * @return string + */ + public function getColumnName() + { + return $this->column_name; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr context_item = 3 [json_name = "context_item"];. + * + * @return null|JsonValueExpr + */ + public function getContextItem() + { + return $this->context_item; + } + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 7 [json_name = "on_empty"];. + * + * @return null|JsonBehavior + */ + public function getOnEmpty() + { + return $this->on_empty; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 8 [json_name = "on_error"];. + * + * @return null|JsonBehavior + */ + public function getOnError() + { + return $this->on_error; + } + + /** + * Generated from protobuf field .pg_query.JsonExprOp op = 1 [json_name = "op"];. + * + * @return int + */ + public function getOp() + { + return $this->op; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 6 [json_name = "output"];. + * + * @return null|JsonOutput + */ + public function getOutput() + { + return $this->output; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passing = 5 [json_name = "passing"];. + * + * @return RepeatedField + */ + public function getPassing() + { + return $this->passing; + } + + /** + * Generated from protobuf field .pg_query.Node pathspec = 4 [json_name = "pathspec"];. + * + * @return null|Node + */ + public function getPathspec() + { + return $this->pathspec; + } + + /** + * Generated from protobuf field .pg_query.JsonQuotes quotes = 10 [json_name = "quotes"];. + * + * @return int + */ + public function getQuotes() + { + return $this->quotes; + } + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 9 [json_name = "wrapper"];. + * + * @return int + */ + public function getWrapper() + { + return $this->wrapper; + } + + public function hasContextItem() + { + return isset($this->context_item); + } + + public function hasOnEmpty() + { + return isset($this->on_empty); + } + + public function hasOnError() + { + return isset($this->on_error); + } + + public function hasOutput() + { + return isset($this->output); + } + + public function hasPathspec() + { + return isset($this->pathspec); + } + + /** + * Generated from protobuf field string column_name = 2 [json_name = "column_name"];. + * + * @param string $var + * + * @return $this + */ + public function setColumnName($var) + { + GPBUtil::checkString($var, true); + $this->column_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr context_item = 3 [json_name = "context_item"];. + * + * @param JsonValueExpr $var + * + * @return $this + */ + public function setContextItem($var) + { + GPBUtil::checkMessage($var, JsonValueExpr::class); + $this->context_item = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 7 [json_name = "on_empty"];. + * + * @param JsonBehavior $var + * + * @return $this + */ + public function setOnEmpty($var) + { + GPBUtil::checkMessage($var, JsonBehavior::class); + $this->on_empty = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 8 [json_name = "on_error"];. + * + * @param JsonBehavior $var + * + * @return $this + */ + public function setOnError($var) + { + GPBUtil::checkMessage($var, JsonBehavior::class); + $this->on_error = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonExprOp op = 1 [json_name = "op"];. + * + * @param int $var + * + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkEnum($var, JsonExprOp::class); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 6 [json_name = "output"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->output = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passing = 5 [json_name = "passing"];. + * + * @param array $var + * + * @return $this + */ + public function setPassing($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->passing = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node pathspec = 4 [json_name = "pathspec"];. + * + * @param Node $var + * + * @return $this + */ + public function setPathspec($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->pathspec = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonQuotes quotes = 10 [json_name = "quotes"];. + * + * @param int $var + * + * @return $this + */ + public function setQuotes($var) + { + GPBUtil::checkEnum($var, JsonQuotes::class); + $this->quotes = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 9 [json_name = "wrapper"];. + * + * @param int $var + * + * @return $this + */ + public function setWrapper($var) + { + GPBUtil::checkEnum($var, JsonWrapper::class); + $this->wrapper = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonIsPredicate.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonIsPredicate.php new file mode 100644 index 000000000..aca8f3fa0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonIsPredicate.php @@ -0,0 +1,206 @@ +pg_query.JsonIsPredicate. + */ +class JsonIsPredicate extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 1 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 2 [json_name = "format"];. + */ + protected $format; + + /** + * Generated from protobuf field .pg_query.JsonValueType item_type = 3 [json_name = "item_type"];. + */ + protected $item_type = 0; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field bool unique_keys = 4 [json_name = "unique_keys"];. + */ + protected $unique_keys = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $expr + * @var JsonFormat $format + * @var int $item_type + * @var bool $unique_keys + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + public function clearFormat() : void + { + $this->format = null; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 1 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 2 [json_name = "format"];. + * + * @return null|JsonFormat + */ + public function getFormat() + { + return $this->format; + } + + /** + * Generated from protobuf field .pg_query.JsonValueType item_type = 3 [json_name = "item_type"];. + * + * @return int + */ + public function getItemType() + { + return $this->item_type; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field bool unique_keys = 4 [json_name = "unique_keys"];. + * + * @return bool + */ + public function getUniqueKeys() + { + return $this->unique_keys; + } + + public function hasExpr() + { + return isset($this->expr); + } + + public function hasFormat() + { + return isset($this->format); + } + + /** + * Generated from protobuf field .pg_query.Node expr = 1 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 2 [json_name = "format"];. + * + * @param JsonFormat $var + * + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkMessage($var, JsonFormat::class); + $this->format = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonValueType item_type = 3 [json_name = "item_type"];. + * + * @param int $var + * + * @return $this + */ + public function setItemType($var) + { + GPBUtil::checkEnum($var, JsonValueType::class); + $this->item_type = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field bool unique_keys = 4 [json_name = "unique_keys"];. + * + * @param bool $var + * + * @return $this + */ + public function setUniqueKeys($var) + { + GPBUtil::checkBool($var); + $this->unique_keys = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonKeyValue.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonKeyValue.php new file mode 100644 index 000000000..834a609f8 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonKeyValue.php @@ -0,0 +1,113 @@ +pg_query.JsonKeyValue. + */ +class JsonKeyValue extends Message +{ + /** + * Generated from protobuf field .pg_query.Node key = 1 [json_name = "key"];. + */ + protected $key; + + /** + * Generated from protobuf field .pg_query.JsonValueExpr value = 2 [json_name = "value"];. + */ + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $key + * @var JsonValueExpr $value + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearKey() : void + { + $this->key = null; + } + + public function clearValue() : void + { + $this->value = null; + } + + /** + * Generated from protobuf field .pg_query.Node key = 1 [json_name = "key"];. + * + * @return null|Node + */ + public function getKey() + { + return $this->key; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr value = 2 [json_name = "value"];. + * + * @return null|JsonValueExpr + */ + public function getValue() + { + return $this->value; + } + + public function hasKey() + { + return isset($this->key); + } + + public function hasValue() + { + return isset($this->value); + } + + /** + * Generated from protobuf field .pg_query.Node key = 1 [json_name = "key"];. + * + * @param Node $var + * + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->key = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr value = 2 [json_name = "value"];. + * + * @param JsonValueExpr $var + * + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, JsonValueExpr::class); + $this->value = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonObjectAgg.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonObjectAgg.php new file mode 100644 index 000000000..e3713d992 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonObjectAgg.php @@ -0,0 +1,175 @@ +pg_query.JsonObjectAgg. + */ +class JsonObjectAgg extends Message +{ + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + */ + protected $absent_on_null = false; + + /** + * Generated from protobuf field .pg_query.JsonKeyValue arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field .pg_query.JsonAggConstructor constructor = 1 [json_name = "constructor"];. + */ + protected $constructor; + + /** + * Generated from protobuf field bool unique = 4 [json_name = "unique"];. + */ + protected $unique = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var JsonAggConstructor $constructor + * @var JsonKeyValue $arg + * @var bool $absent_on_null + * @var bool $unique + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearConstructor() : void + { + $this->constructor = null; + } + + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + * + * @return bool + */ + public function getAbsentOnNull() + { + return $this->absent_on_null; + } + + /** + * Generated from protobuf field .pg_query.JsonKeyValue arg = 2 [json_name = "arg"];. + * + * @return null|JsonKeyValue + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field .pg_query.JsonAggConstructor constructor = 1 [json_name = "constructor"];. + * + * @return null|JsonAggConstructor + */ + public function getConstructor() + { + return $this->constructor; + } + + /** + * Generated from protobuf field bool unique = 4 [json_name = "unique"];. + * + * @return bool + */ + public function getUnique() + { + return $this->unique; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasConstructor() + { + return isset($this->constructor); + } + + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + * + * @param bool $var + * + * @return $this + */ + public function setAbsentOnNull($var) + { + GPBUtil::checkBool($var); + $this->absent_on_null = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonKeyValue arg = 2 [json_name = "arg"];. + * + * @param JsonKeyValue $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, JsonKeyValue::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonAggConstructor constructor = 1 [json_name = "constructor"];. + * + * @param JsonAggConstructor $var + * + * @return $this + */ + public function setConstructor($var) + { + GPBUtil::checkMessage($var, JsonAggConstructor::class); + $this->constructor = $var; + + return $this; + } + + /** + * Generated from protobuf field bool unique = 4 [json_name = "unique"];. + * + * @param bool $var + * + * @return $this + */ + public function setUnique($var) + { + GPBUtil::checkBool($var); + $this->unique = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonObjectConstructor.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonObjectConstructor.php new file mode 100644 index 000000000..87844020d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonObjectConstructor.php @@ -0,0 +1,197 @@ +pg_query.JsonObjectConstructor. + */ +class JsonObjectConstructor extends Message +{ + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + */ + protected $absent_on_null = false; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + */ + protected $output; + + /** + * Generated from protobuf field bool unique = 4 [json_name = "unique"];. + */ + protected $unique = false; + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 1 [json_name = "exprs"];. + */ + private $exprs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $exprs + * @var JsonOutput $output + * @var bool $absent_on_null + * @var bool $unique + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearOutput() : void + { + $this->output = null; + } + + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + * + * @return bool + */ + public function getAbsentOnNull() + { + return $this->absent_on_null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 1 [json_name = "exprs"];. + * + * @return RepeatedField + */ + public function getExprs() + { + return $this->exprs; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @return null|JsonOutput + */ + public function getOutput() + { + return $this->output; + } + + /** + * Generated from protobuf field bool unique = 4 [json_name = "unique"];. + * + * @return bool + */ + public function getUnique() + { + return $this->unique; + } + + public function hasOutput() + { + return isset($this->output); + } + + /** + * Generated from protobuf field bool absent_on_null = 3 [json_name = "absent_on_null"];. + * + * @param bool $var + * + * @return $this + */ + public function setAbsentOnNull($var) + { + GPBUtil::checkBool($var); + $this->absent_on_null = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node exprs = 1 [json_name = "exprs"];. + * + * @param array $var + * + * @return $this + */ + public function setExprs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->exprs = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->output = $var; + + return $this; + } + + /** + * Generated from protobuf field bool unique = 4 [json_name = "unique"];. + * + * @param bool $var + * + * @return $this + */ + public function setUnique($var) + { + GPBUtil::checkBool($var); + $this->unique = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonOutput.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonOutput.php new file mode 100644 index 000000000..9b6f04f80 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonOutput.php @@ -0,0 +1,113 @@ +pg_query.JsonOutput. + */ +class JsonOutput extends Message +{ + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 2 [json_name = "returning"];. + */ + protected $returning; + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 1 [json_name = "typeName"];. + */ + protected $type_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var TypeName $type_name + * @var JsonReturning $returning + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearReturning() : void + { + $this->returning = null; + } + + public function clearTypeName() : void + { + $this->type_name = null; + } + + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 2 [json_name = "returning"];. + * + * @return null|JsonReturning + */ + public function getReturning() + { + return $this->returning; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 1 [json_name = "typeName"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->type_name; + } + + public function hasReturning() + { + return isset($this->returning); + } + + public function hasTypeName() + { + return isset($this->type_name); + } + + /** + * Generated from protobuf field .pg_query.JsonReturning returning = 2 [json_name = "returning"];. + * + * @param JsonReturning $var + * + * @return $this + */ + public function setReturning($var) + { + GPBUtil::checkMessage($var, JsonReturning::class); + $this->returning = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 1 [json_name = "typeName"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->type_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonParseExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonParseExpr.php new file mode 100644 index 000000000..7ee2269c1 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonParseExpr.php @@ -0,0 +1,175 @@ +pg_query.JsonParseExpr. + */ +class JsonParseExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.JsonValueExpr expr = 1 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + */ + protected $output; + + /** + * Generated from protobuf field bool unique_keys = 3 [json_name = "unique_keys"];. + */ + protected $unique_keys = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var JsonValueExpr $expr + * @var JsonOutput $output + * @var bool $unique_keys + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + public function clearOutput() : void + { + $this->output = null; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr expr = 1 [json_name = "expr"];. + * + * @return null|JsonValueExpr + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @return null|JsonOutput + */ + public function getOutput() + { + return $this->output; + } + + /** + * Generated from protobuf field bool unique_keys = 3 [json_name = "unique_keys"];. + * + * @return bool + */ + public function getUniqueKeys() + { + return $this->unique_keys; + } + + public function hasExpr() + { + return isset($this->expr); + } + + public function hasOutput() + { + return isset($this->output); + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr expr = 1 [json_name = "expr"];. + * + * @param JsonValueExpr $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, JsonValueExpr::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->output = $var; + + return $this; + } + + /** + * Generated from protobuf field bool unique_keys = 3 [json_name = "unique_keys"];. + * + * @param bool $var + * + * @return $this + */ + public function setUniqueKeys($var) + { + GPBUtil::checkBool($var); + $this->unique_keys = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonQuotes.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonQuotes.php new file mode 100644 index 000000000..3822c86bd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonQuotes.php @@ -0,0 +1,69 @@ +pg_query.JsonQuotes. + */ +class JsonQuotes +{ + /** + * Generated from protobuf enum JS_QUOTES_KEEP = 2;. + */ + public const JS_QUOTES_KEEP = 2; + + /** + * Generated from protobuf enum JS_QUOTES_OMIT = 3;. + */ + public const JS_QUOTES_OMIT = 3; + + /** + * Generated from protobuf enum JS_QUOTES_UNSPEC = 1;. + */ + public const JS_QUOTES_UNSPEC = 1; + + /** + * Generated from protobuf enum JSON_QUOTES_UNDEFINED = 0;. + */ + public const JSON_QUOTES_UNDEFINED = 0; + + private static $valueToName = [ + self::JSON_QUOTES_UNDEFINED => 'JSON_QUOTES_UNDEFINED', + self::JS_QUOTES_UNSPEC => 'JS_QUOTES_UNSPEC', + self::JS_QUOTES_KEEP => 'JS_QUOTES_KEEP', + self::JS_QUOTES_OMIT => 'JS_QUOTES_OMIT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonReturning.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonReturning.php new file mode 100644 index 000000000..b5fe48760 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonReturning.php @@ -0,0 +1,134 @@ +pg_query.JsonReturning. + */ +class JsonReturning extends Message +{ + /** + * Generated from protobuf field .pg_query.JsonFormat format = 1 [json_name = "format"];. + */ + protected $format; + + /** + * Generated from protobuf field uint32 typid = 2 [json_name = "typid"];. + */ + protected $typid = 0; + + /** + * Generated from protobuf field int32 typmod = 3 [json_name = "typmod"];. + */ + protected $typmod = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var JsonFormat $format + * @var int $typid + * @var int $typmod + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFormat() : void + { + $this->format = null; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 1 [json_name = "format"];. + * + * @return null|JsonFormat + */ + public function getFormat() + { + return $this->format; + } + + /** + * Generated from protobuf field uint32 typid = 2 [json_name = "typid"];. + * + * @return int + */ + public function getTypid() + { + return $this->typid; + } + + /** + * Generated from protobuf field int32 typmod = 3 [json_name = "typmod"];. + * + * @return int + */ + public function getTypmod() + { + return $this->typmod; + } + + public function hasFormat() + { + return isset($this->format); + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 1 [json_name = "format"];. + * + * @param JsonFormat $var + * + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkMessage($var, JsonFormat::class); + $this->format = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 typid = 2 [json_name = "typid"];. + * + * @param int $var + * + * @return $this + */ + public function setTypid($var) + { + GPBUtil::checkUint32($var); + $this->typid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 typmod = 3 [json_name = "typmod"];. + * + * @param int $var + * + * @return $this + */ + public function setTypmod($var) + { + GPBUtil::checkInt32($var); + $this->typmod = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonScalarExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonScalarExpr.php new file mode 100644 index 000000000..16203b40e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonScalarExpr.php @@ -0,0 +1,144 @@ +pg_query.JsonScalarExpr. + */ +class JsonScalarExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 1 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + */ + protected $output; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $expr + * @var JsonOutput $output + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + public function clearOutput() : void + { + $this->output = null; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 1 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @return null|JsonOutput + */ + public function getOutput() + { + return $this->output; + } + + public function hasExpr() + { + return isset($this->expr); + } + + public function hasOutput() + { + return isset($this->output); + } + + /** + * Generated from protobuf field .pg_query.Node expr = 1 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->output = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonSerializeExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonSerializeExpr.php new file mode 100644 index 000000000..d9bfe31f2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonSerializeExpr.php @@ -0,0 +1,144 @@ +pg_query.JsonSerializeExpr. + */ +class JsonSerializeExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.JsonValueExpr expr = 1 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + */ + protected $output; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var JsonValueExpr $expr + * @var JsonOutput $output + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + public function clearOutput() : void + { + $this->output = null; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr expr = 1 [json_name = "expr"];. + * + * @return null|JsonValueExpr + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @return null|JsonOutput + */ + public function getOutput() + { + return $this->output; + } + + public function hasExpr() + { + return isset($this->expr); + } + + public function hasOutput() + { + return isset($this->output); + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr expr = 1 [json_name = "expr"];. + * + * @param JsonValueExpr $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, JsonValueExpr::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput output = 2 [json_name = "output"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->output = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTable.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTable.php new file mode 100644 index 000000000..4ed391caa --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTable.php @@ -0,0 +1,320 @@ +pg_query.JsonTable. + */ +class JsonTable extends Message +{ + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + */ + protected $alias; + + /** + * Generated from protobuf field .pg_query.JsonValueExpr context_item = 1 [json_name = "context_item"];. + */ + protected $context_item; + + /** + * Generated from protobuf field bool lateral = 7 [json_name = "lateral"];. + */ + protected $lateral = false; + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 5 [json_name = "on_error"];. + */ + protected $on_error; + + /** + * Generated from protobuf field .pg_query.JsonTablePathSpec pathspec = 2 [json_name = "pathspec"];. + */ + protected $pathspec; + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 4 [json_name = "columns"];. + */ + private $columns; + + /** + * Generated from protobuf field repeated .pg_query.Node passing = 3 [json_name = "passing"];. + */ + private $passing; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var JsonValueExpr $context_item + * @var JsonTablePathSpec $pathspec + * @var array $passing + * @var array $columns + * @var JsonBehavior $on_error + * @var Alias $alias + * @var bool $lateral + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAlias() : void + { + $this->alias = null; + } + + public function clearContextItem() : void + { + $this->context_item = null; + } + + public function clearOnError() : void + { + $this->on_error = null; + } + + public function clearPathspec() : void + { + $this->pathspec = null; + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + * + * @return null|Alias + */ + public function getAlias() + { + return $this->alias; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 4 [json_name = "columns"];. + * + * @return RepeatedField + */ + public function getColumns() + { + return $this->columns; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr context_item = 1 [json_name = "context_item"];. + * + * @return null|JsonValueExpr + */ + public function getContextItem() + { + return $this->context_item; + } + + /** + * Generated from protobuf field bool lateral = 7 [json_name = "lateral"];. + * + * @return bool + */ + public function getLateral() + { + return $this->lateral; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 5 [json_name = "on_error"];. + * + * @return null|JsonBehavior + */ + public function getOnError() + { + return $this->on_error; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passing = 3 [json_name = "passing"];. + * + * @return RepeatedField + */ + public function getPassing() + { + return $this->passing; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePathSpec pathspec = 2 [json_name = "pathspec"];. + * + * @return null|JsonTablePathSpec + */ + public function getPathspec() + { + return $this->pathspec; + } + + public function hasAlias() + { + return isset($this->alias); + } + + public function hasContextItem() + { + return isset($this->context_item); + } + + public function hasOnError() + { + return isset($this->on_error); + } + + public function hasPathspec() + { + return isset($this->pathspec); + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->alias = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 4 [json_name = "columns"];. + * + * @param array $var + * + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->columns = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr context_item = 1 [json_name = "context_item"];. + * + * @param JsonValueExpr $var + * + * @return $this + */ + public function setContextItem($var) + { + GPBUtil::checkMessage($var, JsonValueExpr::class); + $this->context_item = $var; + + return $this; + } + + /** + * Generated from protobuf field bool lateral = 7 [json_name = "lateral"];. + * + * @param bool $var + * + * @return $this + */ + public function setLateral($var) + { + GPBUtil::checkBool($var); + $this->lateral = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 5 [json_name = "on_error"];. + * + * @param JsonBehavior $var + * + * @return $this + */ + public function setOnError($var) + { + GPBUtil::checkMessage($var, JsonBehavior::class); + $this->on_error = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passing = 3 [json_name = "passing"];. + * + * @param array $var + * + * @return $this + */ + public function setPassing($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->passing = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePathSpec pathspec = 2 [json_name = "pathspec"];. + * + * @param JsonTablePathSpec $var + * + * @return $this + */ + public function setPathspec($var) + { + GPBUtil::checkMessage($var, JsonTablePathSpec::class); + $this->pathspec = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableColumn.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableColumn.php new file mode 100644 index 000000000..e8eb133fe --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableColumn.php @@ -0,0 +1,423 @@ +pg_query.JsonTableColumn. + */ +class JsonTableColumn extends Message +{ + /** + * Generated from protobuf field .pg_query.JsonTableColumnType coltype = 1 [json_name = "coltype"];. + */ + protected $coltype = 0; + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 5 [json_name = "format"];. + */ + protected $format; + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 9 [json_name = "on_empty"];. + */ + protected $on_empty; + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 10 [json_name = "on_error"];. + */ + protected $on_error; + + /** + * Generated from protobuf field .pg_query.JsonTablePathSpec pathspec = 4 [json_name = "pathspec"];. + */ + protected $pathspec; + + /** + * Generated from protobuf field .pg_query.JsonQuotes quotes = 7 [json_name = "quotes"];. + */ + protected $quotes = 0; + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 3 [json_name = "typeName"];. + */ + protected $type_name; + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 6 [json_name = "wrapper"];. + */ + protected $wrapper = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 8 [json_name = "columns"];. + */ + private $columns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $coltype + * @var string $name + * @var TypeName $type_name + * @var JsonTablePathSpec $pathspec + * @var JsonFormat $format + * @var int $wrapper + * @var int $quotes + * @var array $columns + * @var JsonBehavior $on_empty + * @var JsonBehavior $on_error + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFormat() : void + { + $this->format = null; + } + + public function clearOnEmpty() : void + { + $this->on_empty = null; + } + + public function clearOnError() : void + { + $this->on_error = null; + } + + public function clearPathspec() : void + { + $this->pathspec = null; + } + + public function clearTypeName() : void + { + $this->type_name = null; + } + + /** + * Generated from protobuf field .pg_query.JsonTableColumnType coltype = 1 [json_name = "coltype"];. + * + * @return int + */ + public function getColtype() + { + return $this->coltype; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 8 [json_name = "columns"];. + * + * @return RepeatedField + */ + public function getColumns() + { + return $this->columns; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 5 [json_name = "format"];. + * + * @return null|JsonFormat + */ + public function getFormat() + { + return $this->format; + } + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 9 [json_name = "on_empty"];. + * + * @return null|JsonBehavior + */ + public function getOnEmpty() + { + return $this->on_empty; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 10 [json_name = "on_error"];. + * + * @return null|JsonBehavior + */ + public function getOnError() + { + return $this->on_error; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePathSpec pathspec = 4 [json_name = "pathspec"];. + * + * @return null|JsonTablePathSpec + */ + public function getPathspec() + { + return $this->pathspec; + } + + /** + * Generated from protobuf field .pg_query.JsonQuotes quotes = 7 [json_name = "quotes"];. + * + * @return int + */ + public function getQuotes() + { + return $this->quotes; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 3 [json_name = "typeName"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->type_name; + } + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 6 [json_name = "wrapper"];. + * + * @return int + */ + public function getWrapper() + { + return $this->wrapper; + } + + public function hasFormat() + { + return isset($this->format); + } + + public function hasOnEmpty() + { + return isset($this->on_empty); + } + + public function hasOnError() + { + return isset($this->on_error); + } + + public function hasPathspec() + { + return isset($this->pathspec); + } + + public function hasTypeName() + { + return isset($this->type_name); + } + + /** + * Generated from protobuf field .pg_query.JsonTableColumnType coltype = 1 [json_name = "coltype"];. + * + * @param int $var + * + * @return $this + */ + public function setColtype($var) + { + GPBUtil::checkEnum($var, JsonTableColumnType::class); + $this->coltype = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 8 [json_name = "columns"];. + * + * @param array $var + * + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->columns = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 5 [json_name = "format"];. + * + * @param JsonFormat $var + * + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkMessage($var, JsonFormat::class); + $this->format = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_empty = 9 [json_name = "on_empty"];. + * + * @param JsonBehavior $var + * + * @return $this + */ + public function setOnEmpty($var) + { + GPBUtil::checkMessage($var, JsonBehavior::class); + $this->on_empty = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior on_error = 10 [json_name = "on_error"];. + * + * @param JsonBehavior $var + * + * @return $this + */ + public function setOnError($var) + { + GPBUtil::checkMessage($var, JsonBehavior::class); + $this->on_error = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePathSpec pathspec = 4 [json_name = "pathspec"];. + * + * @param JsonTablePathSpec $var + * + * @return $this + */ + public function setPathspec($var) + { + GPBUtil::checkMessage($var, JsonTablePathSpec::class); + $this->pathspec = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonQuotes quotes = 7 [json_name = "quotes"];. + * + * @param int $var + * + * @return $this + */ + public function setQuotes($var) + { + GPBUtil::checkEnum($var, JsonQuotes::class); + $this->quotes = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 3 [json_name = "typeName"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->type_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonWrapper wrapper = 6 [json_name = "wrapper"];. + * + * @param int $var + * + * @return $this + */ + public function setWrapper($var) + { + GPBUtil::checkEnum($var, JsonWrapper::class); + $this->wrapper = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableColumnType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableColumnType.php new file mode 100644 index 000000000..70b40a637 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableColumnType.php @@ -0,0 +1,81 @@ +pg_query.JsonTableColumnType. + */ +class JsonTableColumnType +{ + /** + * Generated from protobuf enum JSON_TABLE_COLUMN_TYPE_UNDEFINED = 0;. + */ + public const JSON_TABLE_COLUMN_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum JTC_EXISTS = 3;. + */ + public const JTC_EXISTS = 3; + + /** + * Generated from protobuf enum JTC_FOR_ORDINALITY = 1;. + */ + public const JTC_FOR_ORDINALITY = 1; + + /** + * Generated from protobuf enum JTC_FORMATTED = 4;. + */ + public const JTC_FORMATTED = 4; + + /** + * Generated from protobuf enum JTC_NESTED = 5;. + */ + public const JTC_NESTED = 5; + + /** + * Generated from protobuf enum JTC_REGULAR = 2;. + */ + public const JTC_REGULAR = 2; + + private static $valueToName = [ + self::JSON_TABLE_COLUMN_TYPE_UNDEFINED => 'JSON_TABLE_COLUMN_TYPE_UNDEFINED', + self::JTC_FOR_ORDINALITY => 'JTC_FOR_ORDINALITY', + self::JTC_REGULAR => 'JTC_REGULAR', + self::JTC_EXISTS => 'JTC_EXISTS', + self::JTC_FORMATTED => 'JTC_FORMATTED', + self::JTC_NESTED => 'JTC_NESTED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePath.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePath.php new file mode 100644 index 000000000..501a820c7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePath.php @@ -0,0 +1,62 @@ +pg_query.JsonTablePath. + */ +class JsonTablePath extends Message +{ + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePathScan.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePathScan.php new file mode 100644 index 000000000..7c0766ed5 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePathScan.php @@ -0,0 +1,247 @@ +pg_query.JsonTablePathScan. + */ +class JsonTablePathScan extends Message +{ + /** + * Generated from protobuf field .pg_query.Node child = 4 [json_name = "child"];. + */ + protected $child; + + /** + * Generated from protobuf field int32 col_max = 6 [json_name = "colMax"];. + */ + protected $col_max = 0; + + /** + * Generated from protobuf field int32 col_min = 5 [json_name = "colMin"];. + */ + protected $col_min = 0; + + /** + * Generated from protobuf field bool error_on_error = 3 [json_name = "errorOnError"];. + */ + protected $error_on_error = false; + + /** + * Generated from protobuf field .pg_query.JsonTablePath path = 2 [json_name = "path"];. + */ + protected $path; + + /** + * Generated from protobuf field .pg_query.Node plan = 1 [json_name = "plan"];. + */ + protected $plan; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $plan + * @var JsonTablePath $path + * @var bool $error_on_error + * @var Node $child + * @var int $col_min + * @var int $col_max + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearChild() : void + { + $this->child = null; + } + + public function clearPath() : void + { + $this->path = null; + } + + public function clearPlan() : void + { + $this->plan = null; + } + + /** + * Generated from protobuf field .pg_query.Node child = 4 [json_name = "child"];. + * + * @return null|Node + */ + public function getChild() + { + return $this->child; + } + + /** + * Generated from protobuf field int32 col_max = 6 [json_name = "colMax"];. + * + * @return int + */ + public function getColMax() + { + return $this->col_max; + } + + /** + * Generated from protobuf field int32 col_min = 5 [json_name = "colMin"];. + * + * @return int + */ + public function getColMin() + { + return $this->col_min; + } + + /** + * Generated from protobuf field bool error_on_error = 3 [json_name = "errorOnError"];. + * + * @return bool + */ + public function getErrorOnError() + { + return $this->error_on_error; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePath path = 2 [json_name = "path"];. + * + * @return null|JsonTablePath + */ + public function getPath() + { + return $this->path; + } + + /** + * Generated from protobuf field .pg_query.Node plan = 1 [json_name = "plan"];. + * + * @return null|Node + */ + public function getPlan() + { + return $this->plan; + } + + public function hasChild() + { + return isset($this->child); + } + + public function hasPath() + { + return isset($this->path); + } + + public function hasPlan() + { + return isset($this->plan); + } + + /** + * Generated from protobuf field .pg_query.Node child = 4 [json_name = "child"];. + * + * @param Node $var + * + * @return $this + */ + public function setChild($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->child = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 col_max = 6 [json_name = "colMax"];. + * + * @param int $var + * + * @return $this + */ + public function setColMax($var) + { + GPBUtil::checkInt32($var); + $this->col_max = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 col_min = 5 [json_name = "colMin"];. + * + * @param int $var + * + * @return $this + */ + public function setColMin($var) + { + GPBUtil::checkInt32($var); + $this->col_min = $var; + + return $this; + } + + /** + * Generated from protobuf field bool error_on_error = 3 [json_name = "errorOnError"];. + * + * @param bool $var + * + * @return $this + */ + public function setErrorOnError($var) + { + GPBUtil::checkBool($var); + $this->error_on_error = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePath path = 2 [json_name = "path"];. + * + * @param JsonTablePath $var + * + * @return $this + */ + public function setPath($var) + { + GPBUtil::checkMessage($var, JsonTablePath::class); + $this->path = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node plan = 1 [json_name = "plan"];. + * + * @param Node $var + * + * @return $this + */ + public function setPlan($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->plan = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePathSpec.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePathSpec.php new file mode 100644 index 000000000..9cc5bb0c9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTablePathSpec.php @@ -0,0 +1,165 @@ +pg_query.JsonTablePathSpec. + */ +class JsonTablePathSpec extends Message +{ + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field int32 name_location = 3 [json_name = "name_location"];. + */ + protected $name_location = 0; + + /** + * Generated from protobuf field .pg_query.Node string = 1 [json_name = "string"];. + */ + protected $string; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $string + * @var string $name + * @var int $name_location + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearString() : void + { + $this->string = null; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field int32 name_location = 3 [json_name = "name_location"];. + * + * @return int + */ + public function getNameLocation() + { + return $this->name_location; + } + + /** + * Generated from protobuf field .pg_query.Node string = 1 [json_name = "string"];. + * + * @return null|Node + */ + public function getString() + { + return $this->string; + } + + public function hasString() + { + return isset($this->string); + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 name_location = 3 [json_name = "name_location"];. + * + * @param int $var + * + * @return $this + */ + public function setNameLocation($var) + { + GPBUtil::checkInt32($var); + $this->name_location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node string = 1 [json_name = "string"];. + * + * @param Node $var + * + * @return $this + */ + public function setString($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->string = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableSiblingJoin.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableSiblingJoin.php new file mode 100644 index 000000000..ab5627d15 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonTableSiblingJoin.php @@ -0,0 +1,154 @@ +pg_query.JsonTableSiblingJoin. + */ +class JsonTableSiblingJoin extends Message +{ + /** + * Generated from protobuf field .pg_query.Node lplan = 2 [json_name = "lplan"];. + */ + protected $lplan; + + /** + * Generated from protobuf field .pg_query.Node plan = 1 [json_name = "plan"];. + */ + protected $plan; + + /** + * Generated from protobuf field .pg_query.Node rplan = 3 [json_name = "rplan"];. + */ + protected $rplan; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $plan + * @var Node $lplan + * @var Node $rplan + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearLplan() : void + { + $this->lplan = null; + } + + public function clearPlan() : void + { + $this->plan = null; + } + + public function clearRplan() : void + { + $this->rplan = null; + } + + /** + * Generated from protobuf field .pg_query.Node lplan = 2 [json_name = "lplan"];. + * + * @return null|Node + */ + public function getLplan() + { + return $this->lplan; + } + + /** + * Generated from protobuf field .pg_query.Node plan = 1 [json_name = "plan"];. + * + * @return null|Node + */ + public function getPlan() + { + return $this->plan; + } + + /** + * Generated from protobuf field .pg_query.Node rplan = 3 [json_name = "rplan"];. + * + * @return null|Node + */ + public function getRplan() + { + return $this->rplan; + } + + public function hasLplan() + { + return isset($this->lplan); + } + + public function hasPlan() + { + return isset($this->plan); + } + + public function hasRplan() + { + return isset($this->rplan); + } + + /** + * Generated from protobuf field .pg_query.Node lplan = 2 [json_name = "lplan"];. + * + * @param Node $var + * + * @return $this + */ + public function setLplan($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->lplan = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node plan = 1 [json_name = "plan"];. + * + * @param Node $var + * + * @return $this + */ + public function setPlan($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->plan = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node rplan = 3 [json_name = "rplan"];. + * + * @param Node $var + * + * @return $this + */ + public function setRplan($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->rplan = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonValueExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonValueExpr.php new file mode 100644 index 000000000..2c5c35f49 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonValueExpr.php @@ -0,0 +1,154 @@ +pg_query.JsonValueExpr. + */ +class JsonValueExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.JsonFormat format = 3 [json_name = "format"];. + */ + protected $format; + + /** + * Generated from protobuf field .pg_query.Node formatted_expr = 2 [json_name = "formatted_expr"];. + */ + protected $formatted_expr; + + /** + * Generated from protobuf field .pg_query.Node raw_expr = 1 [json_name = "raw_expr"];. + */ + protected $raw_expr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $raw_expr + * @var Node $formatted_expr + * @var JsonFormat $format + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFormat() : void + { + $this->format = null; + } + + public function clearFormattedExpr() : void + { + $this->formatted_expr = null; + } + + public function clearRawExpr() : void + { + $this->raw_expr = null; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 3 [json_name = "format"];. + * + * @return null|JsonFormat + */ + public function getFormat() + { + return $this->format; + } + + /** + * Generated from protobuf field .pg_query.Node formatted_expr = 2 [json_name = "formatted_expr"];. + * + * @return null|Node + */ + public function getFormattedExpr() + { + return $this->formatted_expr; + } + + /** + * Generated from protobuf field .pg_query.Node raw_expr = 1 [json_name = "raw_expr"];. + * + * @return null|Node + */ + public function getRawExpr() + { + return $this->raw_expr; + } + + public function hasFormat() + { + return isset($this->format); + } + + public function hasFormattedExpr() + { + return isset($this->formatted_expr); + } + + public function hasRawExpr() + { + return isset($this->raw_expr); + } + + /** + * Generated from protobuf field .pg_query.JsonFormat format = 3 [json_name = "format"];. + * + * @param JsonFormat $var + * + * @return $this + */ + public function setFormat($var) + { + GPBUtil::checkMessage($var, JsonFormat::class); + $this->format = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node formatted_expr = 2 [json_name = "formatted_expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setFormattedExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->formatted_expr = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node raw_expr = 1 [json_name = "raw_expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setRawExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->raw_expr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonValueType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonValueType.php new file mode 100644 index 000000000..327b2086c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonValueType.php @@ -0,0 +1,75 @@ +pg_query.JsonValueType. + */ +class JsonValueType +{ + /** + * Generated from protobuf enum JS_TYPE_ANY = 1;. + */ + public const JS_TYPE_ANY = 1; + + /** + * Generated from protobuf enum JS_TYPE_ARRAY = 3;. + */ + public const JS_TYPE_ARRAY = 3; + + /** + * Generated from protobuf enum JS_TYPE_OBJECT = 2;. + */ + public const JS_TYPE_OBJECT = 2; + + /** + * Generated from protobuf enum JS_TYPE_SCALAR = 4;. + */ + public const JS_TYPE_SCALAR = 4; + + /** + * Generated from protobuf enum JSON_VALUE_TYPE_UNDEFINED = 0;. + */ + public const JSON_VALUE_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::JSON_VALUE_TYPE_UNDEFINED => 'JSON_VALUE_TYPE_UNDEFINED', + self::JS_TYPE_ANY => 'JS_TYPE_ANY', + self::JS_TYPE_OBJECT => 'JS_TYPE_OBJECT', + self::JS_TYPE_ARRAY => 'JS_TYPE_ARRAY', + self::JS_TYPE_SCALAR => 'JS_TYPE_SCALAR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonWrapper.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonWrapper.php new file mode 100644 index 000000000..fe7743db9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/JsonWrapper.php @@ -0,0 +1,75 @@ +pg_query.JsonWrapper. + */ +class JsonWrapper +{ + /** + * Generated from protobuf enum JSON_WRAPPER_UNDEFINED = 0;. + */ + public const JSON_WRAPPER_UNDEFINED = 0; + + /** + * Generated from protobuf enum JSW_CONDITIONAL = 3;. + */ + public const JSW_CONDITIONAL = 3; + + /** + * Generated from protobuf enum JSW_NONE = 2;. + */ + public const JSW_NONE = 2; + + /** + * Generated from protobuf enum JSW_UNCONDITIONAL = 4;. + */ + public const JSW_UNCONDITIONAL = 4; + + /** + * Generated from protobuf enum JSW_UNSPEC = 1;. + */ + public const JSW_UNSPEC = 1; + + private static $valueToName = [ + self::JSON_WRAPPER_UNDEFINED => 'JSON_WRAPPER_UNDEFINED', + self::JSW_UNSPEC => 'JSW_UNSPEC', + self::JSW_NONE => 'JSW_NONE', + self::JSW_CONDITIONAL => 'JSW_CONDITIONAL', + self::JSW_UNCONDITIONAL => 'JSW_UNCONDITIONAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/KeywordKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/KeywordKind.php new file mode 100644 index 000000000..b6ef52826 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/KeywordKind.php @@ -0,0 +1,75 @@ +pg_query.KeywordKind. + */ +class KeywordKind +{ + /** + * Generated from protobuf enum COL_NAME_KEYWORD = 2;. + */ + public const COL_NAME_KEYWORD = 2; + + /** + * Generated from protobuf enum NO_KEYWORD = 0;. + */ + public const NO_KEYWORD = 0; + + /** + * Generated from protobuf enum RESERVED_KEYWORD = 4;. + */ + public const RESERVED_KEYWORD = 4; + + /** + * Generated from protobuf enum TYPE_FUNC_NAME_KEYWORD = 3;. + */ + public const TYPE_FUNC_NAME_KEYWORD = 3; + + /** + * Generated from protobuf enum UNRESERVED_KEYWORD = 1;. + */ + public const UNRESERVED_KEYWORD = 1; + + private static $valueToName = [ + self::NO_KEYWORD => 'NO_KEYWORD', + self::UNRESERVED_KEYWORD => 'UNRESERVED_KEYWORD', + self::COL_NAME_KEYWORD => 'COL_NAME_KEYWORD', + self::TYPE_FUNC_NAME_KEYWORD => 'TYPE_FUNC_NAME_KEYWORD', + self::RESERVED_KEYWORD => 'RESERVED_KEYWORD', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LimitOption.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LimitOption.php new file mode 100644 index 000000000..311fabcae --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LimitOption.php @@ -0,0 +1,69 @@ +pg_query.LimitOption. + */ +class LimitOption +{ + /** + * Generated from protobuf enum LIMIT_OPTION_COUNT = 2;. + */ + public const LIMIT_OPTION_COUNT = 2; + + /** + * Generated from protobuf enum LIMIT_OPTION_DEFAULT = 1;. + */ + public const LIMIT_OPTION_DEFAULT = 1; + + /** + * Generated from protobuf enum LIMIT_OPTION_UNDEFINED = 0;. + */ + public const LIMIT_OPTION_UNDEFINED = 0; + + /** + * Generated from protobuf enum LIMIT_OPTION_WITH_TIES = 3;. + */ + public const LIMIT_OPTION_WITH_TIES = 3; + + private static $valueToName = [ + self::LIMIT_OPTION_UNDEFINED => 'LIMIT_OPTION_UNDEFINED', + self::LIMIT_OPTION_DEFAULT => 'LIMIT_OPTION_DEFAULT', + self::LIMIT_OPTION_COUNT => 'LIMIT_OPTION_COUNT', + self::LIMIT_OPTION_WITH_TIES => 'LIMIT_OPTION_WITH_TIES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ListenStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ListenStmt.php new file mode 100644 index 000000000..bac754939 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ListenStmt.php @@ -0,0 +1,62 @@ +pg_query.ListenStmt. + */ +class ListenStmt extends Message +{ + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + */ + protected $conditionname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $conditionname + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + * + * @return string + */ + public function getConditionname() + { + return $this->conditionname; + } + + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + * + * @param string $var + * + * @return $this + */ + public function setConditionname($var) + { + GPBUtil::checkString($var, true); + $this->conditionname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LoadStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LoadStmt.php new file mode 100644 index 000000000..5a2990aab --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LoadStmt.php @@ -0,0 +1,62 @@ +pg_query.LoadStmt. + */ +class LoadStmt extends Message +{ + /** + * Generated from protobuf field string filename = 1 [json_name = "filename"];. + */ + protected $filename = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $filename + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string filename = 1 [json_name = "filename"];. + * + * @return string + */ + public function getFilename() + { + return $this->filename; + } + + /** + * Generated from protobuf field string filename = 1 [json_name = "filename"];. + * + * @param string $var + * + * @return $this + */ + public function setFilename($var) + { + GPBUtil::checkString($var, true); + $this->filename = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockClauseStrength.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockClauseStrength.php new file mode 100644 index 000000000..f001b3124 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockClauseStrength.php @@ -0,0 +1,81 @@ +pg_query.LockClauseStrength. + */ +class LockClauseStrength +{ + /** + * Generated from protobuf enum LCS_FORKEYSHARE = 2;. + */ + public const LCS_FORKEYSHARE = 2; + + /** + * Generated from protobuf enum LCS_FORNOKEYUPDATE = 4;. + */ + public const LCS_FORNOKEYUPDATE = 4; + + /** + * Generated from protobuf enum LCS_FORSHARE = 3;. + */ + public const LCS_FORSHARE = 3; + + /** + * Generated from protobuf enum LCS_FORUPDATE = 5;. + */ + public const LCS_FORUPDATE = 5; + + /** + * Generated from protobuf enum LCS_NONE = 1;. + */ + public const LCS_NONE = 1; + + /** + * Generated from protobuf enum LOCK_CLAUSE_STRENGTH_UNDEFINED = 0;. + */ + public const LOCK_CLAUSE_STRENGTH_UNDEFINED = 0; + + private static $valueToName = [ + self::LOCK_CLAUSE_STRENGTH_UNDEFINED => 'LOCK_CLAUSE_STRENGTH_UNDEFINED', + self::LCS_NONE => 'LCS_NONE', + self::LCS_FORKEYSHARE => 'LCS_FORKEYSHARE', + self::LCS_FORSHARE => 'LCS_FORSHARE', + self::LCS_FORNOKEYUPDATE => 'LCS_FORNOKEYUPDATE', + self::LCS_FORUPDATE => 'LCS_FORUPDATE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockStmt.php new file mode 100644 index 000000000..be0ef02a1 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockStmt.php @@ -0,0 +1,125 @@ +pg_query.LockStmt. + */ +class LockStmt extends Message +{ + /** + * Generated from protobuf field int32 mode = 2 [json_name = "mode"];. + */ + protected $mode = 0; + + /** + * Generated from protobuf field bool nowait = 3 [json_name = "nowait"];. + */ + protected $nowait = false; + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 1 [json_name = "relations"];. + */ + private $relations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $relations + * @var int $mode + * @var bool $nowait + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field int32 mode = 2 [json_name = "mode"];. + * + * @return int + */ + public function getMode() + { + return $this->mode; + } + + /** + * Generated from protobuf field bool nowait = 3 [json_name = "nowait"];. + * + * @return bool + */ + public function getNowait() + { + return $this->nowait; + } + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 1 [json_name = "relations"];. + * + * @return RepeatedField + */ + public function getRelations() + { + return $this->relations; + } + + /** + * Generated from protobuf field int32 mode = 2 [json_name = "mode"];. + * + * @param int $var + * + * @return $this + */ + public function setMode($var) + { + GPBUtil::checkInt32($var); + $this->mode = $var; + + return $this; + } + + /** + * Generated from protobuf field bool nowait = 3 [json_name = "nowait"];. + * + * @param bool $var + * + * @return $this + */ + public function setNowait($var) + { + GPBUtil::checkBool($var); + $this->nowait = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 1 [json_name = "relations"];. + * + * @param array $var + * + * @return $this + */ + public function setRelations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->relations = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockTupleMode.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockTupleMode.php new file mode 100644 index 000000000..63b50a699 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockTupleMode.php @@ -0,0 +1,75 @@ +pg_query.LockTupleMode. + */ +class LockTupleMode +{ + /** + * Generated from protobuf enum LOCK_TUPLE_MODE_UNDEFINED = 0;. + */ + public const LOCK_TUPLE_MODE_UNDEFINED = 0; + + /** + * Generated from protobuf enum LockTupleExclusive = 4;. + */ + public const LockTupleExclusive = 4; + + /** + * Generated from protobuf enum LockTupleKeyShare = 1;. + */ + public const LockTupleKeyShare = 1; + + /** + * Generated from protobuf enum LockTupleNoKeyExclusive = 3;. + */ + public const LockTupleNoKeyExclusive = 3; + + /** + * Generated from protobuf enum LockTupleShare = 2;. + */ + public const LockTupleShare = 2; + + private static $valueToName = [ + self::LOCK_TUPLE_MODE_UNDEFINED => 'LOCK_TUPLE_MODE_UNDEFINED', + self::LockTupleKeyShare => 'LockTupleKeyShare', + self::LockTupleShare => 'LockTupleShare', + self::LockTupleNoKeyExclusive => 'LockTupleNoKeyExclusive', + self::LockTupleExclusive => 'LockTupleExclusive', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockWaitPolicy.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockWaitPolicy.php new file mode 100644 index 000000000..f528d36be --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockWaitPolicy.php @@ -0,0 +1,69 @@ +pg_query.LockWaitPolicy. + */ +class LockWaitPolicy +{ + /** + * Generated from protobuf enum LOCK_WAIT_POLICY_UNDEFINED = 0;. + */ + public const LOCK_WAIT_POLICY_UNDEFINED = 0; + + /** + * Generated from protobuf enum LockWaitBlock = 1;. + */ + public const LockWaitBlock = 1; + + /** + * Generated from protobuf enum LockWaitError = 3;. + */ + public const LockWaitError = 3; + + /** + * Generated from protobuf enum LockWaitSkip = 2;. + */ + public const LockWaitSkip = 2; + + private static $valueToName = [ + self::LOCK_WAIT_POLICY_UNDEFINED => 'LOCK_WAIT_POLICY_UNDEFINED', + self::LockWaitBlock => 'LockWaitBlock', + self::LockWaitSkip => 'LockWaitSkip', + self::LockWaitError => 'LockWaitError', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockingClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockingClause.php new file mode 100644 index 000000000..52b7367a6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/LockingClause.php @@ -0,0 +1,125 @@ +pg_query.LockingClause. + */ +class LockingClause extends Message +{ + /** + * Generated from protobuf field .pg_query.LockClauseStrength strength = 2 [json_name = "strength"];. + */ + protected $strength = 0; + + /** + * Generated from protobuf field .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"];. + */ + protected $wait_policy = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node locked_rels = 1 [json_name = "lockedRels"];. + */ + private $locked_rels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $locked_rels + * @var int $strength + * @var int $wait_policy + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node locked_rels = 1 [json_name = "lockedRels"];. + * + * @return RepeatedField + */ + public function getLockedRels() + { + return $this->locked_rels; + } + + /** + * Generated from protobuf field .pg_query.LockClauseStrength strength = 2 [json_name = "strength"];. + * + * @return int + */ + public function getStrength() + { + return $this->strength; + } + + /** + * Generated from protobuf field .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"];. + * + * @return int + */ + public function getWaitPolicy() + { + return $this->wait_policy; + } + + /** + * Generated from protobuf field repeated .pg_query.Node locked_rels = 1 [json_name = "lockedRels"];. + * + * @param array $var + * + * @return $this + */ + public function setLockedRels($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->locked_rels = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LockClauseStrength strength = 2 [json_name = "strength"];. + * + * @param int $var + * + * @return $this + */ + public function setStrength($var) + { + GPBUtil::checkEnum($var, LockClauseStrength::class); + $this->strength = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"];. + * + * @param int $var + * + * @return $this + */ + public function setWaitPolicy($var) + { + GPBUtil::checkEnum($var, LockWaitPolicy::class); + $this->wait_policy = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeAction.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeAction.php new file mode 100644 index 000000000..ee9e2a70c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeAction.php @@ -0,0 +1,228 @@ +pg_query.MergeAction. + */ +class MergeAction extends Message +{ + /** + * Generated from protobuf field .pg_query.CmdType command_type = 2 [json_name = "commandType"];. + */ + protected $command_type = 0; + + /** + * Generated from protobuf field .pg_query.MergeMatchKind match_kind = 1 [json_name = "matchKind"];. + */ + protected $match_kind = 0; + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 3 [json_name = "override"];. + */ + protected $override = 0; + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + */ + protected $qual; + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 5 [json_name = "targetList"];. + */ + private $target_list; + + /** + * Generated from protobuf field repeated .pg_query.Node update_colnos = 6 [json_name = "updateColnos"];. + */ + private $update_colnos; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $match_kind + * @var int $command_type + * @var int $override + * @var Node $qual + * @var array $target_list + * @var array $update_colnos + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQual() : void + { + $this->qual = null; + } + + /** + * Generated from protobuf field .pg_query.CmdType command_type = 2 [json_name = "commandType"];. + * + * @return int + */ + public function getCommandType() + { + return $this->command_type; + } + + /** + * Generated from protobuf field .pg_query.MergeMatchKind match_kind = 1 [json_name = "matchKind"];. + * + * @return int + */ + public function getMatchKind() + { + return $this->match_kind; + } + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 3 [json_name = "override"];. + * + * @return int + */ + public function getOverride() + { + return $this->override; + } + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + * + * @return null|Node + */ + public function getQual() + { + return $this->qual; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 5 [json_name = "targetList"];. + * + * @return RepeatedField + */ + public function getTargetList() + { + return $this->target_list; + } + + /** + * Generated from protobuf field repeated .pg_query.Node update_colnos = 6 [json_name = "updateColnos"];. + * + * @return RepeatedField + */ + public function getUpdateColnos() + { + return $this->update_colnos; + } + + public function hasQual() + { + return isset($this->qual); + } + + /** + * Generated from protobuf field .pg_query.CmdType command_type = 2 [json_name = "commandType"];. + * + * @param int $var + * + * @return $this + */ + public function setCommandType($var) + { + GPBUtil::checkEnum($var, CmdType::class); + $this->command_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MergeMatchKind match_kind = 1 [json_name = "matchKind"];. + * + * @param int $var + * + * @return $this + */ + public function setMatchKind($var) + { + GPBUtil::checkEnum($var, MergeMatchKind::class); + $this->match_kind = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 3 [json_name = "override"];. + * + * @param int $var + * + * @return $this + */ + public function setOverride($var) + { + GPBUtil::checkEnum($var, OverridingKind::class); + $this->override = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + * + * @param Node $var + * + * @return $this + */ + public function setQual($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->qual = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 5 [json_name = "targetList"];. + * + * @param array $var + * + * @return $this + */ + public function setTargetList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->target_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node update_colnos = 6 [json_name = "updateColnos"];. + * + * @param array $var + * + * @return $this + */ + public function setUpdateColnos($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->update_colnos = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeMatchKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeMatchKind.php new file mode 100644 index 000000000..f5c3de672 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeMatchKind.php @@ -0,0 +1,69 @@ +pg_query.MergeMatchKind. + */ +class MergeMatchKind +{ + /** + * Generated from protobuf enum MERGE_MATCH_KIND_UNDEFINED = 0;. + */ + public const MERGE_MATCH_KIND_UNDEFINED = 0; + + /** + * Generated from protobuf enum MERGE_WHEN_MATCHED = 1;. + */ + public const MERGE_WHEN_MATCHED = 1; + + /** + * Generated from protobuf enum MERGE_WHEN_NOT_MATCHED_BY_SOURCE = 2;. + */ + public const MERGE_WHEN_NOT_MATCHED_BY_SOURCE = 2; + + /** + * Generated from protobuf enum MERGE_WHEN_NOT_MATCHED_BY_TARGET = 3;. + */ + public const MERGE_WHEN_NOT_MATCHED_BY_TARGET = 3; + + private static $valueToName = [ + self::MERGE_MATCH_KIND_UNDEFINED => 'MERGE_MATCH_KIND_UNDEFINED', + self::MERGE_WHEN_MATCHED => 'MERGE_WHEN_MATCHED', + self::MERGE_WHEN_NOT_MATCHED_BY_SOURCE => 'MERGE_WHEN_NOT_MATCHED_BY_SOURCE', + self::MERGE_WHEN_NOT_MATCHED_BY_TARGET => 'MERGE_WHEN_NOT_MATCHED_BY_TARGET', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeStmt.php new file mode 100644 index 000000000..7dfa1a3dc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeStmt.php @@ -0,0 +1,258 @@ +pg_query.MergeStmt. + */ +class MergeStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.Node join_condition = 3 [json_name = "joinCondition"];. + */ + protected $join_condition; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field .pg_query.Node source_relation = 2 [json_name = "sourceRelation"];. + */ + protected $source_relation; + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + */ + protected $with_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node merge_when_clauses = 4 [json_name = "mergeWhenClauses"];. + */ + private $merge_when_clauses; + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + */ + private $returning_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var Node $source_relation + * @var Node $join_condition + * @var array $merge_when_clauses + * @var array $returning_list + * @var WithClause $with_clause + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearJoinCondition() : void + { + $this->join_condition = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearSourceRelation() : void + { + $this->source_relation = null; + } + + public function clearWithClause() : void + { + $this->with_clause = null; + } + + /** + * Generated from protobuf field .pg_query.Node join_condition = 3 [json_name = "joinCondition"];. + * + * @return null|Node + */ + public function getJoinCondition() + { + return $this->join_condition; + } + + /** + * Generated from protobuf field repeated .pg_query.Node merge_when_clauses = 4 [json_name = "mergeWhenClauses"];. + * + * @return RepeatedField + */ + public function getMergeWhenClauses() + { + return $this->merge_when_clauses; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + * + * @return RepeatedField + */ + public function getReturningList() + { + return $this->returning_list; + } + + /** + * Generated from protobuf field .pg_query.Node source_relation = 2 [json_name = "sourceRelation"];. + * + * @return null|Node + */ + public function getSourceRelation() + { + return $this->source_relation; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + * + * @return null|WithClause + */ + public function getWithClause() + { + return $this->with_clause; + } + + public function hasJoinCondition() + { + return isset($this->join_condition); + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasSourceRelation() + { + return isset($this->source_relation); + } + + public function hasWithClause() + { + return isset($this->with_clause); + } + + /** + * Generated from protobuf field .pg_query.Node join_condition = 3 [json_name = "joinCondition"];. + * + * @param Node $var + * + * @return $this + */ + public function setJoinCondition($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->join_condition = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node merge_when_clauses = 4 [json_name = "mergeWhenClauses"];. + * + * @param array $var + * + * @return $this + */ + public function setMergeWhenClauses($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->merge_when_clauses = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + * + * @param array $var + * + * @return $this + */ + public function setReturningList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->returning_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node source_relation = 2 [json_name = "sourceRelation"];. + * + * @param Node $var + * + * @return $this + */ + public function setSourceRelation($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->source_relation = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + * + * @param WithClause $var + * + * @return $this + */ + public function setWithClause($var) + { + GPBUtil::checkMessage($var, WithClause::class); + $this->with_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeSupportFunc.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeSupportFunc.php new file mode 100644 index 000000000..c6632ecca --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeSupportFunc.php @@ -0,0 +1,165 @@ +pg_query.MergeSupportFunc. + */ +class MergeSupportFunc extends Message +{ + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 msfcollid = 3 [json_name = "msfcollid"];. + */ + protected $msfcollid = 0; + + /** + * Generated from protobuf field uint32 msftype = 2 [json_name = "msftype"];. + */ + protected $msftype = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $msftype + * @var int $msfcollid + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 msfcollid = 3 [json_name = "msfcollid"];. + * + * @return int + */ + public function getMsfcollid() + { + return $this->msfcollid; + } + + /** + * Generated from protobuf field uint32 msftype = 2 [json_name = "msftype"];. + * + * @return int + */ + public function getMsftype() + { + return $this->msftype; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 msfcollid = 3 [json_name = "msfcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setMsfcollid($var) + { + GPBUtil::checkUint32($var); + $this->msfcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 msftype = 2 [json_name = "msftype"];. + * + * @param int $var + * + * @return $this + */ + public function setMsftype($var) + { + GPBUtil::checkUint32($var); + $this->msftype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeWhenClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeWhenClause.php new file mode 100644 index 000000000..97dfda39c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MergeWhenClause.php @@ -0,0 +1,228 @@ +pg_query.MergeWhenClause. + */ +class MergeWhenClause extends Message +{ + /** + * Generated from protobuf field .pg_query.CmdType command_type = 2 [json_name = "commandType"];. + */ + protected $command_type = 0; + + /** + * Generated from protobuf field .pg_query.Node condition = 4 [json_name = "condition"];. + */ + protected $condition; + + /** + * Generated from protobuf field .pg_query.MergeMatchKind match_kind = 1 [json_name = "matchKind"];. + */ + protected $match_kind = 0; + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 3 [json_name = "override"];. + */ + protected $override = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 5 [json_name = "targetList"];. + */ + private $target_list; + + /** + * Generated from protobuf field repeated .pg_query.Node values = 6 [json_name = "values"];. + */ + private $values; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $match_kind + * @var int $command_type + * @var int $override + * @var Node $condition + * @var array $target_list + * @var array $values + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearCondition() : void + { + $this->condition = null; + } + + /** + * Generated from protobuf field .pg_query.CmdType command_type = 2 [json_name = "commandType"];. + * + * @return int + */ + public function getCommandType() + { + return $this->command_type; + } + + /** + * Generated from protobuf field .pg_query.Node condition = 4 [json_name = "condition"];. + * + * @return null|Node + */ + public function getCondition() + { + return $this->condition; + } + + /** + * Generated from protobuf field .pg_query.MergeMatchKind match_kind = 1 [json_name = "matchKind"];. + * + * @return int + */ + public function getMatchKind() + { + return $this->match_kind; + } + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 3 [json_name = "override"];. + * + * @return int + */ + public function getOverride() + { + return $this->override; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 5 [json_name = "targetList"];. + * + * @return RepeatedField + */ + public function getTargetList() + { + return $this->target_list; + } + + /** + * Generated from protobuf field repeated .pg_query.Node values = 6 [json_name = "values"];. + * + * @return RepeatedField + */ + public function getValues() + { + return $this->values; + } + + public function hasCondition() + { + return isset($this->condition); + } + + /** + * Generated from protobuf field .pg_query.CmdType command_type = 2 [json_name = "commandType"];. + * + * @param int $var + * + * @return $this + */ + public function setCommandType($var) + { + GPBUtil::checkEnum($var, CmdType::class); + $this->command_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node condition = 4 [json_name = "condition"];. + * + * @param Node $var + * + * @return $this + */ + public function setCondition($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->condition = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MergeMatchKind match_kind = 1 [json_name = "matchKind"];. + * + * @param int $var + * + * @return $this + */ + public function setMatchKind($var) + { + GPBUtil::checkEnum($var, MergeMatchKind::class); + $this->match_kind = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 3 [json_name = "override"];. + * + * @param int $var + * + * @return $this + */ + public function setOverride($var) + { + GPBUtil::checkEnum($var, OverridingKind::class); + $this->override = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 5 [json_name = "targetList"];. + * + * @param array $var + * + * @return $this + */ + public function setTargetList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->target_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node values = 6 [json_name = "values"];. + * + * @param array $var + * + * @return $this + */ + public function setValues($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->values = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MinMaxExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MinMaxExpr.php new file mode 100644 index 000000000..85bb77791 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MinMaxExpr.php @@ -0,0 +1,259 @@ +pg_query.MinMaxExpr. + */ +class MinMaxExpr extends Message +{ + /** + * Generated from protobuf field uint32 inputcollid = 4 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 minmaxcollid = 3 [json_name = "minmaxcollid"];. + */ + protected $minmaxcollid = 0; + + /** + * Generated from protobuf field uint32 minmaxtype = 2 [json_name = "minmaxtype"];. + */ + protected $minmaxtype = 0; + + /** + * Generated from protobuf field .pg_query.MinMaxOp op = 5 [json_name = "op"];. + */ + protected $op = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $minmaxtype + * @var int $minmaxcollid + * @var int $inputcollid + * @var int $op + * @var array $args + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 inputcollid = 4 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 minmaxcollid = 3 [json_name = "minmaxcollid"];. + * + * @return int + */ + public function getMinmaxcollid() + { + return $this->minmaxcollid; + } + + /** + * Generated from protobuf field uint32 minmaxtype = 2 [json_name = "minmaxtype"];. + * + * @return int + */ + public function getMinmaxtype() + { + return $this->minmaxtype; + } + + /** + * Generated from protobuf field .pg_query.MinMaxOp op = 5 [json_name = "op"];. + * + * @return int + */ + public function getOp() + { + return $this->op; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 4 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 minmaxcollid = 3 [json_name = "minmaxcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setMinmaxcollid($var) + { + GPBUtil::checkUint32($var); + $this->minmaxcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 minmaxtype = 2 [json_name = "minmaxtype"];. + * + * @param int $var + * + * @return $this + */ + public function setMinmaxtype($var) + { + GPBUtil::checkUint32($var); + $this->minmaxtype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MinMaxOp op = 5 [json_name = "op"];. + * + * @param int $var + * + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkEnum($var, MinMaxOp::class); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MinMaxOp.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MinMaxOp.php new file mode 100644 index 000000000..37828fcf0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MinMaxOp.php @@ -0,0 +1,63 @@ +pg_query.MinMaxOp. + */ +class MinMaxOp +{ + /** + * Generated from protobuf enum IS_GREATEST = 1;. + */ + public const IS_GREATEST = 1; + + /** + * Generated from protobuf enum IS_LEAST = 2;. + */ + public const IS_LEAST = 2; + + /** + * Generated from protobuf enum MIN_MAX_OP_UNDEFINED = 0;. + */ + public const MIN_MAX_OP_UNDEFINED = 0; + + private static $valueToName = [ + self::MIN_MAX_OP_UNDEFINED => 'MIN_MAX_OP_UNDEFINED', + self::IS_GREATEST => 'IS_GREATEST', + self::IS_LEAST => 'IS_LEAST', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MultiAssignRef.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MultiAssignRef.php new file mode 100644 index 000000000..8cd81d661 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/MultiAssignRef.php @@ -0,0 +1,134 @@ +pg_query.MultiAssignRef. + */ +class MultiAssignRef extends Message +{ + /** + * Generated from protobuf field int32 colno = 2 [json_name = "colno"];. + */ + protected $colno = 0; + + /** + * Generated from protobuf field int32 ncolumns = 3 [json_name = "ncolumns"];. + */ + protected $ncolumns = 0; + + /** + * Generated from protobuf field .pg_query.Node source = 1 [json_name = "source"];. + */ + protected $source; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $source + * @var int $colno + * @var int $ncolumns + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearSource() : void + { + $this->source = null; + } + + /** + * Generated from protobuf field int32 colno = 2 [json_name = "colno"];. + * + * @return int + */ + public function getColno() + { + return $this->colno; + } + + /** + * Generated from protobuf field int32 ncolumns = 3 [json_name = "ncolumns"];. + * + * @return int + */ + public function getNcolumns() + { + return $this->ncolumns; + } + + /** + * Generated from protobuf field .pg_query.Node source = 1 [json_name = "source"];. + * + * @return null|Node + */ + public function getSource() + { + return $this->source; + } + + public function hasSource() + { + return isset($this->source); + } + + /** + * Generated from protobuf field int32 colno = 2 [json_name = "colno"];. + * + * @param int $var + * + * @return $this + */ + public function setColno($var) + { + GPBUtil::checkInt32($var); + $this->colno = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 ncolumns = 3 [json_name = "ncolumns"];. + * + * @param int $var + * + * @return $this + */ + public function setNcolumns($var) + { + GPBUtil::checkInt32($var); + $this->ncolumns = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node source = 1 [json_name = "source"];. + * + * @param Node $var + * + * @return $this + */ + public function setSource($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->source = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NamedArgExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NamedArgExpr.php new file mode 100644 index 000000000..e7c86395d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NamedArgExpr.php @@ -0,0 +1,206 @@ +pg_query.NamedArgExpr. + */ +class NamedArgExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field int32 argnumber = 4 [json_name = "argnumber"];. + */ + protected $argnumber = 0; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var string $name + * @var int $argnumber + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field int32 argnumber = 4 [json_name = "argnumber"];. + * + * @return int + */ + public function getArgnumber() + { + return $this->argnumber; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 argnumber = 4 [json_name = "argnumber"];. + * + * @param int $var + * + * @return $this + */ + public function setArgnumber($var) + { + GPBUtil::checkInt32($var); + $this->argnumber = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NextValueExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NextValueExpr.php new file mode 100644 index 000000000..d8b30cc08 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NextValueExpr.php @@ -0,0 +1,134 @@ +pg_query.NextValueExpr. + */ +class NextValueExpr extends Message +{ + /** + * Generated from protobuf field uint32 seqid = 2 [json_name = "seqid"];. + */ + protected $seqid = 0; + + /** + * Generated from protobuf field uint32 type_id = 3 [json_name = "typeId"];. + */ + protected $type_id = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $seqid + * @var int $type_id + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field uint32 seqid = 2 [json_name = "seqid"];. + * + * @return int + */ + public function getSeqid() + { + return $this->seqid; + } + + /** + * Generated from protobuf field uint32 type_id = 3 [json_name = "typeId"];. + * + * @return int + */ + public function getTypeId() + { + return $this->type_id; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field uint32 seqid = 2 [json_name = "seqid"];. + * + * @param int $var + * + * @return $this + */ + public function setSeqid($var) + { + GPBUtil::checkUint32($var); + $this->seqid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 type_id = 3 [json_name = "typeId"];. + * + * @param int $var + * + * @return $this + */ + public function setTypeId($var) + { + GPBUtil::checkUint32($var); + $this->type_id = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Node.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Node.php new file mode 100644 index 000000000..b538cd106 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Node.php @@ -0,0 +1,8349 @@ +pg_query.Node. + */ +class Node extends Message +{ + protected $node; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Alias $alias + * @var RangeVar $range_var + * @var TableFunc $table_func + * @var IntoClause $into_clause + * @var PBVar $var + * @var Param $param + * @var Aggref $aggref + * @var GroupingFunc $grouping_func + * @var WindowFunc $window_func + * @var WindowFuncRunCondition $window_func_run_condition + * @var MergeSupportFunc $merge_support_func + * @var SubscriptingRef $subscripting_ref + * @var FuncExpr $func_expr + * @var NamedArgExpr $named_arg_expr + * @var OpExpr $op_expr + * @var DistinctExpr $distinct_expr + * @var NullIfExpr $null_if_expr + * @var ScalarArrayOpExpr $scalar_array_op_expr + * @var BoolExpr $bool_expr + * @var SubLink $sub_link + * @var SubPlan $sub_plan + * @var AlternativeSubPlan $alternative_sub_plan + * @var FieldSelect $field_select + * @var FieldStore $field_store + * @var RelabelType $relabel_type + * @var CoerceViaIO $coerce_via_io + * @var ArrayCoerceExpr $array_coerce_expr + * @var ConvertRowtypeExpr $convert_rowtype_expr + * @var CollateExpr $collate_expr + * @var CaseExpr $case_expr + * @var CaseWhen $case_when + * @var CaseTestExpr $case_test_expr + * @var ArrayExpr $array_expr + * @var RowExpr $row_expr + * @var RowCompareExpr $row_compare_expr + * @var CoalesceExpr $coalesce_expr + * @var MinMaxExpr $min_max_expr + * @var SQLValueFunction $sqlvalue_function + * @var XmlExpr $xml_expr + * @var JsonFormat $json_format + * @var JsonReturning $json_returning + * @var JsonValueExpr $json_value_expr + * @var JsonConstructorExpr $json_constructor_expr + * @var JsonIsPredicate $json_is_predicate + * @var JsonBehavior $json_behavior + * @var JsonExpr $json_expr + * @var JsonTablePath $json_table_path + * @var JsonTablePathScan $json_table_path_scan + * @var JsonTableSiblingJoin $json_table_sibling_join + * @var NullTest $null_test + * @var BooleanTest $boolean_test + * @var MergeAction $merge_action + * @var CoerceToDomain $coerce_to_domain + * @var CoerceToDomainValue $coerce_to_domain_value + * @var SetToDefault $set_to_default + * @var CurrentOfExpr $current_of_expr + * @var NextValueExpr $next_value_expr + * @var InferenceElem $inference_elem + * @var TargetEntry $target_entry + * @var RangeTblRef $range_tbl_ref + * @var JoinExpr $join_expr + * @var FromExpr $from_expr + * @var OnConflictExpr $on_conflict_expr + * @var Query $query + * @var TypeName $type_name + * @var ColumnRef $column_ref + * @var ParamRef $param_ref + * @var A_Expr $a_expr + * @var TypeCast $type_cast + * @var CollateClause $collate_clause + * @var RoleSpec $role_spec + * @var FuncCall $func_call + * @var A_Star $a_star + * @var A_Indices $a_indices + * @var A_Indirection $a_indirection + * @var A_ArrayExpr $a_array_expr + * @var ResTarget $res_target + * @var MultiAssignRef $multi_assign_ref + * @var SortBy $sort_by + * @var WindowDef $window_def + * @var RangeSubselect $range_subselect + * @var RangeFunction $range_function + * @var RangeTableFunc $range_table_func + * @var RangeTableFuncCol $range_table_func_col + * @var RangeTableSample $range_table_sample + * @var ColumnDef $column_def + * @var TableLikeClause $table_like_clause + * @var IndexElem $index_elem + * @var DefElem $def_elem + * @var LockingClause $locking_clause + * @var XmlSerialize $xml_serialize + * @var PartitionElem $partition_elem + * @var PartitionSpec $partition_spec + * @var PartitionBoundSpec $partition_bound_spec + * @var PartitionRangeDatum $partition_range_datum + * @var SinglePartitionSpec $single_partition_spec + * @var PartitionCmd $partition_cmd + * @var RangeTblEntry $range_tbl_entry + * @var RTEPermissionInfo $rtepermission_info + * @var RangeTblFunction $range_tbl_function + * @var TableSampleClause $table_sample_clause + * @var WithCheckOption $with_check_option + * @var SortGroupClause $sort_group_clause + * @var GroupingSet $grouping_set + * @var WindowClause $window_clause + * @var RowMarkClause $row_mark_clause + * @var WithClause $with_clause + * @var InferClause $infer_clause + * @var OnConflictClause $on_conflict_clause + * @var CTESearchClause $ctesearch_clause + * @var CTECycleClause $ctecycle_clause + * @var CommonTableExpr $common_table_expr + * @var MergeWhenClause $merge_when_clause + * @var TriggerTransition $trigger_transition + * @var JsonOutput $json_output + * @var JsonArgument $json_argument + * @var JsonFuncExpr $json_func_expr + * @var JsonTablePathSpec $json_table_path_spec + * @var JsonTable $json_table + * @var JsonTableColumn $json_table_column + * @var JsonKeyValue $json_key_value + * @var JsonParseExpr $json_parse_expr + * @var JsonScalarExpr $json_scalar_expr + * @var JsonSerializeExpr $json_serialize_expr + * @var JsonObjectConstructor $json_object_constructor + * @var JsonArrayConstructor $json_array_constructor + * @var JsonArrayQueryConstructor $json_array_query_constructor + * @var JsonAggConstructor $json_agg_constructor + * @var JsonObjectAgg $json_object_agg + * @var JsonArrayAgg $json_array_agg + * @var RawStmt $raw_stmt + * @var InsertStmt $insert_stmt + * @var DeleteStmt $delete_stmt + * @var UpdateStmt $update_stmt + * @var MergeStmt $merge_stmt + * @var SelectStmt $select_stmt + * @var SetOperationStmt $set_operation_stmt + * @var ReturnStmt $return_stmt + * @var PLAssignStmt $plassign_stmt + * @var CreateSchemaStmt $create_schema_stmt + * @var AlterTableStmt $alter_table_stmt + * @var ReplicaIdentityStmt $replica_identity_stmt + * @var AlterTableCmd $alter_table_cmd + * @var AlterCollationStmt $alter_collation_stmt + * @var AlterDomainStmt $alter_domain_stmt + * @var GrantStmt $grant_stmt + * @var ObjectWithArgs $object_with_args + * @var AccessPriv $access_priv + * @var GrantRoleStmt $grant_role_stmt + * @var AlterDefaultPrivilegesStmt $alter_default_privileges_stmt + * @var CopyStmt $copy_stmt + * @var VariableSetStmt $variable_set_stmt + * @var VariableShowStmt $variable_show_stmt + * @var CreateStmt $create_stmt + * @var Constraint $constraint + * @var CreateTableSpaceStmt $create_table_space_stmt + * @var DropTableSpaceStmt $drop_table_space_stmt + * @var AlterTableSpaceOptionsStmt $alter_table_space_options_stmt + * @var AlterTableMoveAllStmt $alter_table_move_all_stmt + * @var CreateExtensionStmt $create_extension_stmt + * @var AlterExtensionStmt $alter_extension_stmt + * @var AlterExtensionContentsStmt $alter_extension_contents_stmt + * @var CreateFdwStmt $create_fdw_stmt + * @var AlterFdwStmt $alter_fdw_stmt + * @var CreateForeignServerStmt $create_foreign_server_stmt + * @var AlterForeignServerStmt $alter_foreign_server_stmt + * @var CreateForeignTableStmt $create_foreign_table_stmt + * @var CreateUserMappingStmt $create_user_mapping_stmt + * @var AlterUserMappingStmt $alter_user_mapping_stmt + * @var DropUserMappingStmt $drop_user_mapping_stmt + * @var ImportForeignSchemaStmt $import_foreign_schema_stmt + * @var CreatePolicyStmt $create_policy_stmt + * @var AlterPolicyStmt $alter_policy_stmt + * @var CreateAmStmt $create_am_stmt + * @var CreateTrigStmt $create_trig_stmt + * @var CreateEventTrigStmt $create_event_trig_stmt + * @var AlterEventTrigStmt $alter_event_trig_stmt + * @var CreatePLangStmt $create_plang_stmt + * @var CreateRoleStmt $create_role_stmt + * @var AlterRoleStmt $alter_role_stmt + * @var AlterRoleSetStmt $alter_role_set_stmt + * @var DropRoleStmt $drop_role_stmt + * @var CreateSeqStmt $create_seq_stmt + * @var AlterSeqStmt $alter_seq_stmt + * @var DefineStmt $define_stmt + * @var CreateDomainStmt $create_domain_stmt + * @var CreateOpClassStmt $create_op_class_stmt + * @var CreateOpClassItem $create_op_class_item + * @var CreateOpFamilyStmt $create_op_family_stmt + * @var AlterOpFamilyStmt $alter_op_family_stmt + * @var DropStmt $drop_stmt + * @var TruncateStmt $truncate_stmt + * @var CommentStmt $comment_stmt + * @var SecLabelStmt $sec_label_stmt + * @var DeclareCursorStmt $declare_cursor_stmt + * @var ClosePortalStmt $close_portal_stmt + * @var FetchStmt $fetch_stmt + * @var IndexStmt $index_stmt + * @var CreateStatsStmt $create_stats_stmt + * @var StatsElem $stats_elem + * @var AlterStatsStmt $alter_stats_stmt + * @var CreateFunctionStmt $create_function_stmt + * @var FunctionParameter $function_parameter + * @var AlterFunctionStmt $alter_function_stmt + * @var DoStmt $do_stmt + * @var InlineCodeBlock $inline_code_block + * @var CallStmt $call_stmt + * @var CallContext $call_context + * @var RenameStmt $rename_stmt + * @var AlterObjectDependsStmt $alter_object_depends_stmt + * @var AlterObjectSchemaStmt $alter_object_schema_stmt + * @var AlterOwnerStmt $alter_owner_stmt + * @var AlterOperatorStmt $alter_operator_stmt + * @var AlterTypeStmt $alter_type_stmt + * @var RuleStmt $rule_stmt + * @var NotifyStmt $notify_stmt + * @var ListenStmt $listen_stmt + * @var UnlistenStmt $unlisten_stmt + * @var TransactionStmt $transaction_stmt + * @var CompositeTypeStmt $composite_type_stmt + * @var CreateEnumStmt $create_enum_stmt + * @var CreateRangeStmt $create_range_stmt + * @var AlterEnumStmt $alter_enum_stmt + * @var ViewStmt $view_stmt + * @var LoadStmt $load_stmt + * @var CreatedbStmt $createdb_stmt + * @var AlterDatabaseStmt $alter_database_stmt + * @var AlterDatabaseRefreshCollStmt $alter_database_refresh_coll_stmt + * @var AlterDatabaseSetStmt $alter_database_set_stmt + * @var DropdbStmt $dropdb_stmt + * @var AlterSystemStmt $alter_system_stmt + * @var ClusterStmt $cluster_stmt + * @var VacuumStmt $vacuum_stmt + * @var VacuumRelation $vacuum_relation + * @var ExplainStmt $explain_stmt + * @var CreateTableAsStmt $create_table_as_stmt + * @var RefreshMatViewStmt $refresh_mat_view_stmt + * @var CheckPointStmt $check_point_stmt + * @var DiscardStmt $discard_stmt + * @var LockStmt $lock_stmt + * @var ConstraintsSetStmt $constraints_set_stmt + * @var ReindexStmt $reindex_stmt + * @var CreateConversionStmt $create_conversion_stmt + * @var CreateCastStmt $create_cast_stmt + * @var CreateTransformStmt $create_transform_stmt + * @var PrepareStmt $prepare_stmt + * @var ExecuteStmt $execute_stmt + * @var DeallocateStmt $deallocate_stmt + * @var DropOwnedStmt $drop_owned_stmt + * @var ReassignOwnedStmt $reassign_owned_stmt + * @var AlterTSDictionaryStmt $alter_tsdictionary_stmt + * @var AlterTSConfigurationStmt $alter_tsconfiguration_stmt + * @var PublicationTable $publication_table + * @var PublicationObjSpec $publication_obj_spec + * @var CreatePublicationStmt $create_publication_stmt + * @var AlterPublicationStmt $alter_publication_stmt + * @var CreateSubscriptionStmt $create_subscription_stmt + * @var AlterSubscriptionStmt $alter_subscription_stmt + * @var DropSubscriptionStmt $drop_subscription_stmt + * @var int $integer + * @var PBFloat $float + * @var bool $boolean + * @var PBString $string + * @var BitString $bit_string + * @var PBList $list + * @var IntList $int_list + * @var OidList $oid_list + * @var A_Const $a_const + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.A_ArrayExpr a_array_expr = 76 [json_name = "A_ArrayExpr"];. + * + * @return null|A_ArrayExpr + */ + public function getAArrayExpr() + { + return $this->readOneof(76); + } + + /** + * Generated from protobuf field .pg_query.AccessPriv access_priv = 148 [json_name = "AccessPriv"];. + * + * @return null|AccessPriv + */ + public function getAccessPriv() + { + return $this->readOneof(148); + } + + /** + * Generated from protobuf field .pg_query.A_Const a_const = 268 [json_name = "A_Const"];. + * + * @return null|A_Const + */ + public function getAConst() + { + return $this->readOneof(268); + } + + /** + * Generated from protobuf field .pg_query.A_Expr a_expr = 68 [json_name = "A_Expr"];. + * + * @return null|A_Expr + */ + public function getAExpr() + { + return $this->readOneof(68); + } + + /** + * Generated from protobuf field .pg_query.Aggref aggref = 7 [json_name = "Aggref"];. + * + * @return null|Aggref + */ + public function getAggref() + { + return $this->readOneof(7); + } + + /** + * Generated from protobuf field .pg_query.A_Indices a_indices = 74 [json_name = "A_Indices"];. + * + * @return null|A_Indices + */ + public function getAIndices() + { + return $this->readOneof(74); + } + + /** + * Generated from protobuf field .pg_query.A_Indirection a_indirection = 75 [json_name = "A_Indirection"];. + * + * @return null|A_Indirection + */ + public function getAIndirection() + { + return $this->readOneof(75); + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 1 [json_name = "Alias"];. + * + * @return null|Alias + */ + public function getAlias() + { + return $this->readOneof(1); + } + + /** + * Generated from protobuf field .pg_query.AlterCollationStmt alter_collation_stmt = 144 [json_name = "AlterCollationStmt"];. + * + * @return null|AlterCollationStmt + */ + public function getAlterCollationStmt() + { + return $this->readOneof(144); + } + + /** + * Generated from protobuf field .pg_query.AlterDatabaseRefreshCollStmt alter_database_refresh_coll_stmt = 228 [json_name = "AlterDatabaseRefreshCollStmt"];. + * + * @return null|AlterDatabaseRefreshCollStmt + */ + public function getAlterDatabaseRefreshCollStmt() + { + return $this->readOneof(228); + } + + /** + * Generated from protobuf field .pg_query.AlterDatabaseSetStmt alter_database_set_stmt = 229 [json_name = "AlterDatabaseSetStmt"];. + * + * @return null|AlterDatabaseSetStmt + */ + public function getAlterDatabaseSetStmt() + { + return $this->readOneof(229); + } + + /** + * Generated from protobuf field .pg_query.AlterDatabaseStmt alter_database_stmt = 227 [json_name = "AlterDatabaseStmt"];. + * + * @return null|AlterDatabaseStmt + */ + public function getAlterDatabaseStmt() + { + return $this->readOneof(227); + } + + /** + * Generated from protobuf field .pg_query.AlterDefaultPrivilegesStmt alter_default_privileges_stmt = 150 [json_name = "AlterDefaultPrivilegesStmt"];. + * + * @return null|AlterDefaultPrivilegesStmt + */ + public function getAlterDefaultPrivilegesStmt() + { + return $this->readOneof(150); + } + + /** + * Generated from protobuf field .pg_query.AlterDomainStmt alter_domain_stmt = 145 [json_name = "AlterDomainStmt"];. + * + * @return null|AlterDomainStmt + */ + public function getAlterDomainStmt() + { + return $this->readOneof(145); + } + + /** + * Generated from protobuf field .pg_query.AlterEnumStmt alter_enum_stmt = 223 [json_name = "AlterEnumStmt"];. + * + * @return null|AlterEnumStmt + */ + public function getAlterEnumStmt() + { + return $this->readOneof(223); + } + + /** + * Generated from protobuf field .pg_query.AlterEventTrigStmt alter_event_trig_stmt = 177 [json_name = "AlterEventTrigStmt"];. + * + * @return null|AlterEventTrigStmt + */ + public function getAlterEventTrigStmt() + { + return $this->readOneof(177); + } + + /** + * Generated from protobuf field .pg_query.AlterExtensionContentsStmt alter_extension_contents_stmt = 162 [json_name = "AlterExtensionContentsStmt"];. + * + * @return null|AlterExtensionContentsStmt + */ + public function getAlterExtensionContentsStmt() + { + return $this->readOneof(162); + } + + /** + * Generated from protobuf field .pg_query.AlterExtensionStmt alter_extension_stmt = 161 [json_name = "AlterExtensionStmt"];. + * + * @return null|AlterExtensionStmt + */ + public function getAlterExtensionStmt() + { + return $this->readOneof(161); + } + + /** + * Generated from protobuf field .pg_query.AlterFdwStmt alter_fdw_stmt = 164 [json_name = "AlterFdwStmt"];. + * + * @return null|AlterFdwStmt + */ + public function getAlterFdwStmt() + { + return $this->readOneof(164); + } + + /** + * Generated from protobuf field .pg_query.AlterForeignServerStmt alter_foreign_server_stmt = 166 [json_name = "AlterForeignServerStmt"];. + * + * @return null|AlterForeignServerStmt + */ + public function getAlterForeignServerStmt() + { + return $this->readOneof(166); + } + + /** + * Generated from protobuf field .pg_query.AlterFunctionStmt alter_function_stmt = 204 [json_name = "AlterFunctionStmt"];. + * + * @return null|AlterFunctionStmt + */ + public function getAlterFunctionStmt() + { + return $this->readOneof(204); + } + + /** + * Generated from protobuf field .pg_query.AlternativeSubPlan alternative_sub_plan = 22 [json_name = "AlternativeSubPlan"];. + * + * @return null|AlternativeSubPlan + */ + public function getAlternativeSubPlan() + { + return $this->readOneof(22); + } + + /** + * Generated from protobuf field .pg_query.AlterObjectDependsStmt alter_object_depends_stmt = 210 [json_name = "AlterObjectDependsStmt"];. + * + * @return null|AlterObjectDependsStmt + */ + public function getAlterObjectDependsStmt() + { + return $this->readOneof(210); + } + + /** + * Generated from protobuf field .pg_query.AlterObjectSchemaStmt alter_object_schema_stmt = 211 [json_name = "AlterObjectSchemaStmt"];. + * + * @return null|AlterObjectSchemaStmt + */ + public function getAlterObjectSchemaStmt() + { + return $this->readOneof(211); + } + + /** + * Generated from protobuf field .pg_query.AlterOperatorStmt alter_operator_stmt = 213 [json_name = "AlterOperatorStmt"];. + * + * @return null|AlterOperatorStmt + */ + public function getAlterOperatorStmt() + { + return $this->readOneof(213); + } + + /** + * Generated from protobuf field .pg_query.AlterOpFamilyStmt alter_op_family_stmt = 190 [json_name = "AlterOpFamilyStmt"];. + * + * @return null|AlterOpFamilyStmt + */ + public function getAlterOpFamilyStmt() + { + return $this->readOneof(190); + } + + /** + * Generated from protobuf field .pg_query.AlterOwnerStmt alter_owner_stmt = 212 [json_name = "AlterOwnerStmt"];. + * + * @return null|AlterOwnerStmt + */ + public function getAlterOwnerStmt() + { + return $this->readOneof(212); + } + + /** + * Generated from protobuf field .pg_query.AlterPolicyStmt alter_policy_stmt = 173 [json_name = "AlterPolicyStmt"];. + * + * @return null|AlterPolicyStmt + */ + public function getAlterPolicyStmt() + { + return $this->readOneof(173); + } + + /** + * Generated from protobuf field .pg_query.AlterPublicationStmt alter_publication_stmt = 256 [json_name = "AlterPublicationStmt"];. + * + * @return null|AlterPublicationStmt + */ + public function getAlterPublicationStmt() + { + return $this->readOneof(256); + } + + /** + * Generated from protobuf field .pg_query.AlterRoleSetStmt alter_role_set_stmt = 181 [json_name = "AlterRoleSetStmt"];. + * + * @return null|AlterRoleSetStmt + */ + public function getAlterRoleSetStmt() + { + return $this->readOneof(181); + } + + /** + * Generated from protobuf field .pg_query.AlterRoleStmt alter_role_stmt = 180 [json_name = "AlterRoleStmt"];. + * + * @return null|AlterRoleStmt + */ + public function getAlterRoleStmt() + { + return $this->readOneof(180); + } + + /** + * Generated from protobuf field .pg_query.AlterSeqStmt alter_seq_stmt = 184 [json_name = "AlterSeqStmt"];. + * + * @return null|AlterSeqStmt + */ + public function getAlterSeqStmt() + { + return $this->readOneof(184); + } + + /** + * Generated from protobuf field .pg_query.AlterStatsStmt alter_stats_stmt = 201 [json_name = "AlterStatsStmt"];. + * + * @return null|AlterStatsStmt + */ + public function getAlterStatsStmt() + { + return $this->readOneof(201); + } + + /** + * Generated from protobuf field .pg_query.AlterSubscriptionStmt alter_subscription_stmt = 258 [json_name = "AlterSubscriptionStmt"];. + * + * @return null|AlterSubscriptionStmt + */ + public function getAlterSubscriptionStmt() + { + return $this->readOneof(258); + } + + /** + * Generated from protobuf field .pg_query.AlterSystemStmt alter_system_stmt = 231 [json_name = "AlterSystemStmt"];. + * + * @return null|AlterSystemStmt + */ + public function getAlterSystemStmt() + { + return $this->readOneof(231); + } + + /** + * Generated from protobuf field .pg_query.AlterTableCmd alter_table_cmd = 143 [json_name = "AlterTableCmd"];. + * + * @return null|AlterTableCmd + */ + public function getAlterTableCmd() + { + return $this->readOneof(143); + } + + /** + * Generated from protobuf field .pg_query.AlterTableMoveAllStmt alter_table_move_all_stmt = 159 [json_name = "AlterTableMoveAllStmt"];. + * + * @return null|AlterTableMoveAllStmt + */ + public function getAlterTableMoveAllStmt() + { + return $this->readOneof(159); + } + + /** + * Generated from protobuf field .pg_query.AlterTableSpaceOptionsStmt alter_table_space_options_stmt = 158 [json_name = "AlterTableSpaceOptionsStmt"];. + * + * @return null|AlterTableSpaceOptionsStmt + */ + public function getAlterTableSpaceOptionsStmt() + { + return $this->readOneof(158); + } + + /** + * Generated from protobuf field .pg_query.AlterTableStmt alter_table_stmt = 141 [json_name = "AlterTableStmt"];. + * + * @return null|AlterTableStmt + */ + public function getAlterTableStmt() + { + return $this->readOneof(141); + } + + /** + * Generated from protobuf field .pg_query.AlterTSConfigurationStmt alter_tsconfiguration_stmt = 252 [json_name = "AlterTSConfigurationStmt"];. + * + * @return null|AlterTSConfigurationStmt + */ + public function getAlterTsconfigurationStmt() + { + return $this->readOneof(252); + } + + /** + * Generated from protobuf field .pg_query.AlterTSDictionaryStmt alter_tsdictionary_stmt = 251 [json_name = "AlterTSDictionaryStmt"];. + * + * @return null|AlterTSDictionaryStmt + */ + public function getAlterTsdictionaryStmt() + { + return $this->readOneof(251); + } + + /** + * Generated from protobuf field .pg_query.AlterTypeStmt alter_type_stmt = 214 [json_name = "AlterTypeStmt"];. + * + * @return null|AlterTypeStmt + */ + public function getAlterTypeStmt() + { + return $this->readOneof(214); + } + + /** + * Generated from protobuf field .pg_query.AlterUserMappingStmt alter_user_mapping_stmt = 169 [json_name = "AlterUserMappingStmt"];. + * + * @return null|AlterUserMappingStmt + */ + public function getAlterUserMappingStmt() + { + return $this->readOneof(169); + } + + /** + * Generated from protobuf field .pg_query.ArrayCoerceExpr array_coerce_expr = 27 [json_name = "ArrayCoerceExpr"];. + * + * @return null|ArrayCoerceExpr + */ + public function getArrayCoerceExpr() + { + return $this->readOneof(27); + } + + /** + * Generated from protobuf field .pg_query.ArrayExpr array_expr = 33 [json_name = "ArrayExpr"];. + * + * @return null|ArrayExpr + */ + public function getArrayExpr() + { + return $this->readOneof(33); + } + + /** + * Generated from protobuf field .pg_query.A_Star a_star = 73 [json_name = "A_Star"];. + * + * @return null|A_Star + */ + public function getAStar() + { + return $this->readOneof(73); + } + + /** + * Generated from protobuf field .pg_query.BitString bit_string = 264 [json_name = "BitString"];. + * + * @return null|BitString + */ + public function getBitString() + { + return $this->readOneof(264); + } + + /** + * Generated from protobuf field .pg_query.Boolean boolean = 262 [json_name = "Boolean"];. + * + * @return null|bool + */ + public function getBoolean() + { + return $this->readOneof(262); + } + + /** + * Generated from protobuf field .pg_query.BooleanTest boolean_test = 51 [json_name = "BooleanTest"];. + * + * @return null|BooleanTest + */ + public function getBooleanTest() + { + return $this->readOneof(51); + } + + /** + * Generated from protobuf field .pg_query.BoolExpr bool_expr = 19 [json_name = "BoolExpr"];. + * + * @return null|BoolExpr + */ + public function getBoolExpr() + { + return $this->readOneof(19); + } + + /** + * Generated from protobuf field .pg_query.CallContext call_context = 208 [json_name = "CallContext"];. + * + * @return null|CallContext + */ + public function getCallContext() + { + return $this->readOneof(208); + } + + /** + * Generated from protobuf field .pg_query.CallStmt call_stmt = 207 [json_name = "CallStmt"];. + * + * @return null|CallStmt + */ + public function getCallStmt() + { + return $this->readOneof(207); + } + + /** + * Generated from protobuf field .pg_query.CaseExpr case_expr = 30 [json_name = "CaseExpr"];. + * + * @return null|CaseExpr + */ + public function getCaseExpr() + { + return $this->readOneof(30); + } + + /** + * Generated from protobuf field .pg_query.CaseTestExpr case_test_expr = 32 [json_name = "CaseTestExpr"];. + * + * @return null|CaseTestExpr + */ + public function getCaseTestExpr() + { + return $this->readOneof(32); + } + + /** + * Generated from protobuf field .pg_query.CaseWhen case_when = 31 [json_name = "CaseWhen"];. + * + * @return null|CaseWhen + */ + public function getCaseWhen() + { + return $this->readOneof(31); + } + + /** + * Generated from protobuf field .pg_query.CheckPointStmt check_point_stmt = 238 [json_name = "CheckPointStmt"];. + * + * @return null|CheckPointStmt + */ + public function getCheckPointStmt() + { + return $this->readOneof(238); + } + + /** + * Generated from protobuf field .pg_query.ClosePortalStmt close_portal_stmt = 196 [json_name = "ClosePortalStmt"];. + * + * @return null|ClosePortalStmt + */ + public function getClosePortalStmt() + { + return $this->readOneof(196); + } + + /** + * Generated from protobuf field .pg_query.ClusterStmt cluster_stmt = 232 [json_name = "ClusterStmt"];. + * + * @return null|ClusterStmt + */ + public function getClusterStmt() + { + return $this->readOneof(232); + } + + /** + * Generated from protobuf field .pg_query.CoalesceExpr coalesce_expr = 36 [json_name = "CoalesceExpr"];. + * + * @return null|CoalesceExpr + */ + public function getCoalesceExpr() + { + return $this->readOneof(36); + } + + /** + * Generated from protobuf field .pg_query.CoerceToDomain coerce_to_domain = 53 [json_name = "CoerceToDomain"];. + * + * @return null|CoerceToDomain + */ + public function getCoerceToDomain() + { + return $this->readOneof(53); + } + + /** + * Generated from protobuf field .pg_query.CoerceToDomainValue coerce_to_domain_value = 54 [json_name = "CoerceToDomainValue"];. + * + * @return null|CoerceToDomainValue + */ + public function getCoerceToDomainValue() + { + return $this->readOneof(54); + } + + /** + * Generated from protobuf field .pg_query.CoerceViaIO coerce_via_io = 26 [json_name = "CoerceViaIO"];. + * + * @return null|CoerceViaIO + */ + public function getCoerceViaIo() + { + return $this->readOneof(26); + } + + /** + * Generated from protobuf field .pg_query.CollateClause collate_clause = 70 [json_name = "CollateClause"];. + * + * @return null|CollateClause + */ + public function getCollateClause() + { + return $this->readOneof(70); + } + + /** + * Generated from protobuf field .pg_query.CollateExpr collate_expr = 29 [json_name = "CollateExpr"];. + * + * @return null|CollateExpr + */ + public function getCollateExpr() + { + return $this->readOneof(29); + } + + /** + * Generated from protobuf field .pg_query.ColumnDef column_def = 86 [json_name = "ColumnDef"];. + * + * @return null|ColumnDef + */ + public function getColumnDef() + { + return $this->readOneof(86); + } + + /** + * Generated from protobuf field .pg_query.ColumnRef column_ref = 66 [json_name = "ColumnRef"];. + * + * @return null|ColumnRef + */ + public function getColumnRef() + { + return $this->readOneof(66); + } + + /** + * Generated from protobuf field .pg_query.CommentStmt comment_stmt = 193 [json_name = "CommentStmt"];. + * + * @return null|CommentStmt + */ + public function getCommentStmt() + { + return $this->readOneof(193); + } + + /** + * Generated from protobuf field .pg_query.CommonTableExpr common_table_expr = 112 [json_name = "CommonTableExpr"];. + * + * @return null|CommonTableExpr + */ + public function getCommonTableExpr() + { + return $this->readOneof(112); + } + + /** + * Generated from protobuf field .pg_query.CompositeTypeStmt composite_type_stmt = 220 [json_name = "CompositeTypeStmt"];. + * + * @return null|CompositeTypeStmt + */ + public function getCompositeTypeStmt() + { + return $this->readOneof(220); + } + + /** + * Generated from protobuf field .pg_query.Constraint constraint = 155 [json_name = "Constraint"];. + * + * @return null|Constraint + */ + public function getConstraint() + { + return $this->readOneof(155); + } + + /** + * Generated from protobuf field .pg_query.ConstraintsSetStmt constraints_set_stmt = 241 [json_name = "ConstraintsSetStmt"];. + * + * @return null|ConstraintsSetStmt + */ + public function getConstraintsSetStmt() + { + return $this->readOneof(241); + } + + /** + * Generated from protobuf field .pg_query.ConvertRowtypeExpr convert_rowtype_expr = 28 [json_name = "ConvertRowtypeExpr"];. + * + * @return null|ConvertRowtypeExpr + */ + public function getConvertRowtypeExpr() + { + return $this->readOneof(28); + } + + /** + * Generated from protobuf field .pg_query.CopyStmt copy_stmt = 151 [json_name = "CopyStmt"];. + * + * @return null|CopyStmt + */ + public function getCopyStmt() + { + return $this->readOneof(151); + } + + /** + * Generated from protobuf field .pg_query.CreateAmStmt create_am_stmt = 174 [json_name = "CreateAmStmt"];. + * + * @return null|CreateAmStmt + */ + public function getCreateAmStmt() + { + return $this->readOneof(174); + } + + /** + * Generated from protobuf field .pg_query.CreateCastStmt create_cast_stmt = 244 [json_name = "CreateCastStmt"];. + * + * @return null|CreateCastStmt + */ + public function getCreateCastStmt() + { + return $this->readOneof(244); + } + + /** + * Generated from protobuf field .pg_query.CreateConversionStmt create_conversion_stmt = 243 [json_name = "CreateConversionStmt"];. + * + * @return null|CreateConversionStmt + */ + public function getCreateConversionStmt() + { + return $this->readOneof(243); + } + + /** + * Generated from protobuf field .pg_query.CreatedbStmt createdb_stmt = 226 [json_name = "CreatedbStmt"];. + * + * @return null|CreatedbStmt + */ + public function getCreatedbStmt() + { + return $this->readOneof(226); + } + + /** + * Generated from protobuf field .pg_query.CreateDomainStmt create_domain_stmt = 186 [json_name = "CreateDomainStmt"];. + * + * @return null|CreateDomainStmt + */ + public function getCreateDomainStmt() + { + return $this->readOneof(186); + } + + /** + * Generated from protobuf field .pg_query.CreateEnumStmt create_enum_stmt = 221 [json_name = "CreateEnumStmt"];. + * + * @return null|CreateEnumStmt + */ + public function getCreateEnumStmt() + { + return $this->readOneof(221); + } + + /** + * Generated from protobuf field .pg_query.CreateEventTrigStmt create_event_trig_stmt = 176 [json_name = "CreateEventTrigStmt"];. + * + * @return null|CreateEventTrigStmt + */ + public function getCreateEventTrigStmt() + { + return $this->readOneof(176); + } + + /** + * Generated from protobuf field .pg_query.CreateExtensionStmt create_extension_stmt = 160 [json_name = "CreateExtensionStmt"];. + * + * @return null|CreateExtensionStmt + */ + public function getCreateExtensionStmt() + { + return $this->readOneof(160); + } + + /** + * Generated from protobuf field .pg_query.CreateFdwStmt create_fdw_stmt = 163 [json_name = "CreateFdwStmt"];. + * + * @return null|CreateFdwStmt + */ + public function getCreateFdwStmt() + { + return $this->readOneof(163); + } + + /** + * Generated from protobuf field .pg_query.CreateForeignServerStmt create_foreign_server_stmt = 165 [json_name = "CreateForeignServerStmt"];. + * + * @return null|CreateForeignServerStmt + */ + public function getCreateForeignServerStmt() + { + return $this->readOneof(165); + } + + /** + * Generated from protobuf field .pg_query.CreateForeignTableStmt create_foreign_table_stmt = 167 [json_name = "CreateForeignTableStmt"];. + * + * @return null|CreateForeignTableStmt + */ + public function getCreateForeignTableStmt() + { + return $this->readOneof(167); + } + + /** + * Generated from protobuf field .pg_query.CreateFunctionStmt create_function_stmt = 202 [json_name = "CreateFunctionStmt"];. + * + * @return null|CreateFunctionStmt + */ + public function getCreateFunctionStmt() + { + return $this->readOneof(202); + } + + /** + * Generated from protobuf field .pg_query.CreateOpClassItem create_op_class_item = 188 [json_name = "CreateOpClassItem"];. + * + * @return null|CreateOpClassItem + */ + public function getCreateOpClassItem() + { + return $this->readOneof(188); + } + + /** + * Generated from protobuf field .pg_query.CreateOpClassStmt create_op_class_stmt = 187 [json_name = "CreateOpClassStmt"];. + * + * @return null|CreateOpClassStmt + */ + public function getCreateOpClassStmt() + { + return $this->readOneof(187); + } + + /** + * Generated from protobuf field .pg_query.CreateOpFamilyStmt create_op_family_stmt = 189 [json_name = "CreateOpFamilyStmt"];. + * + * @return null|CreateOpFamilyStmt + */ + public function getCreateOpFamilyStmt() + { + return $this->readOneof(189); + } + + /** + * Generated from protobuf field .pg_query.CreatePLangStmt create_plang_stmt = 178 [json_name = "CreatePLangStmt"];. + * + * @return null|CreatePLangStmt + */ + public function getCreatePlangStmt() + { + return $this->readOneof(178); + } + + /** + * Generated from protobuf field .pg_query.CreatePolicyStmt create_policy_stmt = 172 [json_name = "CreatePolicyStmt"];. + * + * @return null|CreatePolicyStmt + */ + public function getCreatePolicyStmt() + { + return $this->readOneof(172); + } + + /** + * Generated from protobuf field .pg_query.CreatePublicationStmt create_publication_stmt = 255 [json_name = "CreatePublicationStmt"];. + * + * @return null|CreatePublicationStmt + */ + public function getCreatePublicationStmt() + { + return $this->readOneof(255); + } + + /** + * Generated from protobuf field .pg_query.CreateRangeStmt create_range_stmt = 222 [json_name = "CreateRangeStmt"];. + * + * @return null|CreateRangeStmt + */ + public function getCreateRangeStmt() + { + return $this->readOneof(222); + } + + /** + * Generated from protobuf field .pg_query.CreateRoleStmt create_role_stmt = 179 [json_name = "CreateRoleStmt"];. + * + * @return null|CreateRoleStmt + */ + public function getCreateRoleStmt() + { + return $this->readOneof(179); + } + + /** + * Generated from protobuf field .pg_query.CreateSchemaStmt create_schema_stmt = 140 [json_name = "CreateSchemaStmt"];. + * + * @return null|CreateSchemaStmt + */ + public function getCreateSchemaStmt() + { + return $this->readOneof(140); + } + + /** + * Generated from protobuf field .pg_query.CreateSeqStmt create_seq_stmt = 183 [json_name = "CreateSeqStmt"];. + * + * @return null|CreateSeqStmt + */ + public function getCreateSeqStmt() + { + return $this->readOneof(183); + } + + /** + * Generated from protobuf field .pg_query.CreateStatsStmt create_stats_stmt = 199 [json_name = "CreateStatsStmt"];. + * + * @return null|CreateStatsStmt + */ + public function getCreateStatsStmt() + { + return $this->readOneof(199); + } + + /** + * Generated from protobuf field .pg_query.CreateStmt create_stmt = 154 [json_name = "CreateStmt"];. + * + * @return null|CreateStmt + */ + public function getCreateStmt() + { + return $this->readOneof(154); + } + + /** + * Generated from protobuf field .pg_query.CreateSubscriptionStmt create_subscription_stmt = 257 [json_name = "CreateSubscriptionStmt"];. + * + * @return null|CreateSubscriptionStmt + */ + public function getCreateSubscriptionStmt() + { + return $this->readOneof(257); + } + + /** + * Generated from protobuf field .pg_query.CreateTableAsStmt create_table_as_stmt = 236 [json_name = "CreateTableAsStmt"];. + * + * @return null|CreateTableAsStmt + */ + public function getCreateTableAsStmt() + { + return $this->readOneof(236); + } + + /** + * Generated from protobuf field .pg_query.CreateTableSpaceStmt create_table_space_stmt = 156 [json_name = "CreateTableSpaceStmt"];. + * + * @return null|CreateTableSpaceStmt + */ + public function getCreateTableSpaceStmt() + { + return $this->readOneof(156); + } + + /** + * Generated from protobuf field .pg_query.CreateTransformStmt create_transform_stmt = 245 [json_name = "CreateTransformStmt"];. + * + * @return null|CreateTransformStmt + */ + public function getCreateTransformStmt() + { + return $this->readOneof(245); + } + + /** + * Generated from protobuf field .pg_query.CreateTrigStmt create_trig_stmt = 175 [json_name = "CreateTrigStmt"];. + * + * @return null|CreateTrigStmt + */ + public function getCreateTrigStmt() + { + return $this->readOneof(175); + } + + /** + * Generated from protobuf field .pg_query.CreateUserMappingStmt create_user_mapping_stmt = 168 [json_name = "CreateUserMappingStmt"];. + * + * @return null|CreateUserMappingStmt + */ + public function getCreateUserMappingStmt() + { + return $this->readOneof(168); + } + + /** + * Generated from protobuf field .pg_query.CTECycleClause ctecycle_clause = 111 [json_name = "CTECycleClause"];. + * + * @return null|CTECycleClause + */ + public function getCtecycleClause() + { + return $this->readOneof(111); + } + + /** + * Generated from protobuf field .pg_query.CTESearchClause ctesearch_clause = 110 [json_name = "CTESearchClause"];. + * + * @return null|CTESearchClause + */ + public function getCtesearchClause() + { + return $this->readOneof(110); + } + + /** + * Generated from protobuf field .pg_query.CurrentOfExpr current_of_expr = 56 [json_name = "CurrentOfExpr"];. + * + * @return null|CurrentOfExpr + */ + public function getCurrentOfExpr() + { + return $this->readOneof(56); + } + + /** + * Generated from protobuf field .pg_query.DeallocateStmt deallocate_stmt = 248 [json_name = "DeallocateStmt"];. + * + * @return null|DeallocateStmt + */ + public function getDeallocateStmt() + { + return $this->readOneof(248); + } + + /** + * Generated from protobuf field .pg_query.DeclareCursorStmt declare_cursor_stmt = 195 [json_name = "DeclareCursorStmt"];. + * + * @return null|DeclareCursorStmt + */ + public function getDeclareCursorStmt() + { + return $this->readOneof(195); + } + + /** + * Generated from protobuf field .pg_query.DefElem def_elem = 89 [json_name = "DefElem"];. + * + * @return null|DefElem + */ + public function getDefElem() + { + return $this->readOneof(89); + } + + /** + * Generated from protobuf field .pg_query.DefineStmt define_stmt = 185 [json_name = "DefineStmt"];. + * + * @return null|DefineStmt + */ + public function getDefineStmt() + { + return $this->readOneof(185); + } + + /** + * Generated from protobuf field .pg_query.DeleteStmt delete_stmt = 133 [json_name = "DeleteStmt"];. + * + * @return null|DeleteStmt + */ + public function getDeleteStmt() + { + return $this->readOneof(133); + } + + /** + * Generated from protobuf field .pg_query.DiscardStmt discard_stmt = 239 [json_name = "DiscardStmt"];. + * + * @return null|DiscardStmt + */ + public function getDiscardStmt() + { + return $this->readOneof(239); + } + + /** + * Generated from protobuf field .pg_query.DistinctExpr distinct_expr = 16 [json_name = "DistinctExpr"];. + * + * @return null|DistinctExpr + */ + public function getDistinctExpr() + { + return $this->readOneof(16); + } + + /** + * Generated from protobuf field .pg_query.DoStmt do_stmt = 205 [json_name = "DoStmt"];. + * + * @return null|DoStmt + */ + public function getDoStmt() + { + return $this->readOneof(205); + } + + /** + * Generated from protobuf field .pg_query.DropdbStmt dropdb_stmt = 230 [json_name = "DropdbStmt"];. + * + * @return null|DropdbStmt + */ + public function getDropdbStmt() + { + return $this->readOneof(230); + } + + /** + * Generated from protobuf field .pg_query.DropOwnedStmt drop_owned_stmt = 249 [json_name = "DropOwnedStmt"];. + * + * @return null|DropOwnedStmt + */ + public function getDropOwnedStmt() + { + return $this->readOneof(249); + } + + /** + * Generated from protobuf field .pg_query.DropRoleStmt drop_role_stmt = 182 [json_name = "DropRoleStmt"];. + * + * @return null|DropRoleStmt + */ + public function getDropRoleStmt() + { + return $this->readOneof(182); + } + + /** + * Generated from protobuf field .pg_query.DropStmt drop_stmt = 191 [json_name = "DropStmt"];. + * + * @return null|DropStmt + */ + public function getDropStmt() + { + return $this->readOneof(191); + } + + /** + * Generated from protobuf field .pg_query.DropSubscriptionStmt drop_subscription_stmt = 259 [json_name = "DropSubscriptionStmt"];. + * + * @return null|DropSubscriptionStmt + */ + public function getDropSubscriptionStmt() + { + return $this->readOneof(259); + } + + /** + * Generated from protobuf field .pg_query.DropTableSpaceStmt drop_table_space_stmt = 157 [json_name = "DropTableSpaceStmt"];. + * + * @return null|DropTableSpaceStmt + */ + public function getDropTableSpaceStmt() + { + return $this->readOneof(157); + } + + /** + * Generated from protobuf field .pg_query.DropUserMappingStmt drop_user_mapping_stmt = 170 [json_name = "DropUserMappingStmt"];. + * + * @return null|DropUserMappingStmt + */ + public function getDropUserMappingStmt() + { + return $this->readOneof(170); + } + + /** + * Generated from protobuf field .pg_query.ExecuteStmt execute_stmt = 247 [json_name = "ExecuteStmt"];. + * + * @return null|ExecuteStmt + */ + public function getExecuteStmt() + { + return $this->readOneof(247); + } + + /** + * Generated from protobuf field .pg_query.ExplainStmt explain_stmt = 235 [json_name = "ExplainStmt"];. + * + * @return null|ExplainStmt + */ + public function getExplainStmt() + { + return $this->readOneof(235); + } + + /** + * Generated from protobuf field .pg_query.FetchStmt fetch_stmt = 197 [json_name = "FetchStmt"];. + * + * @return null|FetchStmt + */ + public function getFetchStmt() + { + return $this->readOneof(197); + } + + /** + * Generated from protobuf field .pg_query.FieldSelect field_select = 23 [json_name = "FieldSelect"];. + * + * @return null|FieldSelect + */ + public function getFieldSelect() + { + return $this->readOneof(23); + } + + /** + * Generated from protobuf field .pg_query.FieldStore field_store = 24 [json_name = "FieldStore"];. + * + * @return null|FieldStore + */ + public function getFieldStore() + { + return $this->readOneof(24); + } + + /** + * Generated from protobuf field .pg_query.Float float = 261 [json_name = "Float"];. + * + * @return null|PBFloat + */ + public function getFloat() + { + return $this->readOneof(261); + } + + /** + * Generated from protobuf field .pg_query.FromExpr from_expr = 62 [json_name = "FromExpr"];. + * + * @return null|FromExpr + */ + public function getFromExpr() + { + return $this->readOneof(62); + } + + /** + * Generated from protobuf field .pg_query.FuncCall func_call = 72 [json_name = "FuncCall"];. + * + * @return null|FuncCall + */ + public function getFuncCall() + { + return $this->readOneof(72); + } + + /** + * Generated from protobuf field .pg_query.FuncExpr func_expr = 13 [json_name = "FuncExpr"];. + * + * @return null|FuncExpr + */ + public function getFuncExpr() + { + return $this->readOneof(13); + } + + /** + * Generated from protobuf field .pg_query.FunctionParameter function_parameter = 203 [json_name = "FunctionParameter"];. + * + * @return null|FunctionParameter + */ + public function getFunctionParameter() + { + return $this->readOneof(203); + } + + /** + * Generated from protobuf field .pg_query.GrantRoleStmt grant_role_stmt = 149 [json_name = "GrantRoleStmt"];. + * + * @return null|GrantRoleStmt + */ + public function getGrantRoleStmt() + { + return $this->readOneof(149); + } + + /** + * Generated from protobuf field .pg_query.GrantStmt grant_stmt = 146 [json_name = "GrantStmt"];. + * + * @return null|GrantStmt + */ + public function getGrantStmt() + { + return $this->readOneof(146); + } + + /** + * Generated from protobuf field .pg_query.GroupingFunc grouping_func = 8 [json_name = "GroupingFunc"];. + * + * @return null|GroupingFunc + */ + public function getGroupingFunc() + { + return $this->readOneof(8); + } + + /** + * Generated from protobuf field .pg_query.GroupingSet grouping_set = 104 [json_name = "GroupingSet"];. + * + * @return null|GroupingSet + */ + public function getGroupingSet() + { + return $this->readOneof(104); + } + + /** + * Generated from protobuf field .pg_query.ImportForeignSchemaStmt import_foreign_schema_stmt = 171 [json_name = "ImportForeignSchemaStmt"];. + * + * @return null|ImportForeignSchemaStmt + */ + public function getImportForeignSchemaStmt() + { + return $this->readOneof(171); + } + + /** + * Generated from protobuf field .pg_query.IndexElem index_elem = 88 [json_name = "IndexElem"];. + * + * @return null|IndexElem + */ + public function getIndexElem() + { + return $this->readOneof(88); + } + + /** + * Generated from protobuf field .pg_query.IndexStmt index_stmt = 198 [json_name = "IndexStmt"];. + * + * @return null|IndexStmt + */ + public function getIndexStmt() + { + return $this->readOneof(198); + } + + /** + * Generated from protobuf field .pg_query.InferClause infer_clause = 108 [json_name = "InferClause"];. + * + * @return null|InferClause + */ + public function getInferClause() + { + return $this->readOneof(108); + } + + /** + * Generated from protobuf field .pg_query.InferenceElem inference_elem = 58 [json_name = "InferenceElem"];. + * + * @return null|InferenceElem + */ + public function getInferenceElem() + { + return $this->readOneof(58); + } + + /** + * Generated from protobuf field .pg_query.InlineCodeBlock inline_code_block = 206 [json_name = "InlineCodeBlock"];. + * + * @return null|InlineCodeBlock + */ + public function getInlineCodeBlock() + { + return $this->readOneof(206); + } + + /** + * Generated from protobuf field .pg_query.InsertStmt insert_stmt = 132 [json_name = "InsertStmt"];. + * + * @return null|InsertStmt + */ + public function getInsertStmt() + { + return $this->readOneof(132); + } + + /** + * Generated from protobuf field .pg_query.Integer integer = 260 [json_name = "Integer"];. + * + * @return null|int + */ + public function getInteger() + { + return $this->readOneof(260); + } + + /** + * Generated from protobuf field .pg_query.IntList int_list = 266 [json_name = "IntList"];. + * + * @return null|IntList + */ + public function getIntList() + { + return $this->readOneof(266); + } + + /** + * Generated from protobuf field .pg_query.IntoClause into_clause = 4 [json_name = "IntoClause"];. + * + * @return null|IntoClause + */ + public function getIntoClause() + { + return $this->readOneof(4); + } + + /** + * Generated from protobuf field .pg_query.JoinExpr join_expr = 61 [json_name = "JoinExpr"];. + * + * @return null|JoinExpr + */ + public function getJoinExpr() + { + return $this->readOneof(61); + } + + /** + * Generated from protobuf field .pg_query.JsonAggConstructor json_agg_constructor = 128 [json_name = "JsonAggConstructor"];. + * + * @return null|JsonAggConstructor + */ + public function getJsonAggConstructor() + { + return $this->readOneof(128); + } + + /** + * Generated from protobuf field .pg_query.JsonArgument json_argument = 116 [json_name = "JsonArgument"];. + * + * @return null|JsonArgument + */ + public function getJsonArgument() + { + return $this->readOneof(116); + } + + /** + * Generated from protobuf field .pg_query.JsonArrayAgg json_array_agg = 130 [json_name = "JsonArrayAgg"];. + * + * @return null|JsonArrayAgg + */ + public function getJsonArrayAgg() + { + return $this->readOneof(130); + } + + /** + * Generated from protobuf field .pg_query.JsonArrayConstructor json_array_constructor = 126 [json_name = "JsonArrayConstructor"];. + * + * @return null|JsonArrayConstructor + */ + public function getJsonArrayConstructor() + { + return $this->readOneof(126); + } + + /** + * Generated from protobuf field .pg_query.JsonArrayQueryConstructor json_array_query_constructor = 127 [json_name = "JsonArrayQueryConstructor"];. + * + * @return null|JsonArrayQueryConstructor + */ + public function getJsonArrayQueryConstructor() + { + return $this->readOneof(127); + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior json_behavior = 45 [json_name = "JsonBehavior"];. + * + * @return null|JsonBehavior + */ + public function getJsonBehavior() + { + return $this->readOneof(45); + } + + /** + * Generated from protobuf field .pg_query.JsonConstructorExpr json_constructor_expr = 43 [json_name = "JsonConstructorExpr"];. + * + * @return null|JsonConstructorExpr + */ + public function getJsonConstructorExpr() + { + return $this->readOneof(43); + } + + /** + * Generated from protobuf field .pg_query.JsonExpr json_expr = 46 [json_name = "JsonExpr"];. + * + * @return null|JsonExpr + */ + public function getJsonExpr() + { + return $this->readOneof(46); + } + + /** + * Generated from protobuf field .pg_query.JsonFormat json_format = 40 [json_name = "JsonFormat"];. + * + * @return null|JsonFormat + */ + public function getJsonFormat() + { + return $this->readOneof(40); + } + + /** + * Generated from protobuf field .pg_query.JsonFuncExpr json_func_expr = 117 [json_name = "JsonFuncExpr"];. + * + * @return null|JsonFuncExpr + */ + public function getJsonFuncExpr() + { + return $this->readOneof(117); + } + + /** + * Generated from protobuf field .pg_query.JsonIsPredicate json_is_predicate = 44 [json_name = "JsonIsPredicate"];. + * + * @return null|JsonIsPredicate + */ + public function getJsonIsPredicate() + { + return $this->readOneof(44); + } + + /** + * Generated from protobuf field .pg_query.JsonKeyValue json_key_value = 121 [json_name = "JsonKeyValue"];. + * + * @return null|JsonKeyValue + */ + public function getJsonKeyValue() + { + return $this->readOneof(121); + } + + /** + * Generated from protobuf field .pg_query.JsonObjectAgg json_object_agg = 129 [json_name = "JsonObjectAgg"];. + * + * @return null|JsonObjectAgg + */ + public function getJsonObjectAgg() + { + return $this->readOneof(129); + } + + /** + * Generated from protobuf field .pg_query.JsonObjectConstructor json_object_constructor = 125 [json_name = "JsonObjectConstructor"];. + * + * @return null|JsonObjectConstructor + */ + public function getJsonObjectConstructor() + { + return $this->readOneof(125); + } + + /** + * Generated from protobuf field .pg_query.JsonOutput json_output = 115 [json_name = "JsonOutput"];. + * + * @return null|JsonOutput + */ + public function getJsonOutput() + { + return $this->readOneof(115); + } + + /** + * Generated from protobuf field .pg_query.JsonParseExpr json_parse_expr = 122 [json_name = "JsonParseExpr"];. + * + * @return null|JsonParseExpr + */ + public function getJsonParseExpr() + { + return $this->readOneof(122); + } + + /** + * Generated from protobuf field .pg_query.JsonReturning json_returning = 41 [json_name = "JsonReturning"];. + * + * @return null|JsonReturning + */ + public function getJsonReturning() + { + return $this->readOneof(41); + } + + /** + * Generated from protobuf field .pg_query.JsonScalarExpr json_scalar_expr = 123 [json_name = "JsonScalarExpr"];. + * + * @return null|JsonScalarExpr + */ + public function getJsonScalarExpr() + { + return $this->readOneof(123); + } + + /** + * Generated from protobuf field .pg_query.JsonSerializeExpr json_serialize_expr = 124 [json_name = "JsonSerializeExpr"];. + * + * @return null|JsonSerializeExpr + */ + public function getJsonSerializeExpr() + { + return $this->readOneof(124); + } + + /** + * Generated from protobuf field .pg_query.JsonTable json_table = 119 [json_name = "JsonTable"];. + * + * @return null|JsonTable + */ + public function getJsonTable() + { + return $this->readOneof(119); + } + + /** + * Generated from protobuf field .pg_query.JsonTableColumn json_table_column = 120 [json_name = "JsonTableColumn"];. + * + * @return null|JsonTableColumn + */ + public function getJsonTableColumn() + { + return $this->readOneof(120); + } + + /** + * Generated from protobuf field .pg_query.JsonTablePath json_table_path = 47 [json_name = "JsonTablePath"];. + * + * @return null|JsonTablePath + */ + public function getJsonTablePath() + { + return $this->readOneof(47); + } + + /** + * Generated from protobuf field .pg_query.JsonTablePathScan json_table_path_scan = 48 [json_name = "JsonTablePathScan"];. + * + * @return null|JsonTablePathScan + */ + public function getJsonTablePathScan() + { + return $this->readOneof(48); + } + + /** + * Generated from protobuf field .pg_query.JsonTablePathSpec json_table_path_spec = 118 [json_name = "JsonTablePathSpec"];. + * + * @return null|JsonTablePathSpec + */ + public function getJsonTablePathSpec() + { + return $this->readOneof(118); + } + + /** + * Generated from protobuf field .pg_query.JsonTableSiblingJoin json_table_sibling_join = 49 [json_name = "JsonTableSiblingJoin"];. + * + * @return null|JsonTableSiblingJoin + */ + public function getJsonTableSiblingJoin() + { + return $this->readOneof(49); + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr json_value_expr = 42 [json_name = "JsonValueExpr"];. + * + * @return null|JsonValueExpr + */ + public function getJsonValueExpr() + { + return $this->readOneof(42); + } + + /** + * Generated from protobuf field .pg_query.List list = 265 [json_name = "List"];. + * + * @return null|PBList + */ + public function getList() + { + return $this->readOneof(265); + } + + /** + * Generated from protobuf field .pg_query.ListenStmt listen_stmt = 217 [json_name = "ListenStmt"];. + * + * @return null|ListenStmt + */ + public function getListenStmt() + { + return $this->readOneof(217); + } + + /** + * Generated from protobuf field .pg_query.LoadStmt load_stmt = 225 [json_name = "LoadStmt"];. + * + * @return null|LoadStmt + */ + public function getLoadStmt() + { + return $this->readOneof(225); + } + + /** + * Generated from protobuf field .pg_query.LockingClause locking_clause = 90 [json_name = "LockingClause"];. + * + * @return null|LockingClause + */ + public function getLockingClause() + { + return $this->readOneof(90); + } + + /** + * Generated from protobuf field .pg_query.LockStmt lock_stmt = 240 [json_name = "LockStmt"];. + * + * @return null|LockStmt + */ + public function getLockStmt() + { + return $this->readOneof(240); + } + + /** + * Generated from protobuf field .pg_query.MergeAction merge_action = 52 [json_name = "MergeAction"];. + * + * @return null|MergeAction + */ + public function getMergeAction() + { + return $this->readOneof(52); + } + + /** + * Generated from protobuf field .pg_query.MergeStmt merge_stmt = 135 [json_name = "MergeStmt"];. + * + * @return null|MergeStmt + */ + public function getMergeStmt() + { + return $this->readOneof(135); + } + + /** + * Generated from protobuf field .pg_query.MergeSupportFunc merge_support_func = 11 [json_name = "MergeSupportFunc"];. + * + * @return null|MergeSupportFunc + */ + public function getMergeSupportFunc() + { + return $this->readOneof(11); + } + + /** + * Generated from protobuf field .pg_query.MergeWhenClause merge_when_clause = 113 [json_name = "MergeWhenClause"];. + * + * @return null|MergeWhenClause + */ + public function getMergeWhenClause() + { + return $this->readOneof(113); + } + + /** + * Generated from protobuf field .pg_query.MinMaxExpr min_max_expr = 37 [json_name = "MinMaxExpr"];. + * + * @return null|MinMaxExpr + */ + public function getMinMaxExpr() + { + return $this->readOneof(37); + } + + /** + * Generated from protobuf field .pg_query.MultiAssignRef multi_assign_ref = 78 [json_name = "MultiAssignRef"];. + * + * @return null|MultiAssignRef + */ + public function getMultiAssignRef() + { + return $this->readOneof(78); + } + + /** + * Generated from protobuf field .pg_query.NamedArgExpr named_arg_expr = 14 [json_name = "NamedArgExpr"];. + * + * @return null|NamedArgExpr + */ + public function getNamedArgExpr() + { + return $this->readOneof(14); + } + + /** + * Generated from protobuf field .pg_query.NextValueExpr next_value_expr = 57 [json_name = "NextValueExpr"];. + * + * @return null|NextValueExpr + */ + public function getNextValueExpr() + { + return $this->readOneof(57); + } + + /** + * @return string + */ + public function getNode() + { + return $this->whichOneof('node'); + } + + /** + * Generated from protobuf field .pg_query.NotifyStmt notify_stmt = 216 [json_name = "NotifyStmt"];. + * + * @return null|NotifyStmt + */ + public function getNotifyStmt() + { + return $this->readOneof(216); + } + + /** + * Generated from protobuf field .pg_query.NullIfExpr null_if_expr = 17 [json_name = "NullIfExpr"];. + * + * @return null|NullIfExpr + */ + public function getNullIfExpr() + { + return $this->readOneof(17); + } + + /** + * Generated from protobuf field .pg_query.NullTest null_test = 50 [json_name = "NullTest"];. + * + * @return null|NullTest + */ + public function getNullTest() + { + return $this->readOneof(50); + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs object_with_args = 147 [json_name = "ObjectWithArgs"];. + * + * @return null|ObjectWithArgs + */ + public function getObjectWithArgs() + { + return $this->readOneof(147); + } + + /** + * Generated from protobuf field .pg_query.OidList oid_list = 267 [json_name = "OidList"];. + * + * @return null|OidList + */ + public function getOidList() + { + return $this->readOneof(267); + } + + /** + * Generated from protobuf field .pg_query.OnConflictClause on_conflict_clause = 109 [json_name = "OnConflictClause"];. + * + * @return null|OnConflictClause + */ + public function getOnConflictClause() + { + return $this->readOneof(109); + } + + /** + * Generated from protobuf field .pg_query.OnConflictExpr on_conflict_expr = 63 [json_name = "OnConflictExpr"];. + * + * @return null|OnConflictExpr + */ + public function getOnConflictExpr() + { + return $this->readOneof(63); + } + + /** + * Generated from protobuf field .pg_query.OpExpr op_expr = 15 [json_name = "OpExpr"];. + * + * @return null|OpExpr + */ + public function getOpExpr() + { + return $this->readOneof(15); + } + + /** + * Generated from protobuf field .pg_query.Param param = 6 [json_name = "Param"];. + * + * @return null|Param + */ + public function getParam() + { + return $this->readOneof(6); + } + + /** + * Generated from protobuf field .pg_query.ParamRef param_ref = 67 [json_name = "ParamRef"];. + * + * @return null|ParamRef + */ + public function getParamRef() + { + return $this->readOneof(67); + } + + /** + * Generated from protobuf field .pg_query.PartitionBoundSpec partition_bound_spec = 94 [json_name = "PartitionBoundSpec"];. + * + * @return null|PartitionBoundSpec + */ + public function getPartitionBoundSpec() + { + return $this->readOneof(94); + } + + /** + * Generated from protobuf field .pg_query.PartitionCmd partition_cmd = 97 [json_name = "PartitionCmd"];. + * + * @return null|PartitionCmd + */ + public function getPartitionCmd() + { + return $this->readOneof(97); + } + + /** + * Generated from protobuf field .pg_query.PartitionElem partition_elem = 92 [json_name = "PartitionElem"];. + * + * @return null|PartitionElem + */ + public function getPartitionElem() + { + return $this->readOneof(92); + } + + /** + * Generated from protobuf field .pg_query.PartitionRangeDatum partition_range_datum = 95 [json_name = "PartitionRangeDatum"];. + * + * @return null|PartitionRangeDatum + */ + public function getPartitionRangeDatum() + { + return $this->readOneof(95); + } + + /** + * Generated from protobuf field .pg_query.PartitionSpec partition_spec = 93 [json_name = "PartitionSpec"];. + * + * @return null|PartitionSpec + */ + public function getPartitionSpec() + { + return $this->readOneof(93); + } + + /** + * Generated from protobuf field .pg_query.PLAssignStmt plassign_stmt = 139 [json_name = "PLAssignStmt"];. + * + * @return null|PLAssignStmt + */ + public function getPlassignStmt() + { + return $this->readOneof(139); + } + + /** + * Generated from protobuf field .pg_query.PrepareStmt prepare_stmt = 246 [json_name = "PrepareStmt"];. + * + * @return null|PrepareStmt + */ + public function getPrepareStmt() + { + return $this->readOneof(246); + } + + /** + * Generated from protobuf field .pg_query.PublicationObjSpec publication_obj_spec = 254 [json_name = "PublicationObjSpec"];. + * + * @return null|PublicationObjSpec + */ + public function getPublicationObjSpec() + { + return $this->readOneof(254); + } + + /** + * Generated from protobuf field .pg_query.PublicationTable publication_table = 253 [json_name = "PublicationTable"];. + * + * @return null|PublicationTable + */ + public function getPublicationTable() + { + return $this->readOneof(253); + } + + /** + * Generated from protobuf field .pg_query.Query query = 64 [json_name = "Query"];. + * + * @return null|Query + */ + public function getQuery() + { + return $this->readOneof(64); + } + + /** + * Generated from protobuf field .pg_query.RangeFunction range_function = 82 [json_name = "RangeFunction"];. + * + * @return null|RangeFunction + */ + public function getRangeFunction() + { + return $this->readOneof(82); + } + + /** + * Generated from protobuf field .pg_query.RangeSubselect range_subselect = 81 [json_name = "RangeSubselect"];. + * + * @return null|RangeSubselect + */ + public function getRangeSubselect() + { + return $this->readOneof(81); + } + + /** + * Generated from protobuf field .pg_query.RangeTableFunc range_table_func = 83 [json_name = "RangeTableFunc"];. + * + * @return null|RangeTableFunc + */ + public function getRangeTableFunc() + { + return $this->readOneof(83); + } + + /** + * Generated from protobuf field .pg_query.RangeTableFuncCol range_table_func_col = 84 [json_name = "RangeTableFuncCol"];. + * + * @return null|RangeTableFuncCol + */ + public function getRangeTableFuncCol() + { + return $this->readOneof(84); + } + + /** + * Generated from protobuf field .pg_query.RangeTableSample range_table_sample = 85 [json_name = "RangeTableSample"];. + * + * @return null|RangeTableSample + */ + public function getRangeTableSample() + { + return $this->readOneof(85); + } + + /** + * Generated from protobuf field .pg_query.RangeTblEntry range_tbl_entry = 98 [json_name = "RangeTblEntry"];. + * + * @return null|RangeTblEntry + */ + public function getRangeTblEntry() + { + return $this->readOneof(98); + } + + /** + * Generated from protobuf field .pg_query.RangeTblFunction range_tbl_function = 100 [json_name = "RangeTblFunction"];. + * + * @return null|RangeTblFunction + */ + public function getRangeTblFunction() + { + return $this->readOneof(100); + } + + /** + * Generated from protobuf field .pg_query.RangeTblRef range_tbl_ref = 60 [json_name = "RangeTblRef"];. + * + * @return null|RangeTblRef + */ + public function getRangeTblRef() + { + return $this->readOneof(60); + } + + /** + * Generated from protobuf field .pg_query.RangeVar range_var = 2 [json_name = "RangeVar"];. + * + * @return null|RangeVar + */ + public function getRangeVar() + { + return $this->readOneof(2); + } + + /** + * Generated from protobuf field .pg_query.RawStmt raw_stmt = 131 [json_name = "RawStmt"];. + * + * @return null|RawStmt + */ + public function getRawStmt() + { + return $this->readOneof(131); + } + + /** + * Generated from protobuf field .pg_query.ReassignOwnedStmt reassign_owned_stmt = 250 [json_name = "ReassignOwnedStmt"];. + * + * @return null|ReassignOwnedStmt + */ + public function getReassignOwnedStmt() + { + return $this->readOneof(250); + } + + /** + * Generated from protobuf field .pg_query.RefreshMatViewStmt refresh_mat_view_stmt = 237 [json_name = "RefreshMatViewStmt"];. + * + * @return null|RefreshMatViewStmt + */ + public function getRefreshMatViewStmt() + { + return $this->readOneof(237); + } + + /** + * Generated from protobuf field .pg_query.ReindexStmt reindex_stmt = 242 [json_name = "ReindexStmt"];. + * + * @return null|ReindexStmt + */ + public function getReindexStmt() + { + return $this->readOneof(242); + } + + /** + * Generated from protobuf field .pg_query.RelabelType relabel_type = 25 [json_name = "RelabelType"];. + * + * @return null|RelabelType + */ + public function getRelabelType() + { + return $this->readOneof(25); + } + + /** + * Generated from protobuf field .pg_query.RenameStmt rename_stmt = 209 [json_name = "RenameStmt"];. + * + * @return null|RenameStmt + */ + public function getRenameStmt() + { + return $this->readOneof(209); + } + + /** + * Generated from protobuf field .pg_query.ReplicaIdentityStmt replica_identity_stmt = 142 [json_name = "ReplicaIdentityStmt"];. + * + * @return null|ReplicaIdentityStmt + */ + public function getReplicaIdentityStmt() + { + return $this->readOneof(142); + } + + /** + * Generated from protobuf field .pg_query.ResTarget res_target = 77 [json_name = "ResTarget"];. + * + * @return null|ResTarget + */ + public function getResTarget() + { + return $this->readOneof(77); + } + + /** + * Generated from protobuf field .pg_query.ReturnStmt return_stmt = 138 [json_name = "ReturnStmt"];. + * + * @return null|ReturnStmt + */ + public function getReturnStmt() + { + return $this->readOneof(138); + } + + /** + * Generated from protobuf field .pg_query.RoleSpec role_spec = 71 [json_name = "RoleSpec"];. + * + * @return null|RoleSpec + */ + public function getRoleSpec() + { + return $this->readOneof(71); + } + + /** + * Generated from protobuf field .pg_query.RowCompareExpr row_compare_expr = 35 [json_name = "RowCompareExpr"];. + * + * @return null|RowCompareExpr + */ + public function getRowCompareExpr() + { + return $this->readOneof(35); + } + + /** + * Generated from protobuf field .pg_query.RowExpr row_expr = 34 [json_name = "RowExpr"];. + * + * @return null|RowExpr + */ + public function getRowExpr() + { + return $this->readOneof(34); + } + + /** + * Generated from protobuf field .pg_query.RowMarkClause row_mark_clause = 106 [json_name = "RowMarkClause"];. + * + * @return null|RowMarkClause + */ + public function getRowMarkClause() + { + return $this->readOneof(106); + } + + /** + * Generated from protobuf field .pg_query.RTEPermissionInfo rtepermission_info = 99 [json_name = "RTEPermissionInfo"];. + * + * @return null|RTEPermissionInfo + */ + public function getRtepermissionInfo() + { + return $this->readOneof(99); + } + + /** + * Generated from protobuf field .pg_query.RuleStmt rule_stmt = 215 [json_name = "RuleStmt"];. + * + * @return null|RuleStmt + */ + public function getRuleStmt() + { + return $this->readOneof(215); + } + + /** + * Generated from protobuf field .pg_query.ScalarArrayOpExpr scalar_array_op_expr = 18 [json_name = "ScalarArrayOpExpr"];. + * + * @return null|ScalarArrayOpExpr + */ + public function getScalarArrayOpExpr() + { + return $this->readOneof(18); + } + + /** + * Generated from protobuf field .pg_query.SecLabelStmt sec_label_stmt = 194 [json_name = "SecLabelStmt"];. + * + * @return null|SecLabelStmt + */ + public function getSecLabelStmt() + { + return $this->readOneof(194); + } + + /** + * Generated from protobuf field .pg_query.SelectStmt select_stmt = 136 [json_name = "SelectStmt"];. + * + * @return null|SelectStmt + */ + public function getSelectStmt() + { + return $this->readOneof(136); + } + + /** + * Generated from protobuf field .pg_query.SetOperationStmt set_operation_stmt = 137 [json_name = "SetOperationStmt"];. + * + * @return null|SetOperationStmt + */ + public function getSetOperationStmt() + { + return $this->readOneof(137); + } + + /** + * Generated from protobuf field .pg_query.SetToDefault set_to_default = 55 [json_name = "SetToDefault"];. + * + * @return null|SetToDefault + */ + public function getSetToDefault() + { + return $this->readOneof(55); + } + + /** + * Generated from protobuf field .pg_query.SinglePartitionSpec single_partition_spec = 96 [json_name = "SinglePartitionSpec"];. + * + * @return null|SinglePartitionSpec + */ + public function getSinglePartitionSpec() + { + return $this->readOneof(96); + } + + /** + * Generated from protobuf field .pg_query.SortBy sort_by = 79 [json_name = "SortBy"];. + * + * @return null|SortBy + */ + public function getSortBy() + { + return $this->readOneof(79); + } + + /** + * Generated from protobuf field .pg_query.SortGroupClause sort_group_clause = 103 [json_name = "SortGroupClause"];. + * + * @return null|SortGroupClause + */ + public function getSortGroupClause() + { + return $this->readOneof(103); + } + + /** + * Generated from protobuf field .pg_query.SQLValueFunction sqlvalue_function = 38 [json_name = "SQLValueFunction"];. + * + * @return null|SQLValueFunction + */ + public function getSqlvalueFunction() + { + return $this->readOneof(38); + } + + /** + * Generated from protobuf field .pg_query.StatsElem stats_elem = 200 [json_name = "StatsElem"];. + * + * @return null|StatsElem + */ + public function getStatsElem() + { + return $this->readOneof(200); + } + + /** + * Generated from protobuf field .pg_query.String string = 263 [json_name = "String"];. + * + * @return null|PBString + */ + public function getString() + { + return $this->readOneof(263); + } + + /** + * Generated from protobuf field .pg_query.SubLink sub_link = 20 [json_name = "SubLink"];. + * + * @return null|SubLink + */ + public function getSubLink() + { + return $this->readOneof(20); + } + + /** + * Generated from protobuf field .pg_query.SubPlan sub_plan = 21 [json_name = "SubPlan"];. + * + * @return null|SubPlan + */ + public function getSubPlan() + { + return $this->readOneof(21); + } + + /** + * Generated from protobuf field .pg_query.SubscriptingRef subscripting_ref = 12 [json_name = "SubscriptingRef"];. + * + * @return null|SubscriptingRef + */ + public function getSubscriptingRef() + { + return $this->readOneof(12); + } + + /** + * Generated from protobuf field .pg_query.TableFunc table_func = 3 [json_name = "TableFunc"];. + * + * @return null|TableFunc + */ + public function getTableFunc() + { + return $this->readOneof(3); + } + + /** + * Generated from protobuf field .pg_query.TableLikeClause table_like_clause = 87 [json_name = "TableLikeClause"];. + * + * @return null|TableLikeClause + */ + public function getTableLikeClause() + { + return $this->readOneof(87); + } + + /** + * Generated from protobuf field .pg_query.TableSampleClause table_sample_clause = 101 [json_name = "TableSampleClause"];. + * + * @return null|TableSampleClause + */ + public function getTableSampleClause() + { + return $this->readOneof(101); + } + + /** + * Generated from protobuf field .pg_query.TargetEntry target_entry = 59 [json_name = "TargetEntry"];. + * + * @return null|TargetEntry + */ + public function getTargetEntry() + { + return $this->readOneof(59); + } + + /** + * Generated from protobuf field .pg_query.TransactionStmt transaction_stmt = 219 [json_name = "TransactionStmt"];. + * + * @return null|TransactionStmt + */ + public function getTransactionStmt() + { + return $this->readOneof(219); + } + + /** + * Generated from protobuf field .pg_query.TriggerTransition trigger_transition = 114 [json_name = "TriggerTransition"];. + * + * @return null|TriggerTransition + */ + public function getTriggerTransition() + { + return $this->readOneof(114); + } + + /** + * Generated from protobuf field .pg_query.TruncateStmt truncate_stmt = 192 [json_name = "TruncateStmt"];. + * + * @return null|TruncateStmt + */ + public function getTruncateStmt() + { + return $this->readOneof(192); + } + + /** + * Generated from protobuf field .pg_query.TypeCast type_cast = 69 [json_name = "TypeCast"];. + * + * @return null|TypeCast + */ + public function getTypeCast() + { + return $this->readOneof(69); + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 65 [json_name = "TypeName"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->readOneof(65); + } + + /** + * Generated from protobuf field .pg_query.UnlistenStmt unlisten_stmt = 218 [json_name = "UnlistenStmt"];. + * + * @return null|UnlistenStmt + */ + public function getUnlistenStmt() + { + return $this->readOneof(218); + } + + /** + * Generated from protobuf field .pg_query.UpdateStmt update_stmt = 134 [json_name = "UpdateStmt"];. + * + * @return null|UpdateStmt + */ + public function getUpdateStmt() + { + return $this->readOneof(134); + } + + /** + * Generated from protobuf field .pg_query.VacuumRelation vacuum_relation = 234 [json_name = "VacuumRelation"];. + * + * @return null|VacuumRelation + */ + public function getVacuumRelation() + { + return $this->readOneof(234); + } + + /** + * Generated from protobuf field .pg_query.VacuumStmt vacuum_stmt = 233 [json_name = "VacuumStmt"];. + * + * @return null|VacuumStmt + */ + public function getVacuumStmt() + { + return $this->readOneof(233); + } + + /** + * Generated from protobuf field .pg_query.Var var = 5 [json_name = "Var"];. + * + * @return null|PBVar + */ + public function getVar() + { + return $this->readOneof(5); + } + + /** + * Generated from protobuf field .pg_query.VariableSetStmt variable_set_stmt = 152 [json_name = "VariableSetStmt"];. + * + * @return null|VariableSetStmt + */ + public function getVariableSetStmt() + { + return $this->readOneof(152); + } + + /** + * Generated from protobuf field .pg_query.VariableShowStmt variable_show_stmt = 153 [json_name = "VariableShowStmt"];. + * + * @return null|VariableShowStmt + */ + public function getVariableShowStmt() + { + return $this->readOneof(153); + } + + /** + * Generated from protobuf field .pg_query.ViewStmt view_stmt = 224 [json_name = "ViewStmt"];. + * + * @return null|ViewStmt + */ + public function getViewStmt() + { + return $this->readOneof(224); + } + + /** + * Generated from protobuf field .pg_query.WindowClause window_clause = 105 [json_name = "WindowClause"];. + * + * @return null|WindowClause + */ + public function getWindowClause() + { + return $this->readOneof(105); + } + + /** + * Generated from protobuf field .pg_query.WindowDef window_def = 80 [json_name = "WindowDef"];. + * + * @return null|WindowDef + */ + public function getWindowDef() + { + return $this->readOneof(80); + } + + /** + * Generated from protobuf field .pg_query.WindowFunc window_func = 9 [json_name = "WindowFunc"];. + * + * @return null|WindowFunc + */ + public function getWindowFunc() + { + return $this->readOneof(9); + } + + /** + * Generated from protobuf field .pg_query.WindowFuncRunCondition window_func_run_condition = 10 [json_name = "WindowFuncRunCondition"];. + * + * @return null|WindowFuncRunCondition + */ + public function getWindowFuncRunCondition() + { + return $this->readOneof(10); + } + + /** + * Generated from protobuf field .pg_query.WithCheckOption with_check_option = 102 [json_name = "WithCheckOption"];. + * + * @return null|WithCheckOption + */ + public function getWithCheckOption() + { + return $this->readOneof(102); + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 107 [json_name = "WithClause"];. + * + * @return null|WithClause + */ + public function getWithClause() + { + return $this->readOneof(107); + } + + /** + * Generated from protobuf field .pg_query.XmlExpr xml_expr = 39 [json_name = "XmlExpr"];. + * + * @return null|XmlExpr + */ + public function getXmlExpr() + { + return $this->readOneof(39); + } + + /** + * Generated from protobuf field .pg_query.XmlSerialize xml_serialize = 91 [json_name = "XmlSerialize"];. + * + * @return null|XmlSerialize + */ + public function getXmlSerialize() + { + return $this->readOneof(91); + } + + public function hasAArrayExpr() + { + return $this->hasOneof(76); + } + + public function hasAccessPriv() + { + return $this->hasOneof(148); + } + + public function hasAConst() + { + return $this->hasOneof(268); + } + + public function hasAExpr() + { + return $this->hasOneof(68); + } + + public function hasAggref() + { + return $this->hasOneof(7); + } + + public function hasAIndices() + { + return $this->hasOneof(74); + } + + public function hasAIndirection() + { + return $this->hasOneof(75); + } + + public function hasAlias() + { + return $this->hasOneof(1); + } + + public function hasAlterCollationStmt() + { + return $this->hasOneof(144); + } + + public function hasAlterDatabaseRefreshCollStmt() + { + return $this->hasOneof(228); + } + + public function hasAlterDatabaseSetStmt() + { + return $this->hasOneof(229); + } + + public function hasAlterDatabaseStmt() + { + return $this->hasOneof(227); + } + + public function hasAlterDefaultPrivilegesStmt() + { + return $this->hasOneof(150); + } + + public function hasAlterDomainStmt() + { + return $this->hasOneof(145); + } + + public function hasAlterEnumStmt() + { + return $this->hasOneof(223); + } + + public function hasAlterEventTrigStmt() + { + return $this->hasOneof(177); + } + + public function hasAlterExtensionContentsStmt() + { + return $this->hasOneof(162); + } + + public function hasAlterExtensionStmt() + { + return $this->hasOneof(161); + } + + public function hasAlterFdwStmt() + { + return $this->hasOneof(164); + } + + public function hasAlterForeignServerStmt() + { + return $this->hasOneof(166); + } + + public function hasAlterFunctionStmt() + { + return $this->hasOneof(204); + } + + public function hasAlternativeSubPlan() + { + return $this->hasOneof(22); + } + + public function hasAlterObjectDependsStmt() + { + return $this->hasOneof(210); + } + + public function hasAlterObjectSchemaStmt() + { + return $this->hasOneof(211); + } + + public function hasAlterOperatorStmt() + { + return $this->hasOneof(213); + } + + public function hasAlterOpFamilyStmt() + { + return $this->hasOneof(190); + } + + public function hasAlterOwnerStmt() + { + return $this->hasOneof(212); + } + + public function hasAlterPolicyStmt() + { + return $this->hasOneof(173); + } + + public function hasAlterPublicationStmt() + { + return $this->hasOneof(256); + } + + public function hasAlterRoleSetStmt() + { + return $this->hasOneof(181); + } + + public function hasAlterRoleStmt() + { + return $this->hasOneof(180); + } + + public function hasAlterSeqStmt() + { + return $this->hasOneof(184); + } + + public function hasAlterStatsStmt() + { + return $this->hasOneof(201); + } + + public function hasAlterSubscriptionStmt() + { + return $this->hasOneof(258); + } + + public function hasAlterSystemStmt() + { + return $this->hasOneof(231); + } + + public function hasAlterTableCmd() + { + return $this->hasOneof(143); + } + + public function hasAlterTableMoveAllStmt() + { + return $this->hasOneof(159); + } + + public function hasAlterTableSpaceOptionsStmt() + { + return $this->hasOneof(158); + } + + public function hasAlterTableStmt() + { + return $this->hasOneof(141); + } + + public function hasAlterTsconfigurationStmt() + { + return $this->hasOneof(252); + } + + public function hasAlterTsdictionaryStmt() + { + return $this->hasOneof(251); + } + + public function hasAlterTypeStmt() + { + return $this->hasOneof(214); + } + + public function hasAlterUserMappingStmt() + { + return $this->hasOneof(169); + } + + public function hasArrayCoerceExpr() + { + return $this->hasOneof(27); + } + + public function hasArrayExpr() + { + return $this->hasOneof(33); + } + + public function hasAStar() + { + return $this->hasOneof(73); + } + + public function hasBitString() + { + return $this->hasOneof(264); + } + + public function hasBoolean() + { + return $this->hasOneof(262); + } + + public function hasBooleanTest() + { + return $this->hasOneof(51); + } + + public function hasBoolExpr() + { + return $this->hasOneof(19); + } + + public function hasCallContext() + { + return $this->hasOneof(208); + } + + public function hasCallStmt() + { + return $this->hasOneof(207); + } + + public function hasCaseExpr() + { + return $this->hasOneof(30); + } + + public function hasCaseTestExpr() + { + return $this->hasOneof(32); + } + + public function hasCaseWhen() + { + return $this->hasOneof(31); + } + + public function hasCheckPointStmt() + { + return $this->hasOneof(238); + } + + public function hasClosePortalStmt() + { + return $this->hasOneof(196); + } + + public function hasClusterStmt() + { + return $this->hasOneof(232); + } + + public function hasCoalesceExpr() + { + return $this->hasOneof(36); + } + + public function hasCoerceToDomain() + { + return $this->hasOneof(53); + } + + public function hasCoerceToDomainValue() + { + return $this->hasOneof(54); + } + + public function hasCoerceViaIo() + { + return $this->hasOneof(26); + } + + public function hasCollateClause() + { + return $this->hasOneof(70); + } + + public function hasCollateExpr() + { + return $this->hasOneof(29); + } + + public function hasColumnDef() + { + return $this->hasOneof(86); + } + + public function hasColumnRef() + { + return $this->hasOneof(66); + } + + public function hasCommentStmt() + { + return $this->hasOneof(193); + } + + public function hasCommonTableExpr() + { + return $this->hasOneof(112); + } + + public function hasCompositeTypeStmt() + { + return $this->hasOneof(220); + } + + public function hasConstraint() + { + return $this->hasOneof(155); + } + + public function hasConstraintsSetStmt() + { + return $this->hasOneof(241); + } + + public function hasConvertRowtypeExpr() + { + return $this->hasOneof(28); + } + + public function hasCopyStmt() + { + return $this->hasOneof(151); + } + + public function hasCreateAmStmt() + { + return $this->hasOneof(174); + } + + public function hasCreateCastStmt() + { + return $this->hasOneof(244); + } + + public function hasCreateConversionStmt() + { + return $this->hasOneof(243); + } + + public function hasCreatedbStmt() + { + return $this->hasOneof(226); + } + + public function hasCreateDomainStmt() + { + return $this->hasOneof(186); + } + + public function hasCreateEnumStmt() + { + return $this->hasOneof(221); + } + + public function hasCreateEventTrigStmt() + { + return $this->hasOneof(176); + } + + public function hasCreateExtensionStmt() + { + return $this->hasOneof(160); + } + + public function hasCreateFdwStmt() + { + return $this->hasOneof(163); + } + + public function hasCreateForeignServerStmt() + { + return $this->hasOneof(165); + } + + public function hasCreateForeignTableStmt() + { + return $this->hasOneof(167); + } + + public function hasCreateFunctionStmt() + { + return $this->hasOneof(202); + } + + public function hasCreateOpClassItem() + { + return $this->hasOneof(188); + } + + public function hasCreateOpClassStmt() + { + return $this->hasOneof(187); + } + + public function hasCreateOpFamilyStmt() + { + return $this->hasOneof(189); + } + + public function hasCreatePlangStmt() + { + return $this->hasOneof(178); + } + + public function hasCreatePolicyStmt() + { + return $this->hasOneof(172); + } + + public function hasCreatePublicationStmt() + { + return $this->hasOneof(255); + } + + public function hasCreateRangeStmt() + { + return $this->hasOneof(222); + } + + public function hasCreateRoleStmt() + { + return $this->hasOneof(179); + } + + public function hasCreateSchemaStmt() + { + return $this->hasOneof(140); + } + + public function hasCreateSeqStmt() + { + return $this->hasOneof(183); + } + + public function hasCreateStatsStmt() + { + return $this->hasOneof(199); + } + + public function hasCreateStmt() + { + return $this->hasOneof(154); + } + + public function hasCreateSubscriptionStmt() + { + return $this->hasOneof(257); + } + + public function hasCreateTableAsStmt() + { + return $this->hasOneof(236); + } + + public function hasCreateTableSpaceStmt() + { + return $this->hasOneof(156); + } + + public function hasCreateTransformStmt() + { + return $this->hasOneof(245); + } + + public function hasCreateTrigStmt() + { + return $this->hasOneof(175); + } + + public function hasCreateUserMappingStmt() + { + return $this->hasOneof(168); + } + + public function hasCtecycleClause() + { + return $this->hasOneof(111); + } + + public function hasCtesearchClause() + { + return $this->hasOneof(110); + } + + public function hasCurrentOfExpr() + { + return $this->hasOneof(56); + } + + public function hasDeallocateStmt() + { + return $this->hasOneof(248); + } + + public function hasDeclareCursorStmt() + { + return $this->hasOneof(195); + } + + public function hasDefElem() + { + return $this->hasOneof(89); + } + + public function hasDefineStmt() + { + return $this->hasOneof(185); + } + + public function hasDeleteStmt() + { + return $this->hasOneof(133); + } + + public function hasDiscardStmt() + { + return $this->hasOneof(239); + } + + public function hasDistinctExpr() + { + return $this->hasOneof(16); + } + + public function hasDoStmt() + { + return $this->hasOneof(205); + } + + public function hasDropdbStmt() + { + return $this->hasOneof(230); + } + + public function hasDropOwnedStmt() + { + return $this->hasOneof(249); + } + + public function hasDropRoleStmt() + { + return $this->hasOneof(182); + } + + public function hasDropStmt() + { + return $this->hasOneof(191); + } + + public function hasDropSubscriptionStmt() + { + return $this->hasOneof(259); + } + + public function hasDropTableSpaceStmt() + { + return $this->hasOneof(157); + } + + public function hasDropUserMappingStmt() + { + return $this->hasOneof(170); + } + + public function hasExecuteStmt() + { + return $this->hasOneof(247); + } + + public function hasExplainStmt() + { + return $this->hasOneof(235); + } + + public function hasFetchStmt() + { + return $this->hasOneof(197); + } + + public function hasFieldSelect() + { + return $this->hasOneof(23); + } + + public function hasFieldStore() + { + return $this->hasOneof(24); + } + + public function hasFloat() + { + return $this->hasOneof(261); + } + + public function hasFromExpr() + { + return $this->hasOneof(62); + } + + public function hasFuncCall() + { + return $this->hasOneof(72); + } + + public function hasFuncExpr() + { + return $this->hasOneof(13); + } + + public function hasFunctionParameter() + { + return $this->hasOneof(203); + } + + public function hasGrantRoleStmt() + { + return $this->hasOneof(149); + } + + public function hasGrantStmt() + { + return $this->hasOneof(146); + } + + public function hasGroupingFunc() + { + return $this->hasOneof(8); + } + + public function hasGroupingSet() + { + return $this->hasOneof(104); + } + + public function hasImportForeignSchemaStmt() + { + return $this->hasOneof(171); + } + + public function hasIndexElem() + { + return $this->hasOneof(88); + } + + public function hasIndexStmt() + { + return $this->hasOneof(198); + } + + public function hasInferClause() + { + return $this->hasOneof(108); + } + + public function hasInferenceElem() + { + return $this->hasOneof(58); + } + + public function hasInlineCodeBlock() + { + return $this->hasOneof(206); + } + + public function hasInsertStmt() + { + return $this->hasOneof(132); + } + + public function hasInteger() + { + return $this->hasOneof(260); + } + + public function hasIntList() + { + return $this->hasOneof(266); + } + + public function hasIntoClause() + { + return $this->hasOneof(4); + } + + public function hasJoinExpr() + { + return $this->hasOneof(61); + } + + public function hasJsonAggConstructor() + { + return $this->hasOneof(128); + } + + public function hasJsonArgument() + { + return $this->hasOneof(116); + } + + public function hasJsonArrayAgg() + { + return $this->hasOneof(130); + } + + public function hasJsonArrayConstructor() + { + return $this->hasOneof(126); + } + + public function hasJsonArrayQueryConstructor() + { + return $this->hasOneof(127); + } + + public function hasJsonBehavior() + { + return $this->hasOneof(45); + } + + public function hasJsonConstructorExpr() + { + return $this->hasOneof(43); + } + + public function hasJsonExpr() + { + return $this->hasOneof(46); + } + + public function hasJsonFormat() + { + return $this->hasOneof(40); + } + + public function hasJsonFuncExpr() + { + return $this->hasOneof(117); + } + + public function hasJsonIsPredicate() + { + return $this->hasOneof(44); + } + + public function hasJsonKeyValue() + { + return $this->hasOneof(121); + } + + public function hasJsonObjectAgg() + { + return $this->hasOneof(129); + } + + public function hasJsonObjectConstructor() + { + return $this->hasOneof(125); + } + + public function hasJsonOutput() + { + return $this->hasOneof(115); + } + + public function hasJsonParseExpr() + { + return $this->hasOneof(122); + } + + public function hasJsonReturning() + { + return $this->hasOneof(41); + } + + public function hasJsonScalarExpr() + { + return $this->hasOneof(123); + } + + public function hasJsonSerializeExpr() + { + return $this->hasOneof(124); + } + + public function hasJsonTable() + { + return $this->hasOneof(119); + } + + public function hasJsonTableColumn() + { + return $this->hasOneof(120); + } + + public function hasJsonTablePath() + { + return $this->hasOneof(47); + } + + public function hasJsonTablePathScan() + { + return $this->hasOneof(48); + } + + public function hasJsonTablePathSpec() + { + return $this->hasOneof(118); + } + + public function hasJsonTableSiblingJoin() + { + return $this->hasOneof(49); + } + + public function hasJsonValueExpr() + { + return $this->hasOneof(42); + } + + public function hasList() + { + return $this->hasOneof(265); + } + + public function hasListenStmt() + { + return $this->hasOneof(217); + } + + public function hasLoadStmt() + { + return $this->hasOneof(225); + } + + public function hasLockingClause() + { + return $this->hasOneof(90); + } + + public function hasLockStmt() + { + return $this->hasOneof(240); + } + + public function hasMergeAction() + { + return $this->hasOneof(52); + } + + public function hasMergeStmt() + { + return $this->hasOneof(135); + } + + public function hasMergeSupportFunc() + { + return $this->hasOneof(11); + } + + public function hasMergeWhenClause() + { + return $this->hasOneof(113); + } + + public function hasMinMaxExpr() + { + return $this->hasOneof(37); + } + + public function hasMultiAssignRef() + { + return $this->hasOneof(78); + } + + public function hasNamedArgExpr() + { + return $this->hasOneof(14); + } + + public function hasNextValueExpr() + { + return $this->hasOneof(57); + } + + public function hasNotifyStmt() + { + return $this->hasOneof(216); + } + + public function hasNullIfExpr() + { + return $this->hasOneof(17); + } + + public function hasNullTest() + { + return $this->hasOneof(50); + } + + public function hasObjectWithArgs() + { + return $this->hasOneof(147); + } + + public function hasOidList() + { + return $this->hasOneof(267); + } + + public function hasOnConflictClause() + { + return $this->hasOneof(109); + } + + public function hasOnConflictExpr() + { + return $this->hasOneof(63); + } + + public function hasOpExpr() + { + return $this->hasOneof(15); + } + + public function hasParam() + { + return $this->hasOneof(6); + } + + public function hasParamRef() + { + return $this->hasOneof(67); + } + + public function hasPartitionBoundSpec() + { + return $this->hasOneof(94); + } + + public function hasPartitionCmd() + { + return $this->hasOneof(97); + } + + public function hasPartitionElem() + { + return $this->hasOneof(92); + } + + public function hasPartitionRangeDatum() + { + return $this->hasOneof(95); + } + + public function hasPartitionSpec() + { + return $this->hasOneof(93); + } + + public function hasPlassignStmt() + { + return $this->hasOneof(139); + } + + public function hasPrepareStmt() + { + return $this->hasOneof(246); + } + + public function hasPublicationObjSpec() + { + return $this->hasOneof(254); + } + + public function hasPublicationTable() + { + return $this->hasOneof(253); + } + + public function hasQuery() + { + return $this->hasOneof(64); + } + + public function hasRangeFunction() + { + return $this->hasOneof(82); + } + + public function hasRangeSubselect() + { + return $this->hasOneof(81); + } + + public function hasRangeTableFunc() + { + return $this->hasOneof(83); + } + + public function hasRangeTableFuncCol() + { + return $this->hasOneof(84); + } + + public function hasRangeTableSample() + { + return $this->hasOneof(85); + } + + public function hasRangeTblEntry() + { + return $this->hasOneof(98); + } + + public function hasRangeTblFunction() + { + return $this->hasOneof(100); + } + + public function hasRangeTblRef() + { + return $this->hasOneof(60); + } + + public function hasRangeVar() + { + return $this->hasOneof(2); + } + + public function hasRawStmt() + { + return $this->hasOneof(131); + } + + public function hasReassignOwnedStmt() + { + return $this->hasOneof(250); + } + + public function hasRefreshMatViewStmt() + { + return $this->hasOneof(237); + } + + public function hasReindexStmt() + { + return $this->hasOneof(242); + } + + public function hasRelabelType() + { + return $this->hasOneof(25); + } + + public function hasRenameStmt() + { + return $this->hasOneof(209); + } + + public function hasReplicaIdentityStmt() + { + return $this->hasOneof(142); + } + + public function hasResTarget() + { + return $this->hasOneof(77); + } + + public function hasReturnStmt() + { + return $this->hasOneof(138); + } + + public function hasRoleSpec() + { + return $this->hasOneof(71); + } + + public function hasRowCompareExpr() + { + return $this->hasOneof(35); + } + + public function hasRowExpr() + { + return $this->hasOneof(34); + } + + public function hasRowMarkClause() + { + return $this->hasOneof(106); + } + + public function hasRtepermissionInfo() + { + return $this->hasOneof(99); + } + + public function hasRuleStmt() + { + return $this->hasOneof(215); + } + + public function hasScalarArrayOpExpr() + { + return $this->hasOneof(18); + } + + public function hasSecLabelStmt() + { + return $this->hasOneof(194); + } + + public function hasSelectStmt() + { + return $this->hasOneof(136); + } + + public function hasSetOperationStmt() + { + return $this->hasOneof(137); + } + + public function hasSetToDefault() + { + return $this->hasOneof(55); + } + + public function hasSinglePartitionSpec() + { + return $this->hasOneof(96); + } + + public function hasSortBy() + { + return $this->hasOneof(79); + } + + public function hasSortGroupClause() + { + return $this->hasOneof(103); + } + + public function hasSqlvalueFunction() + { + return $this->hasOneof(38); + } + + public function hasStatsElem() + { + return $this->hasOneof(200); + } + + public function hasString() + { + return $this->hasOneof(263); + } + + public function hasSubLink() + { + return $this->hasOneof(20); + } + + public function hasSubPlan() + { + return $this->hasOneof(21); + } + + public function hasSubscriptingRef() + { + return $this->hasOneof(12); + } + + public function hasTableFunc() + { + return $this->hasOneof(3); + } + + public function hasTableLikeClause() + { + return $this->hasOneof(87); + } + + public function hasTableSampleClause() + { + return $this->hasOneof(101); + } + + public function hasTargetEntry() + { + return $this->hasOneof(59); + } + + public function hasTransactionStmt() + { + return $this->hasOneof(219); + } + + public function hasTriggerTransition() + { + return $this->hasOneof(114); + } + + public function hasTruncateStmt() + { + return $this->hasOneof(192); + } + + public function hasTypeCast() + { + return $this->hasOneof(69); + } + + public function hasTypeName() + { + return $this->hasOneof(65); + } + + public function hasUnlistenStmt() + { + return $this->hasOneof(218); + } + + public function hasUpdateStmt() + { + return $this->hasOneof(134); + } + + public function hasVacuumRelation() + { + return $this->hasOneof(234); + } + + public function hasVacuumStmt() + { + return $this->hasOneof(233); + } + + public function hasVar() + { + return $this->hasOneof(5); + } + + public function hasVariableSetStmt() + { + return $this->hasOneof(152); + } + + public function hasVariableShowStmt() + { + return $this->hasOneof(153); + } + + public function hasViewStmt() + { + return $this->hasOneof(224); + } + + public function hasWindowClause() + { + return $this->hasOneof(105); + } + + public function hasWindowDef() + { + return $this->hasOneof(80); + } + + public function hasWindowFunc() + { + return $this->hasOneof(9); + } + + public function hasWindowFuncRunCondition() + { + return $this->hasOneof(10); + } + + public function hasWithCheckOption() + { + return $this->hasOneof(102); + } + + public function hasWithClause() + { + return $this->hasOneof(107); + } + + public function hasXmlExpr() + { + return $this->hasOneof(39); + } + + public function hasXmlSerialize() + { + return $this->hasOneof(91); + } + + /** + * Generated from protobuf field .pg_query.A_ArrayExpr a_array_expr = 76 [json_name = "A_ArrayExpr"];. + * + * @param A_ArrayExpr $var + * + * @return $this + */ + public function setAArrayExpr($var) + { + GPBUtil::checkMessage($var, A_ArrayExpr::class); + $this->writeOneof(76, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AccessPriv access_priv = 148 [json_name = "AccessPriv"];. + * + * @param AccessPriv $var + * + * @return $this + */ + public function setAccessPriv($var) + { + GPBUtil::checkMessage($var, AccessPriv::class); + $this->writeOneof(148, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.A_Const a_const = 268 [json_name = "A_Const"];. + * + * @param A_Const $var + * + * @return $this + */ + public function setAConst($var) + { + GPBUtil::checkMessage($var, A_Const::class); + $this->writeOneof(268, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.A_Expr a_expr = 68 [json_name = "A_Expr"];. + * + * @param A_Expr $var + * + * @return $this + */ + public function setAExpr($var) + { + GPBUtil::checkMessage($var, A_Expr::class); + $this->writeOneof(68, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Aggref aggref = 7 [json_name = "Aggref"];. + * + * @param Aggref $var + * + * @return $this + */ + public function setAggref($var) + { + GPBUtil::checkMessage($var, Aggref::class); + $this->writeOneof(7, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.A_Indices a_indices = 74 [json_name = "A_Indices"];. + * + * @param A_Indices $var + * + * @return $this + */ + public function setAIndices($var) + { + GPBUtil::checkMessage($var, A_Indices::class); + $this->writeOneof(74, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.A_Indirection a_indirection = 75 [json_name = "A_Indirection"];. + * + * @param A_Indirection $var + * + * @return $this + */ + public function setAIndirection($var) + { + GPBUtil::checkMessage($var, A_Indirection::class); + $this->writeOneof(75, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 1 [json_name = "Alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->writeOneof(1, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterCollationStmt alter_collation_stmt = 144 [json_name = "AlterCollationStmt"];. + * + * @param AlterCollationStmt $var + * + * @return $this + */ + public function setAlterCollationStmt($var) + { + GPBUtil::checkMessage($var, AlterCollationStmt::class); + $this->writeOneof(144, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterDatabaseRefreshCollStmt alter_database_refresh_coll_stmt = 228 [json_name = "AlterDatabaseRefreshCollStmt"];. + * + * @param AlterDatabaseRefreshCollStmt $var + * + * @return $this + */ + public function setAlterDatabaseRefreshCollStmt($var) + { + GPBUtil::checkMessage($var, AlterDatabaseRefreshCollStmt::class); + $this->writeOneof(228, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterDatabaseSetStmt alter_database_set_stmt = 229 [json_name = "AlterDatabaseSetStmt"];. + * + * @param AlterDatabaseSetStmt $var + * + * @return $this + */ + public function setAlterDatabaseSetStmt($var) + { + GPBUtil::checkMessage($var, AlterDatabaseSetStmt::class); + $this->writeOneof(229, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterDatabaseStmt alter_database_stmt = 227 [json_name = "AlterDatabaseStmt"];. + * + * @param AlterDatabaseStmt $var + * + * @return $this + */ + public function setAlterDatabaseStmt($var) + { + GPBUtil::checkMessage($var, AlterDatabaseStmt::class); + $this->writeOneof(227, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterDefaultPrivilegesStmt alter_default_privileges_stmt = 150 [json_name = "AlterDefaultPrivilegesStmt"];. + * + * @param AlterDefaultPrivilegesStmt $var + * + * @return $this + */ + public function setAlterDefaultPrivilegesStmt($var) + { + GPBUtil::checkMessage($var, AlterDefaultPrivilegesStmt::class); + $this->writeOneof(150, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterDomainStmt alter_domain_stmt = 145 [json_name = "AlterDomainStmt"];. + * + * @param AlterDomainStmt $var + * + * @return $this + */ + public function setAlterDomainStmt($var) + { + GPBUtil::checkMessage($var, AlterDomainStmt::class); + $this->writeOneof(145, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterEnumStmt alter_enum_stmt = 223 [json_name = "AlterEnumStmt"];. + * + * @param AlterEnumStmt $var + * + * @return $this + */ + public function setAlterEnumStmt($var) + { + GPBUtil::checkMessage($var, AlterEnumStmt::class); + $this->writeOneof(223, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterEventTrigStmt alter_event_trig_stmt = 177 [json_name = "AlterEventTrigStmt"];. + * + * @param AlterEventTrigStmt $var + * + * @return $this + */ + public function setAlterEventTrigStmt($var) + { + GPBUtil::checkMessage($var, AlterEventTrigStmt::class); + $this->writeOneof(177, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterExtensionContentsStmt alter_extension_contents_stmt = 162 [json_name = "AlterExtensionContentsStmt"];. + * + * @param AlterExtensionContentsStmt $var + * + * @return $this + */ + public function setAlterExtensionContentsStmt($var) + { + GPBUtil::checkMessage($var, AlterExtensionContentsStmt::class); + $this->writeOneof(162, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterExtensionStmt alter_extension_stmt = 161 [json_name = "AlterExtensionStmt"];. + * + * @param AlterExtensionStmt $var + * + * @return $this + */ + public function setAlterExtensionStmt($var) + { + GPBUtil::checkMessage($var, AlterExtensionStmt::class); + $this->writeOneof(161, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterFdwStmt alter_fdw_stmt = 164 [json_name = "AlterFdwStmt"];. + * + * @param AlterFdwStmt $var + * + * @return $this + */ + public function setAlterFdwStmt($var) + { + GPBUtil::checkMessage($var, AlterFdwStmt::class); + $this->writeOneof(164, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterForeignServerStmt alter_foreign_server_stmt = 166 [json_name = "AlterForeignServerStmt"];. + * + * @param AlterForeignServerStmt $var + * + * @return $this + */ + public function setAlterForeignServerStmt($var) + { + GPBUtil::checkMessage($var, AlterForeignServerStmt::class); + $this->writeOneof(166, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterFunctionStmt alter_function_stmt = 204 [json_name = "AlterFunctionStmt"];. + * + * @param AlterFunctionStmt $var + * + * @return $this + */ + public function setAlterFunctionStmt($var) + { + GPBUtil::checkMessage($var, AlterFunctionStmt::class); + $this->writeOneof(204, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlternativeSubPlan alternative_sub_plan = 22 [json_name = "AlternativeSubPlan"];. + * + * @param AlternativeSubPlan $var + * + * @return $this + */ + public function setAlternativeSubPlan($var) + { + GPBUtil::checkMessage($var, AlternativeSubPlan::class); + $this->writeOneof(22, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterObjectDependsStmt alter_object_depends_stmt = 210 [json_name = "AlterObjectDependsStmt"];. + * + * @param AlterObjectDependsStmt $var + * + * @return $this + */ + public function setAlterObjectDependsStmt($var) + { + GPBUtil::checkMessage($var, AlterObjectDependsStmt::class); + $this->writeOneof(210, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterObjectSchemaStmt alter_object_schema_stmt = 211 [json_name = "AlterObjectSchemaStmt"];. + * + * @param AlterObjectSchemaStmt $var + * + * @return $this + */ + public function setAlterObjectSchemaStmt($var) + { + GPBUtil::checkMessage($var, AlterObjectSchemaStmt::class); + $this->writeOneof(211, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterOperatorStmt alter_operator_stmt = 213 [json_name = "AlterOperatorStmt"];. + * + * @param AlterOperatorStmt $var + * + * @return $this + */ + public function setAlterOperatorStmt($var) + { + GPBUtil::checkMessage($var, AlterOperatorStmt::class); + $this->writeOneof(213, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterOpFamilyStmt alter_op_family_stmt = 190 [json_name = "AlterOpFamilyStmt"];. + * + * @param AlterOpFamilyStmt $var + * + * @return $this + */ + public function setAlterOpFamilyStmt($var) + { + GPBUtil::checkMessage($var, AlterOpFamilyStmt::class); + $this->writeOneof(190, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterOwnerStmt alter_owner_stmt = 212 [json_name = "AlterOwnerStmt"];. + * + * @param AlterOwnerStmt $var + * + * @return $this + */ + public function setAlterOwnerStmt($var) + { + GPBUtil::checkMessage($var, AlterOwnerStmt::class); + $this->writeOneof(212, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterPolicyStmt alter_policy_stmt = 173 [json_name = "AlterPolicyStmt"];. + * + * @param AlterPolicyStmt $var + * + * @return $this + */ + public function setAlterPolicyStmt($var) + { + GPBUtil::checkMessage($var, AlterPolicyStmt::class); + $this->writeOneof(173, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterPublicationStmt alter_publication_stmt = 256 [json_name = "AlterPublicationStmt"];. + * + * @param AlterPublicationStmt $var + * + * @return $this + */ + public function setAlterPublicationStmt($var) + { + GPBUtil::checkMessage($var, AlterPublicationStmt::class); + $this->writeOneof(256, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterRoleSetStmt alter_role_set_stmt = 181 [json_name = "AlterRoleSetStmt"];. + * + * @param AlterRoleSetStmt $var + * + * @return $this + */ + public function setAlterRoleSetStmt($var) + { + GPBUtil::checkMessage($var, AlterRoleSetStmt::class); + $this->writeOneof(181, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterRoleStmt alter_role_stmt = 180 [json_name = "AlterRoleStmt"];. + * + * @param AlterRoleStmt $var + * + * @return $this + */ + public function setAlterRoleStmt($var) + { + GPBUtil::checkMessage($var, AlterRoleStmt::class); + $this->writeOneof(180, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterSeqStmt alter_seq_stmt = 184 [json_name = "AlterSeqStmt"];. + * + * @param AlterSeqStmt $var + * + * @return $this + */ + public function setAlterSeqStmt($var) + { + GPBUtil::checkMessage($var, AlterSeqStmt::class); + $this->writeOneof(184, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterStatsStmt alter_stats_stmt = 201 [json_name = "AlterStatsStmt"];. + * + * @param AlterStatsStmt $var + * + * @return $this + */ + public function setAlterStatsStmt($var) + { + GPBUtil::checkMessage($var, AlterStatsStmt::class); + $this->writeOneof(201, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterSubscriptionStmt alter_subscription_stmt = 258 [json_name = "AlterSubscriptionStmt"];. + * + * @param AlterSubscriptionStmt $var + * + * @return $this + */ + public function setAlterSubscriptionStmt($var) + { + GPBUtil::checkMessage($var, AlterSubscriptionStmt::class); + $this->writeOneof(258, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterSystemStmt alter_system_stmt = 231 [json_name = "AlterSystemStmt"];. + * + * @param AlterSystemStmt $var + * + * @return $this + */ + public function setAlterSystemStmt($var) + { + GPBUtil::checkMessage($var, AlterSystemStmt::class); + $this->writeOneof(231, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTableCmd alter_table_cmd = 143 [json_name = "AlterTableCmd"];. + * + * @param AlterTableCmd $var + * + * @return $this + */ + public function setAlterTableCmd($var) + { + GPBUtil::checkMessage($var, AlterTableCmd::class); + $this->writeOneof(143, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTableMoveAllStmt alter_table_move_all_stmt = 159 [json_name = "AlterTableMoveAllStmt"];. + * + * @param AlterTableMoveAllStmt $var + * + * @return $this + */ + public function setAlterTableMoveAllStmt($var) + { + GPBUtil::checkMessage($var, AlterTableMoveAllStmt::class); + $this->writeOneof(159, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTableSpaceOptionsStmt alter_table_space_options_stmt = 158 [json_name = "AlterTableSpaceOptionsStmt"];. + * + * @param AlterTableSpaceOptionsStmt $var + * + * @return $this + */ + public function setAlterTableSpaceOptionsStmt($var) + { + GPBUtil::checkMessage($var, AlterTableSpaceOptionsStmt::class); + $this->writeOneof(158, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTableStmt alter_table_stmt = 141 [json_name = "AlterTableStmt"];. + * + * @param AlterTableStmt $var + * + * @return $this + */ + public function setAlterTableStmt($var) + { + GPBUtil::checkMessage($var, AlterTableStmt::class); + $this->writeOneof(141, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTSConfigurationStmt alter_tsconfiguration_stmt = 252 [json_name = "AlterTSConfigurationStmt"];. + * + * @param AlterTSConfigurationStmt $var + * + * @return $this + */ + public function setAlterTsconfigurationStmt($var) + { + GPBUtil::checkMessage($var, AlterTSConfigurationStmt::class); + $this->writeOneof(252, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTSDictionaryStmt alter_tsdictionary_stmt = 251 [json_name = "AlterTSDictionaryStmt"];. + * + * @param AlterTSDictionaryStmt $var + * + * @return $this + */ + public function setAlterTsdictionaryStmt($var) + { + GPBUtil::checkMessage($var, AlterTSDictionaryStmt::class); + $this->writeOneof(251, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterTypeStmt alter_type_stmt = 214 [json_name = "AlterTypeStmt"];. + * + * @param AlterTypeStmt $var + * + * @return $this + */ + public function setAlterTypeStmt($var) + { + GPBUtil::checkMessage($var, AlterTypeStmt::class); + $this->writeOneof(214, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.AlterUserMappingStmt alter_user_mapping_stmt = 169 [json_name = "AlterUserMappingStmt"];. + * + * @param AlterUserMappingStmt $var + * + * @return $this + */ + public function setAlterUserMappingStmt($var) + { + GPBUtil::checkMessage($var, AlterUserMappingStmt::class); + $this->writeOneof(169, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ArrayCoerceExpr array_coerce_expr = 27 [json_name = "ArrayCoerceExpr"];. + * + * @param ArrayCoerceExpr $var + * + * @return $this + */ + public function setArrayCoerceExpr($var) + { + GPBUtil::checkMessage($var, ArrayCoerceExpr::class); + $this->writeOneof(27, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ArrayExpr array_expr = 33 [json_name = "ArrayExpr"];. + * + * @param ArrayExpr $var + * + * @return $this + */ + public function setArrayExpr($var) + { + GPBUtil::checkMessage($var, ArrayExpr::class); + $this->writeOneof(33, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.A_Star a_star = 73 [json_name = "A_Star"];. + * + * @param A_Star $var + * + * @return $this + */ + public function setAStar($var) + { + GPBUtil::checkMessage($var, A_Star::class); + $this->writeOneof(73, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.BitString bit_string = 264 [json_name = "BitString"];. + * + * @param BitString $var + * + * @return $this + */ + public function setBitString($var) + { + GPBUtil::checkMessage($var, BitString::class); + $this->writeOneof(264, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Boolean boolean = 262 [json_name = "Boolean"];. + * + * @param bool $var + * + * @return $this + */ + public function setBoolean($var) + { + GPBUtil::checkMessage($var, Boolean::class); + $this->writeOneof(262, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.BooleanTest boolean_test = 51 [json_name = "BooleanTest"];. + * + * @param BooleanTest $var + * + * @return $this + */ + public function setBooleanTest($var) + { + GPBUtil::checkMessage($var, BooleanTest::class); + $this->writeOneof(51, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.BoolExpr bool_expr = 19 [json_name = "BoolExpr"];. + * + * @param BoolExpr $var + * + * @return $this + */ + public function setBoolExpr($var) + { + GPBUtil::checkMessage($var, BoolExpr::class); + $this->writeOneof(19, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CallContext call_context = 208 [json_name = "CallContext"];. + * + * @param CallContext $var + * + * @return $this + */ + public function setCallContext($var) + { + GPBUtil::checkMessage($var, CallContext::class); + $this->writeOneof(208, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CallStmt call_stmt = 207 [json_name = "CallStmt"];. + * + * @param CallStmt $var + * + * @return $this + */ + public function setCallStmt($var) + { + GPBUtil::checkMessage($var, CallStmt::class); + $this->writeOneof(207, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CaseExpr case_expr = 30 [json_name = "CaseExpr"];. + * + * @param CaseExpr $var + * + * @return $this + */ + public function setCaseExpr($var) + { + GPBUtil::checkMessage($var, CaseExpr::class); + $this->writeOneof(30, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CaseTestExpr case_test_expr = 32 [json_name = "CaseTestExpr"];. + * + * @param CaseTestExpr $var + * + * @return $this + */ + public function setCaseTestExpr($var) + { + GPBUtil::checkMessage($var, CaseTestExpr::class); + $this->writeOneof(32, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CaseWhen case_when = 31 [json_name = "CaseWhen"];. + * + * @param CaseWhen $var + * + * @return $this + */ + public function setCaseWhen($var) + { + GPBUtil::checkMessage($var, CaseWhen::class); + $this->writeOneof(31, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CheckPointStmt check_point_stmt = 238 [json_name = "CheckPointStmt"];. + * + * @param CheckPointStmt $var + * + * @return $this + */ + public function setCheckPointStmt($var) + { + GPBUtil::checkMessage($var, CheckPointStmt::class); + $this->writeOneof(238, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ClosePortalStmt close_portal_stmt = 196 [json_name = "ClosePortalStmt"];. + * + * @param ClosePortalStmt $var + * + * @return $this + */ + public function setClosePortalStmt($var) + { + GPBUtil::checkMessage($var, ClosePortalStmt::class); + $this->writeOneof(196, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ClusterStmt cluster_stmt = 232 [json_name = "ClusterStmt"];. + * + * @param ClusterStmt $var + * + * @return $this + */ + public function setClusterStmt($var) + { + GPBUtil::checkMessage($var, ClusterStmt::class); + $this->writeOneof(232, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoalesceExpr coalesce_expr = 36 [json_name = "CoalesceExpr"];. + * + * @param CoalesceExpr $var + * + * @return $this + */ + public function setCoalesceExpr($var) + { + GPBUtil::checkMessage($var, CoalesceExpr::class); + $this->writeOneof(36, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoerceToDomain coerce_to_domain = 53 [json_name = "CoerceToDomain"];. + * + * @param CoerceToDomain $var + * + * @return $this + */ + public function setCoerceToDomain($var) + { + GPBUtil::checkMessage($var, CoerceToDomain::class); + $this->writeOneof(53, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoerceToDomainValue coerce_to_domain_value = 54 [json_name = "CoerceToDomainValue"];. + * + * @param CoerceToDomainValue $var + * + * @return $this + */ + public function setCoerceToDomainValue($var) + { + GPBUtil::checkMessage($var, CoerceToDomainValue::class); + $this->writeOneof(54, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoerceViaIO coerce_via_io = 26 [json_name = "CoerceViaIO"];. + * + * @param CoerceViaIO $var + * + * @return $this + */ + public function setCoerceViaIo($var) + { + GPBUtil::checkMessage($var, CoerceViaIO::class); + $this->writeOneof(26, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CollateClause collate_clause = 70 [json_name = "CollateClause"];. + * + * @param CollateClause $var + * + * @return $this + */ + public function setCollateClause($var) + { + GPBUtil::checkMessage($var, CollateClause::class); + $this->writeOneof(70, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CollateExpr collate_expr = 29 [json_name = "CollateExpr"];. + * + * @param CollateExpr $var + * + * @return $this + */ + public function setCollateExpr($var) + { + GPBUtil::checkMessage($var, CollateExpr::class); + $this->writeOneof(29, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ColumnDef column_def = 86 [json_name = "ColumnDef"];. + * + * @param ColumnDef $var + * + * @return $this + */ + public function setColumnDef($var) + { + GPBUtil::checkMessage($var, ColumnDef::class); + $this->writeOneof(86, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ColumnRef column_ref = 66 [json_name = "ColumnRef"];. + * + * @param ColumnRef $var + * + * @return $this + */ + public function setColumnRef($var) + { + GPBUtil::checkMessage($var, ColumnRef::class); + $this->writeOneof(66, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CommentStmt comment_stmt = 193 [json_name = "CommentStmt"];. + * + * @param CommentStmt $var + * + * @return $this + */ + public function setCommentStmt($var) + { + GPBUtil::checkMessage($var, CommentStmt::class); + $this->writeOneof(193, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CommonTableExpr common_table_expr = 112 [json_name = "CommonTableExpr"];. + * + * @param CommonTableExpr $var + * + * @return $this + */ + public function setCommonTableExpr($var) + { + GPBUtil::checkMessage($var, CommonTableExpr::class); + $this->writeOneof(112, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CompositeTypeStmt composite_type_stmt = 220 [json_name = "CompositeTypeStmt"];. + * + * @param CompositeTypeStmt $var + * + * @return $this + */ + public function setCompositeTypeStmt($var) + { + GPBUtil::checkMessage($var, CompositeTypeStmt::class); + $this->writeOneof(220, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Constraint constraint = 155 [json_name = "Constraint"];. + * + * @param Constraint $var + * + * @return $this + */ + public function setConstraint($var) + { + GPBUtil::checkMessage($var, Constraint::class); + $this->writeOneof(155, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ConstraintsSetStmt constraints_set_stmt = 241 [json_name = "ConstraintsSetStmt"];. + * + * @param ConstraintsSetStmt $var + * + * @return $this + */ + public function setConstraintsSetStmt($var) + { + GPBUtil::checkMessage($var, ConstraintsSetStmt::class); + $this->writeOneof(241, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ConvertRowtypeExpr convert_rowtype_expr = 28 [json_name = "ConvertRowtypeExpr"];. + * + * @param ConvertRowtypeExpr $var + * + * @return $this + */ + public function setConvertRowtypeExpr($var) + { + GPBUtil::checkMessage($var, ConvertRowtypeExpr::class); + $this->writeOneof(28, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CopyStmt copy_stmt = 151 [json_name = "CopyStmt"];. + * + * @param CopyStmt $var + * + * @return $this + */ + public function setCopyStmt($var) + { + GPBUtil::checkMessage($var, CopyStmt::class); + $this->writeOneof(151, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateAmStmt create_am_stmt = 174 [json_name = "CreateAmStmt"];. + * + * @param CreateAmStmt $var + * + * @return $this + */ + public function setCreateAmStmt($var) + { + GPBUtil::checkMessage($var, CreateAmStmt::class); + $this->writeOneof(174, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateCastStmt create_cast_stmt = 244 [json_name = "CreateCastStmt"];. + * + * @param CreateCastStmt $var + * + * @return $this + */ + public function setCreateCastStmt($var) + { + GPBUtil::checkMessage($var, CreateCastStmt::class); + $this->writeOneof(244, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateConversionStmt create_conversion_stmt = 243 [json_name = "CreateConversionStmt"];. + * + * @param CreateConversionStmt $var + * + * @return $this + */ + public function setCreateConversionStmt($var) + { + GPBUtil::checkMessage($var, CreateConversionStmt::class); + $this->writeOneof(243, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreatedbStmt createdb_stmt = 226 [json_name = "CreatedbStmt"];. + * + * @param CreatedbStmt $var + * + * @return $this + */ + public function setCreatedbStmt($var) + { + GPBUtil::checkMessage($var, CreatedbStmt::class); + $this->writeOneof(226, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateDomainStmt create_domain_stmt = 186 [json_name = "CreateDomainStmt"];. + * + * @param CreateDomainStmt $var + * + * @return $this + */ + public function setCreateDomainStmt($var) + { + GPBUtil::checkMessage($var, CreateDomainStmt::class); + $this->writeOneof(186, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateEnumStmt create_enum_stmt = 221 [json_name = "CreateEnumStmt"];. + * + * @param CreateEnumStmt $var + * + * @return $this + */ + public function setCreateEnumStmt($var) + { + GPBUtil::checkMessage($var, CreateEnumStmt::class); + $this->writeOneof(221, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateEventTrigStmt create_event_trig_stmt = 176 [json_name = "CreateEventTrigStmt"];. + * + * @param CreateEventTrigStmt $var + * + * @return $this + */ + public function setCreateEventTrigStmt($var) + { + GPBUtil::checkMessage($var, CreateEventTrigStmt::class); + $this->writeOneof(176, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateExtensionStmt create_extension_stmt = 160 [json_name = "CreateExtensionStmt"];. + * + * @param CreateExtensionStmt $var + * + * @return $this + */ + public function setCreateExtensionStmt($var) + { + GPBUtil::checkMessage($var, CreateExtensionStmt::class); + $this->writeOneof(160, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateFdwStmt create_fdw_stmt = 163 [json_name = "CreateFdwStmt"];. + * + * @param CreateFdwStmt $var + * + * @return $this + */ + public function setCreateFdwStmt($var) + { + GPBUtil::checkMessage($var, CreateFdwStmt::class); + $this->writeOneof(163, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateForeignServerStmt create_foreign_server_stmt = 165 [json_name = "CreateForeignServerStmt"];. + * + * @param CreateForeignServerStmt $var + * + * @return $this + */ + public function setCreateForeignServerStmt($var) + { + GPBUtil::checkMessage($var, CreateForeignServerStmt::class); + $this->writeOneof(165, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateForeignTableStmt create_foreign_table_stmt = 167 [json_name = "CreateForeignTableStmt"];. + * + * @param CreateForeignTableStmt $var + * + * @return $this + */ + public function setCreateForeignTableStmt($var) + { + GPBUtil::checkMessage($var, CreateForeignTableStmt::class); + $this->writeOneof(167, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateFunctionStmt create_function_stmt = 202 [json_name = "CreateFunctionStmt"];. + * + * @param CreateFunctionStmt $var + * + * @return $this + */ + public function setCreateFunctionStmt($var) + { + GPBUtil::checkMessage($var, CreateFunctionStmt::class); + $this->writeOneof(202, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateOpClassItem create_op_class_item = 188 [json_name = "CreateOpClassItem"];. + * + * @param CreateOpClassItem $var + * + * @return $this + */ + public function setCreateOpClassItem($var) + { + GPBUtil::checkMessage($var, CreateOpClassItem::class); + $this->writeOneof(188, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateOpClassStmt create_op_class_stmt = 187 [json_name = "CreateOpClassStmt"];. + * + * @param CreateOpClassStmt $var + * + * @return $this + */ + public function setCreateOpClassStmt($var) + { + GPBUtil::checkMessage($var, CreateOpClassStmt::class); + $this->writeOneof(187, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateOpFamilyStmt create_op_family_stmt = 189 [json_name = "CreateOpFamilyStmt"];. + * + * @param CreateOpFamilyStmt $var + * + * @return $this + */ + public function setCreateOpFamilyStmt($var) + { + GPBUtil::checkMessage($var, CreateOpFamilyStmt::class); + $this->writeOneof(189, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreatePLangStmt create_plang_stmt = 178 [json_name = "CreatePLangStmt"];. + * + * @param CreatePLangStmt $var + * + * @return $this + */ + public function setCreatePlangStmt($var) + { + GPBUtil::checkMessage($var, CreatePLangStmt::class); + $this->writeOneof(178, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreatePolicyStmt create_policy_stmt = 172 [json_name = "CreatePolicyStmt"];. + * + * @param CreatePolicyStmt $var + * + * @return $this + */ + public function setCreatePolicyStmt($var) + { + GPBUtil::checkMessage($var, CreatePolicyStmt::class); + $this->writeOneof(172, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreatePublicationStmt create_publication_stmt = 255 [json_name = "CreatePublicationStmt"];. + * + * @param CreatePublicationStmt $var + * + * @return $this + */ + public function setCreatePublicationStmt($var) + { + GPBUtil::checkMessage($var, CreatePublicationStmt::class); + $this->writeOneof(255, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateRangeStmt create_range_stmt = 222 [json_name = "CreateRangeStmt"];. + * + * @param CreateRangeStmt $var + * + * @return $this + */ + public function setCreateRangeStmt($var) + { + GPBUtil::checkMessage($var, CreateRangeStmt::class); + $this->writeOneof(222, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateRoleStmt create_role_stmt = 179 [json_name = "CreateRoleStmt"];. + * + * @param CreateRoleStmt $var + * + * @return $this + */ + public function setCreateRoleStmt($var) + { + GPBUtil::checkMessage($var, CreateRoleStmt::class); + $this->writeOneof(179, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateSchemaStmt create_schema_stmt = 140 [json_name = "CreateSchemaStmt"];. + * + * @param CreateSchemaStmt $var + * + * @return $this + */ + public function setCreateSchemaStmt($var) + { + GPBUtil::checkMessage($var, CreateSchemaStmt::class); + $this->writeOneof(140, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateSeqStmt create_seq_stmt = 183 [json_name = "CreateSeqStmt"];. + * + * @param CreateSeqStmt $var + * + * @return $this + */ + public function setCreateSeqStmt($var) + { + GPBUtil::checkMessage($var, CreateSeqStmt::class); + $this->writeOneof(183, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateStatsStmt create_stats_stmt = 199 [json_name = "CreateStatsStmt"];. + * + * @param CreateStatsStmt $var + * + * @return $this + */ + public function setCreateStatsStmt($var) + { + GPBUtil::checkMessage($var, CreateStatsStmt::class); + $this->writeOneof(199, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateStmt create_stmt = 154 [json_name = "CreateStmt"];. + * + * @param CreateStmt $var + * + * @return $this + */ + public function setCreateStmt($var) + { + GPBUtil::checkMessage($var, CreateStmt::class); + $this->writeOneof(154, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateSubscriptionStmt create_subscription_stmt = 257 [json_name = "CreateSubscriptionStmt"];. + * + * @param CreateSubscriptionStmt $var + * + * @return $this + */ + public function setCreateSubscriptionStmt($var) + { + GPBUtil::checkMessage($var, CreateSubscriptionStmt::class); + $this->writeOneof(257, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateTableAsStmt create_table_as_stmt = 236 [json_name = "CreateTableAsStmt"];. + * + * @param CreateTableAsStmt $var + * + * @return $this + */ + public function setCreateTableAsStmt($var) + { + GPBUtil::checkMessage($var, CreateTableAsStmt::class); + $this->writeOneof(236, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateTableSpaceStmt create_table_space_stmt = 156 [json_name = "CreateTableSpaceStmt"];. + * + * @param CreateTableSpaceStmt $var + * + * @return $this + */ + public function setCreateTableSpaceStmt($var) + { + GPBUtil::checkMessage($var, CreateTableSpaceStmt::class); + $this->writeOneof(156, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateTransformStmt create_transform_stmt = 245 [json_name = "CreateTransformStmt"];. + * + * @param CreateTransformStmt $var + * + * @return $this + */ + public function setCreateTransformStmt($var) + { + GPBUtil::checkMessage($var, CreateTransformStmt::class); + $this->writeOneof(245, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateTrigStmt create_trig_stmt = 175 [json_name = "CreateTrigStmt"];. + * + * @param CreateTrigStmt $var + * + * @return $this + */ + public function setCreateTrigStmt($var) + { + GPBUtil::checkMessage($var, CreateTrigStmt::class); + $this->writeOneof(175, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CreateUserMappingStmt create_user_mapping_stmt = 168 [json_name = "CreateUserMappingStmt"];. + * + * @param CreateUserMappingStmt $var + * + * @return $this + */ + public function setCreateUserMappingStmt($var) + { + GPBUtil::checkMessage($var, CreateUserMappingStmt::class); + $this->writeOneof(168, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CTECycleClause ctecycle_clause = 111 [json_name = "CTECycleClause"];. + * + * @param CTECycleClause $var + * + * @return $this + */ + public function setCtecycleClause($var) + { + GPBUtil::checkMessage($var, CTECycleClause::class); + $this->writeOneof(111, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CTESearchClause ctesearch_clause = 110 [json_name = "CTESearchClause"];. + * + * @param CTESearchClause $var + * + * @return $this + */ + public function setCtesearchClause($var) + { + GPBUtil::checkMessage($var, CTESearchClause::class); + $this->writeOneof(110, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CurrentOfExpr current_of_expr = 56 [json_name = "CurrentOfExpr"];. + * + * @param CurrentOfExpr $var + * + * @return $this + */ + public function setCurrentOfExpr($var) + { + GPBUtil::checkMessage($var, CurrentOfExpr::class); + $this->writeOneof(56, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DeallocateStmt deallocate_stmt = 248 [json_name = "DeallocateStmt"];. + * + * @param DeallocateStmt $var + * + * @return $this + */ + public function setDeallocateStmt($var) + { + GPBUtil::checkMessage($var, DeallocateStmt::class); + $this->writeOneof(248, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DeclareCursorStmt declare_cursor_stmt = 195 [json_name = "DeclareCursorStmt"];. + * + * @param DeclareCursorStmt $var + * + * @return $this + */ + public function setDeclareCursorStmt($var) + { + GPBUtil::checkMessage($var, DeclareCursorStmt::class); + $this->writeOneof(195, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DefElem def_elem = 89 [json_name = "DefElem"];. + * + * @param DefElem $var + * + * @return $this + */ + public function setDefElem($var) + { + GPBUtil::checkMessage($var, DefElem::class); + $this->writeOneof(89, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DefineStmt define_stmt = 185 [json_name = "DefineStmt"];. + * + * @param DefineStmt $var + * + * @return $this + */ + public function setDefineStmt($var) + { + GPBUtil::checkMessage($var, DefineStmt::class); + $this->writeOneof(185, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DeleteStmt delete_stmt = 133 [json_name = "DeleteStmt"];. + * + * @param DeleteStmt $var + * + * @return $this + */ + public function setDeleteStmt($var) + { + GPBUtil::checkMessage($var, DeleteStmt::class); + $this->writeOneof(133, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DiscardStmt discard_stmt = 239 [json_name = "DiscardStmt"];. + * + * @param DiscardStmt $var + * + * @return $this + */ + public function setDiscardStmt($var) + { + GPBUtil::checkMessage($var, DiscardStmt::class); + $this->writeOneof(239, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DistinctExpr distinct_expr = 16 [json_name = "DistinctExpr"];. + * + * @param DistinctExpr $var + * + * @return $this + */ + public function setDistinctExpr($var) + { + GPBUtil::checkMessage($var, DistinctExpr::class); + $this->writeOneof(16, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DoStmt do_stmt = 205 [json_name = "DoStmt"];. + * + * @param DoStmt $var + * + * @return $this + */ + public function setDoStmt($var) + { + GPBUtil::checkMessage($var, DoStmt::class); + $this->writeOneof(205, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DropdbStmt dropdb_stmt = 230 [json_name = "DropdbStmt"];. + * + * @param DropdbStmt $var + * + * @return $this + */ + public function setDropdbStmt($var) + { + GPBUtil::checkMessage($var, DropdbStmt::class); + $this->writeOneof(230, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DropOwnedStmt drop_owned_stmt = 249 [json_name = "DropOwnedStmt"];. + * + * @param DropOwnedStmt $var + * + * @return $this + */ + public function setDropOwnedStmt($var) + { + GPBUtil::checkMessage($var, DropOwnedStmt::class); + $this->writeOneof(249, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DropRoleStmt drop_role_stmt = 182 [json_name = "DropRoleStmt"];. + * + * @param DropRoleStmt $var + * + * @return $this + */ + public function setDropRoleStmt($var) + { + GPBUtil::checkMessage($var, DropRoleStmt::class); + $this->writeOneof(182, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DropStmt drop_stmt = 191 [json_name = "DropStmt"];. + * + * @param DropStmt $var + * + * @return $this + */ + public function setDropStmt($var) + { + GPBUtil::checkMessage($var, DropStmt::class); + $this->writeOneof(191, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DropSubscriptionStmt drop_subscription_stmt = 259 [json_name = "DropSubscriptionStmt"];. + * + * @param DropSubscriptionStmt $var + * + * @return $this + */ + public function setDropSubscriptionStmt($var) + { + GPBUtil::checkMessage($var, DropSubscriptionStmt::class); + $this->writeOneof(259, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DropTableSpaceStmt drop_table_space_stmt = 157 [json_name = "DropTableSpaceStmt"];. + * + * @param DropTableSpaceStmt $var + * + * @return $this + */ + public function setDropTableSpaceStmt($var) + { + GPBUtil::checkMessage($var, DropTableSpaceStmt::class); + $this->writeOneof(157, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.DropUserMappingStmt drop_user_mapping_stmt = 170 [json_name = "DropUserMappingStmt"];. + * + * @param DropUserMappingStmt $var + * + * @return $this + */ + public function setDropUserMappingStmt($var) + { + GPBUtil::checkMessage($var, DropUserMappingStmt::class); + $this->writeOneof(170, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ExecuteStmt execute_stmt = 247 [json_name = "ExecuteStmt"];. + * + * @param ExecuteStmt $var + * + * @return $this + */ + public function setExecuteStmt($var) + { + GPBUtil::checkMessage($var, ExecuteStmt::class); + $this->writeOneof(247, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ExplainStmt explain_stmt = 235 [json_name = "ExplainStmt"];. + * + * @param ExplainStmt $var + * + * @return $this + */ + public function setExplainStmt($var) + { + GPBUtil::checkMessage($var, ExplainStmt::class); + $this->writeOneof(235, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FetchStmt fetch_stmt = 197 [json_name = "FetchStmt"];. + * + * @param FetchStmt $var + * + * @return $this + */ + public function setFetchStmt($var) + { + GPBUtil::checkMessage($var, FetchStmt::class); + $this->writeOneof(197, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FieldSelect field_select = 23 [json_name = "FieldSelect"];. + * + * @param FieldSelect $var + * + * @return $this + */ + public function setFieldSelect($var) + { + GPBUtil::checkMessage($var, FieldSelect::class); + $this->writeOneof(23, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FieldStore field_store = 24 [json_name = "FieldStore"];. + * + * @param FieldStore $var + * + * @return $this + */ + public function setFieldStore($var) + { + GPBUtil::checkMessage($var, FieldStore::class); + $this->writeOneof(24, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Float float = 261 [json_name = "Float"];. + * + * @param PBFloat $var + * + * @return $this + */ + public function setFloat($var) + { + GPBUtil::checkMessage($var, PBFloat::class); + $this->writeOneof(261, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FromExpr from_expr = 62 [json_name = "FromExpr"];. + * + * @param FromExpr $var + * + * @return $this + */ + public function setFromExpr($var) + { + GPBUtil::checkMessage($var, FromExpr::class); + $this->writeOneof(62, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FuncCall func_call = 72 [json_name = "FuncCall"];. + * + * @param FuncCall $var + * + * @return $this + */ + public function setFuncCall($var) + { + GPBUtil::checkMessage($var, FuncCall::class); + $this->writeOneof(72, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FuncExpr func_expr = 13 [json_name = "FuncExpr"];. + * + * @param FuncExpr $var + * + * @return $this + */ + public function setFuncExpr($var) + { + GPBUtil::checkMessage($var, FuncExpr::class); + $this->writeOneof(13, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FunctionParameter function_parameter = 203 [json_name = "FunctionParameter"];. + * + * @param FunctionParameter $var + * + * @return $this + */ + public function setFunctionParameter($var) + { + GPBUtil::checkMessage($var, FunctionParameter::class); + $this->writeOneof(203, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.GrantRoleStmt grant_role_stmt = 149 [json_name = "GrantRoleStmt"];. + * + * @param GrantRoleStmt $var + * + * @return $this + */ + public function setGrantRoleStmt($var) + { + GPBUtil::checkMessage($var, GrantRoleStmt::class); + $this->writeOneof(149, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.GrantStmt grant_stmt = 146 [json_name = "GrantStmt"];. + * + * @param GrantStmt $var + * + * @return $this + */ + public function setGrantStmt($var) + { + GPBUtil::checkMessage($var, GrantStmt::class); + $this->writeOneof(146, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.GroupingFunc grouping_func = 8 [json_name = "GroupingFunc"];. + * + * @param GroupingFunc $var + * + * @return $this + */ + public function setGroupingFunc($var) + { + GPBUtil::checkMessage($var, GroupingFunc::class); + $this->writeOneof(8, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.GroupingSet grouping_set = 104 [json_name = "GroupingSet"];. + * + * @param GroupingSet $var + * + * @return $this + */ + public function setGroupingSet($var) + { + GPBUtil::checkMessage($var, GroupingSet::class); + $this->writeOneof(104, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ImportForeignSchemaStmt import_foreign_schema_stmt = 171 [json_name = "ImportForeignSchemaStmt"];. + * + * @param ImportForeignSchemaStmt $var + * + * @return $this + */ + public function setImportForeignSchemaStmt($var) + { + GPBUtil::checkMessage($var, ImportForeignSchemaStmt::class); + $this->writeOneof(171, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.IndexElem index_elem = 88 [json_name = "IndexElem"];. + * + * @param IndexElem $var + * + * @return $this + */ + public function setIndexElem($var) + { + GPBUtil::checkMessage($var, IndexElem::class); + $this->writeOneof(88, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.IndexStmt index_stmt = 198 [json_name = "IndexStmt"];. + * + * @param IndexStmt $var + * + * @return $this + */ + public function setIndexStmt($var) + { + GPBUtil::checkMessage($var, IndexStmt::class); + $this->writeOneof(198, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.InferClause infer_clause = 108 [json_name = "InferClause"];. + * + * @param InferClause $var + * + * @return $this + */ + public function setInferClause($var) + { + GPBUtil::checkMessage($var, InferClause::class); + $this->writeOneof(108, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.InferenceElem inference_elem = 58 [json_name = "InferenceElem"];. + * + * @param InferenceElem $var + * + * @return $this + */ + public function setInferenceElem($var) + { + GPBUtil::checkMessage($var, InferenceElem::class); + $this->writeOneof(58, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.InlineCodeBlock inline_code_block = 206 [json_name = "InlineCodeBlock"];. + * + * @param InlineCodeBlock $var + * + * @return $this + */ + public function setInlineCodeBlock($var) + { + GPBUtil::checkMessage($var, InlineCodeBlock::class); + $this->writeOneof(206, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.InsertStmt insert_stmt = 132 [json_name = "InsertStmt"];. + * + * @param InsertStmt $var + * + * @return $this + */ + public function setInsertStmt($var) + { + GPBUtil::checkMessage($var, InsertStmt::class); + $this->writeOneof(132, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Integer integer = 260 [json_name = "Integer"];. + * + * @param int $var + * + * @return $this + */ + public function setInteger($var) + { + GPBUtil::checkMessage($var, Integer::class); + $this->writeOneof(260, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.IntList int_list = 266 [json_name = "IntList"];. + * + * @param IntList $var + * + * @return $this + */ + public function setIntList($var) + { + GPBUtil::checkMessage($var, IntList::class); + $this->writeOneof(266, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.IntoClause into_clause = 4 [json_name = "IntoClause"];. + * + * @param IntoClause $var + * + * @return $this + */ + public function setIntoClause($var) + { + GPBUtil::checkMessage($var, IntoClause::class); + $this->writeOneof(4, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JoinExpr join_expr = 61 [json_name = "JoinExpr"];. + * + * @param JoinExpr $var + * + * @return $this + */ + public function setJoinExpr($var) + { + GPBUtil::checkMessage($var, JoinExpr::class); + $this->writeOneof(61, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonAggConstructor json_agg_constructor = 128 [json_name = "JsonAggConstructor"];. + * + * @param JsonAggConstructor $var + * + * @return $this + */ + public function setJsonAggConstructor($var) + { + GPBUtil::checkMessage($var, JsonAggConstructor::class); + $this->writeOneof(128, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonArgument json_argument = 116 [json_name = "JsonArgument"];. + * + * @param JsonArgument $var + * + * @return $this + */ + public function setJsonArgument($var) + { + GPBUtil::checkMessage($var, JsonArgument::class); + $this->writeOneof(116, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonArrayAgg json_array_agg = 130 [json_name = "JsonArrayAgg"];. + * + * @param JsonArrayAgg $var + * + * @return $this + */ + public function setJsonArrayAgg($var) + { + GPBUtil::checkMessage($var, JsonArrayAgg::class); + $this->writeOneof(130, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonArrayConstructor json_array_constructor = 126 [json_name = "JsonArrayConstructor"];. + * + * @param JsonArrayConstructor $var + * + * @return $this + */ + public function setJsonArrayConstructor($var) + { + GPBUtil::checkMessage($var, JsonArrayConstructor::class); + $this->writeOneof(126, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonArrayQueryConstructor json_array_query_constructor = 127 [json_name = "JsonArrayQueryConstructor"];. + * + * @param JsonArrayQueryConstructor $var + * + * @return $this + */ + public function setJsonArrayQueryConstructor($var) + { + GPBUtil::checkMessage($var, JsonArrayQueryConstructor::class); + $this->writeOneof(127, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonBehavior json_behavior = 45 [json_name = "JsonBehavior"];. + * + * @param JsonBehavior $var + * + * @return $this + */ + public function setJsonBehavior($var) + { + GPBUtil::checkMessage($var, JsonBehavior::class); + $this->writeOneof(45, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonConstructorExpr json_constructor_expr = 43 [json_name = "JsonConstructorExpr"];. + * + * @param JsonConstructorExpr $var + * + * @return $this + */ + public function setJsonConstructorExpr($var) + { + GPBUtil::checkMessage($var, JsonConstructorExpr::class); + $this->writeOneof(43, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonExpr json_expr = 46 [json_name = "JsonExpr"];. + * + * @param JsonExpr $var + * + * @return $this + */ + public function setJsonExpr($var) + { + GPBUtil::checkMessage($var, JsonExpr::class); + $this->writeOneof(46, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonFormat json_format = 40 [json_name = "JsonFormat"];. + * + * @param JsonFormat $var + * + * @return $this + */ + public function setJsonFormat($var) + { + GPBUtil::checkMessage($var, JsonFormat::class); + $this->writeOneof(40, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonFuncExpr json_func_expr = 117 [json_name = "JsonFuncExpr"];. + * + * @param JsonFuncExpr $var + * + * @return $this + */ + public function setJsonFuncExpr($var) + { + GPBUtil::checkMessage($var, JsonFuncExpr::class); + $this->writeOneof(117, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonIsPredicate json_is_predicate = 44 [json_name = "JsonIsPredicate"];. + * + * @param JsonIsPredicate $var + * + * @return $this + */ + public function setJsonIsPredicate($var) + { + GPBUtil::checkMessage($var, JsonIsPredicate::class); + $this->writeOneof(44, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonKeyValue json_key_value = 121 [json_name = "JsonKeyValue"];. + * + * @param JsonKeyValue $var + * + * @return $this + */ + public function setJsonKeyValue($var) + { + GPBUtil::checkMessage($var, JsonKeyValue::class); + $this->writeOneof(121, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonObjectAgg json_object_agg = 129 [json_name = "JsonObjectAgg"];. + * + * @param JsonObjectAgg $var + * + * @return $this + */ + public function setJsonObjectAgg($var) + { + GPBUtil::checkMessage($var, JsonObjectAgg::class); + $this->writeOneof(129, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonObjectConstructor json_object_constructor = 125 [json_name = "JsonObjectConstructor"];. + * + * @param JsonObjectConstructor $var + * + * @return $this + */ + public function setJsonObjectConstructor($var) + { + GPBUtil::checkMessage($var, JsonObjectConstructor::class); + $this->writeOneof(125, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonOutput json_output = 115 [json_name = "JsonOutput"];. + * + * @param JsonOutput $var + * + * @return $this + */ + public function setJsonOutput($var) + { + GPBUtil::checkMessage($var, JsonOutput::class); + $this->writeOneof(115, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonParseExpr json_parse_expr = 122 [json_name = "JsonParseExpr"];. + * + * @param JsonParseExpr $var + * + * @return $this + */ + public function setJsonParseExpr($var) + { + GPBUtil::checkMessage($var, JsonParseExpr::class); + $this->writeOneof(122, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonReturning json_returning = 41 [json_name = "JsonReturning"];. + * + * @param JsonReturning $var + * + * @return $this + */ + public function setJsonReturning($var) + { + GPBUtil::checkMessage($var, JsonReturning::class); + $this->writeOneof(41, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonScalarExpr json_scalar_expr = 123 [json_name = "JsonScalarExpr"];. + * + * @param JsonScalarExpr $var + * + * @return $this + */ + public function setJsonScalarExpr($var) + { + GPBUtil::checkMessage($var, JsonScalarExpr::class); + $this->writeOneof(123, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonSerializeExpr json_serialize_expr = 124 [json_name = "JsonSerializeExpr"];. + * + * @param JsonSerializeExpr $var + * + * @return $this + */ + public function setJsonSerializeExpr($var) + { + GPBUtil::checkMessage($var, JsonSerializeExpr::class); + $this->writeOneof(124, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTable json_table = 119 [json_name = "JsonTable"];. + * + * @param JsonTable $var + * + * @return $this + */ + public function setJsonTable($var) + { + GPBUtil::checkMessage($var, JsonTable::class); + $this->writeOneof(119, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTableColumn json_table_column = 120 [json_name = "JsonTableColumn"];. + * + * @param JsonTableColumn $var + * + * @return $this + */ + public function setJsonTableColumn($var) + { + GPBUtil::checkMessage($var, JsonTableColumn::class); + $this->writeOneof(120, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePath json_table_path = 47 [json_name = "JsonTablePath"];. + * + * @param JsonTablePath $var + * + * @return $this + */ + public function setJsonTablePath($var) + { + GPBUtil::checkMessage($var, JsonTablePath::class); + $this->writeOneof(47, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePathScan json_table_path_scan = 48 [json_name = "JsonTablePathScan"];. + * + * @param JsonTablePathScan $var + * + * @return $this + */ + public function setJsonTablePathScan($var) + { + GPBUtil::checkMessage($var, JsonTablePathScan::class); + $this->writeOneof(48, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTablePathSpec json_table_path_spec = 118 [json_name = "JsonTablePathSpec"];. + * + * @param JsonTablePathSpec $var + * + * @return $this + */ + public function setJsonTablePathSpec($var) + { + GPBUtil::checkMessage($var, JsonTablePathSpec::class); + $this->writeOneof(118, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonTableSiblingJoin json_table_sibling_join = 49 [json_name = "JsonTableSiblingJoin"];. + * + * @param JsonTableSiblingJoin $var + * + * @return $this + */ + public function setJsonTableSiblingJoin($var) + { + GPBUtil::checkMessage($var, JsonTableSiblingJoin::class); + $this->writeOneof(49, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JsonValueExpr json_value_expr = 42 [json_name = "JsonValueExpr"];. + * + * @param JsonValueExpr $var + * + * @return $this + */ + public function setJsonValueExpr($var) + { + GPBUtil::checkMessage($var, JsonValueExpr::class); + $this->writeOneof(42, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.List list = 265 [json_name = "List"];. + * + * @param PBList $var + * + * @return $this + */ + public function setList($var) + { + GPBUtil::checkMessage($var, PBList::class); + $this->writeOneof(265, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ListenStmt listen_stmt = 217 [json_name = "ListenStmt"];. + * + * @param ListenStmt $var + * + * @return $this + */ + public function setListenStmt($var) + { + GPBUtil::checkMessage($var, ListenStmt::class); + $this->writeOneof(217, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LoadStmt load_stmt = 225 [json_name = "LoadStmt"];. + * + * @param LoadStmt $var + * + * @return $this + */ + public function setLoadStmt($var) + { + GPBUtil::checkMessage($var, LoadStmt::class); + $this->writeOneof(225, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LockingClause locking_clause = 90 [json_name = "LockingClause"];. + * + * @param LockingClause $var + * + * @return $this + */ + public function setLockingClause($var) + { + GPBUtil::checkMessage($var, LockingClause::class); + $this->writeOneof(90, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LockStmt lock_stmt = 240 [json_name = "LockStmt"];. + * + * @param LockStmt $var + * + * @return $this + */ + public function setLockStmt($var) + { + GPBUtil::checkMessage($var, LockStmt::class); + $this->writeOneof(240, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MergeAction merge_action = 52 [json_name = "MergeAction"];. + * + * @param MergeAction $var + * + * @return $this + */ + public function setMergeAction($var) + { + GPBUtil::checkMessage($var, MergeAction::class); + $this->writeOneof(52, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MergeStmt merge_stmt = 135 [json_name = "MergeStmt"];. + * + * @param MergeStmt $var + * + * @return $this + */ + public function setMergeStmt($var) + { + GPBUtil::checkMessage($var, MergeStmt::class); + $this->writeOneof(135, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MergeSupportFunc merge_support_func = 11 [json_name = "MergeSupportFunc"];. + * + * @param MergeSupportFunc $var + * + * @return $this + */ + public function setMergeSupportFunc($var) + { + GPBUtil::checkMessage($var, MergeSupportFunc::class); + $this->writeOneof(11, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MergeWhenClause merge_when_clause = 113 [json_name = "MergeWhenClause"];. + * + * @param MergeWhenClause $var + * + * @return $this + */ + public function setMergeWhenClause($var) + { + GPBUtil::checkMessage($var, MergeWhenClause::class); + $this->writeOneof(113, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MinMaxExpr min_max_expr = 37 [json_name = "MinMaxExpr"];. + * + * @param MinMaxExpr $var + * + * @return $this + */ + public function setMinMaxExpr($var) + { + GPBUtil::checkMessage($var, MinMaxExpr::class); + $this->writeOneof(37, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.MultiAssignRef multi_assign_ref = 78 [json_name = "MultiAssignRef"];. + * + * @param MultiAssignRef $var + * + * @return $this + */ + public function setMultiAssignRef($var) + { + GPBUtil::checkMessage($var, MultiAssignRef::class); + $this->writeOneof(78, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.NamedArgExpr named_arg_expr = 14 [json_name = "NamedArgExpr"];. + * + * @param NamedArgExpr $var + * + * @return $this + */ + public function setNamedArgExpr($var) + { + GPBUtil::checkMessage($var, NamedArgExpr::class); + $this->writeOneof(14, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.NextValueExpr next_value_expr = 57 [json_name = "NextValueExpr"];. + * + * @param NextValueExpr $var + * + * @return $this + */ + public function setNextValueExpr($var) + { + GPBUtil::checkMessage($var, NextValueExpr::class); + $this->writeOneof(57, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.NotifyStmt notify_stmt = 216 [json_name = "NotifyStmt"];. + * + * @param NotifyStmt $var + * + * @return $this + */ + public function setNotifyStmt($var) + { + GPBUtil::checkMessage($var, NotifyStmt::class); + $this->writeOneof(216, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.NullIfExpr null_if_expr = 17 [json_name = "NullIfExpr"];. + * + * @param NullIfExpr $var + * + * @return $this + */ + public function setNullIfExpr($var) + { + GPBUtil::checkMessage($var, NullIfExpr::class); + $this->writeOneof(17, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.NullTest null_test = 50 [json_name = "NullTest"];. + * + * @param NullTest $var + * + * @return $this + */ + public function setNullTest($var) + { + GPBUtil::checkMessage($var, NullTest::class); + $this->writeOneof(50, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectWithArgs object_with_args = 147 [json_name = "ObjectWithArgs"];. + * + * @param ObjectWithArgs $var + * + * @return $this + */ + public function setObjectWithArgs($var) + { + GPBUtil::checkMessage($var, ObjectWithArgs::class); + $this->writeOneof(147, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OidList oid_list = 267 [json_name = "OidList"];. + * + * @param OidList $var + * + * @return $this + */ + public function setOidList($var) + { + GPBUtil::checkMessage($var, OidList::class); + $this->writeOneof(267, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OnConflictClause on_conflict_clause = 109 [json_name = "OnConflictClause"];. + * + * @param OnConflictClause $var + * + * @return $this + */ + public function setOnConflictClause($var) + { + GPBUtil::checkMessage($var, OnConflictClause::class); + $this->writeOneof(109, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OnConflictExpr on_conflict_expr = 63 [json_name = "OnConflictExpr"];. + * + * @param OnConflictExpr $var + * + * @return $this + */ + public function setOnConflictExpr($var) + { + GPBUtil::checkMessage($var, OnConflictExpr::class); + $this->writeOneof(63, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OpExpr op_expr = 15 [json_name = "OpExpr"];. + * + * @param OpExpr $var + * + * @return $this + */ + public function setOpExpr($var) + { + GPBUtil::checkMessage($var, OpExpr::class); + $this->writeOneof(15, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Param param = 6 [json_name = "Param"];. + * + * @param Param $var + * + * @return $this + */ + public function setParam($var) + { + GPBUtil::checkMessage($var, Param::class); + $this->writeOneof(6, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ParamRef param_ref = 67 [json_name = "ParamRef"];. + * + * @param ParamRef $var + * + * @return $this + */ + public function setParamRef($var) + { + GPBUtil::checkMessage($var, ParamRef::class); + $this->writeOneof(67, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PartitionBoundSpec partition_bound_spec = 94 [json_name = "PartitionBoundSpec"];. + * + * @param PartitionBoundSpec $var + * + * @return $this + */ + public function setPartitionBoundSpec($var) + { + GPBUtil::checkMessage($var, PartitionBoundSpec::class); + $this->writeOneof(94, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PartitionCmd partition_cmd = 97 [json_name = "PartitionCmd"];. + * + * @param PartitionCmd $var + * + * @return $this + */ + public function setPartitionCmd($var) + { + GPBUtil::checkMessage($var, PartitionCmd::class); + $this->writeOneof(97, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PartitionElem partition_elem = 92 [json_name = "PartitionElem"];. + * + * @param PartitionElem $var + * + * @return $this + */ + public function setPartitionElem($var) + { + GPBUtil::checkMessage($var, PartitionElem::class); + $this->writeOneof(92, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PartitionRangeDatum partition_range_datum = 95 [json_name = "PartitionRangeDatum"];. + * + * @param PartitionRangeDatum $var + * + * @return $this + */ + public function setPartitionRangeDatum($var) + { + GPBUtil::checkMessage($var, PartitionRangeDatum::class); + $this->writeOneof(95, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PartitionSpec partition_spec = 93 [json_name = "PartitionSpec"];. + * + * @param PartitionSpec $var + * + * @return $this + */ + public function setPartitionSpec($var) + { + GPBUtil::checkMessage($var, PartitionSpec::class); + $this->writeOneof(93, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PLAssignStmt plassign_stmt = 139 [json_name = "PLAssignStmt"];. + * + * @param PLAssignStmt $var + * + * @return $this + */ + public function setPlassignStmt($var) + { + GPBUtil::checkMessage($var, PLAssignStmt::class); + $this->writeOneof(139, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PrepareStmt prepare_stmt = 246 [json_name = "PrepareStmt"];. + * + * @param PrepareStmt $var + * + * @return $this + */ + public function setPrepareStmt($var) + { + GPBUtil::checkMessage($var, PrepareStmt::class); + $this->writeOneof(246, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PublicationObjSpec publication_obj_spec = 254 [json_name = "PublicationObjSpec"];. + * + * @param PublicationObjSpec $var + * + * @return $this + */ + public function setPublicationObjSpec($var) + { + GPBUtil::checkMessage($var, PublicationObjSpec::class); + $this->writeOneof(254, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PublicationTable publication_table = 253 [json_name = "PublicationTable"];. + * + * @param PublicationTable $var + * + * @return $this + */ + public function setPublicationTable($var) + { + GPBUtil::checkMessage($var, PublicationTable::class); + $this->writeOneof(253, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Query query = 64 [json_name = "Query"];. + * + * @param Query $var + * + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, Query::class); + $this->writeOneof(64, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeFunction range_function = 82 [json_name = "RangeFunction"];. + * + * @param RangeFunction $var + * + * @return $this + */ + public function setRangeFunction($var) + { + GPBUtil::checkMessage($var, RangeFunction::class); + $this->writeOneof(82, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeSubselect range_subselect = 81 [json_name = "RangeSubselect"];. + * + * @param RangeSubselect $var + * + * @return $this + */ + public function setRangeSubselect($var) + { + GPBUtil::checkMessage($var, RangeSubselect::class); + $this->writeOneof(81, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeTableFunc range_table_func = 83 [json_name = "RangeTableFunc"];. + * + * @param RangeTableFunc $var + * + * @return $this + */ + public function setRangeTableFunc($var) + { + GPBUtil::checkMessage($var, RangeTableFunc::class); + $this->writeOneof(83, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeTableFuncCol range_table_func_col = 84 [json_name = "RangeTableFuncCol"];. + * + * @param RangeTableFuncCol $var + * + * @return $this + */ + public function setRangeTableFuncCol($var) + { + GPBUtil::checkMessage($var, RangeTableFuncCol::class); + $this->writeOneof(84, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeTableSample range_table_sample = 85 [json_name = "RangeTableSample"];. + * + * @param RangeTableSample $var + * + * @return $this + */ + public function setRangeTableSample($var) + { + GPBUtil::checkMessage($var, RangeTableSample::class); + $this->writeOneof(85, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeTblEntry range_tbl_entry = 98 [json_name = "RangeTblEntry"];. + * + * @param RangeTblEntry $var + * + * @return $this + */ + public function setRangeTblEntry($var) + { + GPBUtil::checkMessage($var, RangeTblEntry::class); + $this->writeOneof(98, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeTblFunction range_tbl_function = 100 [json_name = "RangeTblFunction"];. + * + * @param RangeTblFunction $var + * + * @return $this + */ + public function setRangeTblFunction($var) + { + GPBUtil::checkMessage($var, RangeTblFunction::class); + $this->writeOneof(100, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeTblRef range_tbl_ref = 60 [json_name = "RangeTblRef"];. + * + * @param RangeTblRef $var + * + * @return $this + */ + public function setRangeTblRef($var) + { + GPBUtil::checkMessage($var, RangeTblRef::class); + $this->writeOneof(60, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar range_var = 2 [json_name = "RangeVar"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRangeVar($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->writeOneof(2, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RawStmt raw_stmt = 131 [json_name = "RawStmt"];. + * + * @param RawStmt $var + * + * @return $this + */ + public function setRawStmt($var) + { + GPBUtil::checkMessage($var, RawStmt::class); + $this->writeOneof(131, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ReassignOwnedStmt reassign_owned_stmt = 250 [json_name = "ReassignOwnedStmt"];. + * + * @param ReassignOwnedStmt $var + * + * @return $this + */ + public function setReassignOwnedStmt($var) + { + GPBUtil::checkMessage($var, ReassignOwnedStmt::class); + $this->writeOneof(250, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RefreshMatViewStmt refresh_mat_view_stmt = 237 [json_name = "RefreshMatViewStmt"];. + * + * @param RefreshMatViewStmt $var + * + * @return $this + */ + public function setRefreshMatViewStmt($var) + { + GPBUtil::checkMessage($var, RefreshMatViewStmt::class); + $this->writeOneof(237, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ReindexStmt reindex_stmt = 242 [json_name = "ReindexStmt"];. + * + * @param ReindexStmt $var + * + * @return $this + */ + public function setReindexStmt($var) + { + GPBUtil::checkMessage($var, ReindexStmt::class); + $this->writeOneof(242, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RelabelType relabel_type = 25 [json_name = "RelabelType"];. + * + * @param RelabelType $var + * + * @return $this + */ + public function setRelabelType($var) + { + GPBUtil::checkMessage($var, RelabelType::class); + $this->writeOneof(25, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RenameStmt rename_stmt = 209 [json_name = "RenameStmt"];. + * + * @param RenameStmt $var + * + * @return $this + */ + public function setRenameStmt($var) + { + GPBUtil::checkMessage($var, RenameStmt::class); + $this->writeOneof(209, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ReplicaIdentityStmt replica_identity_stmt = 142 [json_name = "ReplicaIdentityStmt"];. + * + * @param ReplicaIdentityStmt $var + * + * @return $this + */ + public function setReplicaIdentityStmt($var) + { + GPBUtil::checkMessage($var, ReplicaIdentityStmt::class); + $this->writeOneof(142, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ResTarget res_target = 77 [json_name = "ResTarget"];. + * + * @param ResTarget $var + * + * @return $this + */ + public function setResTarget($var) + { + GPBUtil::checkMessage($var, ResTarget::class); + $this->writeOneof(77, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ReturnStmt return_stmt = 138 [json_name = "ReturnStmt"];. + * + * @param ReturnStmt $var + * + * @return $this + */ + public function setReturnStmt($var) + { + GPBUtil::checkMessage($var, ReturnStmt::class); + $this->writeOneof(138, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec role_spec = 71 [json_name = "RoleSpec"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setRoleSpec($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->writeOneof(71, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RowCompareExpr row_compare_expr = 35 [json_name = "RowCompareExpr"];. + * + * @param RowCompareExpr $var + * + * @return $this + */ + public function setRowCompareExpr($var) + { + GPBUtil::checkMessage($var, RowCompareExpr::class); + $this->writeOneof(35, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RowExpr row_expr = 34 [json_name = "RowExpr"];. + * + * @param RowExpr $var + * + * @return $this + */ + public function setRowExpr($var) + { + GPBUtil::checkMessage($var, RowExpr::class); + $this->writeOneof(34, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RowMarkClause row_mark_clause = 106 [json_name = "RowMarkClause"];. + * + * @param RowMarkClause $var + * + * @return $this + */ + public function setRowMarkClause($var) + { + GPBUtil::checkMessage($var, RowMarkClause::class); + $this->writeOneof(106, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RTEPermissionInfo rtepermission_info = 99 [json_name = "RTEPermissionInfo"];. + * + * @param RTEPermissionInfo $var + * + * @return $this + */ + public function setRtepermissionInfo($var) + { + GPBUtil::checkMessage($var, RTEPermissionInfo::class); + $this->writeOneof(99, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RuleStmt rule_stmt = 215 [json_name = "RuleStmt"];. + * + * @param RuleStmt $var + * + * @return $this + */ + public function setRuleStmt($var) + { + GPBUtil::checkMessage($var, RuleStmt::class); + $this->writeOneof(215, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ScalarArrayOpExpr scalar_array_op_expr = 18 [json_name = "ScalarArrayOpExpr"];. + * + * @param ScalarArrayOpExpr $var + * + * @return $this + */ + public function setScalarArrayOpExpr($var) + { + GPBUtil::checkMessage($var, ScalarArrayOpExpr::class); + $this->writeOneof(18, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SecLabelStmt sec_label_stmt = 194 [json_name = "SecLabelStmt"];. + * + * @param SecLabelStmt $var + * + * @return $this + */ + public function setSecLabelStmt($var) + { + GPBUtil::checkMessage($var, SecLabelStmt::class); + $this->writeOneof(194, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SelectStmt select_stmt = 136 [json_name = "SelectStmt"];. + * + * @param SelectStmt $var + * + * @return $this + */ + public function setSelectStmt($var) + { + GPBUtil::checkMessage($var, SelectStmt::class); + $this->writeOneof(136, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SetOperationStmt set_operation_stmt = 137 [json_name = "SetOperationStmt"];. + * + * @param SetOperationStmt $var + * + * @return $this + */ + public function setSetOperationStmt($var) + { + GPBUtil::checkMessage($var, SetOperationStmt::class); + $this->writeOneof(137, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SetToDefault set_to_default = 55 [json_name = "SetToDefault"];. + * + * @param SetToDefault $var + * + * @return $this + */ + public function setSetToDefault($var) + { + GPBUtil::checkMessage($var, SetToDefault::class); + $this->writeOneof(55, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SinglePartitionSpec single_partition_spec = 96 [json_name = "SinglePartitionSpec"];. + * + * @param SinglePartitionSpec $var + * + * @return $this + */ + public function setSinglePartitionSpec($var) + { + GPBUtil::checkMessage($var, SinglePartitionSpec::class); + $this->writeOneof(96, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SortBy sort_by = 79 [json_name = "SortBy"];. + * + * @param SortBy $var + * + * @return $this + */ + public function setSortBy($var) + { + GPBUtil::checkMessage($var, SortBy::class); + $this->writeOneof(79, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SortGroupClause sort_group_clause = 103 [json_name = "SortGroupClause"];. + * + * @param SortGroupClause $var + * + * @return $this + */ + public function setSortGroupClause($var) + { + GPBUtil::checkMessage($var, SortGroupClause::class); + $this->writeOneof(103, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SQLValueFunction sqlvalue_function = 38 [json_name = "SQLValueFunction"];. + * + * @param SQLValueFunction $var + * + * @return $this + */ + public function setSqlvalueFunction($var) + { + GPBUtil::checkMessage($var, SQLValueFunction::class); + $this->writeOneof(38, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.StatsElem stats_elem = 200 [json_name = "StatsElem"];. + * + * @param StatsElem $var + * + * @return $this + */ + public function setStatsElem($var) + { + GPBUtil::checkMessage($var, StatsElem::class); + $this->writeOneof(200, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.String string = 263 [json_name = "String"];. + * + * @param PBString $var + * + * @return $this + */ + public function setString($var) + { + GPBUtil::checkMessage($var, PBString::class); + $this->writeOneof(263, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SubLink sub_link = 20 [json_name = "SubLink"];. + * + * @param SubLink $var + * + * @return $this + */ + public function setSubLink($var) + { + GPBUtil::checkMessage($var, SubLink::class); + $this->writeOneof(20, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SubPlan sub_plan = 21 [json_name = "SubPlan"];. + * + * @param SubPlan $var + * + * @return $this + */ + public function setSubPlan($var) + { + GPBUtil::checkMessage($var, SubPlan::class); + $this->writeOneof(21, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SubscriptingRef subscripting_ref = 12 [json_name = "SubscriptingRef"];. + * + * @param SubscriptingRef $var + * + * @return $this + */ + public function setSubscriptingRef($var) + { + GPBUtil::checkMessage($var, SubscriptingRef::class); + $this->writeOneof(12, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TableFunc table_func = 3 [json_name = "TableFunc"];. + * + * @param TableFunc $var + * + * @return $this + */ + public function setTableFunc($var) + { + GPBUtil::checkMessage($var, TableFunc::class); + $this->writeOneof(3, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TableLikeClause table_like_clause = 87 [json_name = "TableLikeClause"];. + * + * @param TableLikeClause $var + * + * @return $this + */ + public function setTableLikeClause($var) + { + GPBUtil::checkMessage($var, TableLikeClause::class); + $this->writeOneof(87, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TableSampleClause table_sample_clause = 101 [json_name = "TableSampleClause"];. + * + * @param TableSampleClause $var + * + * @return $this + */ + public function setTableSampleClause($var) + { + GPBUtil::checkMessage($var, TableSampleClause::class); + $this->writeOneof(101, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TargetEntry target_entry = 59 [json_name = "TargetEntry"];. + * + * @param TargetEntry $var + * + * @return $this + */ + public function setTargetEntry($var) + { + GPBUtil::checkMessage($var, TargetEntry::class); + $this->writeOneof(59, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TransactionStmt transaction_stmt = 219 [json_name = "TransactionStmt"];. + * + * @param TransactionStmt $var + * + * @return $this + */ + public function setTransactionStmt($var) + { + GPBUtil::checkMessage($var, TransactionStmt::class); + $this->writeOneof(219, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TriggerTransition trigger_transition = 114 [json_name = "TriggerTransition"];. + * + * @param TriggerTransition $var + * + * @return $this + */ + public function setTriggerTransition($var) + { + GPBUtil::checkMessage($var, TriggerTransition::class); + $this->writeOneof(114, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TruncateStmt truncate_stmt = 192 [json_name = "TruncateStmt"];. + * + * @param TruncateStmt $var + * + * @return $this + */ + public function setTruncateStmt($var) + { + GPBUtil::checkMessage($var, TruncateStmt::class); + $this->writeOneof(192, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeCast type_cast = 69 [json_name = "TypeCast"];. + * + * @param TypeCast $var + * + * @return $this + */ + public function setTypeCast($var) + { + GPBUtil::checkMessage($var, TypeCast::class); + $this->writeOneof(69, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 65 [json_name = "TypeName"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->writeOneof(65, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.UnlistenStmt unlisten_stmt = 218 [json_name = "UnlistenStmt"];. + * + * @param UnlistenStmt $var + * + * @return $this + */ + public function setUnlistenStmt($var) + { + GPBUtil::checkMessage($var, UnlistenStmt::class); + $this->writeOneof(218, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.UpdateStmt update_stmt = 134 [json_name = "UpdateStmt"];. + * + * @param UpdateStmt $var + * + * @return $this + */ + public function setUpdateStmt($var) + { + GPBUtil::checkMessage($var, UpdateStmt::class); + $this->writeOneof(134, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.VacuumRelation vacuum_relation = 234 [json_name = "VacuumRelation"];. + * + * @param VacuumRelation $var + * + * @return $this + */ + public function setVacuumRelation($var) + { + GPBUtil::checkMessage($var, VacuumRelation::class); + $this->writeOneof(234, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.VacuumStmt vacuum_stmt = 233 [json_name = "VacuumStmt"];. + * + * @param VacuumStmt $var + * + * @return $this + */ + public function setVacuumStmt($var) + { + GPBUtil::checkMessage($var, VacuumStmt::class); + $this->writeOneof(233, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Var var = 5 [json_name = "Var"];. + * + * @param PBVar $var + * + * @return $this + */ + public function setVar($var) + { + GPBUtil::checkMessage($var, PBVar::class); + $this->writeOneof(5, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.VariableSetStmt variable_set_stmt = 152 [json_name = "VariableSetStmt"];. + * + * @param VariableSetStmt $var + * + * @return $this + */ + public function setVariableSetStmt($var) + { + GPBUtil::checkMessage($var, VariableSetStmt::class); + $this->writeOneof(152, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.VariableShowStmt variable_show_stmt = 153 [json_name = "VariableShowStmt"];. + * + * @param VariableShowStmt $var + * + * @return $this + */ + public function setVariableShowStmt($var) + { + GPBUtil::checkMessage($var, VariableShowStmt::class); + $this->writeOneof(153, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ViewStmt view_stmt = 224 [json_name = "ViewStmt"];. + * + * @param ViewStmt $var + * + * @return $this + */ + public function setViewStmt($var) + { + GPBUtil::checkMessage($var, ViewStmt::class); + $this->writeOneof(224, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WindowClause window_clause = 105 [json_name = "WindowClause"];. + * + * @param WindowClause $var + * + * @return $this + */ + public function setWindowClause($var) + { + GPBUtil::checkMessage($var, WindowClause::class); + $this->writeOneof(105, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WindowDef window_def = 80 [json_name = "WindowDef"];. + * + * @param WindowDef $var + * + * @return $this + */ + public function setWindowDef($var) + { + GPBUtil::checkMessage($var, WindowDef::class); + $this->writeOneof(80, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WindowFunc window_func = 9 [json_name = "WindowFunc"];. + * + * @param WindowFunc $var + * + * @return $this + */ + public function setWindowFunc($var) + { + GPBUtil::checkMessage($var, WindowFunc::class); + $this->writeOneof(9, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WindowFuncRunCondition window_func_run_condition = 10 [json_name = "WindowFuncRunCondition"];. + * + * @param WindowFuncRunCondition $var + * + * @return $this + */ + public function setWindowFuncRunCondition($var) + { + GPBUtil::checkMessage($var, WindowFuncRunCondition::class); + $this->writeOneof(10, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WithCheckOption with_check_option = 102 [json_name = "WithCheckOption"];. + * + * @param WithCheckOption $var + * + * @return $this + */ + public function setWithCheckOption($var) + { + GPBUtil::checkMessage($var, WithCheckOption::class); + $this->writeOneof(102, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 107 [json_name = "WithClause"];. + * + * @param WithClause $var + * + * @return $this + */ + public function setWithClause($var) + { + GPBUtil::checkMessage($var, WithClause::class); + $this->writeOneof(107, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.XmlExpr xml_expr = 39 [json_name = "XmlExpr"];. + * + * @param XmlExpr $var + * + * @return $this + */ + public function setXmlExpr($var) + { + GPBUtil::checkMessage($var, XmlExpr::class); + $this->writeOneof(39, $var); + + return $this; + } + + /** + * Generated from protobuf field .pg_query.XmlSerialize xml_serialize = 91 [json_name = "XmlSerialize"];. + * + * @param XmlSerialize $var + * + * @return $this + */ + public function setXmlSerialize($var) + { + GPBUtil::checkMessage($var, XmlSerialize::class); + $this->writeOneof(91, $var); + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NotifyStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NotifyStmt.php new file mode 100644 index 000000000..0d3efcbcf --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NotifyStmt.php @@ -0,0 +1,93 @@ +pg_query.NotifyStmt. + */ +class NotifyStmt extends Message +{ + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + */ + protected $conditionname = ''; + + /** + * Generated from protobuf field string payload = 2 [json_name = "payload"];. + */ + protected $payload = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $conditionname + * @var string $payload + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + * + * @return string + */ + public function getConditionname() + { + return $this->conditionname; + } + + /** + * Generated from protobuf field string payload = 2 [json_name = "payload"];. + * + * @return string + */ + public function getPayload() + { + return $this->payload; + } + + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + * + * @param string $var + * + * @return $this + */ + public function setConditionname($var) + { + GPBUtil::checkString($var, true); + $this->conditionname = $var; + + return $this; + } + + /** + * Generated from protobuf field string payload = 2 [json_name = "payload"];. + * + * @param string $var + * + * @return $this + */ + public function setPayload($var) + { + GPBUtil::checkString($var, true); + $this->payload = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullIfExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullIfExpr.php new file mode 100644 index 000000000..05b0f9dcb --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullIfExpr.php @@ -0,0 +1,290 @@ +pg_query.NullIfExpr. + */ +class NullIfExpr extends Message +{ + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + */ + protected $opcollid = 0; + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + */ + protected $opno = 0; + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + */ + protected $opresulttype = 0; + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + */ + protected $opretset = false; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $opno + * @var int $opresulttype + * @var bool $opretset + * @var int $opcollid + * @var int $inputcollid + * @var array $args + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + * + * @return int + */ + public function getOpcollid() + { + return $this->opcollid; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @return int + */ + public function getOpno() + { + return $this->opno; + } + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + * + * @return int + */ + public function getOpresulttype() + { + return $this->opresulttype; + } + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + * + * @return bool + */ + public function getOpretset() + { + return $this->opretset; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setOpcollid($var) + { + GPBUtil::checkUint32($var); + $this->opcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @param int $var + * + * @return $this + */ + public function setOpno($var) + { + GPBUtil::checkUint32($var); + $this->opno = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setOpresulttype($var) + { + GPBUtil::checkUint32($var); + $this->opresulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + * + * @param bool $var + * + * @return $this + */ + public function setOpretset($var) + { + GPBUtil::checkBool($var); + $this->opretset = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullTest.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullTest.php new file mode 100644 index 000000000..07686612a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullTest.php @@ -0,0 +1,206 @@ +pg_query.NullTest. + */ +class NullTest extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field bool argisrow = 4 [json_name = "argisrow"];. + */ + protected $argisrow = false; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.NullTestType nulltesttype = 3 [json_name = "nulltesttype"];. + */ + protected $nulltesttype = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var int $nulltesttype + * @var bool $argisrow + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field bool argisrow = 4 [json_name = "argisrow"];. + * + * @return bool + */ + public function getArgisrow() + { + return $this->argisrow; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.NullTestType nulltesttype = 3 [json_name = "nulltesttype"];. + * + * @return int + */ + public function getNulltesttype() + { + return $this->nulltesttype; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field bool argisrow = 4 [json_name = "argisrow"];. + * + * @param bool $var + * + * @return $this + */ + public function setArgisrow($var) + { + GPBUtil::checkBool($var); + $this->argisrow = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.NullTestType nulltesttype = 3 [json_name = "nulltesttype"];. + * + * @param int $var + * + * @return $this + */ + public function setNulltesttype($var) + { + GPBUtil::checkEnum($var, NullTestType::class); + $this->nulltesttype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullTestType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullTestType.php new file mode 100644 index 000000000..cff1c0f14 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/NullTestType.php @@ -0,0 +1,63 @@ +pg_query.NullTestType. + */ +class NullTestType +{ + /** + * Generated from protobuf enum IS_NOT_NULL = 2;. + */ + public const IS_NOT_NULL = 2; + + /** + * Generated from protobuf enum IS_NULL = 1;. + */ + public const IS_NULL = 1; + + /** + * Generated from protobuf enum NULL_TEST_TYPE_UNDEFINED = 0;. + */ + public const NULL_TEST_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::NULL_TEST_TYPE_UNDEFINED => 'NULL_TEST_TYPE_UNDEFINED', + self::IS_NULL => 'IS_NULL', + self::IS_NOT_NULL => 'IS_NOT_NULL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ObjectType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ObjectType.php new file mode 100644 index 000000000..5f641bcb3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ObjectType.php @@ -0,0 +1,363 @@ +pg_query.ObjectType. + */ +class ObjectType +{ + /** + * Generated from protobuf enum OBJECT_ACCESS_METHOD = 1;. + */ + public const OBJECT_ACCESS_METHOD = 1; + + /** + * Generated from protobuf enum OBJECT_AGGREGATE = 2;. + */ + public const OBJECT_AGGREGATE = 2; + + /** + * Generated from protobuf enum OBJECT_AMOP = 3;. + */ + public const OBJECT_AMOP = 3; + + /** + * Generated from protobuf enum OBJECT_AMPROC = 4;. + */ + public const OBJECT_AMPROC = 4; + + /** + * Generated from protobuf enum OBJECT_ATTRIBUTE = 5;. + */ + public const OBJECT_ATTRIBUTE = 5; + + /** + * Generated from protobuf enum OBJECT_CAST = 6;. + */ + public const OBJECT_CAST = 6; + + /** + * Generated from protobuf enum OBJECT_COLLATION = 8;. + */ + public const OBJECT_COLLATION = 8; + + /** + * Generated from protobuf enum OBJECT_COLUMN = 7;. + */ + public const OBJECT_COLUMN = 7; + + /** + * Generated from protobuf enum OBJECT_CONVERSION = 9;. + */ + public const OBJECT_CONVERSION = 9; + + /** + * Generated from protobuf enum OBJECT_DATABASE = 10;. + */ + public const OBJECT_DATABASE = 10; + + /** + * Generated from protobuf enum OBJECT_DEFACL = 12;. + */ + public const OBJECT_DEFACL = 12; + + /** + * Generated from protobuf enum OBJECT_DEFAULT = 11;. + */ + public const OBJECT_DEFAULT = 11; + + /** + * Generated from protobuf enum OBJECT_DOMAIN = 13;. + */ + public const OBJECT_DOMAIN = 13; + + /** + * Generated from protobuf enum OBJECT_DOMCONSTRAINT = 14;. + */ + public const OBJECT_DOMCONSTRAINT = 14; + + /** + * Generated from protobuf enum OBJECT_EVENT_TRIGGER = 15;. + */ + public const OBJECT_EVENT_TRIGGER = 15; + + /** + * Generated from protobuf enum OBJECT_EXTENSION = 16;. + */ + public const OBJECT_EXTENSION = 16; + + /** + * Generated from protobuf enum OBJECT_FDW = 17;. + */ + public const OBJECT_FDW = 17; + + /** + * Generated from protobuf enum OBJECT_FOREIGN_SERVER = 18;. + */ + public const OBJECT_FOREIGN_SERVER = 18; + + /** + * Generated from protobuf enum OBJECT_FOREIGN_TABLE = 19;. + */ + public const OBJECT_FOREIGN_TABLE = 19; + + /** + * Generated from protobuf enum OBJECT_FUNCTION = 20;. + */ + public const OBJECT_FUNCTION = 20; + + /** + * Generated from protobuf enum OBJECT_INDEX = 21;. + */ + public const OBJECT_INDEX = 21; + + /** + * Generated from protobuf enum OBJECT_LANGUAGE = 22;. + */ + public const OBJECT_LANGUAGE = 22; + + /** + * Generated from protobuf enum OBJECT_LARGEOBJECT = 23;. + */ + public const OBJECT_LARGEOBJECT = 23; + + /** + * Generated from protobuf enum OBJECT_MATVIEW = 24;. + */ + public const OBJECT_MATVIEW = 24; + + /** + * Generated from protobuf enum OBJECT_OPCLASS = 25;. + */ + public const OBJECT_OPCLASS = 25; + + /** + * Generated from protobuf enum OBJECT_OPERATOR = 26;. + */ + public const OBJECT_OPERATOR = 26; + + /** + * Generated from protobuf enum OBJECT_OPFAMILY = 27;. + */ + public const OBJECT_OPFAMILY = 27; + + /** + * Generated from protobuf enum OBJECT_PARAMETER_ACL = 28;. + */ + public const OBJECT_PARAMETER_ACL = 28; + + /** + * Generated from protobuf enum OBJECT_POLICY = 29;. + */ + public const OBJECT_POLICY = 29; + + /** + * Generated from protobuf enum OBJECT_PROCEDURE = 30;. + */ + public const OBJECT_PROCEDURE = 30; + + /** + * Generated from protobuf enum OBJECT_PUBLICATION = 31;. + */ + public const OBJECT_PUBLICATION = 31; + + /** + * Generated from protobuf enum OBJECT_PUBLICATION_NAMESPACE = 32;. + */ + public const OBJECT_PUBLICATION_NAMESPACE = 32; + + /** + * Generated from protobuf enum OBJECT_PUBLICATION_REL = 33;. + */ + public const OBJECT_PUBLICATION_REL = 33; + + /** + * Generated from protobuf enum OBJECT_ROLE = 34;. + */ + public const OBJECT_ROLE = 34; + + /** + * Generated from protobuf enum OBJECT_ROUTINE = 35;. + */ + public const OBJECT_ROUTINE = 35; + + /** + * Generated from protobuf enum OBJECT_RULE = 36;. + */ + public const OBJECT_RULE = 36; + + /** + * Generated from protobuf enum OBJECT_SCHEMA = 37;. + */ + public const OBJECT_SCHEMA = 37; + + /** + * Generated from protobuf enum OBJECT_SEQUENCE = 38;. + */ + public const OBJECT_SEQUENCE = 38; + + /** + * Generated from protobuf enum OBJECT_STATISTIC_EXT = 40;. + */ + public const OBJECT_STATISTIC_EXT = 40; + + /** + * Generated from protobuf enum OBJECT_SUBSCRIPTION = 39;. + */ + public const OBJECT_SUBSCRIPTION = 39; + + /** + * Generated from protobuf enum OBJECT_TABCONSTRAINT = 41;. + */ + public const OBJECT_TABCONSTRAINT = 41; + + /** + * Generated from protobuf enum OBJECT_TABLE = 42;. + */ + public const OBJECT_TABLE = 42; + + /** + * Generated from protobuf enum OBJECT_TABLESPACE = 43;. + */ + public const OBJECT_TABLESPACE = 43; + + /** + * Generated from protobuf enum OBJECT_TRANSFORM = 44;. + */ + public const OBJECT_TRANSFORM = 44; + + /** + * Generated from protobuf enum OBJECT_TRIGGER = 45;. + */ + public const OBJECT_TRIGGER = 45; + + /** + * Generated from protobuf enum OBJECT_TSCONFIGURATION = 46;. + */ + public const OBJECT_TSCONFIGURATION = 46; + + /** + * Generated from protobuf enum OBJECT_TSDICTIONARY = 47;. + */ + public const OBJECT_TSDICTIONARY = 47; + + /** + * Generated from protobuf enum OBJECT_TSPARSER = 48;. + */ + public const OBJECT_TSPARSER = 48; + + /** + * Generated from protobuf enum OBJECT_TSTEMPLATE = 49;. + */ + public const OBJECT_TSTEMPLATE = 49; + + /** + * Generated from protobuf enum OBJECT_TYPE = 50;. + */ + public const OBJECT_TYPE = 50; + + /** + * Generated from protobuf enum OBJECT_TYPE_UNDEFINED = 0;. + */ + public const OBJECT_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum OBJECT_USER_MAPPING = 51;. + */ + public const OBJECT_USER_MAPPING = 51; + + /** + * Generated from protobuf enum OBJECT_VIEW = 52;. + */ + public const OBJECT_VIEW = 52; + + private static $valueToName = [ + self::OBJECT_TYPE_UNDEFINED => 'OBJECT_TYPE_UNDEFINED', + self::OBJECT_ACCESS_METHOD => 'OBJECT_ACCESS_METHOD', + self::OBJECT_AGGREGATE => 'OBJECT_AGGREGATE', + self::OBJECT_AMOP => 'OBJECT_AMOP', + self::OBJECT_AMPROC => 'OBJECT_AMPROC', + self::OBJECT_ATTRIBUTE => 'OBJECT_ATTRIBUTE', + self::OBJECT_CAST => 'OBJECT_CAST', + self::OBJECT_COLUMN => 'OBJECT_COLUMN', + self::OBJECT_COLLATION => 'OBJECT_COLLATION', + self::OBJECT_CONVERSION => 'OBJECT_CONVERSION', + self::OBJECT_DATABASE => 'OBJECT_DATABASE', + self::OBJECT_DEFAULT => 'OBJECT_DEFAULT', + self::OBJECT_DEFACL => 'OBJECT_DEFACL', + self::OBJECT_DOMAIN => 'OBJECT_DOMAIN', + self::OBJECT_DOMCONSTRAINT => 'OBJECT_DOMCONSTRAINT', + self::OBJECT_EVENT_TRIGGER => 'OBJECT_EVENT_TRIGGER', + self::OBJECT_EXTENSION => 'OBJECT_EXTENSION', + self::OBJECT_FDW => 'OBJECT_FDW', + self::OBJECT_FOREIGN_SERVER => 'OBJECT_FOREIGN_SERVER', + self::OBJECT_FOREIGN_TABLE => 'OBJECT_FOREIGN_TABLE', + self::OBJECT_FUNCTION => 'OBJECT_FUNCTION', + self::OBJECT_INDEX => 'OBJECT_INDEX', + self::OBJECT_LANGUAGE => 'OBJECT_LANGUAGE', + self::OBJECT_LARGEOBJECT => 'OBJECT_LARGEOBJECT', + self::OBJECT_MATVIEW => 'OBJECT_MATVIEW', + self::OBJECT_OPCLASS => 'OBJECT_OPCLASS', + self::OBJECT_OPERATOR => 'OBJECT_OPERATOR', + self::OBJECT_OPFAMILY => 'OBJECT_OPFAMILY', + self::OBJECT_PARAMETER_ACL => 'OBJECT_PARAMETER_ACL', + self::OBJECT_POLICY => 'OBJECT_POLICY', + self::OBJECT_PROCEDURE => 'OBJECT_PROCEDURE', + self::OBJECT_PUBLICATION => 'OBJECT_PUBLICATION', + self::OBJECT_PUBLICATION_NAMESPACE => 'OBJECT_PUBLICATION_NAMESPACE', + self::OBJECT_PUBLICATION_REL => 'OBJECT_PUBLICATION_REL', + self::OBJECT_ROLE => 'OBJECT_ROLE', + self::OBJECT_ROUTINE => 'OBJECT_ROUTINE', + self::OBJECT_RULE => 'OBJECT_RULE', + self::OBJECT_SCHEMA => 'OBJECT_SCHEMA', + self::OBJECT_SEQUENCE => 'OBJECT_SEQUENCE', + self::OBJECT_SUBSCRIPTION => 'OBJECT_SUBSCRIPTION', + self::OBJECT_STATISTIC_EXT => 'OBJECT_STATISTIC_EXT', + self::OBJECT_TABCONSTRAINT => 'OBJECT_TABCONSTRAINT', + self::OBJECT_TABLE => 'OBJECT_TABLE', + self::OBJECT_TABLESPACE => 'OBJECT_TABLESPACE', + self::OBJECT_TRANSFORM => 'OBJECT_TRANSFORM', + self::OBJECT_TRIGGER => 'OBJECT_TRIGGER', + self::OBJECT_TSCONFIGURATION => 'OBJECT_TSCONFIGURATION', + self::OBJECT_TSDICTIONARY => 'OBJECT_TSDICTIONARY', + self::OBJECT_TSPARSER => 'OBJECT_TSPARSER', + self::OBJECT_TSTEMPLATE => 'OBJECT_TSTEMPLATE', + self::OBJECT_TYPE => 'OBJECT_TYPE', + self::OBJECT_USER_MAPPING => 'OBJECT_USER_MAPPING', + self::OBJECT_VIEW => 'OBJECT_VIEW', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ObjectWithArgs.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ObjectWithArgs.php new file mode 100644 index 000000000..16c141820 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ObjectWithArgs.php @@ -0,0 +1,156 @@ +pg_query.ObjectWithArgs. + */ +class ObjectWithArgs extends Message +{ + /** + * Generated from protobuf field bool args_unspecified = 4 [json_name = "args_unspecified"];. + */ + protected $args_unspecified = false; + + /** + * Generated from protobuf field repeated .pg_query.Node objargs = 2 [json_name = "objargs"];. + */ + private $objargs; + + /** + * Generated from protobuf field repeated .pg_query.Node objfuncargs = 3 [json_name = "objfuncargs"];. + */ + private $objfuncargs; + + /** + * Generated from protobuf field repeated .pg_query.Node objname = 1 [json_name = "objname"];. + */ + private $objname; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $objname + * @var array $objargs + * @var array $objfuncargs + * @var bool $args_unspecified + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool args_unspecified = 4 [json_name = "args_unspecified"];. + * + * @return bool + */ + public function getArgsUnspecified() + { + return $this->args_unspecified; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objargs = 2 [json_name = "objargs"];. + * + * @return RepeatedField + */ + public function getObjargs() + { + return $this->objargs; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objfuncargs = 3 [json_name = "objfuncargs"];. + * + * @return RepeatedField + */ + public function getObjfuncargs() + { + return $this->objfuncargs; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objname = 1 [json_name = "objname"];. + * + * @return RepeatedField + */ + public function getObjname() + { + return $this->objname; + } + + /** + * Generated from protobuf field bool args_unspecified = 4 [json_name = "args_unspecified"];. + * + * @param bool $var + * + * @return $this + */ + public function setArgsUnspecified($var) + { + GPBUtil::checkBool($var); + $this->args_unspecified = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objargs = 2 [json_name = "objargs"];. + * + * @param array $var + * + * @return $this + */ + public function setObjargs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->objargs = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objfuncargs = 3 [json_name = "objfuncargs"];. + * + * @param array $var + * + * @return $this + */ + public function setObjfuncargs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->objfuncargs = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node objname = 1 [json_name = "objname"];. + * + * @param array $var + * + * @return $this + */ + public function setObjname($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->objname = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OidList.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OidList.php new file mode 100644 index 000000000..b4fa888f3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OidList.php @@ -0,0 +1,63 @@ +pg_query.OidList. + */ +class OidList extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + */ + private $items; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $items + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + * + * @return RepeatedField + */ + public function getItems() + { + return $this->items; + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + * + * @param array $var + * + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->items = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnCommitAction.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnCommitAction.php new file mode 100644 index 000000000..be6093b5b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnCommitAction.php @@ -0,0 +1,75 @@ +pg_query.OnCommitAction. + */ +class OnCommitAction +{ + /** + * Generated from protobuf enum ON_COMMIT_ACTION_UNDEFINED = 0;. + */ + public const ON_COMMIT_ACTION_UNDEFINED = 0; + + /** + * Generated from protobuf enum ONCOMMIT_DELETE_ROWS = 3;. + */ + public const ONCOMMIT_DELETE_ROWS = 3; + + /** + * Generated from protobuf enum ONCOMMIT_DROP = 4;. + */ + public const ONCOMMIT_DROP = 4; + + /** + * Generated from protobuf enum ONCOMMIT_NOOP = 1;. + */ + public const ONCOMMIT_NOOP = 1; + + /** + * Generated from protobuf enum ONCOMMIT_PRESERVE_ROWS = 2;. + */ + public const ONCOMMIT_PRESERVE_ROWS = 2; + + private static $valueToName = [ + self::ON_COMMIT_ACTION_UNDEFINED => 'ON_COMMIT_ACTION_UNDEFINED', + self::ONCOMMIT_NOOP => 'ONCOMMIT_NOOP', + self::ONCOMMIT_PRESERVE_ROWS => 'ONCOMMIT_PRESERVE_ROWS', + self::ONCOMMIT_DELETE_ROWS => 'ONCOMMIT_DELETE_ROWS', + self::ONCOMMIT_DROP => 'ONCOMMIT_DROP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictAction.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictAction.php new file mode 100644 index 000000000..0c4e04f26 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictAction.php @@ -0,0 +1,69 @@ +pg_query.OnConflictAction. + */ +class OnConflictAction +{ + /** + * Generated from protobuf enum ON_CONFLICT_ACTION_UNDEFINED = 0;. + */ + public const ON_CONFLICT_ACTION_UNDEFINED = 0; + + /** + * Generated from protobuf enum ONCONFLICT_NONE = 1;. + */ + public const ONCONFLICT_NONE = 1; + + /** + * Generated from protobuf enum ONCONFLICT_NOTHING = 2;. + */ + public const ONCONFLICT_NOTHING = 2; + + /** + * Generated from protobuf enum ONCONFLICT_UPDATE = 3;. + */ + public const ONCONFLICT_UPDATE = 3; + + private static $valueToName = [ + self::ON_CONFLICT_ACTION_UNDEFINED => 'ON_CONFLICT_ACTION_UNDEFINED', + self::ONCONFLICT_NONE => 'ONCONFLICT_NONE', + self::ONCONFLICT_NOTHING => 'ONCONFLICT_NOTHING', + self::ONCONFLICT_UPDATE => 'ONCONFLICT_UPDATE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictClause.php new file mode 100644 index 000000000..478ace97e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictClause.php @@ -0,0 +1,207 @@ +pg_query.OnConflictClause. + */ +class OnConflictClause extends Message +{ + /** + * Generated from protobuf field .pg_query.OnConflictAction action = 1 [json_name = "action"];. + */ + protected $action = 0; + + /** + * Generated from protobuf field .pg_query.InferClause infer = 2 [json_name = "infer"];. + */ + protected $infer; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 4 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 3 [json_name = "targetList"];. + */ + private $target_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $action + * @var InferClause $infer + * @var array $target_list + * @var Node $where_clause + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearInfer() : void + { + $this->infer = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + /** + * Generated from protobuf field .pg_query.OnConflictAction action = 1 [json_name = "action"];. + * + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * Generated from protobuf field .pg_query.InferClause infer = 2 [json_name = "infer"];. + * + * @return null|InferClause + */ + public function getInfer() + { + return $this->infer; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 3 [json_name = "targetList"];. + * + * @return RepeatedField + */ + public function getTargetList() + { + return $this->target_list; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 4 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + public function hasInfer() + { + return isset($this->infer); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + /** + * Generated from protobuf field .pg_query.OnConflictAction action = 1 [json_name = "action"];. + * + * @param int $var + * + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, OnConflictAction::class); + $this->action = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.InferClause infer = 2 [json_name = "infer"];. + * + * @param InferClause $var + * + * @return $this + */ + public function setInfer($var) + { + GPBUtil::checkMessage($var, InferClause::class); + $this->infer = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 3 [json_name = "targetList"];. + * + * @param array $var + * + * @return $this + */ + public function setTargetList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->target_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 4 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictExpr.php new file mode 100644 index 000000000..6eac7cc48 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OnConflictExpr.php @@ -0,0 +1,300 @@ +pg_query.OnConflictExpr. + */ +class OnConflictExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.OnConflictAction action = 1 [json_name = "action"];. + */ + protected $action = 0; + + /** + * Generated from protobuf field .pg_query.Node arbiter_where = 3 [json_name = "arbiterWhere"];. + */ + protected $arbiter_where; + + /** + * Generated from protobuf field uint32 constraint = 4 [json_name = "constraint"];. + */ + protected $constraint = 0; + + /** + * Generated from protobuf field int32 excl_rel_index = 7 [json_name = "exclRelIndex"];. + */ + protected $excl_rel_index = 0; + + /** + * Generated from protobuf field .pg_query.Node on_conflict_where = 6 [json_name = "onConflictWhere"];. + */ + protected $on_conflict_where; + + /** + * Generated from protobuf field repeated .pg_query.Node arbiter_elems = 2 [json_name = "arbiterElems"];. + */ + private $arbiter_elems; + + /** + * Generated from protobuf field repeated .pg_query.Node excl_rel_tlist = 8 [json_name = "exclRelTlist"];. + */ + private $excl_rel_tlist; + + /** + * Generated from protobuf field repeated .pg_query.Node on_conflict_set = 5 [json_name = "onConflictSet"];. + */ + private $on_conflict_set; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $action + * @var array $arbiter_elems + * @var Node $arbiter_where + * @var int $constraint + * @var array $on_conflict_set + * @var Node $on_conflict_where + * @var int $excl_rel_index + * @var array $excl_rel_tlist + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArbiterWhere() : void + { + $this->arbiter_where = null; + } + + public function clearOnConflictWhere() : void + { + $this->on_conflict_where = null; + } + + /** + * Generated from protobuf field .pg_query.OnConflictAction action = 1 [json_name = "action"];. + * + * @return int + */ + public function getAction() + { + return $this->action; + } + + /** + * Generated from protobuf field repeated .pg_query.Node arbiter_elems = 2 [json_name = "arbiterElems"];. + * + * @return RepeatedField + */ + public function getArbiterElems() + { + return $this->arbiter_elems; + } + + /** + * Generated from protobuf field .pg_query.Node arbiter_where = 3 [json_name = "arbiterWhere"];. + * + * @return null|Node + */ + public function getArbiterWhere() + { + return $this->arbiter_where; + } + + /** + * Generated from protobuf field uint32 constraint = 4 [json_name = "constraint"];. + * + * @return int + */ + public function getConstraint() + { + return $this->constraint; + } + + /** + * Generated from protobuf field int32 excl_rel_index = 7 [json_name = "exclRelIndex"];. + * + * @return int + */ + public function getExclRelIndex() + { + return $this->excl_rel_index; + } + + /** + * Generated from protobuf field repeated .pg_query.Node excl_rel_tlist = 8 [json_name = "exclRelTlist"];. + * + * @return RepeatedField + */ + public function getExclRelTlist() + { + return $this->excl_rel_tlist; + } + + /** + * Generated from protobuf field repeated .pg_query.Node on_conflict_set = 5 [json_name = "onConflictSet"];. + * + * @return RepeatedField + */ + public function getOnConflictSet() + { + return $this->on_conflict_set; + } + + /** + * Generated from protobuf field .pg_query.Node on_conflict_where = 6 [json_name = "onConflictWhere"];. + * + * @return null|Node + */ + public function getOnConflictWhere() + { + return $this->on_conflict_where; + } + + public function hasArbiterWhere() + { + return isset($this->arbiter_where); + } + + public function hasOnConflictWhere() + { + return isset($this->on_conflict_where); + } + + /** + * Generated from protobuf field .pg_query.OnConflictAction action = 1 [json_name = "action"];. + * + * @param int $var + * + * @return $this + */ + public function setAction($var) + { + GPBUtil::checkEnum($var, OnConflictAction::class); + $this->action = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node arbiter_elems = 2 [json_name = "arbiterElems"];. + * + * @param array $var + * + * @return $this + */ + public function setArbiterElems($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->arbiter_elems = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node arbiter_where = 3 [json_name = "arbiterWhere"];. + * + * @param Node $var + * + * @return $this + */ + public function setArbiterWhere($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arbiter_where = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 constraint = 4 [json_name = "constraint"];. + * + * @param int $var + * + * @return $this + */ + public function setConstraint($var) + { + GPBUtil::checkUint32($var); + $this->constraint = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 excl_rel_index = 7 [json_name = "exclRelIndex"];. + * + * @param int $var + * + * @return $this + */ + public function setExclRelIndex($var) + { + GPBUtil::checkInt32($var); + $this->excl_rel_index = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node excl_rel_tlist = 8 [json_name = "exclRelTlist"];. + * + * @param array $var + * + * @return $this + */ + public function setExclRelTlist($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->excl_rel_tlist = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node on_conflict_set = 5 [json_name = "onConflictSet"];. + * + * @param array $var + * + * @return $this + */ + public function setOnConflictSet($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->on_conflict_set = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node on_conflict_where = 6 [json_name = "onConflictWhere"];. + * + * @param Node $var + * + * @return $this + */ + public function setOnConflictWhere($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->on_conflict_where = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OpExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OpExpr.php new file mode 100644 index 000000000..2ac04c5b7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OpExpr.php @@ -0,0 +1,290 @@ +pg_query.OpExpr. + */ +class OpExpr extends Message +{ + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + */ + protected $opcollid = 0; + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + */ + protected $opno = 0; + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + */ + protected $opresulttype = 0; + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + */ + protected $opretset = false; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $opno + * @var int $opresulttype + * @var bool $opretset + * @var int $opcollid + * @var int $inputcollid + * @var array $args + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + * + * @return int + */ + public function getOpcollid() + { + return $this->opcollid; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @return int + */ + public function getOpno() + { + return $this->opno; + } + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + * + * @return int + */ + public function getOpresulttype() + { + return $this->opresulttype; + } + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + * + * @return bool + */ + public function getOpretset() + { + return $this->opretset; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 7 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 6 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opcollid = 5 [json_name = "opcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setOpcollid($var) + { + GPBUtil::checkUint32($var); + $this->opcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @param int $var + * + * @return $this + */ + public function setOpno($var) + { + GPBUtil::checkUint32($var); + $this->opno = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opresulttype = 3 [json_name = "opresulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setOpresulttype($var) + { + GPBUtil::checkUint32($var); + $this->opresulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field bool opretset = 4 [json_name = "opretset"];. + * + * @param bool $var + * + * @return $this + */ + public function setOpretset($var) + { + GPBUtil::checkBool($var); + $this->opretset = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OverridingKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OverridingKind.php new file mode 100644 index 000000000..30b14bfbd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/OverridingKind.php @@ -0,0 +1,69 @@ +pg_query.OverridingKind. + */ +class OverridingKind +{ + /** + * Generated from protobuf enum OVERRIDING_KIND_UNDEFINED = 0;. + */ + public const OVERRIDING_KIND_UNDEFINED = 0; + + /** + * Generated from protobuf enum OVERRIDING_NOT_SET = 1;. + */ + public const OVERRIDING_NOT_SET = 1; + + /** + * Generated from protobuf enum OVERRIDING_SYSTEM_VALUE = 3;. + */ + public const OVERRIDING_SYSTEM_VALUE = 3; + + /** + * Generated from protobuf enum OVERRIDING_USER_VALUE = 2;. + */ + public const OVERRIDING_USER_VALUE = 2; + + private static $valueToName = [ + self::OVERRIDING_KIND_UNDEFINED => 'OVERRIDING_KIND_UNDEFINED', + self::OVERRIDING_NOT_SET => 'OVERRIDING_NOT_SET', + self::OVERRIDING_USER_VALUE => 'OVERRIDING_USER_VALUE', + self::OVERRIDING_SYSTEM_VALUE => 'OVERRIDING_SYSTEM_VALUE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBFloat.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBFloat.php new file mode 100644 index 000000000..d4209594f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBFloat.php @@ -0,0 +1,69 @@ +pg_query.Float. + */ +class PBFloat extends Message +{ + /** + * string. + * + * Generated from protobuf field string fval = 1; + */ + protected $fval = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $fval + * string + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * string. + * + * Generated from protobuf field string fval = 1; + * + * @return string + */ + public function getFval() + { + return $this->fval; + } + + /** + * string. + * + * Generated from protobuf field string fval = 1; + * + * @param string $var + * + * @return $this + */ + public function setFval($var) + { + GPBUtil::checkString($var, true); + $this->fval = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBList.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBList.php new file mode 100644 index 000000000..f0073658b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBList.php @@ -0,0 +1,63 @@ +pg_query.List. + */ +class PBList extends Message +{ + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + */ + private $items; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $items + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + * + * @return RepeatedField + */ + public function getItems() + { + return $this->items; + } + + /** + * Generated from protobuf field repeated .pg_query.Node items = 1;. + * + * @param array $var + * + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->items = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBString.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBString.php new file mode 100644 index 000000000..7acf9291f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBString.php @@ -0,0 +1,69 @@ +pg_query.String. + */ +class PBString extends Message +{ + /** + * string. + * + * Generated from protobuf field string sval = 1; + */ + protected $sval = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $sval + * string + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * string. + * + * Generated from protobuf field string sval = 1; + * + * @return string + */ + public function getSval() + { + return $this->sval; + } + + /** + * string. + * + * Generated from protobuf field string sval = 1; + * + * @param string $var + * + * @return $this + */ + public function setSval($var) + { + GPBUtil::checkString($var, true); + $this->sval = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBVar.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBVar.php new file mode 100644 index 000000000..a2ac06eb4 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PBVar.php @@ -0,0 +1,321 @@ +pg_query.Var. + */ +class PBVar extends Message +{ + /** + * Generated from protobuf field int32 location = 9 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field int32 varattno = 3 [json_name = "varattno"];. + */ + protected $varattno = 0; + + /** + * Generated from protobuf field uint32 varcollid = 6 [json_name = "varcollid"];. + */ + protected $varcollid = 0; + + /** + * Generated from protobuf field uint32 varlevelsup = 8 [json_name = "varlevelsup"];. + */ + protected $varlevelsup = 0; + + /** + * Generated from protobuf field int32 varno = 2 [json_name = "varno"];. + */ + protected $varno = 0; + + /** + * Generated from protobuf field uint32 vartype = 4 [json_name = "vartype"];. + */ + protected $vartype = 0; + + /** + * Generated from protobuf field int32 vartypmod = 5 [json_name = "vartypmod"];. + */ + protected $vartypmod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated uint64 varnullingrels = 7 [json_name = "varnullingrels"];. + */ + private $varnullingrels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $varno + * @var int $varattno + * @var int $vartype + * @var int $vartypmod + * @var int $varcollid + * @var array|array $varnullingrels + * @var int $varlevelsup + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field int32 location = 9 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field int32 varattno = 3 [json_name = "varattno"];. + * + * @return int + */ + public function getVarattno() + { + return $this->varattno; + } + + /** + * Generated from protobuf field uint32 varcollid = 6 [json_name = "varcollid"];. + * + * @return int + */ + public function getVarcollid() + { + return $this->varcollid; + } + + /** + * Generated from protobuf field uint32 varlevelsup = 8 [json_name = "varlevelsup"];. + * + * @return int + */ + public function getVarlevelsup() + { + return $this->varlevelsup; + } + + /** + * Generated from protobuf field int32 varno = 2 [json_name = "varno"];. + * + * @return int + */ + public function getVarno() + { + return $this->varno; + } + + /** + * Generated from protobuf field repeated uint64 varnullingrels = 7 [json_name = "varnullingrels"];. + * + * @return RepeatedField|RepeatedField + */ + public function getVarnullingrels() + { + return $this->varnullingrels; + } + + /** + * Generated from protobuf field uint32 vartype = 4 [json_name = "vartype"];. + * + * @return int + */ + public function getVartype() + { + return $this->vartype; + } + + /** + * Generated from protobuf field int32 vartypmod = 5 [json_name = "vartypmod"];. + * + * @return int + */ + public function getVartypmod() + { + return $this->vartypmod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field int32 location = 9 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 varattno = 3 [json_name = "varattno"];. + * + * @param int $var + * + * @return $this + */ + public function setVarattno($var) + { + GPBUtil::checkInt32($var); + $this->varattno = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 varcollid = 6 [json_name = "varcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setVarcollid($var) + { + GPBUtil::checkUint32($var); + $this->varcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 varlevelsup = 8 [json_name = "varlevelsup"];. + * + * @param int $var + * + * @return $this + */ + public function setVarlevelsup($var) + { + GPBUtil::checkUint32($var); + $this->varlevelsup = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 varno = 2 [json_name = "varno"];. + * + * @param int $var + * + * @return $this + */ + public function setVarno($var) + { + GPBUtil::checkInt32($var); + $this->varno = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated uint64 varnullingrels = 7 [json_name = "varnullingrels"];. + * + * @param array|array $var + * + * @return $this + */ + public function setVarnullingrels($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::UINT64); + $this->varnullingrels = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 vartype = 4 [json_name = "vartype"];. + * + * @param int $var + * + * @return $this + */ + public function setVartype($var) + { + GPBUtil::checkUint32($var); + $this->vartype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 vartypmod = 5 [json_name = "vartypmod"];. + * + * @param int $var + * + * @return $this + */ + public function setVartypmod($var) + { + GPBUtil::checkInt32($var); + $this->vartypmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PLAssignStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PLAssignStmt.php new file mode 100644 index 000000000..0d01d584a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PLAssignStmt.php @@ -0,0 +1,197 @@ +pg_query.PLAssignStmt. + */ +class PLAssignStmt extends Message +{ + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field int32 nnames = 3 [json_name = "nnames"];. + */ + protected $nnames = 0; + + /** + * Generated from protobuf field .pg_query.SelectStmt val = 4 [json_name = "val"];. + */ + protected $val; + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + */ + private $indirection; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var array $indirection + * @var int $nnames + * @var SelectStmt $val + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearVal() : void + { + $this->val = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + * + * @return RepeatedField + */ + public function getIndirection() + { + return $this->indirection; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field int32 nnames = 3 [json_name = "nnames"];. + * + * @return int + */ + public function getNnames() + { + return $this->nnames; + } + + /** + * Generated from protobuf field .pg_query.SelectStmt val = 4 [json_name = "val"];. + * + * @return null|SelectStmt + */ + public function getVal() + { + return $this->val; + } + + public function hasVal() + { + return isset($this->val); + } + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + * + * @param array $var + * + * @return $this + */ + public function setIndirection($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->indirection = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 nnames = 3 [json_name = "nnames"];. + * + * @param int $var + * + * @return $this + */ + public function setNnames($var) + { + GPBUtil::checkInt32($var); + $this->nnames = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SelectStmt val = 4 [json_name = "val"];. + * + * @param SelectStmt $var + * + * @return $this + */ + public function setVal($var) + { + GPBUtil::checkMessage($var, SelectStmt::class); + $this->val = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Param.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Param.php new file mode 100644 index 000000000..35d712d31 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Param.php @@ -0,0 +1,258 @@ +pg_query.Param. + */ +class Param extends Message +{ + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 paramcollid = 6 [json_name = "paramcollid"];. + */ + protected $paramcollid = 0; + + /** + * Generated from protobuf field int32 paramid = 3 [json_name = "paramid"];. + */ + protected $paramid = 0; + + /** + * Generated from protobuf field .pg_query.ParamKind paramkind = 2 [json_name = "paramkind"];. + */ + protected $paramkind = 0; + + /** + * Generated from protobuf field uint32 paramtype = 4 [json_name = "paramtype"];. + */ + protected $paramtype = 0; + + /** + * Generated from protobuf field int32 paramtypmod = 5 [json_name = "paramtypmod"];. + */ + protected $paramtypmod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $paramkind + * @var int $paramid + * @var int $paramtype + * @var int $paramtypmod + * @var int $paramcollid + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 paramcollid = 6 [json_name = "paramcollid"];. + * + * @return int + */ + public function getParamcollid() + { + return $this->paramcollid; + } + + /** + * Generated from protobuf field int32 paramid = 3 [json_name = "paramid"];. + * + * @return int + */ + public function getParamid() + { + return $this->paramid; + } + + /** + * Generated from protobuf field .pg_query.ParamKind paramkind = 2 [json_name = "paramkind"];. + * + * @return int + */ + public function getParamkind() + { + return $this->paramkind; + } + + /** + * Generated from protobuf field uint32 paramtype = 4 [json_name = "paramtype"];. + * + * @return int + */ + public function getParamtype() + { + return $this->paramtype; + } + + /** + * Generated from protobuf field int32 paramtypmod = 5 [json_name = "paramtypmod"];. + * + * @return int + */ + public function getParamtypmod() + { + return $this->paramtypmod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 paramcollid = 6 [json_name = "paramcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setParamcollid($var) + { + GPBUtil::checkUint32($var); + $this->paramcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 paramid = 3 [json_name = "paramid"];. + * + * @param int $var + * + * @return $this + */ + public function setParamid($var) + { + GPBUtil::checkInt32($var); + $this->paramid = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ParamKind paramkind = 2 [json_name = "paramkind"];. + * + * @param int $var + * + * @return $this + */ + public function setParamkind($var) + { + GPBUtil::checkEnum($var, ParamKind::class); + $this->paramkind = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 paramtype = 4 [json_name = "paramtype"];. + * + * @param int $var + * + * @return $this + */ + public function setParamtype($var) + { + GPBUtil::checkUint32($var); + $this->paramtype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 paramtypmod = 5 [json_name = "paramtypmod"];. + * + * @param int $var + * + * @return $this + */ + public function setParamtypmod($var) + { + GPBUtil::checkInt32($var); + $this->paramtypmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParamKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParamKind.php new file mode 100644 index 000000000..98299fc83 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParamKind.php @@ -0,0 +1,75 @@ +pg_query.ParamKind. + */ +class ParamKind +{ + /** + * Generated from protobuf enum PARAM_EXEC = 2;. + */ + public const PARAM_EXEC = 2; + + /** + * Generated from protobuf enum PARAM_EXTERN = 1;. + */ + public const PARAM_EXTERN = 1; + + /** + * Generated from protobuf enum PARAM_KIND_UNDEFINED = 0;. + */ + public const PARAM_KIND_UNDEFINED = 0; + + /** + * Generated from protobuf enum PARAM_MULTIEXPR = 4;. + */ + public const PARAM_MULTIEXPR = 4; + + /** + * Generated from protobuf enum PARAM_SUBLINK = 3;. + */ + public const PARAM_SUBLINK = 3; + + private static $valueToName = [ + self::PARAM_KIND_UNDEFINED => 'PARAM_KIND_UNDEFINED', + self::PARAM_EXTERN => 'PARAM_EXTERN', + self::PARAM_EXEC => 'PARAM_EXEC', + self::PARAM_SUBLINK => 'PARAM_SUBLINK', + self::PARAM_MULTIEXPR => 'PARAM_MULTIEXPR', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParamRef.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParamRef.php new file mode 100644 index 000000000..b3a5750e3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParamRef.php @@ -0,0 +1,93 @@ +pg_query.ParamRef. + */ +class ParamRef extends Message +{ + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field int32 number = 1 [json_name = "number"];. + */ + protected $number = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $number + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field int32 number = 1 [json_name = "number"];. + * + * @return int + */ + public function getNumber() + { + return $this->number; + } + + /** + * Generated from protobuf field int32 location = 2 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 number = 1 [json_name = "number"];. + * + * @param int $var + * + * @return $this + */ + public function setNumber($var) + { + GPBUtil::checkInt32($var); + $this->number = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParseResult.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParseResult.php new file mode 100644 index 000000000..55e286380 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ParseResult.php @@ -0,0 +1,94 @@ +pg_query.ParseResult. + */ +class ParseResult extends Message +{ + /** + * Generated from protobuf field int32 version = 1;. + */ + protected $version = 0; + + /** + * Generated from protobuf field repeated .pg_query.RawStmt stmts = 2;. + */ + private $stmts; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $version + * @var array $stmts + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.RawStmt stmts = 2;. + * + * @return RepeatedField + */ + public function getStmts() + { + return $this->stmts; + } + + /** + * Generated from protobuf field int32 version = 1;. + * + * @return int + */ + public function getVersion() + { + return $this->version; + } + + /** + * Generated from protobuf field repeated .pg_query.RawStmt stmts = 2;. + * + * @param array $var + * + * @return $this + */ + public function setStmts($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, RawStmt::class); + $this->stmts = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 version = 1;. + * + * @param int $var + * + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkInt32($var); + $this->version = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionBoundSpec.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionBoundSpec.php new file mode 100644 index 000000000..095aac35d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionBoundSpec.php @@ -0,0 +1,280 @@ +pg_query.PartitionBoundSpec. + */ +class PartitionBoundSpec extends Message +{ + /** + * Generated from protobuf field bool is_default = 2 [json_name = "is_default"];. + */ + protected $is_default = false; + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field int32 modulus = 3 [json_name = "modulus"];. + */ + protected $modulus = 0; + + /** + * Generated from protobuf field int32 remainder = 4 [json_name = "remainder"];. + */ + protected $remainder = 0; + + /** + * Generated from protobuf field string strategy = 1 [json_name = "strategy"];. + */ + protected $strategy = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node listdatums = 5 [json_name = "listdatums"];. + */ + private $listdatums; + + /** + * Generated from protobuf field repeated .pg_query.Node lowerdatums = 6 [json_name = "lowerdatums"];. + */ + private $lowerdatums; + + /** + * Generated from protobuf field repeated .pg_query.Node upperdatums = 7 [json_name = "upperdatums"];. + */ + private $upperdatums; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $strategy + * @var bool $is_default + * @var int $modulus + * @var int $remainder + * @var array $listdatums + * @var array $lowerdatums + * @var array $upperdatums + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool is_default = 2 [json_name = "is_default"];. + * + * @return bool + */ + public function getIsDefault() + { + return $this->is_default; + } + + /** + * Generated from protobuf field repeated .pg_query.Node listdatums = 5 [json_name = "listdatums"];. + * + * @return RepeatedField + */ + public function getListdatums() + { + return $this->listdatums; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node lowerdatums = 6 [json_name = "lowerdatums"];. + * + * @return RepeatedField + */ + public function getLowerdatums() + { + return $this->lowerdatums; + } + + /** + * Generated from protobuf field int32 modulus = 3 [json_name = "modulus"];. + * + * @return int + */ + public function getModulus() + { + return $this->modulus; + } + + /** + * Generated from protobuf field int32 remainder = 4 [json_name = "remainder"];. + * + * @return int + */ + public function getRemainder() + { + return $this->remainder; + } + + /** + * Generated from protobuf field string strategy = 1 [json_name = "strategy"];. + * + * @return string + */ + public function getStrategy() + { + return $this->strategy; + } + + /** + * Generated from protobuf field repeated .pg_query.Node upperdatums = 7 [json_name = "upperdatums"];. + * + * @return RepeatedField + */ + public function getUpperdatums() + { + return $this->upperdatums; + } + + /** + * Generated from protobuf field bool is_default = 2 [json_name = "is_default"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsDefault($var) + { + GPBUtil::checkBool($var); + $this->is_default = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node listdatums = 5 [json_name = "listdatums"];. + * + * @param array $var + * + * @return $this + */ + public function setListdatums($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->listdatums = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node lowerdatums = 6 [json_name = "lowerdatums"];. + * + * @param array $var + * + * @return $this + */ + public function setLowerdatums($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->lowerdatums = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 modulus = 3 [json_name = "modulus"];. + * + * @param int $var + * + * @return $this + */ + public function setModulus($var) + { + GPBUtil::checkInt32($var); + $this->modulus = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 remainder = 4 [json_name = "remainder"];. + * + * @param int $var + * + * @return $this + */ + public function setRemainder($var) + { + GPBUtil::checkInt32($var); + $this->remainder = $var; + + return $this; + } + + /** + * Generated from protobuf field string strategy = 1 [json_name = "strategy"];. + * + * @param string $var + * + * @return $this + */ + public function setStrategy($var) + { + GPBUtil::checkString($var, true); + $this->strategy = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node upperdatums = 7 [json_name = "upperdatums"];. + * + * @param array $var + * + * @return $this + */ + public function setUpperdatums($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->upperdatums = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionCmd.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionCmd.php new file mode 100644 index 000000000..0767064ff --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionCmd.php @@ -0,0 +1,144 @@ +pg_query.PartitionCmd. + */ +class PartitionCmd extends Message +{ + /** + * Generated from protobuf field .pg_query.PartitionBoundSpec bound = 2 [json_name = "bound"];. + */ + protected $bound; + + /** + * Generated from protobuf field bool concurrent = 3 [json_name = "concurrent"];. + */ + protected $concurrent = false; + + /** + * Generated from protobuf field .pg_query.RangeVar name = 1 [json_name = "name"];. + */ + protected $name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $name + * @var PartitionBoundSpec $bound + * @var bool $concurrent + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearBound() : void + { + $this->bound = null; + } + + public function clearName() : void + { + $this->name = null; + } + + /** + * Generated from protobuf field .pg_query.PartitionBoundSpec bound = 2 [json_name = "bound"];. + * + * @return null|PartitionBoundSpec + */ + public function getBound() + { + return $this->bound; + } + + /** + * Generated from protobuf field bool concurrent = 3 [json_name = "concurrent"];. + * + * @return bool + */ + public function getConcurrent() + { + return $this->concurrent; + } + + /** + * Generated from protobuf field .pg_query.RangeVar name = 1 [json_name = "name"];. + * + * @return null|RangeVar + */ + public function getName() + { + return $this->name; + } + + public function hasBound() + { + return isset($this->bound); + } + + public function hasName() + { + return isset($this->name); + } + + /** + * Generated from protobuf field .pg_query.PartitionBoundSpec bound = 2 [json_name = "bound"];. + * + * @param PartitionBoundSpec $var + * + * @return $this + */ + public function setBound($var) + { + GPBUtil::checkMessage($var, PartitionBoundSpec::class); + $this->bound = $var; + + return $this; + } + + /** + * Generated from protobuf field bool concurrent = 3 [json_name = "concurrent"];. + * + * @param bool $var + * + * @return $this + */ + public function setConcurrent($var) + { + GPBUtil::checkBool($var); + $this->concurrent = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar name = 1 [json_name = "name"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionElem.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionElem.php new file mode 100644 index 000000000..df7b2be09 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionElem.php @@ -0,0 +1,197 @@ +pg_query.PartitionElem. + */ +class PartitionElem extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node collation = 3 [json_name = "collation"];. + */ + private $collation; + + /** + * Generated from protobuf field repeated .pg_query.Node opclass = 4 [json_name = "opclass"];. + */ + private $opclass; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var Node $expr + * @var array $collation + * @var array $opclass + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node collation = 3 [json_name = "collation"];. + * + * @return RepeatedField + */ + public function getCollation() + { + return $this->collation; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opclass = 4 [json_name = "opclass"];. + * + * @return RepeatedField + */ + public function getOpclass() + { + return $this->opclass; + } + + public function hasExpr() + { + return isset($this->expr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node collation = 3 [json_name = "collation"];. + * + * @param array $var + * + * @return $this + */ + public function setCollation($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->collation = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opclass = 4 [json_name = "opclass"];. + * + * @param array $var + * + * @return $this + */ + public function setOpclass($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opclass = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionRangeDatum.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionRangeDatum.php new file mode 100644 index 000000000..50d50e255 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionRangeDatum.php @@ -0,0 +1,134 @@ +pg_query.PartitionRangeDatum. + */ +class PartitionRangeDatum extends Message +{ + /** + * Generated from protobuf field .pg_query.PartitionRangeDatumKind kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node value = 2 [json_name = "value"];. + */ + protected $value; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var Node $value + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearValue() : void + { + $this->value = null; + } + + /** + * Generated from protobuf field .pg_query.PartitionRangeDatumKind kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node value = 2 [json_name = "value"];. + * + * @return null|Node + */ + public function getValue() + { + return $this->value; + } + + public function hasValue() + { + return isset($this->value); + } + + /** + * Generated from protobuf field .pg_query.PartitionRangeDatumKind kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, PartitionRangeDatumKind::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node value = 2 [json_name = "value"];. + * + * @param Node $var + * + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->value = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionRangeDatumKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionRangeDatumKind.php new file mode 100644 index 000000000..9f1b0a7e2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionRangeDatumKind.php @@ -0,0 +1,69 @@ +pg_query.PartitionRangeDatumKind. + */ +class PartitionRangeDatumKind +{ + /** + * Generated from protobuf enum PARTITION_RANGE_DATUM_KIND_UNDEFINED = 0;. + */ + public const PARTITION_RANGE_DATUM_KIND_UNDEFINED = 0; + + /** + * Generated from protobuf enum PARTITION_RANGE_DATUM_MAXVALUE = 3;. + */ + public const PARTITION_RANGE_DATUM_MAXVALUE = 3; + + /** + * Generated from protobuf enum PARTITION_RANGE_DATUM_MINVALUE = 1;. + */ + public const PARTITION_RANGE_DATUM_MINVALUE = 1; + + /** + * Generated from protobuf enum PARTITION_RANGE_DATUM_VALUE = 2;. + */ + public const PARTITION_RANGE_DATUM_VALUE = 2; + + private static $valueToName = [ + self::PARTITION_RANGE_DATUM_KIND_UNDEFINED => 'PARTITION_RANGE_DATUM_KIND_UNDEFINED', + self::PARTITION_RANGE_DATUM_MINVALUE => 'PARTITION_RANGE_DATUM_MINVALUE', + self::PARTITION_RANGE_DATUM_VALUE => 'PARTITION_RANGE_DATUM_VALUE', + self::PARTITION_RANGE_DATUM_MAXVALUE => 'PARTITION_RANGE_DATUM_MAXVALUE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionSpec.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionSpec.php new file mode 100644 index 000000000..4fb5bd804 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionSpec.php @@ -0,0 +1,125 @@ +pg_query.PartitionSpec. + */ +class PartitionSpec extends Message +{ + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.PartitionStrategy strategy = 1 [json_name = "strategy"];. + */ + protected $strategy = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node part_params = 2 [json_name = "partParams"];. + */ + private $part_params; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $strategy + * @var array $part_params + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node part_params = 2 [json_name = "partParams"];. + * + * @return RepeatedField + */ + public function getPartParams() + { + return $this->part_params; + } + + /** + * Generated from protobuf field .pg_query.PartitionStrategy strategy = 1 [json_name = "strategy"];. + * + * @return int + */ + public function getStrategy() + { + return $this->strategy; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node part_params = 2 [json_name = "partParams"];. + * + * @param array $var + * + * @return $this + */ + public function setPartParams($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->part_params = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PartitionStrategy strategy = 1 [json_name = "strategy"];. + * + * @param int $var + * + * @return $this + */ + public function setStrategy($var) + { + GPBUtil::checkEnum($var, PartitionStrategy::class); + $this->strategy = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionStrategy.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionStrategy.php new file mode 100644 index 000000000..d3dff454e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PartitionStrategy.php @@ -0,0 +1,69 @@ +pg_query.PartitionStrategy. + */ +class PartitionStrategy +{ + /** + * Generated from protobuf enum PARTITION_STRATEGY_HASH = 3;. + */ + public const PARTITION_STRATEGY_HASH = 3; + + /** + * Generated from protobuf enum PARTITION_STRATEGY_LIST = 1;. + */ + public const PARTITION_STRATEGY_LIST = 1; + + /** + * Generated from protobuf enum PARTITION_STRATEGY_RANGE = 2;. + */ + public const PARTITION_STRATEGY_RANGE = 2; + + /** + * Generated from protobuf enum PARTITION_STRATEGY_UNDEFINED = 0;. + */ + public const PARTITION_STRATEGY_UNDEFINED = 0; + + private static $valueToName = [ + self::PARTITION_STRATEGY_UNDEFINED => 'PARTITION_STRATEGY_UNDEFINED', + self::PARTITION_STRATEGY_LIST => 'PARTITION_STRATEGY_LIST', + self::PARTITION_STRATEGY_RANGE => 'PARTITION_STRATEGY_RANGE', + self::PARTITION_STRATEGY_HASH => 'PARTITION_STRATEGY_HASH', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PrepareStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PrepareStmt.php new file mode 100644 index 000000000..77b410329 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PrepareStmt.php @@ -0,0 +1,135 @@ +pg_query.PrepareStmt. + */ +class PrepareStmt extends Message +{ + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + */ + protected $query; + + /** + * Generated from protobuf field repeated .pg_query.Node argtypes = 2 [json_name = "argtypes"];. + */ + private $argtypes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var array $argtypes + * @var Node $query + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQuery() : void + { + $this->query = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node argtypes = 2 [json_name = "argtypes"];. + * + * @return RepeatedField + */ + public function getArgtypes() + { + return $this->argtypes; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + * + * @return null|Node + */ + public function getQuery() + { + return $this->query; + } + + public function hasQuery() + { + return isset($this->query); + } + + /** + * Generated from protobuf field repeated .pg_query.Node argtypes = 2 [json_name = "argtypes"];. + * + * @param array $var + * + * @return $this + */ + public function setArgtypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->argtypes = $arr; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->query = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationObjSpec.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationObjSpec.php new file mode 100644 index 000000000..9120d956b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationObjSpec.php @@ -0,0 +1,165 @@ +pg_query.PublicationObjSpec. + */ +class PublicationObjSpec extends Message +{ + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.PublicationObjSpecType pubobjtype = 1 [json_name = "pubobjtype"];. + */ + protected $pubobjtype = 0; + + /** + * Generated from protobuf field .pg_query.PublicationTable pubtable = 3 [json_name = "pubtable"];. + */ + protected $pubtable; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $pubobjtype + * @var string $name + * @var PublicationTable $pubtable + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearPubtable() : void + { + $this->pubtable = null; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.PublicationObjSpecType pubobjtype = 1 [json_name = "pubobjtype"];. + * + * @return int + */ + public function getPubobjtype() + { + return $this->pubobjtype; + } + + /** + * Generated from protobuf field .pg_query.PublicationTable pubtable = 3 [json_name = "pubtable"];. + * + * @return null|PublicationTable + */ + public function getPubtable() + { + return $this->pubtable; + } + + public function hasPubtable() + { + return isset($this->pubtable); + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PublicationObjSpecType pubobjtype = 1 [json_name = "pubobjtype"];. + * + * @param int $var + * + * @return $this + */ + public function setPubobjtype($var) + { + GPBUtil::checkEnum($var, PublicationObjSpecType::class); + $this->pubobjtype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.PublicationTable pubtable = 3 [json_name = "pubtable"];. + * + * @param PublicationTable $var + * + * @return $this + */ + public function setPubtable($var) + { + GPBUtil::checkMessage($var, PublicationTable::class); + $this->pubtable = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationObjSpecType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationObjSpecType.php new file mode 100644 index 000000000..2c0f72780 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationObjSpecType.php @@ -0,0 +1,75 @@ +pg_query.PublicationObjSpecType. + */ +class PublicationObjSpecType +{ + /** + * Generated from protobuf enum PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED = 0;. + */ + public const PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum PUBLICATIONOBJ_CONTINUATION = 4;. + */ + public const PUBLICATIONOBJ_CONTINUATION = 4; + + /** + * Generated from protobuf enum PUBLICATIONOBJ_TABLE = 1;. + */ + public const PUBLICATIONOBJ_TABLE = 1; + + /** + * Generated from protobuf enum PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA = 3;. + */ + public const PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA = 3; + + /** + * Generated from protobuf enum PUBLICATIONOBJ_TABLES_IN_SCHEMA = 2;. + */ + public const PUBLICATIONOBJ_TABLES_IN_SCHEMA = 2; + + private static $valueToName = [ + self::PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED => 'PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED', + self::PUBLICATIONOBJ_TABLE => 'PUBLICATIONOBJ_TABLE', + self::PUBLICATIONOBJ_TABLES_IN_SCHEMA => 'PUBLICATIONOBJ_TABLES_IN_SCHEMA', + self::PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA => 'PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA', + self::PUBLICATIONOBJ_CONTINUATION => 'PUBLICATIONOBJ_CONTINUATION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationTable.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationTable.php new file mode 100644 index 000000000..9bc3cdde0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/PublicationTable.php @@ -0,0 +1,145 @@ +pg_query.PublicationTable. + */ +class PublicationTable extends Message +{ + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 2 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 3 [json_name = "columns"];. + */ + private $columns; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var Node $where_clause + * @var array $columns + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 3 [json_name = "columns"];. + * + * @return RepeatedField + */ + public function getColumns() + { + return $this->columns; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 2 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 3 [json_name = "columns"];. + * + * @param array $var + * + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->columns = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 2 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Query.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Query.php new file mode 100644 index 000000000..a7ec62ea9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Query.php @@ -0,0 +1,1414 @@ +pg_query.Query. + */ +class Query extends Message +{ + /** + * Generated from protobuf field bool can_set_tag = 3 [json_name = "canSetTag"];. + */ + protected $can_set_tag = false; + + /** + * Generated from protobuf field .pg_query.CmdType command_type = 1 [json_name = "commandType"];. + */ + protected $command_type = 0; + + /** + * Generated from protobuf field bool group_distinct = 28 [json_name = "groupDistinct"];. + */ + protected $group_distinct = false; + + /** + * Generated from protobuf field bool has_aggs = 6 [json_name = "hasAggs"];. + */ + protected $has_aggs = false; + + /** + * Generated from protobuf field bool has_distinct_on = 10 [json_name = "hasDistinctOn"];. + */ + protected $has_distinct_on = false; + + /** + * Generated from protobuf field bool has_for_update = 13 [json_name = "hasForUpdate"];. + */ + protected $has_for_update = false; + + /** + * Generated from protobuf field bool has_modifying_cte = 12 [json_name = "hasModifyingCTE"];. + */ + protected $has_modifying_cte = false; + + /** + * Generated from protobuf field bool has_recursive = 11 [json_name = "hasRecursive"];. + */ + protected $has_recursive = false; + + /** + * Generated from protobuf field bool has_row_security = 14 [json_name = "hasRowSecurity"];. + */ + protected $has_row_security = false; + + /** + * Generated from protobuf field bool has_sub_links = 9 [json_name = "hasSubLinks"];. + */ + protected $has_sub_links = false; + + /** + * Generated from protobuf field bool has_target_srfs = 8 [json_name = "hasTargetSRFs"];. + */ + protected $has_target_srfs = false; + + /** + * Generated from protobuf field bool has_window_funcs = 7 [json_name = "hasWindowFuncs"];. + */ + protected $has_window_funcs = false; + + /** + * Generated from protobuf field .pg_query.Node having_qual = 30 [json_name = "havingQual"];. + */ + protected $having_qual; + + /** + * Generated from protobuf field bool is_return = 15 [json_name = "isReturn"];. + */ + protected $is_return = false; + + /** + * Generated from protobuf field .pg_query.FromExpr jointree = 19 [json_name = "jointree"];. + */ + protected $jointree; + + /** + * Generated from protobuf field .pg_query.Node limit_count = 35 [json_name = "limitCount"];. + */ + protected $limit_count; + + /** + * Generated from protobuf field .pg_query.Node limit_offset = 34 [json_name = "limitOffset"];. + */ + protected $limit_offset; + + /** + * Generated from protobuf field .pg_query.LimitOption limit_option = 36 [json_name = "limitOption"];. + */ + protected $limit_option = 0; + + /** + * Generated from protobuf field .pg_query.Node merge_join_condition = 22 [json_name = "mergeJoinCondition"];. + */ + protected $merge_join_condition; + + /** + * Generated from protobuf field int32 merge_target_relation = 21 [json_name = "mergeTargetRelation"];. + */ + protected $merge_target_relation = 0; + + /** + * Generated from protobuf field .pg_query.OnConflictExpr on_conflict = 25 [json_name = "onConflict"];. + */ + protected $on_conflict; + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 24 [json_name = "override"];. + */ + protected $override = 0; + + /** + * Generated from protobuf field .pg_query.QuerySource query_source = 2 [json_name = "querySource"];. + */ + protected $query_source = 0; + + /** + * Generated from protobuf field int32 result_relation = 5 [json_name = "resultRelation"];. + */ + protected $result_relation = 0; + + /** + * Generated from protobuf field .pg_query.Node set_operations = 38 [json_name = "setOperations"];. + */ + protected $set_operations; + + /** + * Generated from protobuf field int32 stmt_len = 42 [json_name = "stmt_len"];. + */ + protected $stmt_len = 0; + + /** + * Generated from protobuf field int32 stmt_location = 41 [json_name = "stmt_location"];. + */ + protected $stmt_location = 0; + + /** + * Generated from protobuf field .pg_query.Node utility_stmt = 4 [json_name = "utilityStmt"];. + */ + protected $utility_stmt; + + /** + * Generated from protobuf field repeated .pg_query.Node constraint_deps = 39 [json_name = "constraintDeps"];. + */ + private $constraint_deps; + + /** + * Generated from protobuf field repeated .pg_query.Node cte_list = 16 [json_name = "cteList"];. + */ + private $cte_list; + + /** + * Generated from protobuf field repeated .pg_query.Node distinct_clause = 32 [json_name = "distinctClause"];. + */ + private $distinct_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node group_clause = 27 [json_name = "groupClause"];. + */ + private $group_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node grouping_sets = 29 [json_name = "groupingSets"];. + */ + private $grouping_sets; + + /** + * Generated from protobuf field repeated .pg_query.Node merge_action_list = 20 [json_name = "mergeActionList"];. + */ + private $merge_action_list; + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 26 [json_name = "returningList"];. + */ + private $returning_list; + + /** + * Generated from protobuf field repeated .pg_query.Node row_marks = 37 [json_name = "rowMarks"];. + */ + private $row_marks; + + /** + * Generated from protobuf field repeated .pg_query.Node rtable = 17 [json_name = "rtable"];. + */ + private $rtable; + + /** + * Generated from protobuf field repeated .pg_query.Node rteperminfos = 18 [json_name = "rteperminfos"];. + */ + private $rteperminfos; + + /** + * Generated from protobuf field repeated .pg_query.Node sort_clause = 33 [json_name = "sortClause"];. + */ + private $sort_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 23 [json_name = "targetList"];. + */ + private $target_list; + + /** + * Generated from protobuf field repeated .pg_query.Node window_clause = 31 [json_name = "windowClause"];. + */ + private $window_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node with_check_options = 40 [json_name = "withCheckOptions"];. + */ + private $with_check_options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $command_type + * @var int $query_source + * @var bool $can_set_tag + * @var Node $utility_stmt + * @var int $result_relation + * @var bool $has_aggs + * @var bool $has_window_funcs + * @var bool $has_target_srfs + * @var bool $has_sub_links + * @var bool $has_distinct_on + * @var bool $has_recursive + * @var bool $has_modifying_cte + * @var bool $has_for_update + * @var bool $has_row_security + * @var bool $is_return + * @var array $cte_list + * @var array $rtable + * @var array $rteperminfos + * @var FromExpr $jointree + * @var array $merge_action_list + * @var int $merge_target_relation + * @var Node $merge_join_condition + * @var array $target_list + * @var int $override + * @var OnConflictExpr $on_conflict + * @var array $returning_list + * @var array $group_clause + * @var bool $group_distinct + * @var array $grouping_sets + * @var Node $having_qual + * @var array $window_clause + * @var array $distinct_clause + * @var array $sort_clause + * @var Node $limit_offset + * @var Node $limit_count + * @var int $limit_option + * @var array $row_marks + * @var Node $set_operations + * @var array $constraint_deps + * @var array $with_check_options + * @var int $stmt_location + * @var int $stmt_len + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearHavingQual() : void + { + $this->having_qual = null; + } + + public function clearJointree() : void + { + $this->jointree = null; + } + + public function clearLimitCount() : void + { + $this->limit_count = null; + } + + public function clearLimitOffset() : void + { + $this->limit_offset = null; + } + + public function clearMergeJoinCondition() : void + { + $this->merge_join_condition = null; + } + + public function clearOnConflict() : void + { + $this->on_conflict = null; + } + + public function clearSetOperations() : void + { + $this->set_operations = null; + } + + public function clearUtilityStmt() : void + { + $this->utility_stmt = null; + } + + /** + * Generated from protobuf field bool can_set_tag = 3 [json_name = "canSetTag"];. + * + * @return bool + */ + public function getCanSetTag() + { + return $this->can_set_tag; + } + + /** + * Generated from protobuf field .pg_query.CmdType command_type = 1 [json_name = "commandType"];. + * + * @return int + */ + public function getCommandType() + { + return $this->command_type; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraint_deps = 39 [json_name = "constraintDeps"];. + * + * @return RepeatedField + */ + public function getConstraintDeps() + { + return $this->constraint_deps; + } + + /** + * Generated from protobuf field repeated .pg_query.Node cte_list = 16 [json_name = "cteList"];. + * + * @return RepeatedField + */ + public function getCteList() + { + return $this->cte_list; + } + + /** + * Generated from protobuf field repeated .pg_query.Node distinct_clause = 32 [json_name = "distinctClause"];. + * + * @return RepeatedField + */ + public function getDistinctClause() + { + return $this->distinct_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node group_clause = 27 [json_name = "groupClause"];. + * + * @return RepeatedField + */ + public function getGroupClause() + { + return $this->group_clause; + } + + /** + * Generated from protobuf field bool group_distinct = 28 [json_name = "groupDistinct"];. + * + * @return bool + */ + public function getGroupDistinct() + { + return $this->group_distinct; + } + + /** + * Generated from protobuf field repeated .pg_query.Node grouping_sets = 29 [json_name = "groupingSets"];. + * + * @return RepeatedField + */ + public function getGroupingSets() + { + return $this->grouping_sets; + } + + /** + * Generated from protobuf field bool has_aggs = 6 [json_name = "hasAggs"];. + * + * @return bool + */ + public function getHasAggs() + { + return $this->has_aggs; + } + + /** + * Generated from protobuf field bool has_distinct_on = 10 [json_name = "hasDistinctOn"];. + * + * @return bool + */ + public function getHasDistinctOn() + { + return $this->has_distinct_on; + } + + /** + * Generated from protobuf field bool has_for_update = 13 [json_name = "hasForUpdate"];. + * + * @return bool + */ + public function getHasForUpdate() + { + return $this->has_for_update; + } + + /** + * Generated from protobuf field bool has_modifying_cte = 12 [json_name = "hasModifyingCTE"];. + * + * @return bool + */ + public function getHasModifyingCte() + { + return $this->has_modifying_cte; + } + + /** + * Generated from protobuf field bool has_recursive = 11 [json_name = "hasRecursive"];. + * + * @return bool + */ + public function getHasRecursive() + { + return $this->has_recursive; + } + + /** + * Generated from protobuf field bool has_row_security = 14 [json_name = "hasRowSecurity"];. + * + * @return bool + */ + public function getHasRowSecurity() + { + return $this->has_row_security; + } + + /** + * Generated from protobuf field bool has_sub_links = 9 [json_name = "hasSubLinks"];. + * + * @return bool + */ + public function getHasSubLinks() + { + return $this->has_sub_links; + } + + /** + * Generated from protobuf field bool has_target_srfs = 8 [json_name = "hasTargetSRFs"];. + * + * @return bool + */ + public function getHasTargetSrfs() + { + return $this->has_target_srfs; + } + + /** + * Generated from protobuf field bool has_window_funcs = 7 [json_name = "hasWindowFuncs"];. + * + * @return bool + */ + public function getHasWindowFuncs() + { + return $this->has_window_funcs; + } + + /** + * Generated from protobuf field .pg_query.Node having_qual = 30 [json_name = "havingQual"];. + * + * @return null|Node + */ + public function getHavingQual() + { + return $this->having_qual; + } + + /** + * Generated from protobuf field bool is_return = 15 [json_name = "isReturn"];. + * + * @return bool + */ + public function getIsReturn() + { + return $this->is_return; + } + + /** + * Generated from protobuf field .pg_query.FromExpr jointree = 19 [json_name = "jointree"];. + * + * @return null|FromExpr + */ + public function getJointree() + { + return $this->jointree; + } + + /** + * Generated from protobuf field .pg_query.Node limit_count = 35 [json_name = "limitCount"];. + * + * @return null|Node + */ + public function getLimitCount() + { + return $this->limit_count; + } + + /** + * Generated from protobuf field .pg_query.Node limit_offset = 34 [json_name = "limitOffset"];. + * + * @return null|Node + */ + public function getLimitOffset() + { + return $this->limit_offset; + } + + /** + * Generated from protobuf field .pg_query.LimitOption limit_option = 36 [json_name = "limitOption"];. + * + * @return int + */ + public function getLimitOption() + { + return $this->limit_option; + } + + /** + * Generated from protobuf field repeated .pg_query.Node merge_action_list = 20 [json_name = "mergeActionList"];. + * + * @return RepeatedField + */ + public function getMergeActionList() + { + return $this->merge_action_list; + } + + /** + * Generated from protobuf field .pg_query.Node merge_join_condition = 22 [json_name = "mergeJoinCondition"];. + * + * @return null|Node + */ + public function getMergeJoinCondition() + { + return $this->merge_join_condition; + } + + /** + * Generated from protobuf field int32 merge_target_relation = 21 [json_name = "mergeTargetRelation"];. + * + * @return int + */ + public function getMergeTargetRelation() + { + return $this->merge_target_relation; + } + + /** + * Generated from protobuf field .pg_query.OnConflictExpr on_conflict = 25 [json_name = "onConflict"];. + * + * @return null|OnConflictExpr + */ + public function getOnConflict() + { + return $this->on_conflict; + } + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 24 [json_name = "override"];. + * + * @return int + */ + public function getOverride() + { + return $this->override; + } + + /** + * Generated from protobuf field .pg_query.QuerySource query_source = 2 [json_name = "querySource"];. + * + * @return int + */ + public function getQuerySource() + { + return $this->query_source; + } + + /** + * Generated from protobuf field int32 result_relation = 5 [json_name = "resultRelation"];. + * + * @return int + */ + public function getResultRelation() + { + return $this->result_relation; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 26 [json_name = "returningList"];. + * + * @return RepeatedField + */ + public function getReturningList() + { + return $this->returning_list; + } + + /** + * Generated from protobuf field repeated .pg_query.Node row_marks = 37 [json_name = "rowMarks"];. + * + * @return RepeatedField + */ + public function getRowMarks() + { + return $this->row_marks; + } + + /** + * Generated from protobuf field repeated .pg_query.Node rtable = 17 [json_name = "rtable"];. + * + * @return RepeatedField + */ + public function getRtable() + { + return $this->rtable; + } + + /** + * Generated from protobuf field repeated .pg_query.Node rteperminfos = 18 [json_name = "rteperminfos"];. + * + * @return RepeatedField + */ + public function getRteperminfos() + { + return $this->rteperminfos; + } + + /** + * Generated from protobuf field .pg_query.Node set_operations = 38 [json_name = "setOperations"];. + * + * @return null|Node + */ + public function getSetOperations() + { + return $this->set_operations; + } + + /** + * Generated from protobuf field repeated .pg_query.Node sort_clause = 33 [json_name = "sortClause"];. + * + * @return RepeatedField + */ + public function getSortClause() + { + return $this->sort_clause; + } + + /** + * Generated from protobuf field int32 stmt_len = 42 [json_name = "stmt_len"];. + * + * @return int + */ + public function getStmtLen() + { + return $this->stmt_len; + } + + /** + * Generated from protobuf field int32 stmt_location = 41 [json_name = "stmt_location"];. + * + * @return int + */ + public function getStmtLocation() + { + return $this->stmt_location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 23 [json_name = "targetList"];. + * + * @return RepeatedField + */ + public function getTargetList() + { + return $this->target_list; + } + + /** + * Generated from protobuf field .pg_query.Node utility_stmt = 4 [json_name = "utilityStmt"];. + * + * @return null|Node + */ + public function getUtilityStmt() + { + return $this->utility_stmt; + } + + /** + * Generated from protobuf field repeated .pg_query.Node window_clause = 31 [json_name = "windowClause"];. + * + * @return RepeatedField + */ + public function getWindowClause() + { + return $this->window_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node with_check_options = 40 [json_name = "withCheckOptions"];. + * + * @return RepeatedField + */ + public function getWithCheckOptions() + { + return $this->with_check_options; + } + + public function hasHavingQual() + { + return isset($this->having_qual); + } + + public function hasJointree() + { + return isset($this->jointree); + } + + public function hasLimitCount() + { + return isset($this->limit_count); + } + + public function hasLimitOffset() + { + return isset($this->limit_offset); + } + + public function hasMergeJoinCondition() + { + return isset($this->merge_join_condition); + } + + public function hasOnConflict() + { + return isset($this->on_conflict); + } + + public function hasSetOperations() + { + return isset($this->set_operations); + } + + public function hasUtilityStmt() + { + return isset($this->utility_stmt); + } + + /** + * Generated from protobuf field bool can_set_tag = 3 [json_name = "canSetTag"];. + * + * @param bool $var + * + * @return $this + */ + public function setCanSetTag($var) + { + GPBUtil::checkBool($var); + $this->can_set_tag = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CmdType command_type = 1 [json_name = "commandType"];. + * + * @param int $var + * + * @return $this + */ + public function setCommandType($var) + { + GPBUtil::checkEnum($var, CmdType::class); + $this->command_type = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node constraint_deps = 39 [json_name = "constraintDeps"];. + * + * @param array $var + * + * @return $this + */ + public function setConstraintDeps($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->constraint_deps = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node cte_list = 16 [json_name = "cteList"];. + * + * @param array $var + * + * @return $this + */ + public function setCteList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->cte_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node distinct_clause = 32 [json_name = "distinctClause"];. + * + * @param array $var + * + * @return $this + */ + public function setDistinctClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->distinct_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node group_clause = 27 [json_name = "groupClause"];. + * + * @param array $var + * + * @return $this + */ + public function setGroupClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->group_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool group_distinct = 28 [json_name = "groupDistinct"];. + * + * @param bool $var + * + * @return $this + */ + public function setGroupDistinct($var) + { + GPBUtil::checkBool($var); + $this->group_distinct = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node grouping_sets = 29 [json_name = "groupingSets"];. + * + * @param array $var + * + * @return $this + */ + public function setGroupingSets($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->grouping_sets = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool has_aggs = 6 [json_name = "hasAggs"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasAggs($var) + { + GPBUtil::checkBool($var); + $this->has_aggs = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_distinct_on = 10 [json_name = "hasDistinctOn"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasDistinctOn($var) + { + GPBUtil::checkBool($var); + $this->has_distinct_on = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_for_update = 13 [json_name = "hasForUpdate"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasForUpdate($var) + { + GPBUtil::checkBool($var); + $this->has_for_update = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_modifying_cte = 12 [json_name = "hasModifyingCTE"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasModifyingCte($var) + { + GPBUtil::checkBool($var); + $this->has_modifying_cte = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_recursive = 11 [json_name = "hasRecursive"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasRecursive($var) + { + GPBUtil::checkBool($var); + $this->has_recursive = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_row_security = 14 [json_name = "hasRowSecurity"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasRowSecurity($var) + { + GPBUtil::checkBool($var); + $this->has_row_security = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_sub_links = 9 [json_name = "hasSubLinks"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasSubLinks($var) + { + GPBUtil::checkBool($var); + $this->has_sub_links = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_target_srfs = 8 [json_name = "hasTargetSRFs"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasTargetSrfs($var) + { + GPBUtil::checkBool($var); + $this->has_target_srfs = $var; + + return $this; + } + + /** + * Generated from protobuf field bool has_window_funcs = 7 [json_name = "hasWindowFuncs"];. + * + * @param bool $var + * + * @return $this + */ + public function setHasWindowFuncs($var) + { + GPBUtil::checkBool($var); + $this->has_window_funcs = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node having_qual = 30 [json_name = "havingQual"];. + * + * @param Node $var + * + * @return $this + */ + public function setHavingQual($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->having_qual = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_return = 15 [json_name = "isReturn"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsReturn($var) + { + GPBUtil::checkBool($var); + $this->is_return = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.FromExpr jointree = 19 [json_name = "jointree"];. + * + * @param FromExpr $var + * + * @return $this + */ + public function setJointree($var) + { + GPBUtil::checkMessage($var, FromExpr::class); + $this->jointree = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node limit_count = 35 [json_name = "limitCount"];. + * + * @param Node $var + * + * @return $this + */ + public function setLimitCount($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->limit_count = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node limit_offset = 34 [json_name = "limitOffset"];. + * + * @param Node $var + * + * @return $this + */ + public function setLimitOffset($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->limit_offset = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LimitOption limit_option = 36 [json_name = "limitOption"];. + * + * @param int $var + * + * @return $this + */ + public function setLimitOption($var) + { + GPBUtil::checkEnum($var, LimitOption::class); + $this->limit_option = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node merge_action_list = 20 [json_name = "mergeActionList"];. + * + * @param array $var + * + * @return $this + */ + public function setMergeActionList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->merge_action_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node merge_join_condition = 22 [json_name = "mergeJoinCondition"];. + * + * @param Node $var + * + * @return $this + */ + public function setMergeJoinCondition($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->merge_join_condition = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 merge_target_relation = 21 [json_name = "mergeTargetRelation"];. + * + * @param int $var + * + * @return $this + */ + public function setMergeTargetRelation($var) + { + GPBUtil::checkInt32($var); + $this->merge_target_relation = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OnConflictExpr on_conflict = 25 [json_name = "onConflict"];. + * + * @param OnConflictExpr $var + * + * @return $this + */ + public function setOnConflict($var) + { + GPBUtil::checkMessage($var, OnConflictExpr::class); + $this->on_conflict = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.OverridingKind override = 24 [json_name = "override"];. + * + * @param int $var + * + * @return $this + */ + public function setOverride($var) + { + GPBUtil::checkEnum($var, OverridingKind::class); + $this->override = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.QuerySource query_source = 2 [json_name = "querySource"];. + * + * @param int $var + * + * @return $this + */ + public function setQuerySource($var) + { + GPBUtil::checkEnum($var, QuerySource::class); + $this->query_source = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 result_relation = 5 [json_name = "resultRelation"];. + * + * @param int $var + * + * @return $this + */ + public function setResultRelation($var) + { + GPBUtil::checkInt32($var); + $this->result_relation = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 26 [json_name = "returningList"];. + * + * @param array $var + * + * @return $this + */ + public function setReturningList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->returning_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node row_marks = 37 [json_name = "rowMarks"];. + * + * @param array $var + * + * @return $this + */ + public function setRowMarks($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->row_marks = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node rtable = 17 [json_name = "rtable"];. + * + * @param array $var + * + * @return $this + */ + public function setRtable($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->rtable = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node rteperminfos = 18 [json_name = "rteperminfos"];. + * + * @param array $var + * + * @return $this + */ + public function setRteperminfos($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->rteperminfos = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node set_operations = 38 [json_name = "setOperations"];. + * + * @param Node $var + * + * @return $this + */ + public function setSetOperations($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->set_operations = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node sort_clause = 33 [json_name = "sortClause"];. + * + * @param array $var + * + * @return $this + */ + public function setSortClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->sort_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 stmt_len = 42 [json_name = "stmt_len"];. + * + * @param int $var + * + * @return $this + */ + public function setStmtLen($var) + { + GPBUtil::checkInt32($var); + $this->stmt_len = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 stmt_location = 41 [json_name = "stmt_location"];. + * + * @param int $var + * + * @return $this + */ + public function setStmtLocation($var) + { + GPBUtil::checkInt32($var); + $this->stmt_location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 23 [json_name = "targetList"];. + * + * @param array $var + * + * @return $this + */ + public function setTargetList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->target_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node utility_stmt = 4 [json_name = "utilityStmt"];. + * + * @param Node $var + * + * @return $this + */ + public function setUtilityStmt($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->utility_stmt = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node window_clause = 31 [json_name = "windowClause"];. + * + * @param array $var + * + * @return $this + */ + public function setWindowClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->window_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node with_check_options = 40 [json_name = "withCheckOptions"];. + * + * @param array $var + * + * @return $this + */ + public function setWithCheckOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->with_check_options = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/QuerySource.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/QuerySource.php new file mode 100644 index 000000000..d5ba48afa --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/QuerySource.php @@ -0,0 +1,81 @@ +pg_query.QuerySource. + */ +class QuerySource +{ + /** + * Generated from protobuf enum QSRC_INSTEAD_RULE = 3;. + */ + public const QSRC_INSTEAD_RULE = 3; + + /** + * Generated from protobuf enum QSRC_NON_INSTEAD_RULE = 5;. + */ + public const QSRC_NON_INSTEAD_RULE = 5; + + /** + * Generated from protobuf enum QSRC_ORIGINAL = 1;. + */ + public const QSRC_ORIGINAL = 1; + + /** + * Generated from protobuf enum QSRC_PARSER = 2;. + */ + public const QSRC_PARSER = 2; + + /** + * Generated from protobuf enum QSRC_QUAL_INSTEAD_RULE = 4;. + */ + public const QSRC_QUAL_INSTEAD_RULE = 4; + + /** + * Generated from protobuf enum QUERY_SOURCE_UNDEFINED = 0;. + */ + public const QUERY_SOURCE_UNDEFINED = 0; + + private static $valueToName = [ + self::QUERY_SOURCE_UNDEFINED => 'QUERY_SOURCE_UNDEFINED', + self::QSRC_ORIGINAL => 'QSRC_ORIGINAL', + self::QSRC_PARSER => 'QSRC_PARSER', + self::QSRC_INSTEAD_RULE => 'QSRC_INSTEAD_RULE', + self::QSRC_QUAL_INSTEAD_RULE => 'QSRC_QUAL_INSTEAD_RULE', + self::QSRC_NON_INSTEAD_RULE => 'QSRC_NON_INSTEAD_RULE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RTEKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RTEKind.php new file mode 100644 index 000000000..a33935a13 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RTEKind.php @@ -0,0 +1,105 @@ +pg_query.RTEKind. + */ +class RTEKind +{ + /** + * Generated from protobuf enum RTE_CTE = 7;. + */ + public const RTE_CTE = 7; + + /** + * Generated from protobuf enum RTE_FUNCTION = 4;. + */ + public const RTE_FUNCTION = 4; + + /** + * Generated from protobuf enum RTE_JOIN = 3;. + */ + public const RTE_JOIN = 3; + + /** + * Generated from protobuf enum RTE_NAMEDTUPLESTORE = 8;. + */ + public const RTE_NAMEDTUPLESTORE = 8; + + /** + * Generated from protobuf enum RTE_RELATION = 1;. + */ + public const RTE_RELATION = 1; + + /** + * Generated from protobuf enum RTE_RESULT = 9;. + */ + public const RTE_RESULT = 9; + + /** + * Generated from protobuf enum RTE_SUBQUERY = 2;. + */ + public const RTE_SUBQUERY = 2; + + /** + * Generated from protobuf enum RTE_TABLEFUNC = 5;. + */ + public const RTE_TABLEFUNC = 5; + + /** + * Generated from protobuf enum RTE_VALUES = 6;. + */ + public const RTE_VALUES = 6; + + /** + * Generated from protobuf enum RTEKIND_UNDEFINED = 0;. + */ + public const RTEKIND_UNDEFINED = 0; + + private static $valueToName = [ + self::RTEKIND_UNDEFINED => 'RTEKIND_UNDEFINED', + self::RTE_RELATION => 'RTE_RELATION', + self::RTE_SUBQUERY => 'RTE_SUBQUERY', + self::RTE_JOIN => 'RTE_JOIN', + self::RTE_FUNCTION => 'RTE_FUNCTION', + self::RTE_TABLEFUNC => 'RTE_TABLEFUNC', + self::RTE_VALUES => 'RTE_VALUES', + self::RTE_CTE => 'RTE_CTE', + self::RTE_NAMEDTUPLESTORE => 'RTE_NAMEDTUPLESTORE', + self::RTE_RESULT => 'RTE_RESULT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RTEPermissionInfo.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RTEPermissionInfo.php new file mode 100644 index 000000000..a89679fc6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RTEPermissionInfo.php @@ -0,0 +1,249 @@ +pg_query.RTEPermissionInfo. + */ +class RTEPermissionInfo extends Message +{ + /** + * Generated from protobuf field uint32 check_as_user = 4 [json_name = "checkAsUser"];. + */ + protected $check_as_user = 0; + + /** + * Generated from protobuf field bool inh = 2 [json_name = "inh"];. + */ + protected $inh = false; + + /** + * Generated from protobuf field uint32 relid = 1 [json_name = "relid"];. + */ + protected $relid = 0; + + /** + * Generated from protobuf field uint64 required_perms = 3 [json_name = "requiredPerms"];. + */ + protected $required_perms = 0; + + /** + * Generated from protobuf field repeated uint64 inserted_cols = 6 [json_name = "insertedCols"];. + */ + private $inserted_cols; + + /** + * Generated from protobuf field repeated uint64 selected_cols = 5 [json_name = "selectedCols"];. + */ + private $selected_cols; + + /** + * Generated from protobuf field repeated uint64 updated_cols = 7 [json_name = "updatedCols"];. + */ + private $updated_cols; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $relid + * @var bool $inh + * @var int|string $required_perms + * @var int $check_as_user + * @var array|array $selected_cols + * @var array|array $inserted_cols + * @var array|array $updated_cols + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint32 check_as_user = 4 [json_name = "checkAsUser"];. + * + * @return int + */ + public function getCheckAsUser() + { + return $this->check_as_user; + } + + /** + * Generated from protobuf field bool inh = 2 [json_name = "inh"];. + * + * @return bool + */ + public function getInh() + { + return $this->inh; + } + + /** + * Generated from protobuf field repeated uint64 inserted_cols = 6 [json_name = "insertedCols"];. + * + * @return RepeatedField|RepeatedField + */ + public function getInsertedCols() + { + return $this->inserted_cols; + } + + /** + * Generated from protobuf field uint32 relid = 1 [json_name = "relid"];. + * + * @return int + */ + public function getRelid() + { + return $this->relid; + } + + /** + * Generated from protobuf field uint64 required_perms = 3 [json_name = "requiredPerms"];. + * + * @return int|string + */ + public function getRequiredPerms() + { + return $this->required_perms; + } + + /** + * Generated from protobuf field repeated uint64 selected_cols = 5 [json_name = "selectedCols"];. + * + * @return RepeatedField|RepeatedField + */ + public function getSelectedCols() + { + return $this->selected_cols; + } + + /** + * Generated from protobuf field repeated uint64 updated_cols = 7 [json_name = "updatedCols"];. + * + * @return RepeatedField|RepeatedField + */ + public function getUpdatedCols() + { + return $this->updated_cols; + } + + /** + * Generated from protobuf field uint32 check_as_user = 4 [json_name = "checkAsUser"];. + * + * @param int $var + * + * @return $this + */ + public function setCheckAsUser($var) + { + GPBUtil::checkUint32($var); + $this->check_as_user = $var; + + return $this; + } + + /** + * Generated from protobuf field bool inh = 2 [json_name = "inh"];. + * + * @param bool $var + * + * @return $this + */ + public function setInh($var) + { + GPBUtil::checkBool($var); + $this->inh = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated uint64 inserted_cols = 6 [json_name = "insertedCols"];. + * + * @param array|array $var + * + * @return $this + */ + public function setInsertedCols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::UINT64); + $this->inserted_cols = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 relid = 1 [json_name = "relid"];. + * + * @param int $var + * + * @return $this + */ + public function setRelid($var) + { + GPBUtil::checkUint32($var); + $this->relid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint64 required_perms = 3 [json_name = "requiredPerms"];. + * + * @param int|string $var + * + * @return $this + */ + public function setRequiredPerms($var) + { + GPBUtil::checkUint64($var); + $this->required_perms = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated uint64 selected_cols = 5 [json_name = "selectedCols"];. + * + * @param array|array $var + * + * @return $this + */ + public function setSelectedCols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::UINT64); + $this->selected_cols = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated uint64 updated_cols = 7 [json_name = "updatedCols"];. + * + * @param array|array $var + * + * @return $this + */ + public function setUpdatedCols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::UINT64); + $this->updated_cols = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeFunction.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeFunction.php new file mode 100644 index 000000000..f5d37c877 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeFunction.php @@ -0,0 +1,228 @@ +pg_query.RangeFunction. + */ +class RangeFunction extends Message +{ + /** + * Generated from protobuf field .pg_query.Alias alias = 5 [json_name = "alias"];. + */ + protected $alias; + + /** + * Generated from protobuf field bool is_rowsfrom = 3 [json_name = "is_rowsfrom"];. + */ + protected $is_rowsfrom = false; + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + */ + protected $lateral = false; + + /** + * Generated from protobuf field bool ordinality = 2 [json_name = "ordinality"];. + */ + protected $ordinality = false; + + /** + * Generated from protobuf field repeated .pg_query.Node coldeflist = 6 [json_name = "coldeflist"];. + */ + private $coldeflist; + + /** + * Generated from protobuf field repeated .pg_query.Node functions = 4 [json_name = "functions"];. + */ + private $functions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $lateral + * @var bool $ordinality + * @var bool $is_rowsfrom + * @var array $functions + * @var Alias $alias + * @var array $coldeflist + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAlias() : void + { + $this->alias = null; + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 5 [json_name = "alias"];. + * + * @return null|Alias + */ + public function getAlias() + { + return $this->alias; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coldeflist = 6 [json_name = "coldeflist"];. + * + * @return RepeatedField + */ + public function getColdeflist() + { + return $this->coldeflist; + } + + /** + * Generated from protobuf field repeated .pg_query.Node functions = 4 [json_name = "functions"];. + * + * @return RepeatedField + */ + public function getFunctions() + { + return $this->functions; + } + + /** + * Generated from protobuf field bool is_rowsfrom = 3 [json_name = "is_rowsfrom"];. + * + * @return bool + */ + public function getIsRowsfrom() + { + return $this->is_rowsfrom; + } + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + * + * @return bool + */ + public function getLateral() + { + return $this->lateral; + } + + /** + * Generated from protobuf field bool ordinality = 2 [json_name = "ordinality"];. + * + * @return bool + */ + public function getOrdinality() + { + return $this->ordinality; + } + + public function hasAlias() + { + return isset($this->alias); + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 5 [json_name = "alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->alias = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coldeflist = 6 [json_name = "coldeflist"];. + * + * @param array $var + * + * @return $this + */ + public function setColdeflist($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->coldeflist = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node functions = 4 [json_name = "functions"];. + * + * @param array $var + * + * @return $this + */ + public function setFunctions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->functions = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool is_rowsfrom = 3 [json_name = "is_rowsfrom"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsRowsfrom($var) + { + GPBUtil::checkBool($var); + $this->is_rowsfrom = $var; + + return $this; + } + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + * + * @param bool $var + * + * @return $this + */ + public function setLateral($var) + { + GPBUtil::checkBool($var); + $this->lateral = $var; + + return $this; + } + + /** + * Generated from protobuf field bool ordinality = 2 [json_name = "ordinality"];. + * + * @param bool $var + * + * @return $this + */ + public function setOrdinality($var) + { + GPBUtil::checkBool($var); + $this->ordinality = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeSubselect.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeSubselect.php new file mode 100644 index 000000000..c86851094 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeSubselect.php @@ -0,0 +1,144 @@ +pg_query.RangeSubselect. + */ +class RangeSubselect extends Message +{ + /** + * Generated from protobuf field .pg_query.Alias alias = 3 [json_name = "alias"];. + */ + protected $alias; + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + */ + protected $lateral = false; + + /** + * Generated from protobuf field .pg_query.Node subquery = 2 [json_name = "subquery"];. + */ + protected $subquery; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $lateral + * @var Node $subquery + * @var Alias $alias + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAlias() : void + { + $this->alias = null; + } + + public function clearSubquery() : void + { + $this->subquery = null; + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 3 [json_name = "alias"];. + * + * @return null|Alias + */ + public function getAlias() + { + return $this->alias; + } + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + * + * @return bool + */ + public function getLateral() + { + return $this->lateral; + } + + /** + * Generated from protobuf field .pg_query.Node subquery = 2 [json_name = "subquery"];. + * + * @return null|Node + */ + public function getSubquery() + { + return $this->subquery; + } + + public function hasAlias() + { + return isset($this->alias); + } + + public function hasSubquery() + { + return isset($this->subquery); + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 3 [json_name = "alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->alias = $var; + + return $this; + } + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + * + * @param bool $var + * + * @return $this + */ + public function setLateral($var) + { + GPBUtil::checkBool($var); + $this->lateral = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node subquery = 2 [json_name = "subquery"];. + * + * @param Node $var + * + * @return $this + */ + public function setSubquery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->subquery = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableFunc.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableFunc.php new file mode 100644 index 000000000..b6b32dd8b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableFunc.php @@ -0,0 +1,279 @@ +pg_query.RangeTableFunc. + */ +class RangeTableFunc extends Message +{ + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + */ + protected $alias; + + /** + * Generated from protobuf field .pg_query.Node docexpr = 2 [json_name = "docexpr"];. + */ + protected $docexpr; + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + */ + protected $lateral = false; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node rowexpr = 3 [json_name = "rowexpr"];. + */ + protected $rowexpr; + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 5 [json_name = "columns"];. + */ + private $columns; + + /** + * Generated from protobuf field repeated .pg_query.Node namespaces = 4 [json_name = "namespaces"];. + */ + private $namespaces; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $lateral + * @var Node $docexpr + * @var Node $rowexpr + * @var array $namespaces + * @var array $columns + * @var Alias $alias + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAlias() : void + { + $this->alias = null; + } + + public function clearDocexpr() : void + { + $this->docexpr = null; + } + + public function clearRowexpr() : void + { + $this->rowexpr = null; + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + * + * @return null|Alias + */ + public function getAlias() + { + return $this->alias; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 5 [json_name = "columns"];. + * + * @return RepeatedField + */ + public function getColumns() + { + return $this->columns; + } + + /** + * Generated from protobuf field .pg_query.Node docexpr = 2 [json_name = "docexpr"];. + * + * @return null|Node + */ + public function getDocexpr() + { + return $this->docexpr; + } + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + * + * @return bool + */ + public function getLateral() + { + return $this->lateral; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node namespaces = 4 [json_name = "namespaces"];. + * + * @return RepeatedField + */ + public function getNamespaces() + { + return $this->namespaces; + } + + /** + * Generated from protobuf field .pg_query.Node rowexpr = 3 [json_name = "rowexpr"];. + * + * @return null|Node + */ + public function getRowexpr() + { + return $this->rowexpr; + } + + public function hasAlias() + { + return isset($this->alias); + } + + public function hasDocexpr() + { + return isset($this->docexpr); + } + + public function hasRowexpr() + { + return isset($this->rowexpr); + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->alias = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node columns = 5 [json_name = "columns"];. + * + * @param array $var + * + * @return $this + */ + public function setColumns($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->columns = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node docexpr = 2 [json_name = "docexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setDocexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->docexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field bool lateral = 1 [json_name = "lateral"];. + * + * @param bool $var + * + * @return $this + */ + public function setLateral($var) + { + GPBUtil::checkBool($var); + $this->lateral = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node namespaces = 4 [json_name = "namespaces"];. + * + * @param array $var + * + * @return $this + */ + public function setNamespaces($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->namespaces = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node rowexpr = 3 [json_name = "rowexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setRowexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->rowexpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableFuncCol.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableFuncCol.php new file mode 100644 index 000000000..8c8a71dcc --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableFuncCol.php @@ -0,0 +1,278 @@ +pg_query.RangeTableFuncCol. + */ +class RangeTableFuncCol extends Message +{ + /** + * Generated from protobuf field .pg_query.Node coldefexpr = 6 [json_name = "coldefexpr"];. + */ + protected $coldefexpr; + + /** + * Generated from protobuf field .pg_query.Node colexpr = 5 [json_name = "colexpr"];. + */ + protected $colexpr; + + /** + * Generated from protobuf field string colname = 1 [json_name = "colname"];. + */ + protected $colname = ''; + + /** + * Generated from protobuf field bool for_ordinality = 3 [json_name = "for_ordinality"];. + */ + protected $for_ordinality = false; + + /** + * Generated from protobuf field bool is_not_null = 4 [json_name = "is_not_null"];. + */ + protected $is_not_null = false; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + */ + protected $type_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $colname + * @var TypeName $type_name + * @var bool $for_ordinality + * @var bool $is_not_null + * @var Node $colexpr + * @var Node $coldefexpr + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearColdefexpr() : void + { + $this->coldefexpr = null; + } + + public function clearColexpr() : void + { + $this->colexpr = null; + } + + public function clearTypeName() : void + { + $this->type_name = null; + } + + /** + * Generated from protobuf field .pg_query.Node coldefexpr = 6 [json_name = "coldefexpr"];. + * + * @return null|Node + */ + public function getColdefexpr() + { + return $this->coldefexpr; + } + + /** + * Generated from protobuf field .pg_query.Node colexpr = 5 [json_name = "colexpr"];. + * + * @return null|Node + */ + public function getColexpr() + { + return $this->colexpr; + } + + /** + * Generated from protobuf field string colname = 1 [json_name = "colname"];. + * + * @return string + */ + public function getColname() + { + return $this->colname; + } + + /** + * Generated from protobuf field bool for_ordinality = 3 [json_name = "for_ordinality"];. + * + * @return bool + */ + public function getForOrdinality() + { + return $this->for_ordinality; + } + + /** + * Generated from protobuf field bool is_not_null = 4 [json_name = "is_not_null"];. + * + * @return bool + */ + public function getIsNotNull() + { + return $this->is_not_null; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->type_name; + } + + public function hasColdefexpr() + { + return isset($this->coldefexpr); + } + + public function hasColexpr() + { + return isset($this->colexpr); + } + + public function hasTypeName() + { + return isset($this->type_name); + } + + /** + * Generated from protobuf field .pg_query.Node coldefexpr = 6 [json_name = "coldefexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setColdefexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->coldefexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node colexpr = 5 [json_name = "colexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setColexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->colexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field string colname = 1 [json_name = "colname"];. + * + * @param string $var + * + * @return $this + */ + public function setColname($var) + { + GPBUtil::checkString($var, true); + $this->colname = $var; + + return $this; + } + + /** + * Generated from protobuf field bool for_ordinality = 3 [json_name = "for_ordinality"];. + * + * @param bool $var + * + * @return $this + */ + public function setForOrdinality($var) + { + GPBUtil::checkBool($var); + $this->for_ordinality = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_not_null = 4 [json_name = "is_not_null"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsNotNull($var) + { + GPBUtil::checkBool($var); + $this->is_not_null = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->type_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableSample.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableSample.php new file mode 100644 index 000000000..e30ea0d21 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTableSample.php @@ -0,0 +1,207 @@ +pg_query.RangeTableSample. + */ +class RangeTableSample extends Message +{ + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field .pg_query.Node repeatable = 4 [json_name = "repeatable"];. + */ + protected $repeatable; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node method = 2 [json_name = "method"];. + */ + private $method; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $relation + * @var array $method + * @var array $args + * @var Node $repeatable + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearRepeatable() : void + { + $this->repeatable = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node method = 2 [json_name = "method"];. + * + * @return RepeatedField + */ + public function getMethod() + { + return $this->method; + } + + /** + * Generated from protobuf field .pg_query.Node relation = 1 [json_name = "relation"];. + * + * @return null|Node + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field .pg_query.Node repeatable = 4 [json_name = "repeatable"];. + * + * @return null|Node + */ + public function getRepeatable() + { + return $this->repeatable; + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasRepeatable() + { + return isset($this->repeatable); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node method = 2 [json_name = "method"];. + * + * @param array $var + * + * @return $this + */ + public function setMethod($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->method = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node relation = 1 [json_name = "relation"];. + * + * @param Node $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node repeatable = 4 [json_name = "repeatable"];. + * + * @param Node $var + * + * @return $this + */ + public function setRepeatable($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->repeatable = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblEntry.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblEntry.php new file mode 100644 index 000000000..c5f691632 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblEntry.php @@ -0,0 +1,1084 @@ +pg_query.RangeTblEntry. + */ +class RangeTblEntry extends Message +{ + /** + * Generated from protobuf field .pg_query.Alias alias = 1 [json_name = "alias"];. + */ + protected $alias; + + /** + * Generated from protobuf field uint32 ctelevelsup = 23 [json_name = "ctelevelsup"];. + */ + protected $ctelevelsup = 0; + + /** + * Generated from protobuf field string ctename = 22 [json_name = "ctename"];. + */ + protected $ctename = ''; + + /** + * Generated from protobuf field string enrname = 28 [json_name = "enrname"];. + */ + protected $enrname = ''; + + /** + * Generated from protobuf field double enrtuples = 29 [json_name = "enrtuples"];. + */ + protected $enrtuples = 0.0; + + /** + * Generated from protobuf field .pg_query.Alias eref = 2 [json_name = "eref"];. + */ + protected $eref; + + /** + * Generated from protobuf field bool funcordinality = 19 [json_name = "funcordinality"];. + */ + protected $funcordinality = false; + + /** + * Generated from protobuf field bool in_from_cl = 31 [json_name = "inFromCl"];. + */ + protected $in_from_cl = false; + + /** + * Generated from protobuf field bool inh = 5 [json_name = "inh"];. + */ + protected $inh = false; + + /** + * Generated from protobuf field .pg_query.Alias join_using_alias = 17 [json_name = "join_using_alias"];. + */ + protected $join_using_alias; + + /** + * Generated from protobuf field int32 joinmergedcols = 13 [json_name = "joinmergedcols"];. + */ + protected $joinmergedcols = 0; + + /** + * Generated from protobuf field .pg_query.JoinType jointype = 12 [json_name = "jointype"];. + */ + protected $jointype = 0; + + /** + * Generated from protobuf field bool lateral = 30 [json_name = "lateral"];. + */ + protected $lateral = false; + + /** + * Generated from protobuf field uint32 perminfoindex = 8 [json_name = "perminfoindex"];. + */ + protected $perminfoindex = 0; + + /** + * Generated from protobuf field uint32 relid = 4 [json_name = "relid"];. + */ + protected $relid = 0; + + /** + * Generated from protobuf field string relkind = 6 [json_name = "relkind"];. + */ + protected $relkind = ''; + + /** + * Generated from protobuf field int32 rellockmode = 7 [json_name = "rellockmode"];. + */ + protected $rellockmode = 0; + + /** + * Generated from protobuf field .pg_query.RTEKind rtekind = 3 [json_name = "rtekind"];. + */ + protected $rtekind = 0; + + /** + * Generated from protobuf field bool security_barrier = 11 [json_name = "security_barrier"];. + */ + protected $security_barrier = false; + + /** + * Generated from protobuf field bool self_reference = 24 [json_name = "self_reference"];. + */ + protected $self_reference = false; + + /** + * Generated from protobuf field .pg_query.Query subquery = 10 [json_name = "subquery"];. + */ + protected $subquery; + + /** + * Generated from protobuf field .pg_query.TableFunc tablefunc = 20 [json_name = "tablefunc"];. + */ + protected $tablefunc; + + /** + * Generated from protobuf field .pg_query.TableSampleClause tablesample = 9 [json_name = "tablesample"];. + */ + protected $tablesample; + + /** + * Generated from protobuf field repeated .pg_query.Node colcollations = 27 [json_name = "colcollations"];. + */ + private $colcollations; + + /** + * Generated from protobuf field repeated .pg_query.Node coltypes = 25 [json_name = "coltypes"];. + */ + private $coltypes; + + /** + * Generated from protobuf field repeated .pg_query.Node coltypmods = 26 [json_name = "coltypmods"];. + */ + private $coltypmods; + + /** + * Generated from protobuf field repeated .pg_query.Node functions = 18 [json_name = "functions"];. + */ + private $functions; + + /** + * Generated from protobuf field repeated .pg_query.Node joinaliasvars = 14 [json_name = "joinaliasvars"];. + */ + private $joinaliasvars; + + /** + * Generated from protobuf field repeated .pg_query.Node joinleftcols = 15 [json_name = "joinleftcols"];. + */ + private $joinleftcols; + + /** + * Generated from protobuf field repeated .pg_query.Node joinrightcols = 16 [json_name = "joinrightcols"];. + */ + private $joinrightcols; + + /** + * Generated from protobuf field repeated .pg_query.Node security_quals = 32 [json_name = "securityQuals"];. + */ + private $security_quals; + + /** + * Generated from protobuf field repeated .pg_query.Node values_lists = 21 [json_name = "values_lists"];. + */ + private $values_lists; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Alias $alias + * @var Alias $eref + * @var int $rtekind + * @var int $relid + * @var bool $inh + * @var string $relkind + * @var int $rellockmode + * @var int $perminfoindex + * @var TableSampleClause $tablesample + * @var Query $subquery + * @var bool $security_barrier + * @var int $jointype + * @var int $joinmergedcols + * @var array $joinaliasvars + * @var array $joinleftcols + * @var array $joinrightcols + * @var Alias $join_using_alias + * @var array $functions + * @var bool $funcordinality + * @var TableFunc $tablefunc + * @var array $values_lists + * @var string $ctename + * @var int $ctelevelsup + * @var bool $self_reference + * @var array $coltypes + * @var array $coltypmods + * @var array $colcollations + * @var string $enrname + * @var float $enrtuples + * @var bool $lateral + * @var bool $in_from_cl + * @var array $security_quals + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAlias() : void + { + $this->alias = null; + } + + public function clearEref() : void + { + $this->eref = null; + } + + public function clearJoinUsingAlias() : void + { + $this->join_using_alias = null; + } + + public function clearSubquery() : void + { + $this->subquery = null; + } + + public function clearTablefunc() : void + { + $this->tablefunc = null; + } + + public function clearTablesample() : void + { + $this->tablesample = null; + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 1 [json_name = "alias"];. + * + * @return null|Alias + */ + public function getAlias() + { + return $this->alias; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colcollations = 27 [json_name = "colcollations"];. + * + * @return RepeatedField + */ + public function getColcollations() + { + return $this->colcollations; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coltypes = 25 [json_name = "coltypes"];. + * + * @return RepeatedField + */ + public function getColtypes() + { + return $this->coltypes; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coltypmods = 26 [json_name = "coltypmods"];. + * + * @return RepeatedField + */ + public function getColtypmods() + { + return $this->coltypmods; + } + + /** + * Generated from protobuf field uint32 ctelevelsup = 23 [json_name = "ctelevelsup"];. + * + * @return int + */ + public function getCtelevelsup() + { + return $this->ctelevelsup; + } + + /** + * Generated from protobuf field string ctename = 22 [json_name = "ctename"];. + * + * @return string + */ + public function getCtename() + { + return $this->ctename; + } + + /** + * Generated from protobuf field string enrname = 28 [json_name = "enrname"];. + * + * @return string + */ + public function getEnrname() + { + return $this->enrname; + } + + /** + * Generated from protobuf field double enrtuples = 29 [json_name = "enrtuples"];. + * + * @return float + */ + public function getEnrtuples() + { + return $this->enrtuples; + } + + /** + * Generated from protobuf field .pg_query.Alias eref = 2 [json_name = "eref"];. + * + * @return null|Alias + */ + public function getEref() + { + return $this->eref; + } + + /** + * Generated from protobuf field bool funcordinality = 19 [json_name = "funcordinality"];. + * + * @return bool + */ + public function getFuncordinality() + { + return $this->funcordinality; + } + + /** + * Generated from protobuf field repeated .pg_query.Node functions = 18 [json_name = "functions"];. + * + * @return RepeatedField + */ + public function getFunctions() + { + return $this->functions; + } + + /** + * Generated from protobuf field bool in_from_cl = 31 [json_name = "inFromCl"];. + * + * @return bool + */ + public function getInFromCl() + { + return $this->in_from_cl; + } + + /** + * Generated from protobuf field bool inh = 5 [json_name = "inh"];. + * + * @return bool + */ + public function getInh() + { + return $this->inh; + } + + /** + * Generated from protobuf field repeated .pg_query.Node joinaliasvars = 14 [json_name = "joinaliasvars"];. + * + * @return RepeatedField + */ + public function getJoinaliasvars() + { + return $this->joinaliasvars; + } + + /** + * Generated from protobuf field repeated .pg_query.Node joinleftcols = 15 [json_name = "joinleftcols"];. + * + * @return RepeatedField + */ + public function getJoinleftcols() + { + return $this->joinleftcols; + } + + /** + * Generated from protobuf field int32 joinmergedcols = 13 [json_name = "joinmergedcols"];. + * + * @return int + */ + public function getJoinmergedcols() + { + return $this->joinmergedcols; + } + + /** + * Generated from protobuf field repeated .pg_query.Node joinrightcols = 16 [json_name = "joinrightcols"];. + * + * @return RepeatedField + */ + public function getJoinrightcols() + { + return $this->joinrightcols; + } + + /** + * Generated from protobuf field .pg_query.JoinType jointype = 12 [json_name = "jointype"];. + * + * @return int + */ + public function getJointype() + { + return $this->jointype; + } + + /** + * Generated from protobuf field .pg_query.Alias join_using_alias = 17 [json_name = "join_using_alias"];. + * + * @return null|Alias + */ + public function getJoinUsingAlias() + { + return $this->join_using_alias; + } + + /** + * Generated from protobuf field bool lateral = 30 [json_name = "lateral"];. + * + * @return bool + */ + public function getLateral() + { + return $this->lateral; + } + + /** + * Generated from protobuf field uint32 perminfoindex = 8 [json_name = "perminfoindex"];. + * + * @return int + */ + public function getPerminfoindex() + { + return $this->perminfoindex; + } + + /** + * Generated from protobuf field uint32 relid = 4 [json_name = "relid"];. + * + * @return int + */ + public function getRelid() + { + return $this->relid; + } + + /** + * Generated from protobuf field string relkind = 6 [json_name = "relkind"];. + * + * @return string + */ + public function getRelkind() + { + return $this->relkind; + } + + /** + * Generated from protobuf field int32 rellockmode = 7 [json_name = "rellockmode"];. + * + * @return int + */ + public function getRellockmode() + { + return $this->rellockmode; + } + + /** + * Generated from protobuf field .pg_query.RTEKind rtekind = 3 [json_name = "rtekind"];. + * + * @return int + */ + public function getRtekind() + { + return $this->rtekind; + } + + /** + * Generated from protobuf field bool security_barrier = 11 [json_name = "security_barrier"];. + * + * @return bool + */ + public function getSecurityBarrier() + { + return $this->security_barrier; + } + + /** + * Generated from protobuf field repeated .pg_query.Node security_quals = 32 [json_name = "securityQuals"];. + * + * @return RepeatedField + */ + public function getSecurityQuals() + { + return $this->security_quals; + } + + /** + * Generated from protobuf field bool self_reference = 24 [json_name = "self_reference"];. + * + * @return bool + */ + public function getSelfReference() + { + return $this->self_reference; + } + + /** + * Generated from protobuf field .pg_query.Query subquery = 10 [json_name = "subquery"];. + * + * @return null|Query + */ + public function getSubquery() + { + return $this->subquery; + } + + /** + * Generated from protobuf field .pg_query.TableFunc tablefunc = 20 [json_name = "tablefunc"];. + * + * @return null|TableFunc + */ + public function getTablefunc() + { + return $this->tablefunc; + } + + /** + * Generated from protobuf field .pg_query.TableSampleClause tablesample = 9 [json_name = "tablesample"];. + * + * @return null|TableSampleClause + */ + public function getTablesample() + { + return $this->tablesample; + } + + /** + * Generated from protobuf field repeated .pg_query.Node values_lists = 21 [json_name = "values_lists"];. + * + * @return RepeatedField + */ + public function getValuesLists() + { + return $this->values_lists; + } + + public function hasAlias() + { + return isset($this->alias); + } + + public function hasEref() + { + return isset($this->eref); + } + + public function hasJoinUsingAlias() + { + return isset($this->join_using_alias); + } + + public function hasSubquery() + { + return isset($this->subquery); + } + + public function hasTablefunc() + { + return isset($this->tablefunc); + } + + public function hasTablesample() + { + return isset($this->tablesample); + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 1 [json_name = "alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->alias = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colcollations = 27 [json_name = "colcollations"];. + * + * @param array $var + * + * @return $this + */ + public function setColcollations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->colcollations = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coltypes = 25 [json_name = "coltypes"];. + * + * @param array $var + * + * @return $this + */ + public function setColtypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->coltypes = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coltypmods = 26 [json_name = "coltypmods"];. + * + * @param array $var + * + * @return $this + */ + public function setColtypmods($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->coltypmods = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 ctelevelsup = 23 [json_name = "ctelevelsup"];. + * + * @param int $var + * + * @return $this + */ + public function setCtelevelsup($var) + { + GPBUtil::checkUint32($var); + $this->ctelevelsup = $var; + + return $this; + } + + /** + * Generated from protobuf field string ctename = 22 [json_name = "ctename"];. + * + * @param string $var + * + * @return $this + */ + public function setCtename($var) + { + GPBUtil::checkString($var, true); + $this->ctename = $var; + + return $this; + } + + /** + * Generated from protobuf field string enrname = 28 [json_name = "enrname"];. + * + * @param string $var + * + * @return $this + */ + public function setEnrname($var) + { + GPBUtil::checkString($var, true); + $this->enrname = $var; + + return $this; + } + + /** + * Generated from protobuf field double enrtuples = 29 [json_name = "enrtuples"];. + * + * @param float $var + * + * @return $this + */ + public function setEnrtuples($var) + { + GPBUtil::checkDouble($var); + $this->enrtuples = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Alias eref = 2 [json_name = "eref"];. + * + * @param Alias $var + * + * @return $this + */ + public function setEref($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->eref = $var; + + return $this; + } + + /** + * Generated from protobuf field bool funcordinality = 19 [json_name = "funcordinality"];. + * + * @param bool $var + * + * @return $this + */ + public function setFuncordinality($var) + { + GPBUtil::checkBool($var); + $this->funcordinality = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node functions = 18 [json_name = "functions"];. + * + * @param array $var + * + * @return $this + */ + public function setFunctions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->functions = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool in_from_cl = 31 [json_name = "inFromCl"];. + * + * @param bool $var + * + * @return $this + */ + public function setInFromCl($var) + { + GPBUtil::checkBool($var); + $this->in_from_cl = $var; + + return $this; + } + + /** + * Generated from protobuf field bool inh = 5 [json_name = "inh"];. + * + * @param bool $var + * + * @return $this + */ + public function setInh($var) + { + GPBUtil::checkBool($var); + $this->inh = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node joinaliasvars = 14 [json_name = "joinaliasvars"];. + * + * @param array $var + * + * @return $this + */ + public function setJoinaliasvars($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->joinaliasvars = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node joinleftcols = 15 [json_name = "joinleftcols"];. + * + * @param array $var + * + * @return $this + */ + public function setJoinleftcols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->joinleftcols = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 joinmergedcols = 13 [json_name = "joinmergedcols"];. + * + * @param int $var + * + * @return $this + */ + public function setJoinmergedcols($var) + { + GPBUtil::checkInt32($var); + $this->joinmergedcols = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node joinrightcols = 16 [json_name = "joinrightcols"];. + * + * @param array $var + * + * @return $this + */ + public function setJoinrightcols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->joinrightcols = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.JoinType jointype = 12 [json_name = "jointype"];. + * + * @param int $var + * + * @return $this + */ + public function setJointype($var) + { + GPBUtil::checkEnum($var, JoinType::class); + $this->jointype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Alias join_using_alias = 17 [json_name = "join_using_alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setJoinUsingAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->join_using_alias = $var; + + return $this; + } + + /** + * Generated from protobuf field bool lateral = 30 [json_name = "lateral"];. + * + * @param bool $var + * + * @return $this + */ + public function setLateral($var) + { + GPBUtil::checkBool($var); + $this->lateral = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 perminfoindex = 8 [json_name = "perminfoindex"];. + * + * @param int $var + * + * @return $this + */ + public function setPerminfoindex($var) + { + GPBUtil::checkUint32($var); + $this->perminfoindex = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 relid = 4 [json_name = "relid"];. + * + * @param int $var + * + * @return $this + */ + public function setRelid($var) + { + GPBUtil::checkUint32($var); + $this->relid = $var; + + return $this; + } + + /** + * Generated from protobuf field string relkind = 6 [json_name = "relkind"];. + * + * @param string $var + * + * @return $this + */ + public function setRelkind($var) + { + GPBUtil::checkString($var, true); + $this->relkind = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 rellockmode = 7 [json_name = "rellockmode"];. + * + * @param int $var + * + * @return $this + */ + public function setRellockmode($var) + { + GPBUtil::checkInt32($var); + $this->rellockmode = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RTEKind rtekind = 3 [json_name = "rtekind"];. + * + * @param int $var + * + * @return $this + */ + public function setRtekind($var) + { + GPBUtil::checkEnum($var, RTEKind::class); + $this->rtekind = $var; + + return $this; + } + + /** + * Generated from protobuf field bool security_barrier = 11 [json_name = "security_barrier"];. + * + * @param bool $var + * + * @return $this + */ + public function setSecurityBarrier($var) + { + GPBUtil::checkBool($var); + $this->security_barrier = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node security_quals = 32 [json_name = "securityQuals"];. + * + * @param array $var + * + * @return $this + */ + public function setSecurityQuals($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->security_quals = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool self_reference = 24 [json_name = "self_reference"];. + * + * @param bool $var + * + * @return $this + */ + public function setSelfReference($var) + { + GPBUtil::checkBool($var); + $this->self_reference = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Query subquery = 10 [json_name = "subquery"];. + * + * @param Query $var + * + * @return $this + */ + public function setSubquery($var) + { + GPBUtil::checkMessage($var, Query::class); + $this->subquery = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TableFunc tablefunc = 20 [json_name = "tablefunc"];. + * + * @param TableFunc $var + * + * @return $this + */ + public function setTablefunc($var) + { + GPBUtil::checkMessage($var, TableFunc::class); + $this->tablefunc = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TableSampleClause tablesample = 9 [json_name = "tablesample"];. + * + * @param TableSampleClause $var + * + * @return $this + */ + public function setTablesample($var) + { + GPBUtil::checkMessage($var, TableSampleClause::class); + $this->tablesample = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node values_lists = 21 [json_name = "values_lists"];. + * + * @param array $var + * + * @return $this + */ + public function setValuesLists($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->values_lists = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblFunction.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblFunction.php new file mode 100644 index 000000000..440b2937f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblFunction.php @@ -0,0 +1,259 @@ +pg_query.RangeTblFunction. + */ +class RangeTblFunction extends Message +{ + /** + * Generated from protobuf field int32 funccolcount = 2 [json_name = "funccolcount"];. + */ + protected $funccolcount = 0; + + /** + * Generated from protobuf field .pg_query.Node funcexpr = 1 [json_name = "funcexpr"];. + */ + protected $funcexpr; + + /** + * Generated from protobuf field repeated .pg_query.Node funccolcollations = 6 [json_name = "funccolcollations"];. + */ + private $funccolcollations; + + /** + * Generated from protobuf field repeated .pg_query.Node funccolnames = 3 [json_name = "funccolnames"];. + */ + private $funccolnames; + + /** + * Generated from protobuf field repeated .pg_query.Node funccoltypes = 4 [json_name = "funccoltypes"];. + */ + private $funccoltypes; + + /** + * Generated from protobuf field repeated .pg_query.Node funccoltypmods = 5 [json_name = "funccoltypmods"];. + */ + private $funccoltypmods; + + /** + * Generated from protobuf field repeated uint64 funcparams = 7 [json_name = "funcparams"];. + */ + private $funcparams; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $funcexpr + * @var int $funccolcount + * @var array $funccolnames + * @var array $funccoltypes + * @var array $funccoltypmods + * @var array $funccolcollations + * @var array|array $funcparams + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearFuncexpr() : void + { + $this->funcexpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funccolcollations = 6 [json_name = "funccolcollations"];. + * + * @return RepeatedField + */ + public function getFunccolcollations() + { + return $this->funccolcollations; + } + + /** + * Generated from protobuf field int32 funccolcount = 2 [json_name = "funccolcount"];. + * + * @return int + */ + public function getFunccolcount() + { + return $this->funccolcount; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funccolnames = 3 [json_name = "funccolnames"];. + * + * @return RepeatedField + */ + public function getFunccolnames() + { + return $this->funccolnames; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funccoltypes = 4 [json_name = "funccoltypes"];. + * + * @return RepeatedField + */ + public function getFunccoltypes() + { + return $this->funccoltypes; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funccoltypmods = 5 [json_name = "funccoltypmods"];. + * + * @return RepeatedField + */ + public function getFunccoltypmods() + { + return $this->funccoltypmods; + } + + /** + * Generated from protobuf field .pg_query.Node funcexpr = 1 [json_name = "funcexpr"];. + * + * @return null|Node + */ + public function getFuncexpr() + { + return $this->funcexpr; + } + + /** + * Generated from protobuf field repeated uint64 funcparams = 7 [json_name = "funcparams"];. + * + * @return RepeatedField|RepeatedField + */ + public function getFuncparams() + { + return $this->funcparams; + } + + public function hasFuncexpr() + { + return isset($this->funcexpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node funccolcollations = 6 [json_name = "funccolcollations"];. + * + * @param array $var + * + * @return $this + */ + public function setFunccolcollations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->funccolcollations = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 funccolcount = 2 [json_name = "funccolcount"];. + * + * @param int $var + * + * @return $this + */ + public function setFunccolcount($var) + { + GPBUtil::checkInt32($var); + $this->funccolcount = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funccolnames = 3 [json_name = "funccolnames"];. + * + * @param array $var + * + * @return $this + */ + public function setFunccolnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->funccolnames = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funccoltypes = 4 [json_name = "funccoltypes"];. + * + * @param array $var + * + * @return $this + */ + public function setFunccoltypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->funccoltypes = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node funccoltypmods = 5 [json_name = "funccoltypmods"];. + * + * @param array $var + * + * @return $this + */ + public function setFunccoltypmods($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->funccoltypmods = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node funcexpr = 1 [json_name = "funcexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setFuncexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->funcexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated uint64 funcparams = 7 [json_name = "funcparams"];. + * + * @param array|array $var + * + * @return $this + */ + public function setFuncparams($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::UINT64); + $this->funcparams = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblRef.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblRef.php new file mode 100644 index 000000000..797b04024 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeTblRef.php @@ -0,0 +1,62 @@ +pg_query.RangeTblRef. + */ +class RangeTblRef extends Message +{ + /** + * Generated from protobuf field int32 rtindex = 1 [json_name = "rtindex"];. + */ + protected $rtindex = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $rtindex + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field int32 rtindex = 1 [json_name = "rtindex"];. + * + * @return int + */ + public function getRtindex() + { + return $this->rtindex; + } + + /** + * Generated from protobuf field int32 rtindex = 1 [json_name = "rtindex"];. + * + * @param int $var + * + * @return $this + */ + public function setRtindex($var) + { + GPBUtil::checkInt32($var); + $this->rtindex = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeVar.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeVar.php new file mode 100644 index 000000000..b99f87ba6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RangeVar.php @@ -0,0 +1,258 @@ +pg_query.RangeVar. + */ +class RangeVar extends Message +{ + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + */ + protected $alias; + + /** + * Generated from protobuf field string catalogname = 1 [json_name = "catalogname"];. + */ + protected $catalogname = ''; + + /** + * Generated from protobuf field bool inh = 4 [json_name = "inh"];. + */ + protected $inh = false; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string relname = 3 [json_name = "relname"];. + */ + protected $relname = ''; + + /** + * Generated from protobuf field string relpersistence = 5 [json_name = "relpersistence"];. + */ + protected $relpersistence = ''; + + /** + * Generated from protobuf field string schemaname = 2 [json_name = "schemaname"];. + */ + protected $schemaname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $catalogname + * @var string $schemaname + * @var string $relname + * @var bool $inh + * @var string $relpersistence + * @var Alias $alias + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAlias() : void + { + $this->alias = null; + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + * + * @return null|Alias + */ + public function getAlias() + { + return $this->alias; + } + + /** + * Generated from protobuf field string catalogname = 1 [json_name = "catalogname"];. + * + * @return string + */ + public function getCatalogname() + { + return $this->catalogname; + } + + /** + * Generated from protobuf field bool inh = 4 [json_name = "inh"];. + * + * @return bool + */ + public function getInh() + { + return $this->inh; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string relname = 3 [json_name = "relname"];. + * + * @return string + */ + public function getRelname() + { + return $this->relname; + } + + /** + * Generated from protobuf field string relpersistence = 5 [json_name = "relpersistence"];. + * + * @return string + */ + public function getRelpersistence() + { + return $this->relpersistence; + } + + /** + * Generated from protobuf field string schemaname = 2 [json_name = "schemaname"];. + * + * @return string + */ + public function getSchemaname() + { + return $this->schemaname; + } + + public function hasAlias() + { + return isset($this->alias); + } + + /** + * Generated from protobuf field .pg_query.Alias alias = 6 [json_name = "alias"];. + * + * @param Alias $var + * + * @return $this + */ + public function setAlias($var) + { + GPBUtil::checkMessage($var, Alias::class); + $this->alias = $var; + + return $this; + } + + /** + * Generated from protobuf field string catalogname = 1 [json_name = "catalogname"];. + * + * @param string $var + * + * @return $this + */ + public function setCatalogname($var) + { + GPBUtil::checkString($var, true); + $this->catalogname = $var; + + return $this; + } + + /** + * Generated from protobuf field bool inh = 4 [json_name = "inh"];. + * + * @param bool $var + * + * @return $this + */ + public function setInh($var) + { + GPBUtil::checkBool($var); + $this->inh = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string relname = 3 [json_name = "relname"];. + * + * @param string $var + * + * @return $this + */ + public function setRelname($var) + { + GPBUtil::checkString($var, true); + $this->relname = $var; + + return $this; + } + + /** + * Generated from protobuf field string relpersistence = 5 [json_name = "relpersistence"];. + * + * @param string $var + * + * @return $this + */ + public function setRelpersistence($var) + { + GPBUtil::checkString($var, true); + $this->relpersistence = $var; + + return $this; + } + + /** + * Generated from protobuf field string schemaname = 2 [json_name = "schemaname"];. + * + * @param string $var + * + * @return $this + */ + public function setSchemaname($var) + { + GPBUtil::checkString($var, true); + $this->schemaname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RawStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RawStmt.php new file mode 100644 index 000000000..6878f7a72 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RawStmt.php @@ -0,0 +1,134 @@ +pg_query.RawStmt. + */ +class RawStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.Node stmt = 1 [json_name = "stmt"];. + */ + protected $stmt; + + /** + * Generated from protobuf field int32 stmt_len = 3 [json_name = "stmt_len"];. + */ + protected $stmt_len = 0; + + /** + * Generated from protobuf field int32 stmt_location = 2 [json_name = "stmt_location"];. + */ + protected $stmt_location = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $stmt + * @var int $stmt_location + * @var int $stmt_len + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearStmt() : void + { + $this->stmt = null; + } + + /** + * Generated from protobuf field .pg_query.Node stmt = 1 [json_name = "stmt"];. + * + * @return null|Node + */ + public function getStmt() + { + return $this->stmt; + } + + /** + * Generated from protobuf field int32 stmt_len = 3 [json_name = "stmt_len"];. + * + * @return int + */ + public function getStmtLen() + { + return $this->stmt_len; + } + + /** + * Generated from protobuf field int32 stmt_location = 2 [json_name = "stmt_location"];. + * + * @return int + */ + public function getStmtLocation() + { + return $this->stmt_location; + } + + public function hasStmt() + { + return isset($this->stmt); + } + + /** + * Generated from protobuf field .pg_query.Node stmt = 1 [json_name = "stmt"];. + * + * @param Node $var + * + * @return $this + */ + public function setStmt($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->stmt = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 stmt_len = 3 [json_name = "stmt_len"];. + * + * @param int $var + * + * @return $this + */ + public function setStmtLen($var) + { + GPBUtil::checkInt32($var); + $this->stmt_len = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 stmt_location = 2 [json_name = "stmt_location"];. + * + * @param int $var + * + * @return $this + */ + public function setStmtLocation($var) + { + GPBUtil::checkInt32($var); + $this->stmt_location = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReassignOwnedStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReassignOwnedStmt.php new file mode 100644 index 000000000..1f31e982a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReassignOwnedStmt.php @@ -0,0 +1,104 @@ +pg_query.ReassignOwnedStmt. + */ +class ReassignOwnedStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.RoleSpec newrole = 2 [json_name = "newrole"];. + */ + protected $newrole; + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + */ + private $roles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $roles + * @var RoleSpec $newrole + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearNewrole() : void + { + $this->newrole = null; + } + + /** + * Generated from protobuf field .pg_query.RoleSpec newrole = 2 [json_name = "newrole"];. + * + * @return null|RoleSpec + */ + public function getNewrole() + { + return $this->newrole; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + * + * @return RepeatedField + */ + public function getRoles() + { + return $this->roles; + } + + public function hasNewrole() + { + return isset($this->newrole); + } + + /** + * Generated from protobuf field .pg_query.RoleSpec newrole = 2 [json_name = "newrole"];. + * + * @param RoleSpec $var + * + * @return $this + */ + public function setNewrole($var) + { + GPBUtil::checkMessage($var, RoleSpec::class); + $this->newrole = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node roles = 1 [json_name = "roles"];. + * + * @param array $var + * + * @return $this + */ + public function setRoles($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->roles = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RefreshMatViewStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RefreshMatViewStmt.php new file mode 100644 index 000000000..829fe183f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RefreshMatViewStmt.php @@ -0,0 +1,134 @@ +pg_query.RefreshMatViewStmt. + */ +class RefreshMatViewStmt extends Message +{ + /** + * Generated from protobuf field bool concurrent = 1 [json_name = "concurrent"];. + */ + protected $concurrent = false; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 3 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field bool skip_data = 2 [json_name = "skipData"];. + */ + protected $skip_data = false; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var bool $concurrent + * @var bool $skip_data + * @var RangeVar $relation + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field bool concurrent = 1 [json_name = "concurrent"];. + * + * @return bool + */ + public function getConcurrent() + { + return $this->concurrent; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 3 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field bool skip_data = 2 [json_name = "skipData"];. + * + * @return bool + */ + public function getSkipData() + { + return $this->skip_data; + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field bool concurrent = 1 [json_name = "concurrent"];. + * + * @param bool $var + * + * @return $this + */ + public function setConcurrent($var) + { + GPBUtil::checkBool($var); + $this->concurrent = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 3 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field bool skip_data = 2 [json_name = "skipData"];. + * + * @param bool $var + * + * @return $this + */ + public function setSkipData($var) + { + GPBUtil::checkBool($var); + $this->skip_data = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReindexObjectType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReindexObjectType.php new file mode 100644 index 000000000..741708af1 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReindexObjectType.php @@ -0,0 +1,81 @@ +pg_query.ReindexObjectType. + */ +class ReindexObjectType +{ + /** + * Generated from protobuf enum REINDEX_OBJECT_DATABASE = 5;. + */ + public const REINDEX_OBJECT_DATABASE = 5; + + /** + * Generated from protobuf enum REINDEX_OBJECT_INDEX = 1;. + */ + public const REINDEX_OBJECT_INDEX = 1; + + /** + * Generated from protobuf enum REINDEX_OBJECT_SCHEMA = 3;. + */ + public const REINDEX_OBJECT_SCHEMA = 3; + + /** + * Generated from protobuf enum REINDEX_OBJECT_SYSTEM = 4;. + */ + public const REINDEX_OBJECT_SYSTEM = 4; + + /** + * Generated from protobuf enum REINDEX_OBJECT_TABLE = 2;. + */ + public const REINDEX_OBJECT_TABLE = 2; + + /** + * Generated from protobuf enum REINDEX_OBJECT_TYPE_UNDEFINED = 0;. + */ + public const REINDEX_OBJECT_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::REINDEX_OBJECT_TYPE_UNDEFINED => 'REINDEX_OBJECT_TYPE_UNDEFINED', + self::REINDEX_OBJECT_INDEX => 'REINDEX_OBJECT_INDEX', + self::REINDEX_OBJECT_TABLE => 'REINDEX_OBJECT_TABLE', + self::REINDEX_OBJECT_SCHEMA => 'REINDEX_OBJECT_SCHEMA', + self::REINDEX_OBJECT_SYSTEM => 'REINDEX_OBJECT_SYSTEM', + self::REINDEX_OBJECT_DATABASE => 'REINDEX_OBJECT_DATABASE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReindexStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReindexStmt.php new file mode 100644 index 000000000..45cda60dd --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReindexStmt.php @@ -0,0 +1,166 @@ +pg_query.ReindexStmt. + */ +class ReindexStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.ReindexObjectType kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field repeated .pg_query.Node params = 4 [json_name = "params"];. + */ + private $params; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var RangeVar $relation + * @var string $name + * @var array $params + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field .pg_query.ReindexObjectType kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node params = 4 [json_name = "params"];. + * + * @return RepeatedField + */ + public function getParams() + { + return $this->params; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field .pg_query.ReindexObjectType kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, ReindexObjectType::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node params = 4 [json_name = "params"];. + * + * @param array $var + * + * @return $this + */ + public function setParams($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->params = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 2 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RelabelType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RelabelType.php new file mode 100644 index 000000000..dee069ddf --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RelabelType.php @@ -0,0 +1,268 @@ +pg_query.RelabelType. + */ +class RelabelType extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.CoercionForm relabelformat = 6 [json_name = "relabelformat"];. + */ + protected $relabelformat = 0; + + /** + * Generated from protobuf field uint32 resultcollid = 5 [json_name = "resultcollid"];. + */ + protected $resultcollid = 0; + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + */ + protected $resulttype = 0; + + /** + * Generated from protobuf field int32 resulttypmod = 4 [json_name = "resulttypmod"];. + */ + protected $resulttypmod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $arg + * @var int $resulttype + * @var int $resulttypmod + * @var int $resultcollid + * @var int $relabelformat + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm relabelformat = 6 [json_name = "relabelformat"];. + * + * @return int + */ + public function getRelabelformat() + { + return $this->relabelformat; + } + + /** + * Generated from protobuf field uint32 resultcollid = 5 [json_name = "resultcollid"];. + * + * @return int + */ + public function getResultcollid() + { + return $this->resultcollid; + } + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + * + * @return int + */ + public function getResulttype() + { + return $this->resulttype; + } + + /** + * Generated from protobuf field int32 resulttypmod = 4 [json_name = "resulttypmod"];. + * + * @return int + */ + public function getResulttypmod() + { + return $this->resulttypmod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 2 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm relabelformat = 6 [json_name = "relabelformat"];. + * + * @param int $var + * + * @return $this + */ + public function setRelabelformat($var) + { + GPBUtil::checkEnum($var, CoercionForm::class); + $this->relabelformat = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resultcollid = 5 [json_name = "resultcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setResultcollid($var) + { + GPBUtil::checkUint32($var); + $this->resultcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resulttype = 3 [json_name = "resulttype"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttype($var) + { + GPBUtil::checkUint32($var); + $this->resulttype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 resulttypmod = 4 [json_name = "resulttypmod"];. + * + * @param int $var + * + * @return $this + */ + public function setResulttypmod($var) + { + GPBUtil::checkInt32($var); + $this->resulttypmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RenameStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RenameStmt.php new file mode 100644 index 000000000..f937e73ee --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RenameStmt.php @@ -0,0 +1,299 @@ +pg_query.RenameStmt. + */ +class RenameStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 7 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field bool missing_ok = 8 [json_name = "missing_ok"];. + */ + protected $missing_ok = false; + + /** + * Generated from protobuf field string newname = 6 [json_name = "newname"];. + */ + protected $newname = ''; + + /** + * Generated from protobuf field .pg_query.Node object = 4 [json_name = "object"];. + */ + protected $object; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 3 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field .pg_query.ObjectType relation_type = 2 [json_name = "relationType"];. + */ + protected $relation_type = 0; + + /** + * Generated from protobuf field .pg_query.ObjectType rename_type = 1 [json_name = "renameType"];. + */ + protected $rename_type = 0; + + /** + * Generated from protobuf field string subname = 5 [json_name = "subname"];. + */ + protected $subname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $rename_type + * @var int $relation_type + * @var RangeVar $relation + * @var Node $object + * @var string $subname + * @var string $newname + * @var int $behavior + * @var bool $missing_ok + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearObject() : void + { + $this->object = null; + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 7 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field bool missing_ok = 8 [json_name = "missing_ok"];. + * + * @return bool + */ + public function getMissingOk() + { + return $this->missing_ok; + } + + /** + * Generated from protobuf field string newname = 6 [json_name = "newname"];. + * + * @return string + */ + public function getNewname() + { + return $this->newname; + } + + /** + * Generated from protobuf field .pg_query.Node object = 4 [json_name = "object"];. + * + * @return null|Node + */ + public function getObject() + { + return $this->object; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 3 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field .pg_query.ObjectType relation_type = 2 [json_name = "relationType"];. + * + * @return int + */ + public function getRelationType() + { + return $this->relation_type; + } + + /** + * Generated from protobuf field .pg_query.ObjectType rename_type = 1 [json_name = "renameType"];. + * + * @return int + */ + public function getRenameType() + { + return $this->rename_type; + } + + /** + * Generated from protobuf field string subname = 5 [json_name = "subname"];. + * + * @return string + */ + public function getSubname() + { + return $this->subname; + } + + public function hasObject() + { + return isset($this->object); + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 7 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field bool missing_ok = 8 [json_name = "missing_ok"];. + * + * @param bool $var + * + * @return $this + */ + public function setMissingOk($var) + { + GPBUtil::checkBool($var); + $this->missing_ok = $var; + + return $this; + } + + /** + * Generated from protobuf field string newname = 6 [json_name = "newname"];. + * + * @param string $var + * + * @return $this + */ + public function setNewname($var) + { + GPBUtil::checkString($var, true); + $this->newname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node object = 4 [json_name = "object"];. + * + * @param Node $var + * + * @return $this + */ + public function setObject($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->object = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 3 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType relation_type = 2 [json_name = "relationType"];. + * + * @param int $var + * + * @return $this + */ + public function setRelationType($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->relation_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType rename_type = 1 [json_name = "renameType"];. + * + * @param int $var + * + * @return $this + */ + public function setRenameType($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->rename_type = $var; + + return $this; + } + + /** + * Generated from protobuf field string subname = 5 [json_name = "subname"];. + * + * @param string $var + * + * @return $this + */ + public function setSubname($var) + { + GPBUtil::checkString($var, true); + $this->subname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReplicaIdentityStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReplicaIdentityStmt.php new file mode 100644 index 000000000..78002ee17 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReplicaIdentityStmt.php @@ -0,0 +1,93 @@ +pg_query.ReplicaIdentityStmt. + */ +class ReplicaIdentityStmt extends Message +{ + /** + * Generated from protobuf field string identity_type = 1 [json_name = "identity_type"];. + */ + protected $identity_type = ''; + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $identity_type + * @var string $name + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string identity_type = 1 [json_name = "identity_type"];. + * + * @return string + */ + public function getIdentityType() + { + return $this->identity_type; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field string identity_type = 1 [json_name = "identity_type"];. + * + * @param string $var + * + * @return $this + */ + public function setIdentityType($var) + { + GPBUtil::checkString($var, true); + $this->identity_type = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ResTarget.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ResTarget.php new file mode 100644 index 000000000..c653b49d2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ResTarget.php @@ -0,0 +1,166 @@ +pg_query.ResTarget. + */ +class ResTarget extends Message +{ + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.Node val = 3 [json_name = "val"];. + */ + protected $val; + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + */ + private $indirection; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var array $indirection + * @var Node $val + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearVal() : void + { + $this->val = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + * + * @return RepeatedField + */ + public function getIndirection() + { + return $this->indirection; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field .pg_query.Node val = 3 [json_name = "val"];. + * + * @return null|Node + */ + public function getVal() + { + return $this->val; + } + + public function hasVal() + { + return isset($this->val); + } + + /** + * Generated from protobuf field repeated .pg_query.Node indirection = 2 [json_name = "indirection"];. + * + * @param array $var + * + * @return $this + */ + public function setIndirection($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->indirection = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 4 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node val = 3 [json_name = "val"];. + * + * @param Node $var + * + * @return $this + */ + public function setVal($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->val = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReturnStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReturnStmt.php new file mode 100644 index 000000000..0e26da22e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ReturnStmt.php @@ -0,0 +1,72 @@ +pg_query.ReturnStmt. + */ +class ReturnStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.Node returnval = 1 [json_name = "returnval"];. + */ + protected $returnval; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $returnval + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearReturnval() : void + { + $this->returnval = null; + } + + /** + * Generated from protobuf field .pg_query.Node returnval = 1 [json_name = "returnval"];. + * + * @return null|Node + */ + public function getReturnval() + { + return $this->returnval; + } + + public function hasReturnval() + { + return isset($this->returnval); + } + + /** + * Generated from protobuf field .pg_query.Node returnval = 1 [json_name = "returnval"];. + * + * @param Node $var + * + * @return $this + */ + public function setReturnval($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->returnval = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleSpec.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleSpec.php new file mode 100644 index 000000000..345a73c8c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleSpec.php @@ -0,0 +1,124 @@ +pg_query.RoleSpec. + */ +class RoleSpec extends Message +{ + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string rolename = 2 [json_name = "rolename"];. + */ + protected $rolename = ''; + + /** + * Generated from protobuf field .pg_query.RoleSpecType roletype = 1 [json_name = "roletype"];. + */ + protected $roletype = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $roletype + * @var string $rolename + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string rolename = 2 [json_name = "rolename"];. + * + * @return string + */ + public function getRolename() + { + return $this->rolename; + } + + /** + * Generated from protobuf field .pg_query.RoleSpecType roletype = 1 [json_name = "roletype"];. + * + * @return int + */ + public function getRoletype() + { + return $this->roletype; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string rolename = 2 [json_name = "rolename"];. + * + * @param string $var + * + * @return $this + */ + public function setRolename($var) + { + GPBUtil::checkString($var, true); + $this->rolename = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RoleSpecType roletype = 1 [json_name = "roletype"];. + * + * @param int $var + * + * @return $this + */ + public function setRoletype($var) + { + GPBUtil::checkEnum($var, RoleSpecType::class); + $this->roletype = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleSpecType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleSpecType.php new file mode 100644 index 000000000..e5c2cdd9f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleSpecType.php @@ -0,0 +1,81 @@ +pg_query.RoleSpecType. + */ +class RoleSpecType +{ + /** + * Generated from protobuf enum ROLE_SPEC_TYPE_UNDEFINED = 0;. + */ + public const ROLE_SPEC_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum ROLESPEC_CSTRING = 1;. + */ + public const ROLESPEC_CSTRING = 1; + + /** + * Generated from protobuf enum ROLESPEC_CURRENT_ROLE = 2;. + */ + public const ROLESPEC_CURRENT_ROLE = 2; + + /** + * Generated from protobuf enum ROLESPEC_CURRENT_USER = 3;. + */ + public const ROLESPEC_CURRENT_USER = 3; + + /** + * Generated from protobuf enum ROLESPEC_PUBLIC = 5;. + */ + public const ROLESPEC_PUBLIC = 5; + + /** + * Generated from protobuf enum ROLESPEC_SESSION_USER = 4;. + */ + public const ROLESPEC_SESSION_USER = 4; + + private static $valueToName = [ + self::ROLE_SPEC_TYPE_UNDEFINED => 'ROLE_SPEC_TYPE_UNDEFINED', + self::ROLESPEC_CSTRING => 'ROLESPEC_CSTRING', + self::ROLESPEC_CURRENT_ROLE => 'ROLESPEC_CURRENT_ROLE', + self::ROLESPEC_CURRENT_USER => 'ROLESPEC_CURRENT_USER', + self::ROLESPEC_SESSION_USER => 'ROLESPEC_SESSION_USER', + self::ROLESPEC_PUBLIC => 'ROLESPEC_PUBLIC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleStmtType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleStmtType.php new file mode 100644 index 000000000..ba975bc6f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RoleStmtType.php @@ -0,0 +1,69 @@ +pg_query.RoleStmtType. + */ +class RoleStmtType +{ + /** + * Generated from protobuf enum ROLE_STMT_TYPE_UNDEFINED = 0;. + */ + public const ROLE_STMT_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum ROLESTMT_GROUP = 3;. + */ + public const ROLESTMT_GROUP = 3; + + /** + * Generated from protobuf enum ROLESTMT_ROLE = 1;. + */ + public const ROLESTMT_ROLE = 1; + + /** + * Generated from protobuf enum ROLESTMT_USER = 2;. + */ + public const ROLESTMT_USER = 2; + + private static $valueToName = [ + self::ROLE_STMT_TYPE_UNDEFINED => 'ROLE_STMT_TYPE_UNDEFINED', + self::ROLESTMT_ROLE => 'ROLESTMT_ROLE', + self::ROLESTMT_USER => 'ROLESTMT_USER', + self::ROLESTMT_GROUP => 'ROLESTMT_GROUP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowCompareExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowCompareExpr.php new file mode 100644 index 000000000..bfe3618d6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowCompareExpr.php @@ -0,0 +1,259 @@ +pg_query.RowCompareExpr. + */ +class RowCompareExpr extends Message +{ + /** + * Generated from protobuf field .pg_query.RowCompareType rctype = 2 [json_name = "rctype"];. + */ + protected $rctype = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node inputcollids = 5 [json_name = "inputcollids"];. + */ + private $inputcollids; + + /** + * Generated from protobuf field repeated .pg_query.Node largs = 6 [json_name = "largs"];. + */ + private $largs; + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilies = 4 [json_name = "opfamilies"];. + */ + private $opfamilies; + + /** + * Generated from protobuf field repeated .pg_query.Node opnos = 3 [json_name = "opnos"];. + */ + private $opnos; + + /** + * Generated from protobuf field repeated .pg_query.Node rargs = 7 [json_name = "rargs"];. + */ + private $rargs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $rctype + * @var array $opnos + * @var array $opfamilies + * @var array $inputcollids + * @var array $largs + * @var array $rargs + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node inputcollids = 5 [json_name = "inputcollids"];. + * + * @return RepeatedField + */ + public function getInputcollids() + { + return $this->inputcollids; + } + + /** + * Generated from protobuf field repeated .pg_query.Node largs = 6 [json_name = "largs"];. + * + * @return RepeatedField + */ + public function getLargs() + { + return $this->largs; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilies = 4 [json_name = "opfamilies"];. + * + * @return RepeatedField + */ + public function getOpfamilies() + { + return $this->opfamilies; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opnos = 3 [json_name = "opnos"];. + * + * @return RepeatedField + */ + public function getOpnos() + { + return $this->opnos; + } + + /** + * Generated from protobuf field repeated .pg_query.Node rargs = 7 [json_name = "rargs"];. + * + * @return RepeatedField + */ + public function getRargs() + { + return $this->rargs; + } + + /** + * Generated from protobuf field .pg_query.RowCompareType rctype = 2 [json_name = "rctype"];. + * + * @return int + */ + public function getRctype() + { + return $this->rctype; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node inputcollids = 5 [json_name = "inputcollids"];. + * + * @param array $var + * + * @return $this + */ + public function setInputcollids($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->inputcollids = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node largs = 6 [json_name = "largs"];. + * + * @param array $var + * + * @return $this + */ + public function setLargs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->largs = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opfamilies = 4 [json_name = "opfamilies"];. + * + * @param array $var + * + * @return $this + */ + public function setOpfamilies($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opfamilies = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node opnos = 3 [json_name = "opnos"];. + * + * @param array $var + * + * @return $this + */ + public function setOpnos($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->opnos = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node rargs = 7 [json_name = "rargs"];. + * + * @param array $var + * + * @return $this + */ + public function setRargs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->rargs = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RowCompareType rctype = 2 [json_name = "rctype"];. + * + * @param int $var + * + * @return $this + */ + public function setRctype($var) + { + GPBUtil::checkEnum($var, RowCompareType::class); + $this->rctype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowCompareType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowCompareType.php new file mode 100644 index 000000000..e9d45f7be --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowCompareType.php @@ -0,0 +1,87 @@ +pg_query.RowCompareType. + */ +class RowCompareType +{ + /** + * Generated from protobuf enum ROW_COMPARE_TYPE_UNDEFINED = 0;. + */ + public const ROW_COMPARE_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum ROWCOMPARE_EQ = 3;. + */ + public const ROWCOMPARE_EQ = 3; + + /** + * Generated from protobuf enum ROWCOMPARE_GE = 4;. + */ + public const ROWCOMPARE_GE = 4; + + /** + * Generated from protobuf enum ROWCOMPARE_GT = 5;. + */ + public const ROWCOMPARE_GT = 5; + + /** + * Generated from protobuf enum ROWCOMPARE_LE = 2;. + */ + public const ROWCOMPARE_LE = 2; + + /** + * Generated from protobuf enum ROWCOMPARE_LT = 1;. + */ + public const ROWCOMPARE_LT = 1; + + /** + * Generated from protobuf enum ROWCOMPARE_NE = 6;. + */ + public const ROWCOMPARE_NE = 6; + + private static $valueToName = [ + self::ROW_COMPARE_TYPE_UNDEFINED => 'ROW_COMPARE_TYPE_UNDEFINED', + self::ROWCOMPARE_LT => 'ROWCOMPARE_LT', + self::ROWCOMPARE_LE => 'ROWCOMPARE_LE', + self::ROWCOMPARE_EQ => 'ROWCOMPARE_EQ', + self::ROWCOMPARE_GE => 'ROWCOMPARE_GE', + self::ROWCOMPARE_GT => 'ROWCOMPARE_GT', + self::ROWCOMPARE_NE => 'ROWCOMPARE_NE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowExpr.php new file mode 100644 index 000000000..71a20c720 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowExpr.php @@ -0,0 +1,228 @@ +pg_query.RowExpr. + */ +class RowExpr extends Message +{ + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.CoercionForm row_format = 4 [json_name = "row_format"];. + */ + protected $row_format = 0; + + /** + * Generated from protobuf field uint32 row_typeid = 3 [json_name = "row_typeid"];. + */ + protected $row_typeid = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 5 [json_name = "colnames"];. + */ + private $colnames; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var array $args + * @var int $row_typeid + * @var int $row_format + * @var array $colnames + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 5 [json_name = "colnames"];. + * + * @return RepeatedField + */ + public function getColnames() + { + return $this->colnames; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm row_format = 4 [json_name = "row_format"];. + * + * @return int + */ + public function getRowFormat() + { + return $this->row_format; + } + + /** + * Generated from protobuf field uint32 row_typeid = 3 [json_name = "row_typeid"];. + * + * @return int + */ + public function getRowTypeid() + { + return $this->row_typeid; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 5 [json_name = "colnames"];. + * + * @param array $var + * + * @return $this + */ + public function setColnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->colnames = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CoercionForm row_format = 4 [json_name = "row_format"];. + * + * @param int $var + * + * @return $this + */ + public function setRowFormat($var) + { + GPBUtil::checkEnum($var, CoercionForm::class); + $this->row_format = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 row_typeid = 3 [json_name = "row_typeid"];. + * + * @param int $var + * + * @return $this + */ + public function setRowTypeid($var) + { + GPBUtil::checkUint32($var); + $this->row_typeid = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowMarkClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowMarkClause.php new file mode 100644 index 000000000..488899e1a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RowMarkClause.php @@ -0,0 +1,155 @@ +pg_query.RowMarkClause. + */ +class RowMarkClause extends Message +{ + /** + * Generated from protobuf field bool pushed_down = 4 [json_name = "pushedDown"];. + */ + protected $pushed_down = false; + + /** + * Generated from protobuf field uint32 rti = 1 [json_name = "rti"];. + */ + protected $rti = 0; + + /** + * Generated from protobuf field .pg_query.LockClauseStrength strength = 2 [json_name = "strength"];. + */ + protected $strength = 0; + + /** + * Generated from protobuf field .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"];. + */ + protected $wait_policy = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $rti + * @var int $strength + * @var int $wait_policy + * @var bool $pushed_down + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool pushed_down = 4 [json_name = "pushedDown"];. + * + * @return bool + */ + public function getPushedDown() + { + return $this->pushed_down; + } + + /** + * Generated from protobuf field uint32 rti = 1 [json_name = "rti"];. + * + * @return int + */ + public function getRti() + { + return $this->rti; + } + + /** + * Generated from protobuf field .pg_query.LockClauseStrength strength = 2 [json_name = "strength"];. + * + * @return int + */ + public function getStrength() + { + return $this->strength; + } + + /** + * Generated from protobuf field .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"];. + * + * @return int + */ + public function getWaitPolicy() + { + return $this->wait_policy; + } + + /** + * Generated from protobuf field bool pushed_down = 4 [json_name = "pushedDown"];. + * + * @param bool $var + * + * @return $this + */ + public function setPushedDown($var) + { + GPBUtil::checkBool($var); + $this->pushed_down = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 rti = 1 [json_name = "rti"];. + * + * @param int $var + * + * @return $this + */ + public function setRti($var) + { + GPBUtil::checkUint32($var); + $this->rti = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LockClauseStrength strength = 2 [json_name = "strength"];. + * + * @param int $var + * + * @return $this + */ + public function setStrength($var) + { + GPBUtil::checkEnum($var, LockClauseStrength::class); + $this->strength = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LockWaitPolicy wait_policy = 3 [json_name = "waitPolicy"];. + * + * @param int $var + * + * @return $this + */ + public function setWaitPolicy($var) + { + GPBUtil::checkEnum($var, LockWaitPolicy::class); + $this->wait_policy = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RuleStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RuleStmt.php new file mode 100644 index 000000000..814f21bed --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/RuleStmt.php @@ -0,0 +1,269 @@ +pg_query.RuleStmt. + */ +class RuleStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.CmdType event = 4 [json_name = "event"];. + */ + protected $event = 0; + + /** + * Generated from protobuf field bool instead = 5 [json_name = "instead"];. + */ + protected $instead = false; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field bool replace = 7 [json_name = "replace"];. + */ + protected $replace = false; + + /** + * Generated from protobuf field string rulename = 2 [json_name = "rulename"];. + */ + protected $rulename = ''; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node actions = 6 [json_name = "actions"];. + */ + private $actions; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var string $rulename + * @var Node $where_clause + * @var int $event + * @var bool $instead + * @var array $actions + * @var bool $replace + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node actions = 6 [json_name = "actions"];. + * + * @return RepeatedField + */ + public function getActions() + { + return $this->actions; + } + + /** + * Generated from protobuf field .pg_query.CmdType event = 4 [json_name = "event"];. + * + * @return int + */ + public function getEvent() + { + return $this->event; + } + + /** + * Generated from protobuf field bool instead = 5 [json_name = "instead"];. + * + * @return bool + */ + public function getInstead() + { + return $this->instead; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field bool replace = 7 [json_name = "replace"];. + * + * @return bool + */ + public function getReplace() + { + return $this->replace; + } + + /** + * Generated from protobuf field string rulename = 2 [json_name = "rulename"];. + * + * @return string + */ + public function getRulename() + { + return $this->rulename; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + /** + * Generated from protobuf field repeated .pg_query.Node actions = 6 [json_name = "actions"];. + * + * @param array $var + * + * @return $this + */ + public function setActions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->actions = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.CmdType event = 4 [json_name = "event"];. + * + * @param int $var + * + * @return $this + */ + public function setEvent($var) + { + GPBUtil::checkEnum($var, CmdType::class); + $this->event = $var; + + return $this; + } + + /** + * Generated from protobuf field bool instead = 5 [json_name = "instead"];. + * + * @param bool $var + * + * @return $this + */ + public function setInstead($var) + { + GPBUtil::checkBool($var); + $this->instead = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field bool replace = 7 [json_name = "replace"];. + * + * @param bool $var + * + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkBool($var); + $this->replace = $var; + + return $this; + } + + /** + * Generated from protobuf field string rulename = 2 [json_name = "rulename"];. + * + * @param string $var + * + * @return $this + */ + public function setRulename($var) + { + GPBUtil::checkString($var, true); + $this->rulename = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SQLValueFunction.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SQLValueFunction.php new file mode 100644 index 000000000..d1171ad6a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SQLValueFunction.php @@ -0,0 +1,196 @@ +pg_query.SQLValueFunction. + */ +class SQLValueFunction extends Message +{ + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.SQLValueFunctionOp op = 2 [json_name = "op"];. + */ + protected $op = 0; + + /** + * Generated from protobuf field uint32 type = 3 [json_name = "type"];. + */ + protected $type = 0; + + /** + * Generated from protobuf field int32 typmod = 4 [json_name = "typmod"];. + */ + protected $typmod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $op + * @var int $type + * @var int $typmod + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.SQLValueFunctionOp op = 2 [json_name = "op"];. + * + * @return int + */ + public function getOp() + { + return $this->op; + } + + /** + * Generated from protobuf field uint32 type = 3 [json_name = "type"];. + * + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Generated from protobuf field int32 typmod = 4 [json_name = "typmod"];. + * + * @return int + */ + public function getTypmod() + { + return $this->typmod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SQLValueFunctionOp op = 2 [json_name = "op"];. + * + * @param int $var + * + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkEnum($var, SQLValueFunctionOp::class); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 type = 3 [json_name = "type"];. + * + * @param int $var + * + * @return $this + */ + public function setType($var) + { + GPBUtil::checkUint32($var); + $this->type = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 typmod = 4 [json_name = "typmod"];. + * + * @param int $var + * + * @return $this + */ + public function setTypmod($var) + { + GPBUtil::checkInt32($var); + $this->typmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SQLValueFunctionOp.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SQLValueFunctionOp.php new file mode 100644 index 000000000..1b63d46a6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SQLValueFunctionOp.php @@ -0,0 +1,141 @@ +pg_query.SQLValueFunctionOp. + */ +class SQLValueFunctionOp +{ + /** + * Generated from protobuf enum SQLVALUE_FUNCTION_OP_UNDEFINED = 0;. + */ + public const SQLVALUE_FUNCTION_OP_UNDEFINED = 0; + + /** + * Generated from protobuf enum SVFOP_CURRENT_CATALOG = 14;. + */ + public const SVFOP_CURRENT_CATALOG = 14; + + /** + * Generated from protobuf enum SVFOP_CURRENT_DATE = 1;. + */ + public const SVFOP_CURRENT_DATE = 1; + + /** + * Generated from protobuf enum SVFOP_CURRENT_ROLE = 10;. + */ + public const SVFOP_CURRENT_ROLE = 10; + + /** + * Generated from protobuf enum SVFOP_CURRENT_SCHEMA = 15;. + */ + public const SVFOP_CURRENT_SCHEMA = 15; + + /** + * Generated from protobuf enum SVFOP_CURRENT_TIME = 2;. + */ + public const SVFOP_CURRENT_TIME = 2; + + /** + * Generated from protobuf enum SVFOP_CURRENT_TIME_N = 3;. + */ + public const SVFOP_CURRENT_TIME_N = 3; + + /** + * Generated from protobuf enum SVFOP_CURRENT_TIMESTAMP = 4;. + */ + public const SVFOP_CURRENT_TIMESTAMP = 4; + + /** + * Generated from protobuf enum SVFOP_CURRENT_TIMESTAMP_N = 5;. + */ + public const SVFOP_CURRENT_TIMESTAMP_N = 5; + + /** + * Generated from protobuf enum SVFOP_CURRENT_USER = 11;. + */ + public const SVFOP_CURRENT_USER = 11; + + /** + * Generated from protobuf enum SVFOP_LOCALTIME = 6;. + */ + public const SVFOP_LOCALTIME = 6; + + /** + * Generated from protobuf enum SVFOP_LOCALTIME_N = 7;. + */ + public const SVFOP_LOCALTIME_N = 7; + + /** + * Generated from protobuf enum SVFOP_LOCALTIMESTAMP = 8;. + */ + public const SVFOP_LOCALTIMESTAMP = 8; + + /** + * Generated from protobuf enum SVFOP_LOCALTIMESTAMP_N = 9;. + */ + public const SVFOP_LOCALTIMESTAMP_N = 9; + + /** + * Generated from protobuf enum SVFOP_SESSION_USER = 13;. + */ + public const SVFOP_SESSION_USER = 13; + + /** + * Generated from protobuf enum SVFOP_USER = 12;. + */ + public const SVFOP_USER = 12; + + private static $valueToName = [ + self::SQLVALUE_FUNCTION_OP_UNDEFINED => 'SQLVALUE_FUNCTION_OP_UNDEFINED', + self::SVFOP_CURRENT_DATE => 'SVFOP_CURRENT_DATE', + self::SVFOP_CURRENT_TIME => 'SVFOP_CURRENT_TIME', + self::SVFOP_CURRENT_TIME_N => 'SVFOP_CURRENT_TIME_N', + self::SVFOP_CURRENT_TIMESTAMP => 'SVFOP_CURRENT_TIMESTAMP', + self::SVFOP_CURRENT_TIMESTAMP_N => 'SVFOP_CURRENT_TIMESTAMP_N', + self::SVFOP_LOCALTIME => 'SVFOP_LOCALTIME', + self::SVFOP_LOCALTIME_N => 'SVFOP_LOCALTIME_N', + self::SVFOP_LOCALTIMESTAMP => 'SVFOP_LOCALTIMESTAMP', + self::SVFOP_LOCALTIMESTAMP_N => 'SVFOP_LOCALTIMESTAMP_N', + self::SVFOP_CURRENT_ROLE => 'SVFOP_CURRENT_ROLE', + self::SVFOP_CURRENT_USER => 'SVFOP_CURRENT_USER', + self::SVFOP_USER => 'SVFOP_USER', + self::SVFOP_SESSION_USER => 'SVFOP_SESSION_USER', + self::SVFOP_CURRENT_CATALOG => 'SVFOP_CURRENT_CATALOG', + self::SVFOP_CURRENT_SCHEMA => 'SVFOP_CURRENT_SCHEMA', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScalarArrayOpExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScalarArrayOpExpr.php new file mode 100644 index 000000000..61274f46a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScalarArrayOpExpr.php @@ -0,0 +1,228 @@ +pg_query.ScalarArrayOpExpr. + */ +class ScalarArrayOpExpr extends Message +{ + /** + * Generated from protobuf field uint32 inputcollid = 4 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + */ + protected $opno = 0; + + /** + * Generated from protobuf field bool use_or = 3 [json_name = "useOr"];. + */ + protected $use_or = false; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 5 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $opno + * @var bool $use_or + * @var int $inputcollid + * @var array $args + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 5 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 inputcollid = 4 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @return int + */ + public function getOpno() + { + return $this->opno; + } + + /** + * Generated from protobuf field bool use_or = 3 [json_name = "useOr"];. + * + * @return bool + */ + public function getUseOr() + { + return $this->use_or; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 5 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 4 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @param int $var + * + * @return $this + */ + public function setOpno($var) + { + GPBUtil::checkUint32($var); + $this->opno = $var; + + return $this; + } + + /** + * Generated from protobuf field bool use_or = 3 [json_name = "useOr"];. + * + * @param bool $var + * + * @return $this + */ + public function setUseOr($var) + { + GPBUtil::checkBool($var); + $this->use_or = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScanResult.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScanResult.php new file mode 100644 index 000000000..0fe3932b0 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScanResult.php @@ -0,0 +1,94 @@ +pg_query.ScanResult. + */ +class ScanResult extends Message +{ + /** + * Generated from protobuf field int32 version = 1;. + */ + protected $version = 0; + + /** + * Generated from protobuf field repeated .pg_query.ScanToken tokens = 2;. + */ + private $tokens; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $version + * @var array $tokens + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.ScanToken tokens = 2;. + * + * @return RepeatedField + */ + public function getTokens() + { + return $this->tokens; + } + + /** + * Generated from protobuf field int32 version = 1;. + * + * @return int + */ + public function getVersion() + { + return $this->version; + } + + /** + * Generated from protobuf field repeated .pg_query.ScanToken tokens = 2;. + * + * @param array $var + * + * @return $this + */ + public function setTokens($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, ScanToken::class); + $this->tokens = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 version = 1;. + * + * @param int $var + * + * @return $this + */ + public function setVersion($var) + { + GPBUtil::checkInt32($var); + $this->version = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScanToken.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScanToken.php new file mode 100644 index 000000000..c09b43641 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ScanToken.php @@ -0,0 +1,155 @@ +pg_query.ScanToken. + */ +class ScanToken extends Message +{ + /** + * Generated from protobuf field int32 end = 2;. + */ + protected $end = 0; + + /** + * Generated from protobuf field .pg_query.KeywordKind keyword_kind = 5;. + */ + protected $keyword_kind = 0; + + /** + * Generated from protobuf field int32 start = 1;. + */ + protected $start = 0; + + /** + * Generated from protobuf field .pg_query.Token token = 4;. + */ + protected $token = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $start + * @var int $end + * @var int $token + * @var int $keyword_kind + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field int32 end = 2;. + * + * @return int + */ + public function getEnd() + { + return $this->end; + } + + /** + * Generated from protobuf field .pg_query.KeywordKind keyword_kind = 5;. + * + * @return int + */ + public function getKeywordKind() + { + return $this->keyword_kind; + } + + /** + * Generated from protobuf field int32 start = 1;. + * + * @return int + */ + public function getStart() + { + return $this->start; + } + + /** + * Generated from protobuf field .pg_query.Token token = 4;. + * + * @return int + */ + public function getToken() + { + return $this->token; + } + + /** + * Generated from protobuf field int32 end = 2;. + * + * @param int $var + * + * @return $this + */ + public function setEnd($var) + { + GPBUtil::checkInt32($var); + $this->end = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.KeywordKind keyword_kind = 5;. + * + * @param int $var + * + * @return $this + */ + public function setKeywordKind($var) + { + GPBUtil::checkEnum($var, KeywordKind::class); + $this->keyword_kind = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 start = 1;. + * + * @param int $var + * + * @return $this + */ + public function setStart($var) + { + GPBUtil::checkInt32($var); + $this->start = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Token token = 4;. + * + * @param int $var + * + * @return $this + */ + public function setToken($var) + { + GPBUtil::checkEnum($var, Token::class); + $this->token = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SecLabelStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SecLabelStmt.php new file mode 100644 index 000000000..70ebb08ae --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SecLabelStmt.php @@ -0,0 +1,165 @@ +pg_query.SecLabelStmt. + */ +class SecLabelStmt extends Message +{ + /** + * Generated from protobuf field string label = 4 [json_name = "label"];. + */ + protected $label = ''; + + /** + * Generated from protobuf field .pg_query.Node object = 2 [json_name = "object"];. + */ + protected $object; + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + */ + protected $objtype = 0; + + /** + * Generated from protobuf field string provider = 3 [json_name = "provider"];. + */ + protected $provider = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $objtype + * @var Node $object + * @var string $provider + * @var string $label + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearObject() : void + { + $this->object = null; + } + + /** + * Generated from protobuf field string label = 4 [json_name = "label"];. + * + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Generated from protobuf field .pg_query.Node object = 2 [json_name = "object"];. + * + * @return null|Node + */ + public function getObject() + { + return $this->object; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + * + * @return int + */ + public function getObjtype() + { + return $this->objtype; + } + + /** + * Generated from protobuf field string provider = 3 [json_name = "provider"];. + * + * @return string + */ + public function getProvider() + { + return $this->provider; + } + + public function hasObject() + { + return isset($this->object); + } + + /** + * Generated from protobuf field string label = 4 [json_name = "label"];. + * + * @param string $var + * + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, true); + $this->label = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node object = 2 [json_name = "object"];. + * + * @param Node $var + * + * @return $this + */ + public function setObject($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->object = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ObjectType objtype = 1 [json_name = "objtype"];. + * + * @param int $var + * + * @return $this + */ + public function setObjtype($var) + { + GPBUtil::checkEnum($var, ObjectType::class); + $this->objtype = $var; + + return $this; + } + + /** + * Generated from protobuf field string provider = 3 [json_name = "provider"];. + * + * @param string $var + * + * @return $this + */ + public function setProvider($var) + { + GPBUtil::checkString($var, true); + $this->provider = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SelectStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SelectStmt.php new file mode 100644 index 000000000..0d543c649 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SelectStmt.php @@ -0,0 +1,732 @@ +pg_query.SelectStmt. + */ +class SelectStmt extends Message +{ + /** + * Generated from protobuf field bool all = 18 [json_name = "all"];. + */ + protected $all = false; + + /** + * Generated from protobuf field bool group_distinct = 7 [json_name = "groupDistinct"];. + */ + protected $group_distinct = false; + + /** + * Generated from protobuf field .pg_query.Node having_clause = 8 [json_name = "havingClause"];. + */ + protected $having_clause; + + /** + * Generated from protobuf field .pg_query.IntoClause into_clause = 2 [json_name = "intoClause"];. + */ + protected $into_clause; + + /** + * Generated from protobuf field .pg_query.SelectStmt larg = 19 [json_name = "larg"];. + */ + protected $larg; + + /** + * Generated from protobuf field .pg_query.Node limit_count = 13 [json_name = "limitCount"];. + */ + protected $limit_count; + + /** + * Generated from protobuf field .pg_query.Node limit_offset = 12 [json_name = "limitOffset"];. + */ + protected $limit_offset; + + /** + * Generated from protobuf field .pg_query.LimitOption limit_option = 14 [json_name = "limitOption"];. + */ + protected $limit_option = 0; + + /** + * Generated from protobuf field .pg_query.SetOperation op = 17 [json_name = "op"];. + */ + protected $op = 0; + + /** + * Generated from protobuf field .pg_query.SelectStmt rarg = 20 [json_name = "rarg"];. + */ + protected $rarg; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 5 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 16 [json_name = "withClause"];. + */ + protected $with_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node distinct_clause = 1 [json_name = "distinctClause"];. + */ + private $distinct_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"];. + */ + private $from_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node group_clause = 6 [json_name = "groupClause"];. + */ + private $group_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node locking_clause = 15 [json_name = "lockingClause"];. + */ + private $locking_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node sort_clause = 11 [json_name = "sortClause"];. + */ + private $sort_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 3 [json_name = "targetList"];. + */ + private $target_list; + + /** + * Generated from protobuf field repeated .pg_query.Node values_lists = 10 [json_name = "valuesLists"];. + */ + private $values_lists; + + /** + * Generated from protobuf field repeated .pg_query.Node window_clause = 9 [json_name = "windowClause"];. + */ + private $window_clause; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $distinct_clause + * @var IntoClause $into_clause + * @var array $target_list + * @var array $from_clause + * @var Node $where_clause + * @var array $group_clause + * @var bool $group_distinct + * @var Node $having_clause + * @var array $window_clause + * @var array $values_lists + * @var array $sort_clause + * @var Node $limit_offset + * @var Node $limit_count + * @var int $limit_option + * @var array $locking_clause + * @var WithClause $with_clause + * @var int $op + * @var bool $all + * @var SelectStmt $larg + * @var SelectStmt $rarg + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearHavingClause() : void + { + $this->having_clause = null; + } + + public function clearIntoClause() : void + { + $this->into_clause = null; + } + + public function clearLarg() : void + { + $this->larg = null; + } + + public function clearLimitCount() : void + { + $this->limit_count = null; + } + + public function clearLimitOffset() : void + { + $this->limit_offset = null; + } + + public function clearRarg() : void + { + $this->rarg = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + public function clearWithClause() : void + { + $this->with_clause = null; + } + + /** + * Generated from protobuf field bool all = 18 [json_name = "all"];. + * + * @return bool + */ + public function getAll() + { + return $this->all; + } + + /** + * Generated from protobuf field repeated .pg_query.Node distinct_clause = 1 [json_name = "distinctClause"];. + * + * @return RepeatedField + */ + public function getDistinctClause() + { + return $this->distinct_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"];. + * + * @return RepeatedField + */ + public function getFromClause() + { + return $this->from_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node group_clause = 6 [json_name = "groupClause"];. + * + * @return RepeatedField + */ + public function getGroupClause() + { + return $this->group_clause; + } + + /** + * Generated from protobuf field bool group_distinct = 7 [json_name = "groupDistinct"];. + * + * @return bool + */ + public function getGroupDistinct() + { + return $this->group_distinct; + } + + /** + * Generated from protobuf field .pg_query.Node having_clause = 8 [json_name = "havingClause"];. + * + * @return null|Node + */ + public function getHavingClause() + { + return $this->having_clause; + } + + /** + * Generated from protobuf field .pg_query.IntoClause into_clause = 2 [json_name = "intoClause"];. + * + * @return null|IntoClause + */ + public function getIntoClause() + { + return $this->into_clause; + } + + /** + * Generated from protobuf field .pg_query.SelectStmt larg = 19 [json_name = "larg"];. + * + * @return null|SelectStmt + */ + public function getLarg() + { + return $this->larg; + } + + /** + * Generated from protobuf field .pg_query.Node limit_count = 13 [json_name = "limitCount"];. + * + * @return null|Node + */ + public function getLimitCount() + { + return $this->limit_count; + } + + /** + * Generated from protobuf field .pg_query.Node limit_offset = 12 [json_name = "limitOffset"];. + * + * @return null|Node + */ + public function getLimitOffset() + { + return $this->limit_offset; + } + + /** + * Generated from protobuf field .pg_query.LimitOption limit_option = 14 [json_name = "limitOption"];. + * + * @return int + */ + public function getLimitOption() + { + return $this->limit_option; + } + + /** + * Generated from protobuf field repeated .pg_query.Node locking_clause = 15 [json_name = "lockingClause"];. + * + * @return RepeatedField + */ + public function getLockingClause() + { + return $this->locking_clause; + } + + /** + * Generated from protobuf field .pg_query.SetOperation op = 17 [json_name = "op"];. + * + * @return int + */ + public function getOp() + { + return $this->op; + } + + /** + * Generated from protobuf field .pg_query.SelectStmt rarg = 20 [json_name = "rarg"];. + * + * @return null|SelectStmt + */ + public function getRarg() + { + return $this->rarg; + } + + /** + * Generated from protobuf field repeated .pg_query.Node sort_clause = 11 [json_name = "sortClause"];. + * + * @return RepeatedField + */ + public function getSortClause() + { + return $this->sort_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 3 [json_name = "targetList"];. + * + * @return RepeatedField + */ + public function getTargetList() + { + return $this->target_list; + } + + /** + * Generated from protobuf field repeated .pg_query.Node values_lists = 10 [json_name = "valuesLists"];. + * + * @return RepeatedField + */ + public function getValuesLists() + { + return $this->values_lists; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 5 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node window_clause = 9 [json_name = "windowClause"];. + * + * @return RepeatedField + */ + public function getWindowClause() + { + return $this->window_clause; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 16 [json_name = "withClause"];. + * + * @return null|WithClause + */ + public function getWithClause() + { + return $this->with_clause; + } + + public function hasHavingClause() + { + return isset($this->having_clause); + } + + public function hasIntoClause() + { + return isset($this->into_clause); + } + + public function hasLarg() + { + return isset($this->larg); + } + + public function hasLimitCount() + { + return isset($this->limit_count); + } + + public function hasLimitOffset() + { + return isset($this->limit_offset); + } + + public function hasRarg() + { + return isset($this->rarg); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + public function hasWithClause() + { + return isset($this->with_clause); + } + + /** + * Generated from protobuf field bool all = 18 [json_name = "all"];. + * + * @param bool $var + * + * @return $this + */ + public function setAll($var) + { + GPBUtil::checkBool($var); + $this->all = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node distinct_clause = 1 [json_name = "distinctClause"];. + * + * @param array $var + * + * @return $this + */ + public function setDistinctClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->distinct_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"];. + * + * @param array $var + * + * @return $this + */ + public function setFromClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->from_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node group_clause = 6 [json_name = "groupClause"];. + * + * @param array $var + * + * @return $this + */ + public function setGroupClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->group_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool group_distinct = 7 [json_name = "groupDistinct"];. + * + * @param bool $var + * + * @return $this + */ + public function setGroupDistinct($var) + { + GPBUtil::checkBool($var); + $this->group_distinct = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node having_clause = 8 [json_name = "havingClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setHavingClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->having_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.IntoClause into_clause = 2 [json_name = "intoClause"];. + * + * @param IntoClause $var + * + * @return $this + */ + public function setIntoClause($var) + { + GPBUtil::checkMessage($var, IntoClause::class); + $this->into_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SelectStmt larg = 19 [json_name = "larg"];. + * + * @param SelectStmt $var + * + * @return $this + */ + public function setLarg($var) + { + GPBUtil::checkMessage($var, self::class); + $this->larg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node limit_count = 13 [json_name = "limitCount"];. + * + * @param Node $var + * + * @return $this + */ + public function setLimitCount($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->limit_count = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node limit_offset = 12 [json_name = "limitOffset"];. + * + * @param Node $var + * + * @return $this + */ + public function setLimitOffset($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->limit_offset = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.LimitOption limit_option = 14 [json_name = "limitOption"];. + * + * @param int $var + * + * @return $this + */ + public function setLimitOption($var) + { + GPBUtil::checkEnum($var, LimitOption::class); + $this->limit_option = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node locking_clause = 15 [json_name = "lockingClause"];. + * + * @param array $var + * + * @return $this + */ + public function setLockingClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->locking_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SetOperation op = 17 [json_name = "op"];. + * + * @param int $var + * + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkEnum($var, SetOperation::class); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SelectStmt rarg = 20 [json_name = "rarg"];. + * + * @param SelectStmt $var + * + * @return $this + */ + public function setRarg($var) + { + GPBUtil::checkMessage($var, self::class); + $this->rarg = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node sort_clause = 11 [json_name = "sortClause"];. + * + * @param array $var + * + * @return $this + */ + public function setSortClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->sort_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 3 [json_name = "targetList"];. + * + * @param array $var + * + * @return $this + */ + public function setTargetList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->target_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node values_lists = 10 [json_name = "valuesLists"];. + * + * @param array $var + * + * @return $this + */ + public function setValuesLists($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->values_lists = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 5 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node window_clause = 9 [json_name = "windowClause"];. + * + * @param array $var + * + * @return $this + */ + public function setWindowClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->window_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 16 [json_name = "withClause"];. + * + * @param WithClause $var + * + * @return $this + */ + public function setWithClause($var) + { + GPBUtil::checkMessage($var, WithClause::class); + $this->with_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOpCmd.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOpCmd.php new file mode 100644 index 000000000..f70d49f0d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOpCmd.php @@ -0,0 +1,75 @@ +pg_query.SetOpCmd. + */ +class SetOpCmd +{ + /** + * Generated from protobuf enum SET_OP_CMD_UNDEFINED = 0;. + */ + public const SET_OP_CMD_UNDEFINED = 0; + + /** + * Generated from protobuf enum SETOPCMD_EXCEPT = 3;. + */ + public const SETOPCMD_EXCEPT = 3; + + /** + * Generated from protobuf enum SETOPCMD_EXCEPT_ALL = 4;. + */ + public const SETOPCMD_EXCEPT_ALL = 4; + + /** + * Generated from protobuf enum SETOPCMD_INTERSECT = 1;. + */ + public const SETOPCMD_INTERSECT = 1; + + /** + * Generated from protobuf enum SETOPCMD_INTERSECT_ALL = 2;. + */ + public const SETOPCMD_INTERSECT_ALL = 2; + + private static $valueToName = [ + self::SET_OP_CMD_UNDEFINED => 'SET_OP_CMD_UNDEFINED', + self::SETOPCMD_INTERSECT => 'SETOPCMD_INTERSECT', + self::SETOPCMD_INTERSECT_ALL => 'SETOPCMD_INTERSECT_ALL', + self::SETOPCMD_EXCEPT => 'SETOPCMD_EXCEPT', + self::SETOPCMD_EXCEPT_ALL => 'SETOPCMD_EXCEPT_ALL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOpStrategy.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOpStrategy.php new file mode 100644 index 000000000..d27009674 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOpStrategy.php @@ -0,0 +1,63 @@ +pg_query.SetOpStrategy. + */ +class SetOpStrategy +{ + /** + * Generated from protobuf enum SET_OP_STRATEGY_UNDEFINED = 0;. + */ + public const SET_OP_STRATEGY_UNDEFINED = 0; + + /** + * Generated from protobuf enum SETOP_HASHED = 2;. + */ + public const SETOP_HASHED = 2; + + /** + * Generated from protobuf enum SETOP_SORTED = 1;. + */ + public const SETOP_SORTED = 1; + + private static $valueToName = [ + self::SET_OP_STRATEGY_UNDEFINED => 'SET_OP_STRATEGY_UNDEFINED', + self::SETOP_SORTED => 'SETOP_SORTED', + self::SETOP_HASHED => 'SETOP_HASHED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOperation.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOperation.php new file mode 100644 index 000000000..fb6b4ca9a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOperation.php @@ -0,0 +1,75 @@ +pg_query.SetOperation. + */ +class SetOperation +{ + /** + * Generated from protobuf enum SET_OPERATION_UNDEFINED = 0;. + */ + public const SET_OPERATION_UNDEFINED = 0; + + /** + * Generated from protobuf enum SETOP_EXCEPT = 4;. + */ + public const SETOP_EXCEPT = 4; + + /** + * Generated from protobuf enum SETOP_INTERSECT = 3;. + */ + public const SETOP_INTERSECT = 3; + + /** + * Generated from protobuf enum SETOP_NONE = 1;. + */ + public const SETOP_NONE = 1; + + /** + * Generated from protobuf enum SETOP_UNION = 2;. + */ + public const SETOP_UNION = 2; + + private static $valueToName = [ + self::SET_OPERATION_UNDEFINED => 'SET_OPERATION_UNDEFINED', + self::SETOP_NONE => 'SETOP_NONE', + self::SETOP_UNION => 'SETOP_UNION', + self::SETOP_INTERSECT => 'SETOP_INTERSECT', + self::SETOP_EXCEPT => 'SETOP_EXCEPT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOperationStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOperationStmt.php new file mode 100644 index 000000000..75e246bb3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetOperationStmt.php @@ -0,0 +1,300 @@ +pg_query.SetOperationStmt. + */ +class SetOperationStmt extends Message +{ + /** + * Generated from protobuf field bool all = 2 [json_name = "all"];. + */ + protected $all = false; + + /** + * Generated from protobuf field .pg_query.Node larg = 3 [json_name = "larg"];. + */ + protected $larg; + + /** + * Generated from protobuf field .pg_query.SetOperation op = 1 [json_name = "op"];. + */ + protected $op = 0; + + /** + * Generated from protobuf field .pg_query.Node rarg = 4 [json_name = "rarg"];. + */ + protected $rarg; + + /** + * Generated from protobuf field repeated .pg_query.Node col_collations = 7 [json_name = "colCollations"];. + */ + private $col_collations; + + /** + * Generated from protobuf field repeated .pg_query.Node col_types = 5 [json_name = "colTypes"];. + */ + private $col_types; + + /** + * Generated from protobuf field repeated .pg_query.Node col_typmods = 6 [json_name = "colTypmods"];. + */ + private $col_typmods; + + /** + * Generated from protobuf field repeated .pg_query.Node group_clauses = 8 [json_name = "groupClauses"];. + */ + private $group_clauses; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $op + * @var bool $all + * @var Node $larg + * @var Node $rarg + * @var array $col_types + * @var array $col_typmods + * @var array $col_collations + * @var array $group_clauses + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearLarg() : void + { + $this->larg = null; + } + + public function clearRarg() : void + { + $this->rarg = null; + } + + /** + * Generated from protobuf field bool all = 2 [json_name = "all"];. + * + * @return bool + */ + public function getAll() + { + return $this->all; + } + + /** + * Generated from protobuf field repeated .pg_query.Node col_collations = 7 [json_name = "colCollations"];. + * + * @return RepeatedField + */ + public function getColCollations() + { + return $this->col_collations; + } + + /** + * Generated from protobuf field repeated .pg_query.Node col_types = 5 [json_name = "colTypes"];. + * + * @return RepeatedField + */ + public function getColTypes() + { + return $this->col_types; + } + + /** + * Generated from protobuf field repeated .pg_query.Node col_typmods = 6 [json_name = "colTypmods"];. + * + * @return RepeatedField + */ + public function getColTypmods() + { + return $this->col_typmods; + } + + /** + * Generated from protobuf field repeated .pg_query.Node group_clauses = 8 [json_name = "groupClauses"];. + * + * @return RepeatedField + */ + public function getGroupClauses() + { + return $this->group_clauses; + } + + /** + * Generated from protobuf field .pg_query.Node larg = 3 [json_name = "larg"];. + * + * @return null|Node + */ + public function getLarg() + { + return $this->larg; + } + + /** + * Generated from protobuf field .pg_query.SetOperation op = 1 [json_name = "op"];. + * + * @return int + */ + public function getOp() + { + return $this->op; + } + + /** + * Generated from protobuf field .pg_query.Node rarg = 4 [json_name = "rarg"];. + * + * @return null|Node + */ + public function getRarg() + { + return $this->rarg; + } + + public function hasLarg() + { + return isset($this->larg); + } + + public function hasRarg() + { + return isset($this->rarg); + } + + /** + * Generated from protobuf field bool all = 2 [json_name = "all"];. + * + * @param bool $var + * + * @return $this + */ + public function setAll($var) + { + GPBUtil::checkBool($var); + $this->all = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node col_collations = 7 [json_name = "colCollations"];. + * + * @param array $var + * + * @return $this + */ + public function setColCollations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->col_collations = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node col_types = 5 [json_name = "colTypes"];. + * + * @param array $var + * + * @return $this + */ + public function setColTypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->col_types = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node col_typmods = 6 [json_name = "colTypmods"];. + * + * @param array $var + * + * @return $this + */ + public function setColTypmods($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->col_typmods = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node group_clauses = 8 [json_name = "groupClauses"];. + * + * @param array $var + * + * @return $this + */ + public function setGroupClauses($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->group_clauses = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node larg = 3 [json_name = "larg"];. + * + * @param Node $var + * + * @return $this + */ + public function setLarg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->larg = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SetOperation op = 1 [json_name = "op"];. + * + * @param int $var + * + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkEnum($var, SetOperation::class); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node rarg = 4 [json_name = "rarg"];. + * + * @param Node $var + * + * @return $this + */ + public function setRarg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->rarg = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetQuantifier.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetQuantifier.php new file mode 100644 index 000000000..687b42be3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetQuantifier.php @@ -0,0 +1,69 @@ +pg_query.SetQuantifier. + */ +class SetQuantifier +{ + /** + * Generated from protobuf enum SET_QUANTIFIER_ALL = 2;. + */ + public const SET_QUANTIFIER_ALL = 2; + + /** + * Generated from protobuf enum SET_QUANTIFIER_DEFAULT = 1;. + */ + public const SET_QUANTIFIER_DEFAULT = 1; + + /** + * Generated from protobuf enum SET_QUANTIFIER_DISTINCT = 3;. + */ + public const SET_QUANTIFIER_DISTINCT = 3; + + /** + * Generated from protobuf enum SET_QUANTIFIER_UNDEFINED = 0;. + */ + public const SET_QUANTIFIER_UNDEFINED = 0; + + private static $valueToName = [ + self::SET_QUANTIFIER_UNDEFINED => 'SET_QUANTIFIER_UNDEFINED', + self::SET_QUANTIFIER_DEFAULT => 'SET_QUANTIFIER_DEFAULT', + self::SET_QUANTIFIER_ALL => 'SET_QUANTIFIER_ALL', + self::SET_QUANTIFIER_DISTINCT => 'SET_QUANTIFIER_DISTINCT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetToDefault.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetToDefault.php new file mode 100644 index 000000000..45c0aab45 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SetToDefault.php @@ -0,0 +1,196 @@ +pg_query.SetToDefault. + */ +class SetToDefault extends Message +{ + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + */ + protected $collation = 0; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + */ + protected $type_id = 0; + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + */ + protected $type_mod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $type_id + * @var int $type_mod + * @var int $collation + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + * + * @return int + */ + public function getCollation() + { + return $this->collation; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + * + * @return int + */ + public function getTypeId() + { + return $this->type_id; + } + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + * + * @return int + */ + public function getTypeMod() + { + return $this->type_mod; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field uint32 collation = 4 [json_name = "collation"];. + * + * @param int $var + * + * @return $this + */ + public function setCollation($var) + { + GPBUtil::checkUint32($var); + $this->collation = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 type_id = 2 [json_name = "typeId"];. + * + * @param int $var + * + * @return $this + */ + public function setTypeId($var) + { + GPBUtil::checkUint32($var); + $this->type_id = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 type_mod = 3 [json_name = "typeMod"];. + * + * @param int $var + * + * @return $this + */ + public function setTypeMod($var) + { + GPBUtil::checkInt32($var); + $this->type_mod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SinglePartitionSpec.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SinglePartitionSpec.php new file mode 100644 index 000000000..ef472d0b9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SinglePartitionSpec.php @@ -0,0 +1,31 @@ +pg_query.SinglePartitionSpec. + */ +class SinglePartitionSpec extends Message +{ + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortBy.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortBy.php new file mode 100644 index 000000000..67e5240af --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortBy.php @@ -0,0 +1,197 @@ +pg_query.SortBy. + */ +class SortBy extends Message +{ + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.Node node = 1 [json_name = "node"];. + */ + protected $node; + + /** + * Generated from protobuf field .pg_query.SortByDir sortby_dir = 2 [json_name = "sortby_dir"];. + */ + protected $sortby_dir = 0; + + /** + * Generated from protobuf field .pg_query.SortByNulls sortby_nulls = 3 [json_name = "sortby_nulls"];. + */ + protected $sortby_nulls = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node use_op = 4 [json_name = "useOp"];. + */ + private $use_op; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $node + * @var int $sortby_dir + * @var int $sortby_nulls + * @var array $use_op + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearNode() : void + { + $this->node = null; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.Node node = 1 [json_name = "node"];. + * + * @return null|Node + */ + public function getNode() + { + return $this->node; + } + + /** + * Generated from protobuf field .pg_query.SortByDir sortby_dir = 2 [json_name = "sortby_dir"];. + * + * @return int + */ + public function getSortbyDir() + { + return $this->sortby_dir; + } + + /** + * Generated from protobuf field .pg_query.SortByNulls sortby_nulls = 3 [json_name = "sortby_nulls"];. + * + * @return int + */ + public function getSortbyNulls() + { + return $this->sortby_nulls; + } + + /** + * Generated from protobuf field repeated .pg_query.Node use_op = 4 [json_name = "useOp"];. + * + * @return RepeatedField + */ + public function getUseOp() + { + return $this->use_op; + } + + public function hasNode() + { + return isset($this->node); + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node node = 1 [json_name = "node"];. + * + * @param Node $var + * + * @return $this + */ + public function setNode($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->node = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SortByDir sortby_dir = 2 [json_name = "sortby_dir"];. + * + * @param int $var + * + * @return $this + */ + public function setSortbyDir($var) + { + GPBUtil::checkEnum($var, SortByDir::class); + $this->sortby_dir = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SortByNulls sortby_nulls = 3 [json_name = "sortby_nulls"];. + * + * @param int $var + * + * @return $this + */ + public function setSortbyNulls($var) + { + GPBUtil::checkEnum($var, SortByNulls::class); + $this->sortby_nulls = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node use_op = 4 [json_name = "useOp"];. + * + * @param array $var + * + * @return $this + */ + public function setUseOp($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->use_op = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortByDir.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortByDir.php new file mode 100644 index 000000000..051f5f401 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortByDir.php @@ -0,0 +1,75 @@ +pg_query.SortByDir. + */ +class SortByDir +{ + /** + * Generated from protobuf enum SORT_BY_DIR_UNDEFINED = 0;. + */ + public const SORT_BY_DIR_UNDEFINED = 0; + + /** + * Generated from protobuf enum SORTBY_ASC = 2;. + */ + public const SORTBY_ASC = 2; + + /** + * Generated from protobuf enum SORTBY_DEFAULT = 1;. + */ + public const SORTBY_DEFAULT = 1; + + /** + * Generated from protobuf enum SORTBY_DESC = 3;. + */ + public const SORTBY_DESC = 3; + + /** + * Generated from protobuf enum SORTBY_USING = 4;. + */ + public const SORTBY_USING = 4; + + private static $valueToName = [ + self::SORT_BY_DIR_UNDEFINED => 'SORT_BY_DIR_UNDEFINED', + self::SORTBY_DEFAULT => 'SORTBY_DEFAULT', + self::SORTBY_ASC => 'SORTBY_ASC', + self::SORTBY_DESC => 'SORTBY_DESC', + self::SORTBY_USING => 'SORTBY_USING', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortByNulls.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortByNulls.php new file mode 100644 index 000000000..f1da9c8e8 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortByNulls.php @@ -0,0 +1,69 @@ +pg_query.SortByNulls. + */ +class SortByNulls +{ + /** + * Generated from protobuf enum SORT_BY_NULLS_UNDEFINED = 0;. + */ + public const SORT_BY_NULLS_UNDEFINED = 0; + + /** + * Generated from protobuf enum SORTBY_NULLS_DEFAULT = 1;. + */ + public const SORTBY_NULLS_DEFAULT = 1; + + /** + * Generated from protobuf enum SORTBY_NULLS_FIRST = 2;. + */ + public const SORTBY_NULLS_FIRST = 2; + + /** + * Generated from protobuf enum SORTBY_NULLS_LAST = 3;. + */ + public const SORTBY_NULLS_LAST = 3; + + private static $valueToName = [ + self::SORT_BY_NULLS_UNDEFINED => 'SORT_BY_NULLS_UNDEFINED', + self::SORTBY_NULLS_DEFAULT => 'SORTBY_NULLS_DEFAULT', + self::SORTBY_NULLS_FIRST => 'SORTBY_NULLS_FIRST', + self::SORTBY_NULLS_LAST => 'SORTBY_NULLS_LAST', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortGroupClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortGroupClause.php new file mode 100644 index 000000000..87ba95c41 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SortGroupClause.php @@ -0,0 +1,186 @@ +pg_query.SortGroupClause. + */ +class SortGroupClause extends Message +{ + /** + * Generated from protobuf field uint32 eqop = 2 [json_name = "eqop"];. + */ + protected $eqop = 0; + + /** + * Generated from protobuf field bool hashable = 5 [json_name = "hashable"];. + */ + protected $hashable = false; + + /** + * Generated from protobuf field bool nulls_first = 4 [json_name = "nulls_first"];. + */ + protected $nulls_first = false; + + /** + * Generated from protobuf field uint32 sortop = 3 [json_name = "sortop"];. + */ + protected $sortop = 0; + + /** + * Generated from protobuf field uint32 tle_sort_group_ref = 1 [json_name = "tleSortGroupRef"];. + */ + protected $tle_sort_group_ref = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $tle_sort_group_ref + * @var int $eqop + * @var int $sortop + * @var bool $nulls_first + * @var bool $hashable + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field uint32 eqop = 2 [json_name = "eqop"];. + * + * @return int + */ + public function getEqop() + { + return $this->eqop; + } + + /** + * Generated from protobuf field bool hashable = 5 [json_name = "hashable"];. + * + * @return bool + */ + public function getHashable() + { + return $this->hashable; + } + + /** + * Generated from protobuf field bool nulls_first = 4 [json_name = "nulls_first"];. + * + * @return bool + */ + public function getNullsFirst() + { + return $this->nulls_first; + } + + /** + * Generated from protobuf field uint32 sortop = 3 [json_name = "sortop"];. + * + * @return int + */ + public function getSortop() + { + return $this->sortop; + } + + /** + * Generated from protobuf field uint32 tle_sort_group_ref = 1 [json_name = "tleSortGroupRef"];. + * + * @return int + */ + public function getTleSortGroupRef() + { + return $this->tle_sort_group_ref; + } + + /** + * Generated from protobuf field uint32 eqop = 2 [json_name = "eqop"];. + * + * @param int $var + * + * @return $this + */ + public function setEqop($var) + { + GPBUtil::checkUint32($var); + $this->eqop = $var; + + return $this; + } + + /** + * Generated from protobuf field bool hashable = 5 [json_name = "hashable"];. + * + * @param bool $var + * + * @return $this + */ + public function setHashable($var) + { + GPBUtil::checkBool($var); + $this->hashable = $var; + + return $this; + } + + /** + * Generated from protobuf field bool nulls_first = 4 [json_name = "nulls_first"];. + * + * @param bool $var + * + * @return $this + */ + public function setNullsFirst($var) + { + GPBUtil::checkBool($var); + $this->nulls_first = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 sortop = 3 [json_name = "sortop"];. + * + * @param int $var + * + * @return $this + */ + public function setSortop($var) + { + GPBUtil::checkUint32($var); + $this->sortop = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 tle_sort_group_ref = 1 [json_name = "tleSortGroupRef"];. + * + * @param int $var + * + * @return $this + */ + public function setTleSortGroupRef($var) + { + GPBUtil::checkUint32($var); + $this->tle_sort_group_ref = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/StatsElem.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/StatsElem.php new file mode 100644 index 000000000..0aa8cee58 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/StatsElem.php @@ -0,0 +1,103 @@ +pg_query.StatsElem. + */ +class StatsElem extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var Node $expr + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + public function hasExpr() + { + return isset($this->expr); + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubLink.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubLink.php new file mode 100644 index 000000000..6949ebb5e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubLink.php @@ -0,0 +1,279 @@ +pg_query.SubLink. + */ +class SubLink extends Message +{ + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field int32 sub_link_id = 3 [json_name = "subLinkId"];. + */ + protected $sub_link_id = 0; + + /** + * Generated from protobuf field .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"];. + */ + protected $sub_link_type = 0; + + /** + * Generated from protobuf field .pg_query.Node subselect = 6 [json_name = "subselect"];. + */ + protected $subselect; + + /** + * Generated from protobuf field .pg_query.Node testexpr = 4 [json_name = "testexpr"];. + */ + protected $testexpr; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node oper_name = 5 [json_name = "operName"];. + */ + private $oper_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $sub_link_type + * @var int $sub_link_id + * @var Node $testexpr + * @var array $oper_name + * @var Node $subselect + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearSubselect() : void + { + $this->subselect = null; + } + + public function clearTestexpr() : void + { + $this->testexpr = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node oper_name = 5 [json_name = "operName"];. + * + * @return RepeatedField + */ + public function getOperName() + { + return $this->oper_name; + } + + /** + * Generated from protobuf field int32 sub_link_id = 3 [json_name = "subLinkId"];. + * + * @return int + */ + public function getSubLinkId() + { + return $this->sub_link_id; + } + + /** + * Generated from protobuf field .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"];. + * + * @return int + */ + public function getSubLinkType() + { + return $this->sub_link_type; + } + + /** + * Generated from protobuf field .pg_query.Node subselect = 6 [json_name = "subselect"];. + * + * @return null|Node + */ + public function getSubselect() + { + return $this->subselect; + } + + /** + * Generated from protobuf field .pg_query.Node testexpr = 4 [json_name = "testexpr"];. + * + * @return null|Node + */ + public function getTestexpr() + { + return $this->testexpr; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasSubselect() + { + return isset($this->subselect); + } + + public function hasTestexpr() + { + return isset($this->testexpr); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field int32 location = 7 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node oper_name = 5 [json_name = "operName"];. + * + * @param array $var + * + * @return $this + */ + public function setOperName($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->oper_name = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 sub_link_id = 3 [json_name = "subLinkId"];. + * + * @param int $var + * + * @return $this + */ + public function setSubLinkId($var) + { + GPBUtil::checkInt32($var); + $this->sub_link_id = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"];. + * + * @param int $var + * + * @return $this + */ + public function setSubLinkType($var) + { + GPBUtil::checkEnum($var, SubLinkType::class); + $this->sub_link_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node subselect = 6 [json_name = "subselect"];. + * + * @param Node $var + * + * @return $this + */ + public function setSubselect($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->subselect = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node testexpr = 4 [json_name = "testexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setTestexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->testexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubLinkType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubLinkType.php new file mode 100644 index 000000000..2cf0c044d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubLinkType.php @@ -0,0 +1,99 @@ +pg_query.SubLinkType. + */ +class SubLinkType +{ + /** + * Generated from protobuf enum ALL_SUBLINK = 2;. + */ + public const ALL_SUBLINK = 2; + + /** + * Generated from protobuf enum ANY_SUBLINK = 3;. + */ + public const ANY_SUBLINK = 3; + + /** + * Generated from protobuf enum ARRAY_SUBLINK = 7;. + */ + public const ARRAY_SUBLINK = 7; + + /** + * Generated from protobuf enum CTE_SUBLINK = 8;. + */ + public const CTE_SUBLINK = 8; + + /** + * Generated from protobuf enum EXISTS_SUBLINK = 1;. + */ + public const EXISTS_SUBLINK = 1; + + /** + * Generated from protobuf enum EXPR_SUBLINK = 5;. + */ + public const EXPR_SUBLINK = 5; + + /** + * Generated from protobuf enum MULTIEXPR_SUBLINK = 6;. + */ + public const MULTIEXPR_SUBLINK = 6; + + /** + * Generated from protobuf enum ROWCOMPARE_SUBLINK = 4;. + */ + public const ROWCOMPARE_SUBLINK = 4; + + /** + * Generated from protobuf enum SUB_LINK_TYPE_UNDEFINED = 0;. + */ + public const SUB_LINK_TYPE_UNDEFINED = 0; + + private static $valueToName = [ + self::SUB_LINK_TYPE_UNDEFINED => 'SUB_LINK_TYPE_UNDEFINED', + self::EXISTS_SUBLINK => 'EXISTS_SUBLINK', + self::ALL_SUBLINK => 'ALL_SUBLINK', + self::ANY_SUBLINK => 'ANY_SUBLINK', + self::ROWCOMPARE_SUBLINK => 'ROWCOMPARE_SUBLINK', + self::EXPR_SUBLINK => 'EXPR_SUBLINK', + self::MULTIEXPR_SUBLINK => 'MULTIEXPR_SUBLINK', + self::ARRAY_SUBLINK => 'ARRAY_SUBLINK', + self::CTE_SUBLINK => 'CTE_SUBLINK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubPlan.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubPlan.php new file mode 100644 index 000000000..275e05d20 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubPlan.php @@ -0,0 +1,579 @@ +pg_query.SubPlan. + */ +class SubPlan extends Message +{ + /** + * Generated from protobuf field uint32 first_col_collation = 9 [json_name = "firstColCollation"];. + */ + protected $first_col_collation = 0; + + /** + * Generated from protobuf field uint32 first_col_type = 7 [json_name = "firstColType"];. + */ + protected $first_col_type = 0; + + /** + * Generated from protobuf field int32 first_col_typmod = 8 [json_name = "firstColTypmod"];. + */ + protected $first_col_typmod = 0; + + /** + * Generated from protobuf field bool parallel_safe = 12 [json_name = "parallel_safe"];. + */ + protected $parallel_safe = false; + + /** + * Generated from protobuf field double per_call_cost = 17 [json_name = "per_call_cost"];. + */ + protected $per_call_cost = 0.0; + + /** + * Generated from protobuf field int32 plan_id = 5 [json_name = "plan_id"];. + */ + protected $plan_id = 0; + + /** + * Generated from protobuf field string plan_name = 6 [json_name = "plan_name"];. + */ + protected $plan_name = ''; + + /** + * Generated from protobuf field double startup_cost = 16 [json_name = "startup_cost"];. + */ + protected $startup_cost = 0.0; + + /** + * Generated from protobuf field .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"];. + */ + protected $sub_link_type = 0; + + /** + * Generated from protobuf field .pg_query.Node testexpr = 3 [json_name = "testexpr"];. + */ + protected $testexpr; + + /** + * Generated from protobuf field bool unknown_eq_false = 11 [json_name = "unknownEqFalse"];. + */ + protected $unknown_eq_false = false; + + /** + * Generated from protobuf field bool use_hash_table = 10 [json_name = "useHashTable"];. + */ + protected $use_hash_table = false; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 15 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node par_param = 14 [json_name = "parParam"];. + */ + private $par_param; + + /** + * Generated from protobuf field repeated .pg_query.Node param_ids = 4 [json_name = "paramIds"];. + */ + private $param_ids; + + /** + * Generated from protobuf field repeated .pg_query.Node set_param = 13 [json_name = "setParam"];. + */ + private $set_param; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $sub_link_type + * @var Node $testexpr + * @var array $param_ids + * @var int $plan_id + * @var string $plan_name + * @var int $first_col_type + * @var int $first_col_typmod + * @var int $first_col_collation + * @var bool $use_hash_table + * @var bool $unknown_eq_false + * @var bool $parallel_safe + * @var array $set_param + * @var array $par_param + * @var array $args + * @var float $startup_cost + * @var float $per_call_cost + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearTestexpr() : void + { + $this->testexpr = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 15 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 first_col_collation = 9 [json_name = "firstColCollation"];. + * + * @return int + */ + public function getFirstColCollation() + { + return $this->first_col_collation; + } + + /** + * Generated from protobuf field uint32 first_col_type = 7 [json_name = "firstColType"];. + * + * @return int + */ + public function getFirstColType() + { + return $this->first_col_type; + } + + /** + * Generated from protobuf field int32 first_col_typmod = 8 [json_name = "firstColTypmod"];. + * + * @return int + */ + public function getFirstColTypmod() + { + return $this->first_col_typmod; + } + + /** + * Generated from protobuf field bool parallel_safe = 12 [json_name = "parallel_safe"];. + * + * @return bool + */ + public function getParallelSafe() + { + return $this->parallel_safe; + } + + /** + * Generated from protobuf field repeated .pg_query.Node param_ids = 4 [json_name = "paramIds"];. + * + * @return RepeatedField + */ + public function getParamIds() + { + return $this->param_ids; + } + + /** + * Generated from protobuf field repeated .pg_query.Node par_param = 14 [json_name = "parParam"];. + * + * @return RepeatedField + */ + public function getParParam() + { + return $this->par_param; + } + + /** + * Generated from protobuf field double per_call_cost = 17 [json_name = "per_call_cost"];. + * + * @return float + */ + public function getPerCallCost() + { + return $this->per_call_cost; + } + + /** + * Generated from protobuf field int32 plan_id = 5 [json_name = "plan_id"];. + * + * @return int + */ + public function getPlanId() + { + return $this->plan_id; + } + + /** + * Generated from protobuf field string plan_name = 6 [json_name = "plan_name"];. + * + * @return string + */ + public function getPlanName() + { + return $this->plan_name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node set_param = 13 [json_name = "setParam"];. + * + * @return RepeatedField + */ + public function getSetParam() + { + return $this->set_param; + } + + /** + * Generated from protobuf field double startup_cost = 16 [json_name = "startup_cost"];. + * + * @return float + */ + public function getStartupCost() + { + return $this->startup_cost; + } + + /** + * Generated from protobuf field .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"];. + * + * @return int + */ + public function getSubLinkType() + { + return $this->sub_link_type; + } + + /** + * Generated from protobuf field .pg_query.Node testexpr = 3 [json_name = "testexpr"];. + * + * @return null|Node + */ + public function getTestexpr() + { + return $this->testexpr; + } + + /** + * Generated from protobuf field bool unknown_eq_false = 11 [json_name = "unknownEqFalse"];. + * + * @return bool + */ + public function getUnknownEqFalse() + { + return $this->unknown_eq_false; + } + + /** + * Generated from protobuf field bool use_hash_table = 10 [json_name = "useHashTable"];. + * + * @return bool + */ + public function getUseHashTable() + { + return $this->use_hash_table; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasTestexpr() + { + return isset($this->testexpr); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 15 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 first_col_collation = 9 [json_name = "firstColCollation"];. + * + * @param int $var + * + * @return $this + */ + public function setFirstColCollation($var) + { + GPBUtil::checkUint32($var); + $this->first_col_collation = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 first_col_type = 7 [json_name = "firstColType"];. + * + * @param int $var + * + * @return $this + */ + public function setFirstColType($var) + { + GPBUtil::checkUint32($var); + $this->first_col_type = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 first_col_typmod = 8 [json_name = "firstColTypmod"];. + * + * @param int $var + * + * @return $this + */ + public function setFirstColTypmod($var) + { + GPBUtil::checkInt32($var); + $this->first_col_typmod = $var; + + return $this; + } + + /** + * Generated from protobuf field bool parallel_safe = 12 [json_name = "parallel_safe"];. + * + * @param bool $var + * + * @return $this + */ + public function setParallelSafe($var) + { + GPBUtil::checkBool($var); + $this->parallel_safe = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node param_ids = 4 [json_name = "paramIds"];. + * + * @param array $var + * + * @return $this + */ + public function setParamIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->param_ids = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node par_param = 14 [json_name = "parParam"];. + * + * @param array $var + * + * @return $this + */ + public function setParParam($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->par_param = $arr; + + return $this; + } + + /** + * Generated from protobuf field double per_call_cost = 17 [json_name = "per_call_cost"];. + * + * @param float $var + * + * @return $this + */ + public function setPerCallCost($var) + { + GPBUtil::checkDouble($var); + $this->per_call_cost = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 plan_id = 5 [json_name = "plan_id"];. + * + * @param int $var + * + * @return $this + */ + public function setPlanId($var) + { + GPBUtil::checkInt32($var); + $this->plan_id = $var; + + return $this; + } + + /** + * Generated from protobuf field string plan_name = 6 [json_name = "plan_name"];. + * + * @param string $var + * + * @return $this + */ + public function setPlanName($var) + { + GPBUtil::checkString($var, true); + $this->plan_name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node set_param = 13 [json_name = "setParam"];. + * + * @param array $var + * + * @return $this + */ + public function setSetParam($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->set_param = $arr; + + return $this; + } + + /** + * Generated from protobuf field double startup_cost = 16 [json_name = "startup_cost"];. + * + * @param float $var + * + * @return $this + */ + public function setStartupCost($var) + { + GPBUtil::checkDouble($var); + $this->startup_cost = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.SubLinkType sub_link_type = 2 [json_name = "subLinkType"];. + * + * @param int $var + * + * @return $this + */ + public function setSubLinkType($var) + { + GPBUtil::checkEnum($var, SubLinkType::class); + $this->sub_link_type = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node testexpr = 3 [json_name = "testexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setTestexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->testexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field bool unknown_eq_false = 11 [json_name = "unknownEqFalse"];. + * + * @param bool $var + * + * @return $this + */ + public function setUnknownEqFalse($var) + { + GPBUtil::checkBool($var); + $this->unknown_eq_false = $var; + + return $this; + } + + /** + * Generated from protobuf field bool use_hash_table = 10 [json_name = "useHashTable"];. + * + * @param bool $var + * + * @return $this + */ + public function setUseHashTable($var) + { + GPBUtil::checkBool($var); + $this->use_hash_table = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubscriptingRef.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubscriptingRef.php new file mode 100644 index 000000000..0c857292b --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/SubscriptingRef.php @@ -0,0 +1,372 @@ +pg_query.SubscriptingRef. + */ +class SubscriptingRef extends Message +{ + /** + * Generated from protobuf field .pg_query.Node refassgnexpr = 10 [json_name = "refassgnexpr"];. + */ + protected $refassgnexpr; + + /** + * Generated from protobuf field uint32 refcollid = 6 [json_name = "refcollid"];. + */ + protected $refcollid = 0; + + /** + * Generated from protobuf field uint32 refcontainertype = 2 [json_name = "refcontainertype"];. + */ + protected $refcontainertype = 0; + + /** + * Generated from protobuf field uint32 refelemtype = 3 [json_name = "refelemtype"];. + */ + protected $refelemtype = 0; + + /** + * Generated from protobuf field .pg_query.Node refexpr = 9 [json_name = "refexpr"];. + */ + protected $refexpr; + + /** + * Generated from protobuf field uint32 refrestype = 4 [json_name = "refrestype"];. + */ + protected $refrestype = 0; + + /** + * Generated from protobuf field int32 reftypmod = 5 [json_name = "reftypmod"];. + */ + protected $reftypmod = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node reflowerindexpr = 8 [json_name = "reflowerindexpr"];. + */ + private $reflowerindexpr; + + /** + * Generated from protobuf field repeated .pg_query.Node refupperindexpr = 7 [json_name = "refupperindexpr"];. + */ + private $refupperindexpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $refcontainertype + * @var int $refelemtype + * @var int $refrestype + * @var int $reftypmod + * @var int $refcollid + * @var array $refupperindexpr + * @var array $reflowerindexpr + * @var Node $refexpr + * @var Node $refassgnexpr + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRefassgnexpr() : void + { + $this->refassgnexpr = null; + } + + public function clearRefexpr() : void + { + $this->refexpr = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node refassgnexpr = 10 [json_name = "refassgnexpr"];. + * + * @return null|Node + */ + public function getRefassgnexpr() + { + return $this->refassgnexpr; + } + + /** + * Generated from protobuf field uint32 refcollid = 6 [json_name = "refcollid"];. + * + * @return int + */ + public function getRefcollid() + { + return $this->refcollid; + } + + /** + * Generated from protobuf field uint32 refcontainertype = 2 [json_name = "refcontainertype"];. + * + * @return int + */ + public function getRefcontainertype() + { + return $this->refcontainertype; + } + + /** + * Generated from protobuf field uint32 refelemtype = 3 [json_name = "refelemtype"];. + * + * @return int + */ + public function getRefelemtype() + { + return $this->refelemtype; + } + + /** + * Generated from protobuf field .pg_query.Node refexpr = 9 [json_name = "refexpr"];. + * + * @return null|Node + */ + public function getRefexpr() + { + return $this->refexpr; + } + + /** + * Generated from protobuf field repeated .pg_query.Node reflowerindexpr = 8 [json_name = "reflowerindexpr"];. + * + * @return RepeatedField + */ + public function getReflowerindexpr() + { + return $this->reflowerindexpr; + } + + /** + * Generated from protobuf field uint32 refrestype = 4 [json_name = "refrestype"];. + * + * @return int + */ + public function getRefrestype() + { + return $this->refrestype; + } + + /** + * Generated from protobuf field int32 reftypmod = 5 [json_name = "reftypmod"];. + * + * @return int + */ + public function getReftypmod() + { + return $this->reftypmod; + } + + /** + * Generated from protobuf field repeated .pg_query.Node refupperindexpr = 7 [json_name = "refupperindexpr"];. + * + * @return RepeatedField + */ + public function getRefupperindexpr() + { + return $this->refupperindexpr; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasRefassgnexpr() + { + return isset($this->refassgnexpr); + } + + public function hasRefexpr() + { + return isset($this->refexpr); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node refassgnexpr = 10 [json_name = "refassgnexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setRefassgnexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->refassgnexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 refcollid = 6 [json_name = "refcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setRefcollid($var) + { + GPBUtil::checkUint32($var); + $this->refcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 refcontainertype = 2 [json_name = "refcontainertype"];. + * + * @param int $var + * + * @return $this + */ + public function setRefcontainertype($var) + { + GPBUtil::checkUint32($var); + $this->refcontainertype = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 refelemtype = 3 [json_name = "refelemtype"];. + * + * @param int $var + * + * @return $this + */ + public function setRefelemtype($var) + { + GPBUtil::checkUint32($var); + $this->refelemtype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node refexpr = 9 [json_name = "refexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setRefexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->refexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node reflowerindexpr = 8 [json_name = "reflowerindexpr"];. + * + * @param array $var + * + * @return $this + */ + public function setReflowerindexpr($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->reflowerindexpr = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 refrestype = 4 [json_name = "refrestype"];. + * + * @param int $var + * + * @return $this + */ + public function setRefrestype($var) + { + GPBUtil::checkUint32($var); + $this->refrestype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 reftypmod = 5 [json_name = "reftypmod"];. + * + * @param int $var + * + * @return $this + */ + public function setReftypmod($var) + { + GPBUtil::checkInt32($var); + $this->reftypmod = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node refupperindexpr = 7 [json_name = "refupperindexpr"];. + * + * @param array $var + * + * @return $this + */ + public function setRefupperindexpr($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->refupperindexpr = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableFunc.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableFunc.php new file mode 100644 index 000000000..f98e5e3d4 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableFunc.php @@ -0,0 +1,589 @@ +pg_query.TableFunc. + */ +class TableFunc extends Message +{ + /** + * Generated from protobuf field .pg_query.Node docexpr = 4 [json_name = "docexpr"];. + */ + protected $docexpr; + + /** + * Generated from protobuf field .pg_query.TableFuncType functype = 1 [json_name = "functype"];. + */ + protected $functype = 0; + + /** + * Generated from protobuf field int32 location = 17 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field int32 ordinalitycol = 16 [json_name = "ordinalitycol"];. + */ + protected $ordinalitycol = 0; + + /** + * Generated from protobuf field .pg_query.Node plan = 15 [json_name = "plan"];. + */ + protected $plan; + + /** + * Generated from protobuf field .pg_query.Node rowexpr = 5 [json_name = "rowexpr"];. + */ + protected $rowexpr; + + /** + * Generated from protobuf field repeated .pg_query.Node colcollations = 9 [json_name = "colcollations"];. + */ + private $colcollations; + + /** + * Generated from protobuf field repeated .pg_query.Node coldefexprs = 11 [json_name = "coldefexprs"];. + */ + private $coldefexprs; + + /** + * Generated from protobuf field repeated .pg_query.Node colexprs = 10 [json_name = "colexprs"];. + */ + private $colexprs; + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 6 [json_name = "colnames"];. + */ + private $colnames; + + /** + * Generated from protobuf field repeated .pg_query.Node coltypes = 7 [json_name = "coltypes"];. + */ + private $coltypes; + + /** + * Generated from protobuf field repeated .pg_query.Node coltypmods = 8 [json_name = "coltypmods"];. + */ + private $coltypmods; + + /** + * Generated from protobuf field repeated .pg_query.Node colvalexprs = 12 [json_name = "colvalexprs"];. + */ + private $colvalexprs; + + /** + * Generated from protobuf field repeated uint64 notnulls = 14 [json_name = "notnulls"];. + */ + private $notnulls; + + /** + * Generated from protobuf field repeated .pg_query.Node ns_names = 3 [json_name = "ns_names"];. + */ + private $ns_names; + + /** + * Generated from protobuf field repeated .pg_query.Node ns_uris = 2 [json_name = "ns_uris"];. + */ + private $ns_uris; + + /** + * Generated from protobuf field repeated .pg_query.Node passingvalexprs = 13 [json_name = "passingvalexprs"];. + */ + private $passingvalexprs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $functype + * @var array $ns_uris + * @var array $ns_names + * @var Node $docexpr + * @var Node $rowexpr + * @var array $colnames + * @var array $coltypes + * @var array $coltypmods + * @var array $colcollations + * @var array $colexprs + * @var array $coldefexprs + * @var array $colvalexprs + * @var array $passingvalexprs + * @var array|array $notnulls + * @var Node $plan + * @var int $ordinalitycol + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearDocexpr() : void + { + $this->docexpr = null; + } + + public function clearPlan() : void + { + $this->plan = null; + } + + public function clearRowexpr() : void + { + $this->rowexpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colcollations = 9 [json_name = "colcollations"];. + * + * @return RepeatedField + */ + public function getColcollations() + { + return $this->colcollations; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coldefexprs = 11 [json_name = "coldefexprs"];. + * + * @return RepeatedField + */ + public function getColdefexprs() + { + return $this->coldefexprs; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colexprs = 10 [json_name = "colexprs"];. + * + * @return RepeatedField + */ + public function getColexprs() + { + return $this->colexprs; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 6 [json_name = "colnames"];. + * + * @return RepeatedField + */ + public function getColnames() + { + return $this->colnames; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coltypes = 7 [json_name = "coltypes"];. + * + * @return RepeatedField + */ + public function getColtypes() + { + return $this->coltypes; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coltypmods = 8 [json_name = "coltypmods"];. + * + * @return RepeatedField + */ + public function getColtypmods() + { + return $this->coltypmods; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colvalexprs = 12 [json_name = "colvalexprs"];. + * + * @return RepeatedField + */ + public function getColvalexprs() + { + return $this->colvalexprs; + } + + /** + * Generated from protobuf field .pg_query.Node docexpr = 4 [json_name = "docexpr"];. + * + * @return null|Node + */ + public function getDocexpr() + { + return $this->docexpr; + } + + /** + * Generated from protobuf field .pg_query.TableFuncType functype = 1 [json_name = "functype"];. + * + * @return int + */ + public function getFunctype() + { + return $this->functype; + } + + /** + * Generated from protobuf field int32 location = 17 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated uint64 notnulls = 14 [json_name = "notnulls"];. + * + * @return RepeatedField|RepeatedField + */ + public function getNotnulls() + { + return $this->notnulls; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ns_names = 3 [json_name = "ns_names"];. + * + * @return RepeatedField + */ + public function getNsNames() + { + return $this->ns_names; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ns_uris = 2 [json_name = "ns_uris"];. + * + * @return RepeatedField + */ + public function getNsUris() + { + return $this->ns_uris; + } + + /** + * Generated from protobuf field int32 ordinalitycol = 16 [json_name = "ordinalitycol"];. + * + * @return int + */ + public function getOrdinalitycol() + { + return $this->ordinalitycol; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passingvalexprs = 13 [json_name = "passingvalexprs"];. + * + * @return RepeatedField + */ + public function getPassingvalexprs() + { + return $this->passingvalexprs; + } + + /** + * Generated from protobuf field .pg_query.Node plan = 15 [json_name = "plan"];. + * + * @return null|Node + */ + public function getPlan() + { + return $this->plan; + } + + /** + * Generated from protobuf field .pg_query.Node rowexpr = 5 [json_name = "rowexpr"];. + * + * @return null|Node + */ + public function getRowexpr() + { + return $this->rowexpr; + } + + public function hasDocexpr() + { + return isset($this->docexpr); + } + + public function hasPlan() + { + return isset($this->plan); + } + + public function hasRowexpr() + { + return isset($this->rowexpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node colcollations = 9 [json_name = "colcollations"];. + * + * @param array $var + * + * @return $this + */ + public function setColcollations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->colcollations = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coldefexprs = 11 [json_name = "coldefexprs"];. + * + * @param array $var + * + * @return $this + */ + public function setColdefexprs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->coldefexprs = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colexprs = 10 [json_name = "colexprs"];. + * + * @param array $var + * + * @return $this + */ + public function setColexprs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->colexprs = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colnames = 6 [json_name = "colnames"];. + * + * @param array $var + * + * @return $this + */ + public function setColnames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->colnames = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coltypes = 7 [json_name = "coltypes"];. + * + * @param array $var + * + * @return $this + */ + public function setColtypes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->coltypes = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node coltypmods = 8 [json_name = "coltypmods"];. + * + * @param array $var + * + * @return $this + */ + public function setColtypmods($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->coltypmods = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node colvalexprs = 12 [json_name = "colvalexprs"];. + * + * @param array $var + * + * @return $this + */ + public function setColvalexprs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->colvalexprs = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node docexpr = 4 [json_name = "docexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setDocexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->docexpr = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TableFuncType functype = 1 [json_name = "functype"];. + * + * @param int $var + * + * @return $this + */ + public function setFunctype($var) + { + GPBUtil::checkEnum($var, TableFuncType::class); + $this->functype = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 17 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated uint64 notnulls = 14 [json_name = "notnulls"];. + * + * @param array|array $var + * + * @return $this + */ + public function setNotnulls($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::UINT64); + $this->notnulls = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ns_names = 3 [json_name = "ns_names"];. + * + * @param array $var + * + * @return $this + */ + public function setNsNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->ns_names = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ns_uris = 2 [json_name = "ns_uris"];. + * + * @param array $var + * + * @return $this + */ + public function setNsUris($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->ns_uris = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 ordinalitycol = 16 [json_name = "ordinalitycol"];. + * + * @param int $var + * + * @return $this + */ + public function setOrdinalitycol($var) + { + GPBUtil::checkInt32($var); + $this->ordinalitycol = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node passingvalexprs = 13 [json_name = "passingvalexprs"];. + * + * @param array $var + * + * @return $this + */ + public function setPassingvalexprs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->passingvalexprs = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node plan = 15 [json_name = "plan"];. + * + * @param Node $var + * + * @return $this + */ + public function setPlan($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->plan = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node rowexpr = 5 [json_name = "rowexpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setRowexpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->rowexpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableFuncType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableFuncType.php new file mode 100644 index 000000000..0733c2d9e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableFuncType.php @@ -0,0 +1,63 @@ +pg_query.TableFuncType. + */ +class TableFuncType +{ + /** + * Generated from protobuf enum TABLE_FUNC_TYPE_UNDEFINED = 0;. + */ + public const TABLE_FUNC_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum TFT_JSON_TABLE = 2;. + */ + public const TFT_JSON_TABLE = 2; + + /** + * Generated from protobuf enum TFT_XMLTABLE = 1;. + */ + public const TFT_XMLTABLE = 1; + + private static $valueToName = [ + self::TABLE_FUNC_TYPE_UNDEFINED => 'TABLE_FUNC_TYPE_UNDEFINED', + self::TFT_XMLTABLE => 'TFT_XMLTABLE', + self::TFT_JSON_TABLE => 'TFT_JSON_TABLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableLikeClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableLikeClause.php new file mode 100644 index 000000000..fff53db90 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableLikeClause.php @@ -0,0 +1,134 @@ +pg_query.TableLikeClause. + */ +class TableLikeClause extends Message +{ + /** + * Generated from protobuf field uint32 options = 2 [json_name = "options"];. + */ + protected $options = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field uint32 relation_oid = 3 [json_name = "relationOid"];. + */ + protected $relation_oid = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var int $options + * @var int $relation_oid + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field uint32 options = 2 [json_name = "options"];. + * + * @return int + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field uint32 relation_oid = 3 [json_name = "relationOid"];. + * + * @return int + */ + public function getRelationOid() + { + return $this->relation_oid; + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field uint32 options = 2 [json_name = "options"];. + * + * @param int $var + * + * @return $this + */ + public function setOptions($var) + { + GPBUtil::checkUint32($var); + $this->options = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 relation_oid = 3 [json_name = "relationOid"];. + * + * @param int $var + * + * @return $this + */ + public function setRelationOid($var) + { + GPBUtil::checkUint32($var); + $this->relation_oid = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableLikeOption.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableLikeOption.php new file mode 100644 index 000000000..635b80522 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableLikeOption.php @@ -0,0 +1,111 @@ +pg_query.TableLikeOption. + */ +class TableLikeOption +{ + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_ALL = 10;. + */ + public const CREATE_TABLE_LIKE_ALL = 10; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_COMMENTS = 1;. + */ + public const CREATE_TABLE_LIKE_COMMENTS = 1; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_COMPRESSION = 2;. + */ + public const CREATE_TABLE_LIKE_COMPRESSION = 2; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_CONSTRAINTS = 3;. + */ + public const CREATE_TABLE_LIKE_CONSTRAINTS = 3; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_DEFAULTS = 4;. + */ + public const CREATE_TABLE_LIKE_DEFAULTS = 4; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_GENERATED = 5;. + */ + public const CREATE_TABLE_LIKE_GENERATED = 5; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_IDENTITY = 6;. + */ + public const CREATE_TABLE_LIKE_IDENTITY = 6; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_INDEXES = 7;. + */ + public const CREATE_TABLE_LIKE_INDEXES = 7; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_STATISTICS = 8;. + */ + public const CREATE_TABLE_LIKE_STATISTICS = 8; + + /** + * Generated from protobuf enum CREATE_TABLE_LIKE_STORAGE = 9;. + */ + public const CREATE_TABLE_LIKE_STORAGE = 9; + + /** + * Generated from protobuf enum TABLE_LIKE_OPTION_UNDEFINED = 0;. + */ + public const TABLE_LIKE_OPTION_UNDEFINED = 0; + + private static $valueToName = [ + self::TABLE_LIKE_OPTION_UNDEFINED => 'TABLE_LIKE_OPTION_UNDEFINED', + self::CREATE_TABLE_LIKE_COMMENTS => 'CREATE_TABLE_LIKE_COMMENTS', + self::CREATE_TABLE_LIKE_COMPRESSION => 'CREATE_TABLE_LIKE_COMPRESSION', + self::CREATE_TABLE_LIKE_CONSTRAINTS => 'CREATE_TABLE_LIKE_CONSTRAINTS', + self::CREATE_TABLE_LIKE_DEFAULTS => 'CREATE_TABLE_LIKE_DEFAULTS', + self::CREATE_TABLE_LIKE_GENERATED => 'CREATE_TABLE_LIKE_GENERATED', + self::CREATE_TABLE_LIKE_IDENTITY => 'CREATE_TABLE_LIKE_IDENTITY', + self::CREATE_TABLE_LIKE_INDEXES => 'CREATE_TABLE_LIKE_INDEXES', + self::CREATE_TABLE_LIKE_STATISTICS => 'CREATE_TABLE_LIKE_STATISTICS', + self::CREATE_TABLE_LIKE_STORAGE => 'CREATE_TABLE_LIKE_STORAGE', + self::CREATE_TABLE_LIKE_ALL => 'CREATE_TABLE_LIKE_ALL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableSampleClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableSampleClause.php new file mode 100644 index 000000000..2a76726e7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TableSampleClause.php @@ -0,0 +1,135 @@ +pg_query.TableSampleClause. + */ +class TableSampleClause extends Message +{ + /** + * Generated from protobuf field .pg_query.Node repeatable = 3 [json_name = "repeatable"];. + */ + protected $repeatable; + + /** + * Generated from protobuf field uint32 tsmhandler = 1 [json_name = "tsmhandler"];. + */ + protected $tsmhandler = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $tsmhandler + * @var array $args + * @var Node $repeatable + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRepeatable() : void + { + $this->repeatable = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field .pg_query.Node repeatable = 3 [json_name = "repeatable"];. + * + * @return null|Node + */ + public function getRepeatable() + { + return $this->repeatable; + } + + /** + * Generated from protobuf field uint32 tsmhandler = 1 [json_name = "tsmhandler"];. + * + * @return int + */ + public function getTsmhandler() + { + return $this->tsmhandler; + } + + public function hasRepeatable() + { + return isset($this->repeatable); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 2 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node repeatable = 3 [json_name = "repeatable"];. + * + * @param Node $var + * + * @return $this + */ + public function setRepeatable($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->repeatable = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 tsmhandler = 1 [json_name = "tsmhandler"];. + * + * @param int $var + * + * @return $this + */ + public function setTsmhandler($var) + { + GPBUtil::checkUint32($var); + $this->tsmhandler = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TargetEntry.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TargetEntry.php new file mode 100644 index 000000000..370bca31c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TargetEntry.php @@ -0,0 +1,299 @@ +pg_query.TargetEntry. + */ +class TargetEntry extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field bool resjunk = 8 [json_name = "resjunk"];. + */ + protected $resjunk = false; + + /** + * Generated from protobuf field string resname = 4 [json_name = "resname"];. + */ + protected $resname = ''; + + /** + * Generated from protobuf field int32 resno = 3 [json_name = "resno"];. + */ + protected $resno = 0; + + /** + * Generated from protobuf field int32 resorigcol = 7 [json_name = "resorigcol"];. + */ + protected $resorigcol = 0; + + /** + * Generated from protobuf field uint32 resorigtbl = 6 [json_name = "resorigtbl"];. + */ + protected $resorigtbl = 0; + + /** + * Generated from protobuf field uint32 ressortgroupref = 5 [json_name = "ressortgroupref"];. + */ + protected $ressortgroupref = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var Node $expr + * @var int $resno + * @var string $resname + * @var int $ressortgroupref + * @var int $resorigtbl + * @var int $resorigcol + * @var bool $resjunk + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field bool resjunk = 8 [json_name = "resjunk"];. + * + * @return bool + */ + public function getResjunk() + { + return $this->resjunk; + } + + /** + * Generated from protobuf field string resname = 4 [json_name = "resname"];. + * + * @return string + */ + public function getResname() + { + return $this->resname; + } + + /** + * Generated from protobuf field int32 resno = 3 [json_name = "resno"];. + * + * @return int + */ + public function getResno() + { + return $this->resno; + } + + /** + * Generated from protobuf field int32 resorigcol = 7 [json_name = "resorigcol"];. + * + * @return int + */ + public function getResorigcol() + { + return $this->resorigcol; + } + + /** + * Generated from protobuf field uint32 resorigtbl = 6 [json_name = "resorigtbl"];. + * + * @return int + */ + public function getResorigtbl() + { + return $this->resorigtbl; + } + + /** + * Generated from protobuf field uint32 ressortgroupref = 5 [json_name = "ressortgroupref"];. + * + * @return int + */ + public function getRessortgroupref() + { + return $this->ressortgroupref; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasExpr() + { + return isset($this->expr); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field bool resjunk = 8 [json_name = "resjunk"];. + * + * @param bool $var + * + * @return $this + */ + public function setResjunk($var) + { + GPBUtil::checkBool($var); + $this->resjunk = $var; + + return $this; + } + + /** + * Generated from protobuf field string resname = 4 [json_name = "resname"];. + * + * @param string $var + * + * @return $this + */ + public function setResname($var) + { + GPBUtil::checkString($var, true); + $this->resname = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 resno = 3 [json_name = "resno"];. + * + * @param int $var + * + * @return $this + */ + public function setResno($var) + { + GPBUtil::checkInt32($var); + $this->resno = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 resorigcol = 7 [json_name = "resorigcol"];. + * + * @param int $var + * + * @return $this + */ + public function setResorigcol($var) + { + GPBUtil::checkInt32($var); + $this->resorigcol = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 resorigtbl = 6 [json_name = "resorigtbl"];. + * + * @param int $var + * + * @return $this + */ + public function setResorigtbl($var) + { + GPBUtil::checkUint32($var); + $this->resorigtbl = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 ressortgroupref = 5 [json_name = "ressortgroupref"];. + * + * @param int $var + * + * @return $this + */ + public function setRessortgroupref($var) + { + GPBUtil::checkUint32($var); + $this->ressortgroupref = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Token.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Token.php new file mode 100644 index 000000000..d489d7973 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/Token.php @@ -0,0 +1,3347 @@ +pg_query.Token. + */ +class Token +{ + /** + * Generated from protobuf enum ABORT_P = 277;. + */ + public const ABORT_P = 277; + + /** + * Generated from protobuf enum ABSENT = 278;. + */ + public const ABSENT = 278; + + /** + * Generated from protobuf enum ABSOLUTE_P = 279;. + */ + public const ABSOLUTE_P = 279; + + /** + * Generated from protobuf enum ACCESS = 280;. + */ + public const ACCESS = 280; + + /** + * Generated from protobuf enum ACTION = 281;. + */ + public const ACTION = 281; + + /** + * Generated from protobuf enum ADD_P = 282;. + */ + public const ADD_P = 282; + + /** + * Generated from protobuf enum ADMIN = 283;. + */ + public const ADMIN = 283; + + /** + * Generated from protobuf enum AFTER = 284;. + */ + public const AFTER = 284; + + /** + * Generated from protobuf enum AGGREGATE = 285;. + */ + public const AGGREGATE = 285; + + /** + * Generated from protobuf enum ALL = 286;. + */ + public const ALL = 286; + + /** + * Generated from protobuf enum ALSO = 287;. + */ + public const ALSO = 287; + + /** + * Generated from protobuf enum ALTER = 288;. + */ + public const ALTER = 288; + + /** + * Generated from protobuf enum ALWAYS = 289;. + */ + public const ALWAYS = 289; + + /** + * Generated from protobuf enum ANALYSE = 290;. + */ + public const ANALYSE = 290; + + /** + * Generated from protobuf enum ANALYZE = 291;. + */ + public const ANALYZE = 291; + + /** + * Generated from protobuf enum ANY = 293;. + */ + public const ANY = 293; + + /** + * Generated from protobuf enum ASC = 296;. + */ + public const ASC = 296; + + /** + * Single-character tokens that are returned 1:1 (identical with "self" list in scan.l) + * Either supporting syntax, or single-character operators (some can be both) + * Also see https://www.postgresql.org/docs/12/sql-syntax-lexical.html#SQL-SYNTAX-SPECIAL-CHARS. + * + * Generated from protobuf enum ASCII_36 = 36; + */ + public const ASCII_36 = 36; + + /** + * "%". + * + * Generated from protobuf enum ASCII_37 = 37; + */ + public const ASCII_37 = 37; + + /** + * "(". + * + * Generated from protobuf enum ASCII_40 = 40; + */ + public const ASCII_40 = 40; + + /** + * ")". + * + * Generated from protobuf enum ASCII_41 = 41; + */ + public const ASCII_41 = 41; + + /** + * "*". + * + * Generated from protobuf enum ASCII_42 = 42; + */ + public const ASCII_42 = 42; + + /** + * "+". + * + * Generated from protobuf enum ASCII_43 = 43; + */ + public const ASCII_43 = 43; + + /** + * ",". + * + * Generated from protobuf enum ASCII_44 = 44; + */ + public const ASCII_44 = 44; + + /** + * "-". + * + * Generated from protobuf enum ASCII_45 = 45; + */ + public const ASCII_45 = 45; + + /** + * ".". + * + * Generated from protobuf enum ASCII_46 = 46; + */ + public const ASCII_46 = 46; + + /** + * "/". + * + * Generated from protobuf enum ASCII_47 = 47; + */ + public const ASCII_47 = 47; + + /** + * ":". + * + * Generated from protobuf enum ASCII_58 = 58; + */ + public const ASCII_58 = 58; + + /** + * ";". + * + * Generated from protobuf enum ASCII_59 = 59; + */ + public const ASCII_59 = 59; + + /** + * "<". + * + * Generated from protobuf enum ASCII_60 = 60; + */ + public const ASCII_60 = 60; + + /** + * "=". + * + * Generated from protobuf enum ASCII_61 = 61; + */ + public const ASCII_61 = 61; + + /** + * ">". + * + * Generated from protobuf enum ASCII_62 = 62; + */ + public const ASCII_62 = 62; + + /** + * "?". + * + * Generated from protobuf enum ASCII_63 = 63; + */ + public const ASCII_63 = 63; + + /** + * "[". + * + * Generated from protobuf enum ASCII_91 = 91; + */ + public const ASCII_91 = 91; + + /** + * "\". + * + * Generated from protobuf enum ASCII_92 = 92; + */ + public const ASCII_92 = 92; + + /** + * "]". + * + * Generated from protobuf enum ASCII_93 = 93; + */ + public const ASCII_93 = 93; + + /** + * "^". + * + * Generated from protobuf enum ASCII_94 = 94; + */ + public const ASCII_94 = 94; + + /** + * Generated from protobuf enum ASENSITIVE = 297;. + */ + public const ASENSITIVE = 297; + + /** + * Generated from protobuf enum ASSERTION = 298;. + */ + public const ASSERTION = 298; + + /** + * Generated from protobuf enum ASSIGNMENT = 299;. + */ + public const ASSIGNMENT = 299; + + /** + * Generated from protobuf enum ASYMMETRIC = 300;. + */ + public const ASYMMETRIC = 300; + + /** + * Generated from protobuf enum AT = 302;. + */ + public const AT = 302; + + /** + * Generated from protobuf enum ATOMIC = 301;. + */ + public const ATOMIC = 301; + + /** + * Generated from protobuf enum ATTACH = 303;. + */ + public const ATTACH = 303; + + /** + * Generated from protobuf enum ATTRIBUTE = 304;. + */ + public const ATTRIBUTE = 304; + + /** + * Generated from protobuf enum AUTHORIZATION = 305;. + */ + public const AUTHORIZATION = 305; + + /** + * Generated from protobuf enum BACKWARD = 306;. + */ + public const BACKWARD = 306; + + /** + * Generated from protobuf enum BCONST = 263;. + */ + public const BCONST = 263; + + /** + * Generated from protobuf enum BEFORE = 307;. + */ + public const BEFORE = 307; + + /** + * Generated from protobuf enum BEGIN_P = 308;. + */ + public const BEGIN_P = 308; + + /** + * Generated from protobuf enum BETWEEN = 309;. + */ + public const BETWEEN = 309; + + /** + * Generated from protobuf enum BIGINT = 310;. + */ + public const BIGINT = 310; + + /** + * Generated from protobuf enum BINARY = 311;. + */ + public const BINARY = 311; + + /** + * Generated from protobuf enum BIT = 312;. + */ + public const BIT = 312; + + /** + * Generated from protobuf enum BOOLEAN_P = 313;. + */ + public const BOOLEAN_P = 313; + + /** + * Generated from protobuf enum BOTH = 314;. + */ + public const BOTH = 314; + + /** + * Generated from protobuf enum BREADTH = 315;. + */ + public const BREADTH = 315; + + /** + * Generated from protobuf enum BY = 316;. + */ + public const BY = 316; + + /** + * Generated from protobuf enum C_COMMENT = 276;. + */ + public const C_COMMENT = 276; + + /** + * Generated from protobuf enum CACHE = 317;. + */ + public const CACHE = 317; + + /** + * Generated from protobuf enum CALL = 318;. + */ + public const CALL = 318; + + /** + * Generated from protobuf enum CALLED = 319;. + */ + public const CALLED = 319; + + /** + * Generated from protobuf enum CASCADE = 320;. + */ + public const CASCADE = 320; + + /** + * Generated from protobuf enum CASCADED = 321;. + */ + public const CASCADED = 321; + + /** + * Generated from protobuf enum CAST = 323;. + */ + public const CAST = 323; + + /** + * Generated from protobuf enum CATALOG_P = 324;. + */ + public const CATALOG_P = 324; + + /** + * Generated from protobuf enum CHAIN = 325;. + */ + public const CHAIN = 325; + + /** + * Generated from protobuf enum CHAR_P = 326;. + */ + public const CHAR_P = 326; + + /** + * Generated from protobuf enum CHARACTER = 327;. + */ + public const CHARACTER = 327; + + /** + * Generated from protobuf enum CHARACTERISTICS = 328;. + */ + public const CHARACTERISTICS = 328; + + /** + * Generated from protobuf enum CHECK = 329;. + */ + public const CHECK = 329; + + /** + * Generated from protobuf enum CHECKPOINT = 330;. + */ + public const CHECKPOINT = 330; + + /** + * Generated from protobuf enum CLOSE = 332;. + */ + public const CLOSE = 332; + + /** + * Generated from protobuf enum CLUSTER = 333;. + */ + public const CLUSTER = 333; + + /** + * Generated from protobuf enum COALESCE = 334;. + */ + public const COALESCE = 334; + + /** + * Generated from protobuf enum COLLATE = 335;. + */ + public const COLLATE = 335; + + /** + * Generated from protobuf enum COLLATION = 336;. + */ + public const COLLATION = 336; + + /** + * Generated from protobuf enum COLON_EQUALS = 270;. + */ + public const COLON_EQUALS = 270; + + /** + * Generated from protobuf enum COLUMN = 337;. + */ + public const COLUMN = 337; + + /** + * Generated from protobuf enum COLUMNS = 338;. + */ + public const COLUMNS = 338; + + /** + * Generated from protobuf enum COMMENT = 339;. + */ + public const COMMENT = 339; + + /** + * Generated from protobuf enum COMMENTS = 340;. + */ + public const COMMENTS = 340; + + /** + * Generated from protobuf enum COMMIT = 341;. + */ + public const COMMIT = 341; + + /** + * Generated from protobuf enum COMMITTED = 342;. + */ + public const COMMITTED = 342; + + /** + * Generated from protobuf enum COMPRESSION = 343;. + */ + public const COMPRESSION = 343; + + /** + * Generated from protobuf enum CONCURRENTLY = 344;. + */ + public const CONCURRENTLY = 344; + + /** + * Generated from protobuf enum CONDITIONAL = 345;. + */ + public const CONDITIONAL = 345; + + /** + * Generated from protobuf enum CONFIGURATION = 346;. + */ + public const CONFIGURATION = 346; + + /** + * Generated from protobuf enum CONFLICT = 347;. + */ + public const CONFLICT = 347; + + /** + * Generated from protobuf enum CONNECTION = 348;. + */ + public const CONNECTION = 348; + + /** + * Generated from protobuf enum CONSTRAINT = 349;. + */ + public const CONSTRAINT = 349; + + /** + * Generated from protobuf enum CONSTRAINTS = 350;. + */ + public const CONSTRAINTS = 350; + + /** + * Generated from protobuf enum CONTENT_P = 351;. + */ + public const CONTENT_P = 351; + + /** + * Generated from protobuf enum CONTINUE_P = 352;. + */ + public const CONTINUE_P = 352; + + /** + * Generated from protobuf enum CONVERSION_P = 353;. + */ + public const CONVERSION_P = 353; + + /** + * Generated from protobuf enum COPY = 354;. + */ + public const COPY = 354; + + /** + * Generated from protobuf enum COST = 355;. + */ + public const COST = 355; + + /** + * Generated from protobuf enum CREATE = 356;. + */ + public const CREATE = 356; + + /** + * Generated from protobuf enum CROSS = 357;. + */ + public const CROSS = 357; + + /** + * Generated from protobuf enum CSV = 358;. + */ + public const CSV = 358; + + /** + * Generated from protobuf enum CUBE = 359;. + */ + public const CUBE = 359; + + /** + * Generated from protobuf enum CURRENT_CATALOG = 361;. + */ + public const CURRENT_CATALOG = 361; + + /** + * Generated from protobuf enum CURRENT_DATE = 362;. + */ + public const CURRENT_DATE = 362; + + /** + * Generated from protobuf enum CURRENT_P = 360;. + */ + public const CURRENT_P = 360; + + /** + * Generated from protobuf enum CURRENT_ROLE = 363;. + */ + public const CURRENT_ROLE = 363; + + /** + * Generated from protobuf enum CURRENT_SCHEMA = 364;. + */ + public const CURRENT_SCHEMA = 364; + + /** + * Generated from protobuf enum CURRENT_TIME = 365;. + */ + public const CURRENT_TIME = 365; + + /** + * Generated from protobuf enum CURRENT_TIMESTAMP = 366;. + */ + public const CURRENT_TIMESTAMP = 366; + + /** + * Generated from protobuf enum CURRENT_USER = 367;. + */ + public const CURRENT_USER = 367; + + /** + * Generated from protobuf enum CURSOR = 368;. + */ + public const CURSOR = 368; + + /** + * Generated from protobuf enum CYCLE = 369;. + */ + public const CYCLE = 369; + + /** + * Generated from protobuf enum DATA_P = 370;. + */ + public const DATA_P = 370; + + /** + * Generated from protobuf enum DATABASE = 371;. + */ + public const DATABASE = 371; + + /** + * Generated from protobuf enum DAY_P = 372;. + */ + public const DAY_P = 372; + + /** + * Generated from protobuf enum DEALLOCATE = 373;. + */ + public const DEALLOCATE = 373; + + /** + * Generated from protobuf enum DEC = 374;. + */ + public const DEC = 374; + + /** + * Generated from protobuf enum DECIMAL_P = 375;. + */ + public const DECIMAL_P = 375; + + /** + * Generated from protobuf enum DEFAULTS = 378;. + */ + public const DEFAULTS = 378; + + /** + * Generated from protobuf enum DEFERRABLE = 379;. + */ + public const DEFERRABLE = 379; + + /** + * Generated from protobuf enum DEFERRED = 380;. + */ + public const DEFERRED = 380; + + /** + * Generated from protobuf enum DEFINER = 381;. + */ + public const DEFINER = 381; + + /** + * Generated from protobuf enum DELETE_P = 382;. + */ + public const DELETE_P = 382; + + /** + * Generated from protobuf enum DELIMITER = 383;. + */ + public const DELIMITER = 383; + + /** + * Generated from protobuf enum DELIMITERS = 384;. + */ + public const DELIMITERS = 384; + + /** + * Generated from protobuf enum DEPENDS = 385;. + */ + public const DEPENDS = 385; + + /** + * Generated from protobuf enum DEPTH = 386;. + */ + public const DEPTH = 386; + + /** + * Generated from protobuf enum DESC = 387;. + */ + public const DESC = 387; + + /** + * Generated from protobuf enum DETACH = 388;. + */ + public const DETACH = 388; + + /** + * Generated from protobuf enum DICTIONARY = 389;. + */ + public const DICTIONARY = 389; + + /** + * Generated from protobuf enum DISABLE_P = 390;. + */ + public const DISABLE_P = 390; + + /** + * Generated from protobuf enum DISCARD = 391;. + */ + public const DISCARD = 391; + + /** + * Generated from protobuf enum DISTINCT = 392;. + */ + public const DISTINCT = 392; + + /** + * Generated from protobuf enum DOCUMENT_P = 394;. + */ + public const DOCUMENT_P = 394; + + /** + * Generated from protobuf enum DOMAIN_P = 395;. + */ + public const DOMAIN_P = 395; + + /** + * Generated from protobuf enum DOT_DOT = 269;. + */ + public const DOT_DOT = 269; + + /** + * Generated from protobuf enum DOUBLE_P = 396;. + */ + public const DOUBLE_P = 396; + + /** + * Generated from protobuf enum DROP = 397;. + */ + public const DROP = 397; + + /** + * Generated from protobuf enum EACH = 398;. + */ + public const EACH = 398; + + /** + * Generated from protobuf enum EMPTY_P = 400;. + */ + public const EMPTY_P = 400; + + /** + * Generated from protobuf enum ENABLE_P = 401;. + */ + public const ENABLE_P = 401; + + /** + * Generated from protobuf enum ENCODING = 402;. + */ + public const ENCODING = 402; + + /** + * Generated from protobuf enum ENCRYPTED = 403;. + */ + public const ENCRYPTED = 403; + + /** + * Generated from protobuf enum END_P = 404;. + */ + public const END_P = 404; + + /** + * Generated from protobuf enum ENUM_P = 405;. + */ + public const ENUM_P = 405; + + /** + * Generated from protobuf enum EQUALS_GREATER = 271;. + */ + public const EQUALS_GREATER = 271; + + /** + * Generated from protobuf enum ERROR_P = 406;. + */ + public const ERROR_P = 406; + + /** + * Generated from protobuf enum ESCAPE = 407;. + */ + public const ESCAPE = 407; + + /** + * Generated from protobuf enum EVENT = 408;. + */ + public const EVENT = 408; + + /** + * Generated from protobuf enum EXCEPT = 409;. + */ + public const EXCEPT = 409; + + /** + * Generated from protobuf enum EXCLUDE = 410;. + */ + public const EXCLUDE = 410; + + /** + * Generated from protobuf enum EXCLUDING = 411;. + */ + public const EXCLUDING = 411; + + /** + * Generated from protobuf enum EXCLUSIVE = 412;. + */ + public const EXCLUSIVE = 412; + + /** + * Generated from protobuf enum EXECUTE = 413;. + */ + public const EXECUTE = 413; + + /** + * Generated from protobuf enum EXISTS = 414;. + */ + public const EXISTS = 414; + + /** + * Generated from protobuf enum EXPLAIN = 415;. + */ + public const EXPLAIN = 415; + + /** + * Generated from protobuf enum EXPRESSION = 416;. + */ + public const EXPRESSION = 416; + + /** + * Generated from protobuf enum EXTENSION = 417;. + */ + public const EXTENSION = 417; + + /** + * Generated from protobuf enum EXTERNAL = 418;. + */ + public const EXTERNAL = 418; + + /** + * Generated from protobuf enum EXTRACT = 419;. + */ + public const EXTRACT = 419; + + /** + * Generated from protobuf enum FALSE_P = 420;. + */ + public const FALSE_P = 420; + + /** + * Generated from protobuf enum FAMILY = 421;. + */ + public const FAMILY = 421; + + /** + * Generated from protobuf enum FCONST = 260;. + */ + public const FCONST = 260; + + /** + * Generated from protobuf enum FETCH = 422;. + */ + public const FETCH = 422; + + /** + * Generated from protobuf enum FILTER = 423;. + */ + public const FILTER = 423; + + /** + * Generated from protobuf enum FINALIZE = 424;. + */ + public const FINALIZE = 424; + + /** + * Generated from protobuf enum FIRST_P = 425;. + */ + public const FIRST_P = 425; + + /** + * Generated from protobuf enum FLOAT_P = 426;. + */ + public const FLOAT_P = 426; + + /** + * Generated from protobuf enum FOLLOWING = 427;. + */ + public const FOLLOWING = 427; + + /** + * Generated from protobuf enum FORCE = 429;. + */ + public const FORCE = 429; + + /** + * Generated from protobuf enum FOREIGN = 430;. + */ + public const FOREIGN = 430; + + /** + * Generated from protobuf enum FORMAT = 431;. + */ + public const FORMAT = 431; + + /** + * Generated from protobuf enum FORMAT_LA = 768;. + */ + public const FORMAT_LA = 768; + + /** + * Generated from protobuf enum FORWARD = 432;. + */ + public const FORWARD = 432; + + /** + * Generated from protobuf enum FREEZE = 433;. + */ + public const FREEZE = 433; + + /** + * Generated from protobuf enum FROM = 434;. + */ + public const FROM = 434; + + /** + * Generated from protobuf enum FULL = 435;. + */ + public const FULL = 435; + + /** + * Generated from protobuf enum FUNCTIONS = 437;. + */ + public const FUNCTIONS = 437; + + /** + * Generated from protobuf enum GENERATED = 438;. + */ + public const GENERATED = 438; + + /** + * Generated from protobuf enum GRANT = 440;. + */ + public const GRANT = 440; + + /** + * Generated from protobuf enum GRANTED = 441;. + */ + public const GRANTED = 441; + + /** + * Generated from protobuf enum GREATER_EQUALS = 273;. + */ + public const GREATER_EQUALS = 273; + + /** + * Generated from protobuf enum GREATEST = 442;. + */ + public const GREATEST = 442; + + /** + * Generated from protobuf enum GROUP_P = 443;. + */ + public const GROUP_P = 443; + + /** + * Generated from protobuf enum GROUPING = 444;. + */ + public const GROUPING = 444; + + /** + * Generated from protobuf enum GROUPS = 445;. + */ + public const GROUPS = 445; + + /** + * Generated from protobuf enum HANDLER = 446;. + */ + public const HANDLER = 446; + + /** + * Generated from protobuf enum HAVING = 447;. + */ + public const HAVING = 447; + + /** + * Generated from protobuf enum HEADER_P = 448;. + */ + public const HEADER_P = 448; + + /** + * Generated from protobuf enum HOLD = 449;. + */ + public const HOLD = 449; + + /** + * Generated from protobuf enum HOUR_P = 450;. + */ + public const HOUR_P = 450; + + /** + * Generated from protobuf enum ICONST = 266;. + */ + public const ICONST = 266; + + /** + * Named tokens in scan.l. + * + * Generated from protobuf enum IDENT = 258; + */ + public const IDENT = 258; + + /** + * Generated from protobuf enum IDENTITY_P = 451;. + */ + public const IDENTITY_P = 451; + + /** + * Generated from protobuf enum IF_P = 452;. + */ + public const IF_P = 452; + + /** + * Generated from protobuf enum ILIKE = 453;. + */ + public const ILIKE = 453; + + /** + * Generated from protobuf enum IMMEDIATE = 454;. + */ + public const IMMEDIATE = 454; + + /** + * Generated from protobuf enum IMMUTABLE = 455;. + */ + public const IMMUTABLE = 455; + + /** + * Generated from protobuf enum IMPLICIT_P = 456;. + */ + public const IMPLICIT_P = 456; + + /** + * Generated from protobuf enum IMPORT_P = 457;. + */ + public const IMPORT_P = 457; + + /** + * Generated from protobuf enum IN_P = 458;. + */ + public const IN_P = 458; + + /** + * Generated from protobuf enum INCLUDING = 460;. + */ + public const INCLUDING = 460; + + /** + * Generated from protobuf enum INCREMENT = 461;. + */ + public const INCREMENT = 461; + + /** + * Generated from protobuf enum INDENT = 462;. + */ + public const INDENT = 462; + + /** + * Generated from protobuf enum INDEX = 463;. + */ + public const INDEX = 463; + + /** + * Generated from protobuf enum INDEXES = 464;. + */ + public const INDEXES = 464; + + /** + * Generated from protobuf enum INHERIT = 465;. + */ + public const INHERIT = 465; + + /** + * Generated from protobuf enum INHERITS = 466;. + */ + public const INHERITS = 466; + + /** + * Generated from protobuf enum INITIALLY = 467;. + */ + public const INITIALLY = 467; + + /** + * Generated from protobuf enum INLINE_P = 468;. + */ + public const INLINE_P = 468; + + /** + * Generated from protobuf enum INNER_P = 469;. + */ + public const INNER_P = 469; + + /** + * Generated from protobuf enum INOUT = 470;. + */ + public const INOUT = 470; + + /** + * Generated from protobuf enum INPUT_P = 471;. + */ + public const INPUT_P = 471; + + /** + * Generated from protobuf enum INSENSITIVE = 472;. + */ + public const INSENSITIVE = 472; + + /** + * Generated from protobuf enum INSERT = 473;. + */ + public const INSERT = 473; + + /** + * Generated from protobuf enum INSTEAD = 474;. + */ + public const INSTEAD = 474; + + /** + * Generated from protobuf enum INT_P = 475;. + */ + public const INT_P = 475; + + /** + * Generated from protobuf enum INTEGER = 476;. + */ + public const INTEGER = 476; + + /** + * Generated from protobuf enum INTERSECT = 477;. + */ + public const INTERSECT = 477; + + /** + * Generated from protobuf enum INTERVAL = 478;. + */ + public const INTERVAL = 478; + + /** + * Generated from protobuf enum INTO = 479;. + */ + public const INTO = 479; + + /** + * Generated from protobuf enum INVOKER = 480;. + */ + public const INVOKER = 480; + + /** + * Generated from protobuf enum IS = 481;. + */ + public const IS = 481; + + /** + * Generated from protobuf enum ISNULL = 482;. + */ + public const ISNULL = 482; + + /** + * Generated from protobuf enum ISOLATION = 483;. + */ + public const ISOLATION = 483; + + /** + * Generated from protobuf enum JOIN = 484;. + */ + public const JOIN = 484; + + /** + * Generated from protobuf enum JSON = 485;. + */ + public const JSON = 485; + + /** + * Generated from protobuf enum JSON_ARRAY = 486;. + */ + public const JSON_ARRAY = 486; + + /** + * Generated from protobuf enum JSON_ARRAYAGG = 487;. + */ + public const JSON_ARRAYAGG = 487; + + /** + * Generated from protobuf enum JSON_EXISTS = 488;. + */ + public const JSON_EXISTS = 488; + + /** + * Generated from protobuf enum JSON_OBJECT = 489;. + */ + public const JSON_OBJECT = 489; + + /** + * Generated from protobuf enum JSON_OBJECTAGG = 490;. + */ + public const JSON_OBJECTAGG = 490; + + /** + * Generated from protobuf enum JSON_QUERY = 491;. + */ + public const JSON_QUERY = 491; + + /** + * Generated from protobuf enum JSON_SCALAR = 492;. + */ + public const JSON_SCALAR = 492; + + /** + * Generated from protobuf enum JSON_SERIALIZE = 493;. + */ + public const JSON_SERIALIZE = 493; + + /** + * Generated from protobuf enum JSON_TABLE = 494;. + */ + public const JSON_TABLE = 494; + + /** + * Generated from protobuf enum JSON_VALUE = 495;. + */ + public const JSON_VALUE = 495; + + /** + * Generated from protobuf enum KEEP = 496;. + */ + public const KEEP = 496; + + /** + * Generated from protobuf enum KEY = 497;. + */ + public const KEY = 497; + + /** + * Generated from protobuf enum KEYS = 498;. + */ + public const KEYS = 498; + + /** + * Generated from protobuf enum LABEL = 499;. + */ + public const LABEL = 499; + + /** + * Generated from protobuf enum LANGUAGE = 500;. + */ + public const LANGUAGE = 500; + + /** + * Generated from protobuf enum LARGE_P = 501;. + */ + public const LARGE_P = 501; + + /** + * Generated from protobuf enum LAST_P = 502;. + */ + public const LAST_P = 502; + + /** + * Generated from protobuf enum LATERAL_P = 503;. + */ + public const LATERAL_P = 503; + + /** + * Generated from protobuf enum LEADING = 504;. + */ + public const LEADING = 504; + + /** + * Generated from protobuf enum LEAKPROOF = 505;. + */ + public const LEAKPROOF = 505; + + /** + * Generated from protobuf enum LEAST = 506;. + */ + public const LEAST = 506; + + /** + * Generated from protobuf enum LEFT = 507;. + */ + public const LEFT = 507; + + /** + * Generated from protobuf enum LESS_EQUALS = 272;. + */ + public const LESS_EQUALS = 272; + + /** + * Generated from protobuf enum LEVEL = 508;. + */ + public const LEVEL = 508; + + /** + * Generated from protobuf enum LIKE = 509;. + */ + public const LIKE = 509; + + /** + * Generated from protobuf enum LIMIT = 510;. + */ + public const LIMIT = 510; + + /** + * Generated from protobuf enum LISTEN = 511;. + */ + public const LISTEN = 511; + + /** + * Generated from protobuf enum LOAD = 512;. + */ + public const LOAD = 512; + + /** + * Generated from protobuf enum LOCAL = 513;. + */ + public const LOCAL = 513; + + /** + * Generated from protobuf enum LOCALTIME = 514;. + */ + public const LOCALTIME = 514; + + /** + * Generated from protobuf enum LOCALTIMESTAMP = 515;. + */ + public const LOCALTIMESTAMP = 515; + + /** + * Generated from protobuf enum LOCATION = 516;. + */ + public const LOCATION = 516; + + /** + * Generated from protobuf enum LOCK_P = 517;. + */ + public const LOCK_P = 517; + + /** + * Generated from protobuf enum LOCKED = 518;. + */ + public const LOCKED = 518; + + /** + * Generated from protobuf enum LOGGED = 519;. + */ + public const LOGGED = 519; + + /** + * Generated from protobuf enum MAPPING = 520;. + */ + public const MAPPING = 520; + + /** + * Generated from protobuf enum MATCHED = 522;. + */ + public const MATCHED = 522; + + /** + * Generated from protobuf enum MATERIALIZED = 523;. + */ + public const MATERIALIZED = 523; + + /** + * Generated from protobuf enum MAXVALUE = 524;. + */ + public const MAXVALUE = 524; + + /** + * Generated from protobuf enum MERGE = 525;. + */ + public const MERGE = 525; + + /** + * Generated from protobuf enum MERGE_ACTION = 526;. + */ + public const MERGE_ACTION = 526; + + /** + * Generated from protobuf enum METHOD = 527;. + */ + public const METHOD = 527; + + /** + * Generated from protobuf enum MINUTE_P = 528;. + */ + public const MINUTE_P = 528; + + /** + * Generated from protobuf enum MINVALUE = 529;. + */ + public const MINVALUE = 529; + + /** + * Generated from protobuf enum MODE = 530;. + */ + public const MODE = 530; + + /** + * Generated from protobuf enum MODE_PLPGSQL_ASSIGN1 = 775;. + */ + public const MODE_PLPGSQL_ASSIGN1 = 775; + + /** + * Generated from protobuf enum MODE_PLPGSQL_ASSIGN2 = 776;. + */ + public const MODE_PLPGSQL_ASSIGN2 = 776; + + /** + * Generated from protobuf enum MODE_PLPGSQL_ASSIGN3 = 777;. + */ + public const MODE_PLPGSQL_ASSIGN3 = 777; + + /** + * Generated from protobuf enum MODE_PLPGSQL_EXPR = 774;. + */ + public const MODE_PLPGSQL_EXPR = 774; + + /** + * Generated from protobuf enum MODE_TYPE_NAME = 773;. + */ + public const MODE_TYPE_NAME = 773; + + /** + * Generated from protobuf enum MONTH_P = 531;. + */ + public const MONTH_P = 531; + + /** + * Generated from protobuf enum MOVE = 532;. + */ + public const MOVE = 532; + + /** + * Generated from protobuf enum NAME_P = 533;. + */ + public const NAME_P = 533; + + /** + * Generated from protobuf enum NAMES = 534;. + */ + public const NAMES = 534; + + /** + * Generated from protobuf enum NATIONAL = 535;. + */ + public const NATIONAL = 535; + + /** + * Generated from protobuf enum NATURAL = 536;. + */ + public const NATURAL = 536; + + /** + * Generated from protobuf enum NCHAR = 537;. + */ + public const NCHAR = 537; + + /** + * Generated from protobuf enum NESTED = 538;. + */ + public const NESTED = 538; + + /** + * Generated from protobuf enum NEXT = 540;. + */ + public const NEXT = 540; + + /** + * Generated from protobuf enum NFC = 541;. + */ + public const NFC = 541; + + /** + * Generated from protobuf enum NFD = 542;. + */ + public const NFD = 542; + + /** + * Generated from protobuf enum NFKC = 543;. + */ + public const NFKC = 543; + + /** + * Generated from protobuf enum NFKD = 544;. + */ + public const NFKD = 544; + + /** + * Generated from protobuf enum NO = 545;. + */ + public const NO = 545; + + /** + * Generated from protobuf enum NONE = 546;. + */ + public const NONE = 546; + + /** + * Generated from protobuf enum NORMALIZE = 547;. + */ + public const NORMALIZE = 547; + + /** + * Generated from protobuf enum NORMALIZED = 548;. + */ + public const NORMALIZED = 548; + + /** + * Generated from protobuf enum NOT = 549;. + */ + public const NOT = 549; + + /** + * Generated from protobuf enum NOT_EQUALS = 274;. + */ + public const NOT_EQUALS = 274; + + /** + * Generated from protobuf enum NOT_LA = 769;. + */ + public const NOT_LA = 769; + + /** + * Generated from protobuf enum NOTHING = 550;. + */ + public const NOTHING = 550; + + /** + * Generated from protobuf enum NOTIFY = 551;. + */ + public const NOTIFY = 551; + + /** + * Generated from protobuf enum NOTNULL = 552;. + */ + public const NOTNULL = 552; + + /** + * Generated from protobuf enum NOWAIT = 553;. + */ + public const NOWAIT = 553; + + /** + * Generated from protobuf enum NUL = 0;. + */ + public const NUL = 0; + + /** + * Generated from protobuf enum NULL_P = 554;. + */ + public const NULL_P = 554; + + /** + * Generated from protobuf enum NULLIF = 555;. + */ + public const NULLIF = 555; + + /** + * Generated from protobuf enum NULLS_LA = 770;. + */ + public const NULLS_LA = 770; + + /** + * Generated from protobuf enum NULLS_P = 556;. + */ + public const NULLS_P = 556; + + /** + * Generated from protobuf enum NUMERIC = 557;. + */ + public const NUMERIC = 557; + + /** + * Generated from protobuf enum OBJECT_P = 558;. + */ + public const OBJECT_P = 558; + + /** + * Generated from protobuf enum OF = 559;. + */ + public const OF = 559; + + /** + * Generated from protobuf enum OFF = 560;. + */ + public const OFF = 560; + + /** + * Generated from protobuf enum OFFSET = 561;. + */ + public const OFFSET = 561; + + /** + * Generated from protobuf enum OIDS = 562;. + */ + public const OIDS = 562; + + /** + * Generated from protobuf enum OLD = 563;. + */ + public const OLD = 563; + + /** + * Generated from protobuf enum OMIT = 564;. + */ + public const OMIT = 564; + + /** + * Generated from protobuf enum ON = 565;. + */ + public const ON = 565; + + /** + * Generated from protobuf enum ONLY = 566;. + */ + public const ONLY = 566; + + /** + * Generated from protobuf enum Op = 265;. + */ + public const Op = 265; + + /** + * Generated from protobuf enum OPERATOR = 567;. + */ + public const OPERATOR = 567; + + /** + * Generated from protobuf enum OPTION = 568;. + */ + public const OPTION = 568; + + /** + * Generated from protobuf enum OPTIONS = 569;. + */ + public const OPTIONS = 569; + + /** + * Generated from protobuf enum ORDER = 571;. + */ + public const ORDER = 571; + + /** + * Generated from protobuf enum ORDINALITY = 572;. + */ + public const ORDINALITY = 572; + + /** + * Generated from protobuf enum OTHERS = 573;. + */ + public const OTHERS = 573; + + /** + * Generated from protobuf enum OUT_P = 574;. + */ + public const OUT_P = 574; + + /** + * Generated from protobuf enum OUTER_P = 575;. + */ + public const OUTER_P = 575; + + /** + * Generated from protobuf enum OVER = 576;. + */ + public const OVER = 576; + + /** + * Generated from protobuf enum OVERLAPS = 577;. + */ + public const OVERLAPS = 577; + + /** + * Generated from protobuf enum OVERLAY = 578;. + */ + public const OVERLAY = 578; + + /** + * Generated from protobuf enum OVERRIDING = 579;. + */ + public const OVERRIDING = 579; + + /** + * Generated from protobuf enum OWNED = 580;. + */ + public const OWNED = 580; + + /** + * Generated from protobuf enum OWNER = 581;. + */ + public const OWNER = 581; + + /** + * Generated from protobuf enum PARALLEL = 582;. + */ + public const PARALLEL = 582; + + /** + * Generated from protobuf enum PARAM = 267;. + */ + public const PARAM = 267; + + /** + * Generated from protobuf enum PARAMETER = 583;. + */ + public const PARAMETER = 583; + + /** + * Generated from protobuf enum PARSER = 584;. + */ + public const PARSER = 584; + + /** + * Generated from protobuf enum PARTIAL = 585;. + */ + public const PARTIAL = 585; + + /** + * Generated from protobuf enum PARTITION = 586;. + */ + public const PARTITION = 586; + + /** + * Generated from protobuf enum PASSING = 587;. + */ + public const PASSING = 587; + + /** + * Generated from protobuf enum PASSWORD = 588;. + */ + public const PASSWORD = 588; + + /** + * Generated from protobuf enum PATH = 589;. + */ + public const PATH = 589; + + /** + * Generated from protobuf enum AND = 292;. + */ + public const PBAND = 292; + + /** + * Generated from protobuf enum ARRAY = 294;. + */ + public const PBARRAY = 294; + + /** + * Generated from protobuf enum AS = 295;. + */ + public const PBAS = 295; + + /** + * Generated from protobuf enum CASE = 322;. + */ + public const PBCASE = 322; + + /** + * Generated from protobuf enum CLASS = 331;. + */ + public const PBCLASS = 331; + + /** + * Generated from protobuf enum DECLARE = 376;. + */ + public const PBDECLARE = 376; + + /** + * Generated from protobuf enum DEFAULT = 377;. + */ + public const PBDEFAULT = 377; + + /** + * Generated from protobuf enum DO = 393;. + */ + public const PBDO = 393; + + /** + * Generated from protobuf enum ELSE = 399;. + */ + public const PBELSE = 399; + + /** + * Generated from protobuf enum FOR = 428;. + */ + public const PBFOR = 428; + + /** + * Generated from protobuf enum FUNCTION = 436;. + */ + public const PBFUNCTION = 436; + + /** + * Generated from protobuf enum GLOBAL = 439;. + */ + public const PBGLOBAL = 439; + + /** + * Generated from protobuf enum INCLUDE = 459;. + */ + public const PBINCLUDE = 459; + + /** + * Generated from protobuf enum MATCH = 521;. + */ + public const PBMATCH = 521; + + /** + * Generated from protobuf enum NEW = 539;. + */ + public const PBNEW = 539; + + /** + * Generated from protobuf enum OR = 570;. + */ + public const PBOR = 570; + + /** + * Generated from protobuf enum RETURN = 630;. + */ + public const PBRETURN = 630; + + /** + * Generated from protobuf enum PLACING = 590;. + */ + public const PLACING = 590; + + /** + * Generated from protobuf enum PLAN = 591;. + */ + public const PLAN = 591; + + /** + * Generated from protobuf enum PLANS = 592;. + */ + public const PLANS = 592; + + /** + * Generated from protobuf enum POLICY = 593;. + */ + public const POLICY = 593; + + /** + * Generated from protobuf enum POSITION = 594;. + */ + public const POSITION = 594; + + /** + * Generated from protobuf enum PRECEDING = 595;. + */ + public const PRECEDING = 595; + + /** + * Generated from protobuf enum PRECISION = 596;. + */ + public const PRECISION = 596; + + /** + * Generated from protobuf enum PREPARE = 598;. + */ + public const PREPARE = 598; + + /** + * Generated from protobuf enum PREPARED = 599;. + */ + public const PREPARED = 599; + + /** + * Generated from protobuf enum PRESERVE = 597;. + */ + public const PRESERVE = 597; + + /** + * Generated from protobuf enum PRIMARY = 600;. + */ + public const PRIMARY = 600; + + /** + * Generated from protobuf enum PRIOR = 601;. + */ + public const PRIOR = 601; + + /** + * Generated from protobuf enum PRIVILEGES = 602;. + */ + public const PRIVILEGES = 602; + + /** + * Generated from protobuf enum PROCEDURAL = 603;. + */ + public const PROCEDURAL = 603; + + /** + * Generated from protobuf enum PROCEDURE = 604;. + */ + public const PROCEDURE = 604; + + /** + * Generated from protobuf enum PROCEDURES = 605;. + */ + public const PROCEDURES = 605; + + /** + * Generated from protobuf enum PROGRAM = 606;. + */ + public const PROGRAM = 606; + + /** + * Generated from protobuf enum PUBLICATION = 607;. + */ + public const PUBLICATION = 607; + + /** + * Generated from protobuf enum QUOTE = 608;. + */ + public const QUOTE = 608; + + /** + * Generated from protobuf enum QUOTES = 609;. + */ + public const QUOTES = 609; + + /** + * Generated from protobuf enum RANGE = 610;. + */ + public const RANGE = 610; + + /** + * Generated from protobuf enum READ = 611;. + */ + public const READ = 611; + + /** + * Generated from protobuf enum REAL = 612;. + */ + public const REAL = 612; + + /** + * Generated from protobuf enum REASSIGN = 613;. + */ + public const REASSIGN = 613; + + /** + * Generated from protobuf enum RECHECK = 614;. + */ + public const RECHECK = 614; + + /** + * Generated from protobuf enum RECURSIVE = 615;. + */ + public const RECURSIVE = 615; + + /** + * Generated from protobuf enum REF_P = 616;. + */ + public const REF_P = 616; + + /** + * Generated from protobuf enum REFERENCES = 617;. + */ + public const REFERENCES = 617; + + /** + * Generated from protobuf enum REFERENCING = 618;. + */ + public const REFERENCING = 618; + + /** + * Generated from protobuf enum REFRESH = 619;. + */ + public const REFRESH = 619; + + /** + * Generated from protobuf enum REINDEX = 620;. + */ + public const REINDEX = 620; + + /** + * Generated from protobuf enum RELATIVE_P = 621;. + */ + public const RELATIVE_P = 621; + + /** + * Generated from protobuf enum RELEASE = 622;. + */ + public const RELEASE = 622; + + /** + * Generated from protobuf enum RENAME = 623;. + */ + public const RENAME = 623; + + /** + * Generated from protobuf enum REPEATABLE = 624;. + */ + public const REPEATABLE = 624; + + /** + * Generated from protobuf enum REPLACE = 625;. + */ + public const REPLACE = 625; + + /** + * Generated from protobuf enum REPLICA = 626;. + */ + public const REPLICA = 626; + + /** + * Generated from protobuf enum RESET = 627;. + */ + public const RESET = 627; + + /** + * Generated from protobuf enum RESTART = 628;. + */ + public const RESTART = 628; + + /** + * Generated from protobuf enum RESTRICT = 629;. + */ + public const RESTRICT = 629; + + /** + * Generated from protobuf enum RETURNING = 631;. + */ + public const RETURNING = 631; + + /** + * Generated from protobuf enum RETURNS = 632;. + */ + public const RETURNS = 632; + + /** + * Generated from protobuf enum REVOKE = 633;. + */ + public const REVOKE = 633; + + /** + * Generated from protobuf enum RIGHT = 634;. + */ + public const RIGHT = 634; + + /** + * Generated from protobuf enum ROLE = 635;. + */ + public const ROLE = 635; + + /** + * Generated from protobuf enum ROLLBACK = 636;. + */ + public const ROLLBACK = 636; + + /** + * Generated from protobuf enum ROLLUP = 637;. + */ + public const ROLLUP = 637; + + /** + * Generated from protobuf enum ROUTINE = 638;. + */ + public const ROUTINE = 638; + + /** + * Generated from protobuf enum ROUTINES = 639;. + */ + public const ROUTINES = 639; + + /** + * Generated from protobuf enum ROW = 640;. + */ + public const ROW = 640; + + /** + * Generated from protobuf enum ROWS = 641;. + */ + public const ROWS = 641; + + /** + * Generated from protobuf enum RULE = 642;. + */ + public const RULE = 642; + + /** + * Generated from protobuf enum SAVEPOINT = 643;. + */ + public const SAVEPOINT = 643; + + /** + * Generated from protobuf enum SCALAR = 644;. + */ + public const SCALAR = 644; + + /** + * Generated from protobuf enum SCHEMA = 645;. + */ + public const SCHEMA = 645; + + /** + * Generated from protobuf enum SCHEMAS = 646;. + */ + public const SCHEMAS = 646; + + /** + * Generated from protobuf enum SCONST = 261;. + */ + public const SCONST = 261; + + /** + * Generated from protobuf enum SCROLL = 647;. + */ + public const SCROLL = 647; + + /** + * Generated from protobuf enum SEARCH = 648;. + */ + public const SEARCH = 648; + + /** + * Generated from protobuf enum SECOND_P = 649;. + */ + public const SECOND_P = 649; + + /** + * Generated from protobuf enum SECURITY = 650;. + */ + public const SECURITY = 650; + + /** + * Generated from protobuf enum SELECT = 651;. + */ + public const SELECT = 651; + + /** + * Generated from protobuf enum SEQUENCE = 652;. + */ + public const SEQUENCE = 652; + + /** + * Generated from protobuf enum SEQUENCES = 653;. + */ + public const SEQUENCES = 653; + + /** + * Generated from protobuf enum SERIALIZABLE = 654;. + */ + public const SERIALIZABLE = 654; + + /** + * Generated from protobuf enum SERVER = 655;. + */ + public const SERVER = 655; + + /** + * Generated from protobuf enum SESSION = 656;. + */ + public const SESSION = 656; + + /** + * Generated from protobuf enum SESSION_USER = 657;. + */ + public const SESSION_USER = 657; + + /** + * Generated from protobuf enum SET = 658;. + */ + public const SET = 658; + + /** + * Generated from protobuf enum SETOF = 660;. + */ + public const SETOF = 660; + + /** + * Generated from protobuf enum SETS = 659;. + */ + public const SETS = 659; + + /** + * Generated from protobuf enum SHARE = 661;. + */ + public const SHARE = 661; + + /** + * Generated from protobuf enum SHOW = 662;. + */ + public const SHOW = 662; + + /** + * Generated from protobuf enum SIMILAR = 663;. + */ + public const SIMILAR = 663; + + /** + * Generated from protobuf enum SIMPLE = 664;. + */ + public const SIMPLE = 664; + + /** + * Generated from protobuf enum SKIP = 665;. + */ + public const SKIP = 665; + + /** + * Generated from protobuf enum SMALLINT = 666;. + */ + public const SMALLINT = 666; + + /** + * Generated from protobuf enum SNAPSHOT = 667;. + */ + public const SNAPSHOT = 667; + + /** + * Generated from protobuf enum SOME = 668;. + */ + public const SOME = 668; + + /** + * Generated from protobuf enum SOURCE = 669;. + */ + public const SOURCE = 669; + + /** + * Generated from protobuf enum SQL_COMMENT = 275;. + */ + public const SQL_COMMENT = 275; + + /** + * Generated from protobuf enum SQL_P = 670;. + */ + public const SQL_P = 670; + + /** + * Generated from protobuf enum STABLE = 671;. + */ + public const STABLE = 671; + + /** + * Generated from protobuf enum STANDALONE_P = 672;. + */ + public const STANDALONE_P = 672; + + /** + * Generated from protobuf enum START = 673;. + */ + public const START = 673; + + /** + * Generated from protobuf enum STATEMENT = 674;. + */ + public const STATEMENT = 674; + + /** + * Generated from protobuf enum STATISTICS = 675;. + */ + public const STATISTICS = 675; + + /** + * Generated from protobuf enum STDIN = 676;. + */ + public const STDIN = 676; + + /** + * Generated from protobuf enum STDOUT = 677;. + */ + public const STDOUT = 677; + + /** + * Generated from protobuf enum STORAGE = 678;. + */ + public const STORAGE = 678; + + /** + * Generated from protobuf enum STORED = 679;. + */ + public const STORED = 679; + + /** + * Generated from protobuf enum STRICT_P = 680;. + */ + public const STRICT_P = 680; + + /** + * Generated from protobuf enum STRING_P = 681;. + */ + public const STRING_P = 681; + + /** + * Generated from protobuf enum STRIP_P = 682;. + */ + public const STRIP_P = 682; + + /** + * Generated from protobuf enum SUBSCRIPTION = 683;. + */ + public const SUBSCRIPTION = 683; + + /** + * Generated from protobuf enum SUBSTRING = 684;. + */ + public const SUBSTRING = 684; + + /** + * Generated from protobuf enum SUPPORT = 685;. + */ + public const SUPPORT = 685; + + /** + * Generated from protobuf enum SYMMETRIC = 686;. + */ + public const SYMMETRIC = 686; + + /** + * Generated from protobuf enum SYSID = 687;. + */ + public const SYSID = 687; + + /** + * Generated from protobuf enum SYSTEM_P = 688;. + */ + public const SYSTEM_P = 688; + + /** + * Generated from protobuf enum SYSTEM_USER = 689;. + */ + public const SYSTEM_USER = 689; + + /** + * Generated from protobuf enum TABLE = 690;. + */ + public const TABLE = 690; + + /** + * Generated from protobuf enum TABLES = 691;. + */ + public const TABLES = 691; + + /** + * Generated from protobuf enum TABLESAMPLE = 692;. + */ + public const TABLESAMPLE = 692; + + /** + * Generated from protobuf enum TABLESPACE = 693;. + */ + public const TABLESPACE = 693; + + /** + * Generated from protobuf enum TARGET = 694;. + */ + public const TARGET = 694; + + /** + * Generated from protobuf enum TEMP = 695;. + */ + public const TEMP = 695; + + /** + * Generated from protobuf enum TEMPLATE = 696;. + */ + public const TEMPLATE = 696; + + /** + * Generated from protobuf enum TEMPORARY = 697;. + */ + public const TEMPORARY = 697; + + /** + * Generated from protobuf enum TEXT_P = 698;. + */ + public const TEXT_P = 698; + + /** + * Generated from protobuf enum THEN = 699;. + */ + public const THEN = 699; + + /** + * Generated from protobuf enum TIES = 700;. + */ + public const TIES = 700; + + /** + * Generated from protobuf enum TIME = 701;. + */ + public const TIME = 701; + + /** + * Generated from protobuf enum TIMESTAMP = 702;. + */ + public const TIMESTAMP = 702; + + /** + * Generated from protobuf enum TO = 703;. + */ + public const TO = 703; + + /** + * Generated from protobuf enum TRAILING = 704;. + */ + public const TRAILING = 704; + + /** + * Generated from protobuf enum TRANSACTION = 705;. + */ + public const TRANSACTION = 705; + + /** + * Generated from protobuf enum TRANSFORM = 706;. + */ + public const TRANSFORM = 706; + + /** + * Generated from protobuf enum TREAT = 707;. + */ + public const TREAT = 707; + + /** + * Generated from protobuf enum TRIGGER = 708;. + */ + public const TRIGGER = 708; + + /** + * Generated from protobuf enum TRIM = 709;. + */ + public const TRIM = 709; + + /** + * Generated from protobuf enum TRUE_P = 710;. + */ + public const TRUE_P = 710; + + /** + * Generated from protobuf enum TRUNCATE = 711;. + */ + public const TRUNCATE = 711; + + /** + * Generated from protobuf enum TRUSTED = 712;. + */ + public const TRUSTED = 712; + + /** + * Generated from protobuf enum TYPE_P = 713;. + */ + public const TYPE_P = 713; + + /** + * Generated from protobuf enum TYPECAST = 268;. + */ + public const TYPECAST = 268; + + /** + * Generated from protobuf enum TYPES_P = 714;. + */ + public const TYPES_P = 714; + + /** + * Generated from protobuf enum UESCAPE = 715;. + */ + public const UESCAPE = 715; + + /** + * Generated from protobuf enum UIDENT = 259;. + */ + public const UIDENT = 259; + + /** + * Generated from protobuf enum UMINUS = 778;. + */ + public const UMINUS = 778; + + /** + * Generated from protobuf enum UNBOUNDED = 716;. + */ + public const UNBOUNDED = 716; + + /** + * Generated from protobuf enum UNCOMMITTED = 718;. + */ + public const UNCOMMITTED = 718; + + /** + * Generated from protobuf enum UNCONDITIONAL = 717;. + */ + public const UNCONDITIONAL = 717; + + /** + * Generated from protobuf enum UNENCRYPTED = 719;. + */ + public const UNENCRYPTED = 719; + + /** + * Generated from protobuf enum UNION = 720;. + */ + public const UNION = 720; + + /** + * Generated from protobuf enum UNIQUE = 721;. + */ + public const UNIQUE = 721; + + /** + * Generated from protobuf enum UNKNOWN = 722;. + */ + public const UNKNOWN = 722; + + /** + * Generated from protobuf enum UNLISTEN = 723;. + */ + public const UNLISTEN = 723; + + /** + * Generated from protobuf enum UNLOGGED = 724;. + */ + public const UNLOGGED = 724; + + /** + * Generated from protobuf enum UNTIL = 725;. + */ + public const UNTIL = 725; + + /** + * Generated from protobuf enum UPDATE = 726;. + */ + public const UPDATE = 726; + + /** + * Generated from protobuf enum USCONST = 262;. + */ + public const USCONST = 262; + + /** + * Generated from protobuf enum USER = 727;. + */ + public const USER = 727; + + /** + * Generated from protobuf enum USING = 728;. + */ + public const USING = 728; + + /** + * Generated from protobuf enum VACUUM = 729;. + */ + public const VACUUM = 729; + + /** + * Generated from protobuf enum VALID = 730;. + */ + public const VALID = 730; + + /** + * Generated from protobuf enum VALIDATE = 731;. + */ + public const VALIDATE = 731; + + /** + * Generated from protobuf enum VALIDATOR = 732;. + */ + public const VALIDATOR = 732; + + /** + * Generated from protobuf enum VALUE_P = 733;. + */ + public const VALUE_P = 733; + + /** + * Generated from protobuf enum VALUES = 734;. + */ + public const VALUES = 734; + + /** + * Generated from protobuf enum VARCHAR = 735;. + */ + public const VARCHAR = 735; + + /** + * Generated from protobuf enum VARIADIC = 736;. + */ + public const VARIADIC = 736; + + /** + * Generated from protobuf enum VARYING = 737;. + */ + public const VARYING = 737; + + /** + * Generated from protobuf enum VERBOSE = 738;. + */ + public const VERBOSE = 738; + + /** + * Generated from protobuf enum VERSION_P = 739;. + */ + public const VERSION_P = 739; + + /** + * Generated from protobuf enum VIEW = 740;. + */ + public const VIEW = 740; + + /** + * Generated from protobuf enum VIEWS = 741;. + */ + public const VIEWS = 741; + + /** + * Generated from protobuf enum VOLATILE = 742;. + */ + public const VOLATILE = 742; + + /** + * Generated from protobuf enum WHEN = 743;. + */ + public const WHEN = 743; + + /** + * Generated from protobuf enum WHERE = 744;. + */ + public const WHERE = 744; + + /** + * Generated from protobuf enum WHITESPACE_P = 745;. + */ + public const WHITESPACE_P = 745; + + /** + * Generated from protobuf enum WINDOW = 746;. + */ + public const WINDOW = 746; + + /** + * Generated from protobuf enum WITH = 747;. + */ + public const WITH = 747; + + /** + * Generated from protobuf enum WITH_LA = 771;. + */ + public const WITH_LA = 771; + + /** + * Generated from protobuf enum WITHIN = 748;. + */ + public const WITHIN = 748; + + /** + * Generated from protobuf enum WITHOUT = 749;. + */ + public const WITHOUT = 749; + + /** + * Generated from protobuf enum WITHOUT_LA = 772;. + */ + public const WITHOUT_LA = 772; + + /** + * Generated from protobuf enum WORK = 750;. + */ + public const WORK = 750; + + /** + * Generated from protobuf enum WRAPPER = 751;. + */ + public const WRAPPER = 751; + + /** + * Generated from protobuf enum WRITE = 752;. + */ + public const WRITE = 752; + + /** + * Generated from protobuf enum XCONST = 264;. + */ + public const XCONST = 264; + + /** + * Generated from protobuf enum XML_P = 753;. + */ + public const XML_P = 753; + + /** + * Generated from protobuf enum XMLATTRIBUTES = 754;. + */ + public const XMLATTRIBUTES = 754; + + /** + * Generated from protobuf enum XMLCONCAT = 755;. + */ + public const XMLCONCAT = 755; + + /** + * Generated from protobuf enum XMLELEMENT = 756;. + */ + public const XMLELEMENT = 756; + + /** + * Generated from protobuf enum XMLEXISTS = 757;. + */ + public const XMLEXISTS = 757; + + /** + * Generated from protobuf enum XMLFOREST = 758;. + */ + public const XMLFOREST = 758; + + /** + * Generated from protobuf enum XMLNAMESPACES = 759;. + */ + public const XMLNAMESPACES = 759; + + /** + * Generated from protobuf enum XMLPARSE = 760;. + */ + public const XMLPARSE = 760; + + /** + * Generated from protobuf enum XMLPI = 761;. + */ + public const XMLPI = 761; + + /** + * Generated from protobuf enum XMLROOT = 762;. + */ + public const XMLROOT = 762; + + /** + * Generated from protobuf enum XMLSERIALIZE = 763;. + */ + public const XMLSERIALIZE = 763; + + /** + * Generated from protobuf enum XMLTABLE = 764;. + */ + public const XMLTABLE = 764; + + /** + * Generated from protobuf enum YEAR_P = 765;. + */ + public const YEAR_P = 765; + + /** + * Generated from protobuf enum YES_P = 766;. + */ + public const YES_P = 766; + + /** + * Generated from protobuf enum ZONE = 767;. + */ + public const ZONE = 767; + + private static $valueToName = [ + self::NUL => 'NUL', + self::ASCII_36 => 'ASCII_36', + self::ASCII_37 => 'ASCII_37', + self::ASCII_40 => 'ASCII_40', + self::ASCII_41 => 'ASCII_41', + self::ASCII_42 => 'ASCII_42', + self::ASCII_43 => 'ASCII_43', + self::ASCII_44 => 'ASCII_44', + self::ASCII_45 => 'ASCII_45', + self::ASCII_46 => 'ASCII_46', + self::ASCII_47 => 'ASCII_47', + self::ASCII_58 => 'ASCII_58', + self::ASCII_59 => 'ASCII_59', + self::ASCII_60 => 'ASCII_60', + self::ASCII_61 => 'ASCII_61', + self::ASCII_62 => 'ASCII_62', + self::ASCII_63 => 'ASCII_63', + self::ASCII_91 => 'ASCII_91', + self::ASCII_92 => 'ASCII_92', + self::ASCII_93 => 'ASCII_93', + self::ASCII_94 => 'ASCII_94', + self::IDENT => 'IDENT', + self::UIDENT => 'UIDENT', + self::FCONST => 'FCONST', + self::SCONST => 'SCONST', + self::USCONST => 'USCONST', + self::BCONST => 'BCONST', + self::XCONST => 'XCONST', + self::Op => 'Op', + self::ICONST => 'ICONST', + self::PARAM => 'PARAM', + self::TYPECAST => 'TYPECAST', + self::DOT_DOT => 'DOT_DOT', + self::COLON_EQUALS => 'COLON_EQUALS', + self::EQUALS_GREATER => 'EQUALS_GREATER', + self::LESS_EQUALS => 'LESS_EQUALS', + self::GREATER_EQUALS => 'GREATER_EQUALS', + self::NOT_EQUALS => 'NOT_EQUALS', + self::SQL_COMMENT => 'SQL_COMMENT', + self::C_COMMENT => 'C_COMMENT', + self::ABORT_P => 'ABORT_P', + self::ABSENT => 'ABSENT', + self::ABSOLUTE_P => 'ABSOLUTE_P', + self::ACCESS => 'ACCESS', + self::ACTION => 'ACTION', + self::ADD_P => 'ADD_P', + self::ADMIN => 'ADMIN', + self::AFTER => 'AFTER', + self::AGGREGATE => 'AGGREGATE', + self::ALL => 'ALL', + self::ALSO => 'ALSO', + self::ALTER => 'ALTER', + self::ALWAYS => 'ALWAYS', + self::ANALYSE => 'ANALYSE', + self::ANALYZE => 'ANALYZE', + self::PBAND => 'AND', + self::ANY => 'ANY', + self::PBARRAY => 'ARRAY', + self::PBAS => 'AS', + self::ASC => 'ASC', + self::ASENSITIVE => 'ASENSITIVE', + self::ASSERTION => 'ASSERTION', + self::ASSIGNMENT => 'ASSIGNMENT', + self::ASYMMETRIC => 'ASYMMETRIC', + self::ATOMIC => 'ATOMIC', + self::AT => 'AT', + self::ATTACH => 'ATTACH', + self::ATTRIBUTE => 'ATTRIBUTE', + self::AUTHORIZATION => 'AUTHORIZATION', + self::BACKWARD => 'BACKWARD', + self::BEFORE => 'BEFORE', + self::BEGIN_P => 'BEGIN_P', + self::BETWEEN => 'BETWEEN', + self::BIGINT => 'BIGINT', + self::BINARY => 'BINARY', + self::BIT => 'BIT', + self::BOOLEAN_P => 'BOOLEAN_P', + self::BOTH => 'BOTH', + self::BREADTH => 'BREADTH', + self::BY => 'BY', + self::CACHE => 'CACHE', + self::CALL => 'CALL', + self::CALLED => 'CALLED', + self::CASCADE => 'CASCADE', + self::CASCADED => 'CASCADED', + self::PBCASE => 'CASE', + self::CAST => 'CAST', + self::CATALOG_P => 'CATALOG_P', + self::CHAIN => 'CHAIN', + self::CHAR_P => 'CHAR_P', + self::CHARACTER => 'CHARACTER', + self::CHARACTERISTICS => 'CHARACTERISTICS', + self::CHECK => 'CHECK', + self::CHECKPOINT => 'CHECKPOINT', + self::PBCLASS => 'CLASS', + self::CLOSE => 'CLOSE', + self::CLUSTER => 'CLUSTER', + self::COALESCE => 'COALESCE', + self::COLLATE => 'COLLATE', + self::COLLATION => 'COLLATION', + self::COLUMN => 'COLUMN', + self::COLUMNS => 'COLUMNS', + self::COMMENT => 'COMMENT', + self::COMMENTS => 'COMMENTS', + self::COMMIT => 'COMMIT', + self::COMMITTED => 'COMMITTED', + self::COMPRESSION => 'COMPRESSION', + self::CONCURRENTLY => 'CONCURRENTLY', + self::CONDITIONAL => 'CONDITIONAL', + self::CONFIGURATION => 'CONFIGURATION', + self::CONFLICT => 'CONFLICT', + self::CONNECTION => 'CONNECTION', + self::CONSTRAINT => 'CONSTRAINT', + self::CONSTRAINTS => 'CONSTRAINTS', + self::CONTENT_P => 'CONTENT_P', + self::CONTINUE_P => 'CONTINUE_P', + self::CONVERSION_P => 'CONVERSION_P', + self::COPY => 'COPY', + self::COST => 'COST', + self::CREATE => 'CREATE', + self::CROSS => 'CROSS', + self::CSV => 'CSV', + self::CUBE => 'CUBE', + self::CURRENT_P => 'CURRENT_P', + self::CURRENT_CATALOG => 'CURRENT_CATALOG', + self::CURRENT_DATE => 'CURRENT_DATE', + self::CURRENT_ROLE => 'CURRENT_ROLE', + self::CURRENT_SCHEMA => 'CURRENT_SCHEMA', + self::CURRENT_TIME => 'CURRENT_TIME', + self::CURRENT_TIMESTAMP => 'CURRENT_TIMESTAMP', + self::CURRENT_USER => 'CURRENT_USER', + self::CURSOR => 'CURSOR', + self::CYCLE => 'CYCLE', + self::DATA_P => 'DATA_P', + self::DATABASE => 'DATABASE', + self::DAY_P => 'DAY_P', + self::DEALLOCATE => 'DEALLOCATE', + self::DEC => 'DEC', + self::DECIMAL_P => 'DECIMAL_P', + self::PBDECLARE => 'DECLARE', + self::PBDEFAULT => 'DEFAULT', + self::DEFAULTS => 'DEFAULTS', + self::DEFERRABLE => 'DEFERRABLE', + self::DEFERRED => 'DEFERRED', + self::DEFINER => 'DEFINER', + self::DELETE_P => 'DELETE_P', + self::DELIMITER => 'DELIMITER', + self::DELIMITERS => 'DELIMITERS', + self::DEPENDS => 'DEPENDS', + self::DEPTH => 'DEPTH', + self::DESC => 'DESC', + self::DETACH => 'DETACH', + self::DICTIONARY => 'DICTIONARY', + self::DISABLE_P => 'DISABLE_P', + self::DISCARD => 'DISCARD', + self::DISTINCT => 'DISTINCT', + self::PBDO => 'DO', + self::DOCUMENT_P => 'DOCUMENT_P', + self::DOMAIN_P => 'DOMAIN_P', + self::DOUBLE_P => 'DOUBLE_P', + self::DROP => 'DROP', + self::EACH => 'EACH', + self::PBELSE => 'ELSE', + self::EMPTY_P => 'EMPTY_P', + self::ENABLE_P => 'ENABLE_P', + self::ENCODING => 'ENCODING', + self::ENCRYPTED => 'ENCRYPTED', + self::END_P => 'END_P', + self::ENUM_P => 'ENUM_P', + self::ERROR_P => 'ERROR_P', + self::ESCAPE => 'ESCAPE', + self::EVENT => 'EVENT', + self::EXCEPT => 'EXCEPT', + self::EXCLUDE => 'EXCLUDE', + self::EXCLUDING => 'EXCLUDING', + self::EXCLUSIVE => 'EXCLUSIVE', + self::EXECUTE => 'EXECUTE', + self::EXISTS => 'EXISTS', + self::EXPLAIN => 'EXPLAIN', + self::EXPRESSION => 'EXPRESSION', + self::EXTENSION => 'EXTENSION', + self::EXTERNAL => 'EXTERNAL', + self::EXTRACT => 'EXTRACT', + self::FALSE_P => 'FALSE_P', + self::FAMILY => 'FAMILY', + self::FETCH => 'FETCH', + self::FILTER => 'FILTER', + self::FINALIZE => 'FINALIZE', + self::FIRST_P => 'FIRST_P', + self::FLOAT_P => 'FLOAT_P', + self::FOLLOWING => 'FOLLOWING', + self::PBFOR => 'FOR', + self::FORCE => 'FORCE', + self::FOREIGN => 'FOREIGN', + self::FORMAT => 'FORMAT', + self::FORWARD => 'FORWARD', + self::FREEZE => 'FREEZE', + self::FROM => 'FROM', + self::FULL => 'FULL', + self::PBFUNCTION => 'FUNCTION', + self::FUNCTIONS => 'FUNCTIONS', + self::GENERATED => 'GENERATED', + self::PBGLOBAL => 'GLOBAL', + self::GRANT => 'GRANT', + self::GRANTED => 'GRANTED', + self::GREATEST => 'GREATEST', + self::GROUP_P => 'GROUP_P', + self::GROUPING => 'GROUPING', + self::GROUPS => 'GROUPS', + self::HANDLER => 'HANDLER', + self::HAVING => 'HAVING', + self::HEADER_P => 'HEADER_P', + self::HOLD => 'HOLD', + self::HOUR_P => 'HOUR_P', + self::IDENTITY_P => 'IDENTITY_P', + self::IF_P => 'IF_P', + self::ILIKE => 'ILIKE', + self::IMMEDIATE => 'IMMEDIATE', + self::IMMUTABLE => 'IMMUTABLE', + self::IMPLICIT_P => 'IMPLICIT_P', + self::IMPORT_P => 'IMPORT_P', + self::IN_P => 'IN_P', + self::PBINCLUDE => 'INCLUDE', + self::INCLUDING => 'INCLUDING', + self::INCREMENT => 'INCREMENT', + self::INDENT => 'INDENT', + self::INDEX => 'INDEX', + self::INDEXES => 'INDEXES', + self::INHERIT => 'INHERIT', + self::INHERITS => 'INHERITS', + self::INITIALLY => 'INITIALLY', + self::INLINE_P => 'INLINE_P', + self::INNER_P => 'INNER_P', + self::INOUT => 'INOUT', + self::INPUT_P => 'INPUT_P', + self::INSENSITIVE => 'INSENSITIVE', + self::INSERT => 'INSERT', + self::INSTEAD => 'INSTEAD', + self::INT_P => 'INT_P', + self::INTEGER => 'INTEGER', + self::INTERSECT => 'INTERSECT', + self::INTERVAL => 'INTERVAL', + self::INTO => 'INTO', + self::INVOKER => 'INVOKER', + self::IS => 'IS', + self::ISNULL => 'ISNULL', + self::ISOLATION => 'ISOLATION', + self::JOIN => 'JOIN', + self::JSON => 'JSON', + self::JSON_ARRAY => 'JSON_ARRAY', + self::JSON_ARRAYAGG => 'JSON_ARRAYAGG', + self::JSON_EXISTS => 'JSON_EXISTS', + self::JSON_OBJECT => 'JSON_OBJECT', + self::JSON_OBJECTAGG => 'JSON_OBJECTAGG', + self::JSON_QUERY => 'JSON_QUERY', + self::JSON_SCALAR => 'JSON_SCALAR', + self::JSON_SERIALIZE => 'JSON_SERIALIZE', + self::JSON_TABLE => 'JSON_TABLE', + self::JSON_VALUE => 'JSON_VALUE', + self::KEEP => 'KEEP', + self::KEY => 'KEY', + self::KEYS => 'KEYS', + self::LABEL => 'LABEL', + self::LANGUAGE => 'LANGUAGE', + self::LARGE_P => 'LARGE_P', + self::LAST_P => 'LAST_P', + self::LATERAL_P => 'LATERAL_P', + self::LEADING => 'LEADING', + self::LEAKPROOF => 'LEAKPROOF', + self::LEAST => 'LEAST', + self::LEFT => 'LEFT', + self::LEVEL => 'LEVEL', + self::LIKE => 'LIKE', + self::LIMIT => 'LIMIT', + self::LISTEN => 'LISTEN', + self::LOAD => 'LOAD', + self::LOCAL => 'LOCAL', + self::LOCALTIME => 'LOCALTIME', + self::LOCALTIMESTAMP => 'LOCALTIMESTAMP', + self::LOCATION => 'LOCATION', + self::LOCK_P => 'LOCK_P', + self::LOCKED => 'LOCKED', + self::LOGGED => 'LOGGED', + self::MAPPING => 'MAPPING', + self::PBMATCH => 'MATCH', + self::MATCHED => 'MATCHED', + self::MATERIALIZED => 'MATERIALIZED', + self::MAXVALUE => 'MAXVALUE', + self::MERGE => 'MERGE', + self::MERGE_ACTION => 'MERGE_ACTION', + self::METHOD => 'METHOD', + self::MINUTE_P => 'MINUTE_P', + self::MINVALUE => 'MINVALUE', + self::MODE => 'MODE', + self::MONTH_P => 'MONTH_P', + self::MOVE => 'MOVE', + self::NAME_P => 'NAME_P', + self::NAMES => 'NAMES', + self::NATIONAL => 'NATIONAL', + self::NATURAL => 'NATURAL', + self::NCHAR => 'NCHAR', + self::NESTED => 'NESTED', + self::PBNEW => 'NEW', + self::NEXT => 'NEXT', + self::NFC => 'NFC', + self::NFD => 'NFD', + self::NFKC => 'NFKC', + self::NFKD => 'NFKD', + self::NO => 'NO', + self::NONE => 'NONE', + self::NORMALIZE => 'NORMALIZE', + self::NORMALIZED => 'NORMALIZED', + self::NOT => 'NOT', + self::NOTHING => 'NOTHING', + self::NOTIFY => 'NOTIFY', + self::NOTNULL => 'NOTNULL', + self::NOWAIT => 'NOWAIT', + self::NULL_P => 'NULL_P', + self::NULLIF => 'NULLIF', + self::NULLS_P => 'NULLS_P', + self::NUMERIC => 'NUMERIC', + self::OBJECT_P => 'OBJECT_P', + self::OF => 'OF', + self::OFF => 'OFF', + self::OFFSET => 'OFFSET', + self::OIDS => 'OIDS', + self::OLD => 'OLD', + self::OMIT => 'OMIT', + self::ON => 'ON', + self::ONLY => 'ONLY', + self::OPERATOR => 'OPERATOR', + self::OPTION => 'OPTION', + self::OPTIONS => 'OPTIONS', + self::PBOR => 'OR', + self::ORDER => 'ORDER', + self::ORDINALITY => 'ORDINALITY', + self::OTHERS => 'OTHERS', + self::OUT_P => 'OUT_P', + self::OUTER_P => 'OUTER_P', + self::OVER => 'OVER', + self::OVERLAPS => 'OVERLAPS', + self::OVERLAY => 'OVERLAY', + self::OVERRIDING => 'OVERRIDING', + self::OWNED => 'OWNED', + self::OWNER => 'OWNER', + self::PARALLEL => 'PARALLEL', + self::PARAMETER => 'PARAMETER', + self::PARSER => 'PARSER', + self::PARTIAL => 'PARTIAL', + self::PARTITION => 'PARTITION', + self::PASSING => 'PASSING', + self::PASSWORD => 'PASSWORD', + self::PATH => 'PATH', + self::PLACING => 'PLACING', + self::PLAN => 'PLAN', + self::PLANS => 'PLANS', + self::POLICY => 'POLICY', + self::POSITION => 'POSITION', + self::PRECEDING => 'PRECEDING', + self::PRECISION => 'PRECISION', + self::PRESERVE => 'PRESERVE', + self::PREPARE => 'PREPARE', + self::PREPARED => 'PREPARED', + self::PRIMARY => 'PRIMARY', + self::PRIOR => 'PRIOR', + self::PRIVILEGES => 'PRIVILEGES', + self::PROCEDURAL => 'PROCEDURAL', + self::PROCEDURE => 'PROCEDURE', + self::PROCEDURES => 'PROCEDURES', + self::PROGRAM => 'PROGRAM', + self::PUBLICATION => 'PUBLICATION', + self::QUOTE => 'QUOTE', + self::QUOTES => 'QUOTES', + self::RANGE => 'RANGE', + self::READ => 'READ', + self::REAL => 'REAL', + self::REASSIGN => 'REASSIGN', + self::RECHECK => 'RECHECK', + self::RECURSIVE => 'RECURSIVE', + self::REF_P => 'REF_P', + self::REFERENCES => 'REFERENCES', + self::REFERENCING => 'REFERENCING', + self::REFRESH => 'REFRESH', + self::REINDEX => 'REINDEX', + self::RELATIVE_P => 'RELATIVE_P', + self::RELEASE => 'RELEASE', + self::RENAME => 'RENAME', + self::REPEATABLE => 'REPEATABLE', + self::REPLACE => 'REPLACE', + self::REPLICA => 'REPLICA', + self::RESET => 'RESET', + self::RESTART => 'RESTART', + self::RESTRICT => 'RESTRICT', + self::PBRETURN => 'RETURN', + self::RETURNING => 'RETURNING', + self::RETURNS => 'RETURNS', + self::REVOKE => 'REVOKE', + self::RIGHT => 'RIGHT', + self::ROLE => 'ROLE', + self::ROLLBACK => 'ROLLBACK', + self::ROLLUP => 'ROLLUP', + self::ROUTINE => 'ROUTINE', + self::ROUTINES => 'ROUTINES', + self::ROW => 'ROW', + self::ROWS => 'ROWS', + self::RULE => 'RULE', + self::SAVEPOINT => 'SAVEPOINT', + self::SCALAR => 'SCALAR', + self::SCHEMA => 'SCHEMA', + self::SCHEMAS => 'SCHEMAS', + self::SCROLL => 'SCROLL', + self::SEARCH => 'SEARCH', + self::SECOND_P => 'SECOND_P', + self::SECURITY => 'SECURITY', + self::SELECT => 'SELECT', + self::SEQUENCE => 'SEQUENCE', + self::SEQUENCES => 'SEQUENCES', + self::SERIALIZABLE => 'SERIALIZABLE', + self::SERVER => 'SERVER', + self::SESSION => 'SESSION', + self::SESSION_USER => 'SESSION_USER', + self::SET => 'SET', + self::SETS => 'SETS', + self::SETOF => 'SETOF', + self::SHARE => 'SHARE', + self::SHOW => 'SHOW', + self::SIMILAR => 'SIMILAR', + self::SIMPLE => 'SIMPLE', + self::SKIP => 'SKIP', + self::SMALLINT => 'SMALLINT', + self::SNAPSHOT => 'SNAPSHOT', + self::SOME => 'SOME', + self::SOURCE => 'SOURCE', + self::SQL_P => 'SQL_P', + self::STABLE => 'STABLE', + self::STANDALONE_P => 'STANDALONE_P', + self::START => 'START', + self::STATEMENT => 'STATEMENT', + self::STATISTICS => 'STATISTICS', + self::STDIN => 'STDIN', + self::STDOUT => 'STDOUT', + self::STORAGE => 'STORAGE', + self::STORED => 'STORED', + self::STRICT_P => 'STRICT_P', + self::STRING_P => 'STRING_P', + self::STRIP_P => 'STRIP_P', + self::SUBSCRIPTION => 'SUBSCRIPTION', + self::SUBSTRING => 'SUBSTRING', + self::SUPPORT => 'SUPPORT', + self::SYMMETRIC => 'SYMMETRIC', + self::SYSID => 'SYSID', + self::SYSTEM_P => 'SYSTEM_P', + self::SYSTEM_USER => 'SYSTEM_USER', + self::TABLE => 'TABLE', + self::TABLES => 'TABLES', + self::TABLESAMPLE => 'TABLESAMPLE', + self::TABLESPACE => 'TABLESPACE', + self::TARGET => 'TARGET', + self::TEMP => 'TEMP', + self::TEMPLATE => 'TEMPLATE', + self::TEMPORARY => 'TEMPORARY', + self::TEXT_P => 'TEXT_P', + self::THEN => 'THEN', + self::TIES => 'TIES', + self::TIME => 'TIME', + self::TIMESTAMP => 'TIMESTAMP', + self::TO => 'TO', + self::TRAILING => 'TRAILING', + self::TRANSACTION => 'TRANSACTION', + self::TRANSFORM => 'TRANSFORM', + self::TREAT => 'TREAT', + self::TRIGGER => 'TRIGGER', + self::TRIM => 'TRIM', + self::TRUE_P => 'TRUE_P', + self::TRUNCATE => 'TRUNCATE', + self::TRUSTED => 'TRUSTED', + self::TYPE_P => 'TYPE_P', + self::TYPES_P => 'TYPES_P', + self::UESCAPE => 'UESCAPE', + self::UNBOUNDED => 'UNBOUNDED', + self::UNCONDITIONAL => 'UNCONDITIONAL', + self::UNCOMMITTED => 'UNCOMMITTED', + self::UNENCRYPTED => 'UNENCRYPTED', + self::UNION => 'UNION', + self::UNIQUE => 'UNIQUE', + self::UNKNOWN => 'UNKNOWN', + self::UNLISTEN => 'UNLISTEN', + self::UNLOGGED => 'UNLOGGED', + self::UNTIL => 'UNTIL', + self::UPDATE => 'UPDATE', + self::USER => 'USER', + self::USING => 'USING', + self::VACUUM => 'VACUUM', + self::VALID => 'VALID', + self::VALIDATE => 'VALIDATE', + self::VALIDATOR => 'VALIDATOR', + self::VALUE_P => 'VALUE_P', + self::VALUES => 'VALUES', + self::VARCHAR => 'VARCHAR', + self::VARIADIC => 'VARIADIC', + self::VARYING => 'VARYING', + self::VERBOSE => 'VERBOSE', + self::VERSION_P => 'VERSION_P', + self::VIEW => 'VIEW', + self::VIEWS => 'VIEWS', + self::VOLATILE => 'VOLATILE', + self::WHEN => 'WHEN', + self::WHERE => 'WHERE', + self::WHITESPACE_P => 'WHITESPACE_P', + self::WINDOW => 'WINDOW', + self::WITH => 'WITH', + self::WITHIN => 'WITHIN', + self::WITHOUT => 'WITHOUT', + self::WORK => 'WORK', + self::WRAPPER => 'WRAPPER', + self::WRITE => 'WRITE', + self::XML_P => 'XML_P', + self::XMLATTRIBUTES => 'XMLATTRIBUTES', + self::XMLCONCAT => 'XMLCONCAT', + self::XMLELEMENT => 'XMLELEMENT', + self::XMLEXISTS => 'XMLEXISTS', + self::XMLFOREST => 'XMLFOREST', + self::XMLNAMESPACES => 'XMLNAMESPACES', + self::XMLPARSE => 'XMLPARSE', + self::XMLPI => 'XMLPI', + self::XMLROOT => 'XMLROOT', + self::XMLSERIALIZE => 'XMLSERIALIZE', + self::XMLTABLE => 'XMLTABLE', + self::YEAR_P => 'YEAR_P', + self::YES_P => 'YES_P', + self::ZONE => 'ZONE', + self::FORMAT_LA => 'FORMAT_LA', + self::NOT_LA => 'NOT_LA', + self::NULLS_LA => 'NULLS_LA', + self::WITH_LA => 'WITH_LA', + self::WITHOUT_LA => 'WITHOUT_LA', + self::MODE_TYPE_NAME => 'MODE_TYPE_NAME', + self::MODE_PLPGSQL_EXPR => 'MODE_PLPGSQL_EXPR', + self::MODE_PLPGSQL_ASSIGN1 => 'MODE_PLPGSQL_ASSIGN1', + self::MODE_PLPGSQL_ASSIGN2 => 'MODE_PLPGSQL_ASSIGN2', + self::MODE_PLPGSQL_ASSIGN3 => 'MODE_PLPGSQL_ASSIGN3', + self::UMINUS => 'UMINUS', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + $pbconst = self::class . '::PB' . strtoupper((string) $name); + + if (!defined($pbconst)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($pbconst); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TransactionStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TransactionStmt.php new file mode 100644 index 000000000..ef3b3dce8 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TransactionStmt.php @@ -0,0 +1,218 @@ +pg_query.TransactionStmt. + */ +class TransactionStmt extends Message +{ + /** + * Generated from protobuf field bool chain = 5 [json_name = "chain"];. + */ + protected $chain = false; + + /** + * Generated from protobuf field string gid = 4 [json_name = "gid"];. + */ + protected $gid = ''; + + /** + * Generated from protobuf field .pg_query.TransactionStmtKind kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string savepoint_name = 3 [json_name = "savepoint_name"];. + */ + protected $savepoint_name = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var array $options + * @var string $savepoint_name + * @var string $gid + * @var bool $chain + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool chain = 5 [json_name = "chain"];. + * + * @return bool + */ + public function getChain() + { + return $this->chain; + } + + /** + * Generated from protobuf field string gid = 4 [json_name = "gid"];. + * + * @return string + */ + public function getGid() + { + return $this->gid; + } + + /** + * Generated from protobuf field .pg_query.TransactionStmtKind kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field string savepoint_name = 3 [json_name = "savepoint_name"];. + * + * @return string + */ + public function getSavepointName() + { + return $this->savepoint_name; + } + + /** + * Generated from protobuf field bool chain = 5 [json_name = "chain"];. + * + * @param bool $var + * + * @return $this + */ + public function setChain($var) + { + GPBUtil::checkBool($var); + $this->chain = $var; + + return $this; + } + + /** + * Generated from protobuf field string gid = 4 [json_name = "gid"];. + * + * @param string $var + * + * @return $this + */ + public function setGid($var) + { + GPBUtil::checkString($var, true); + $this->gid = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TransactionStmtKind kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, TransactionStmtKind::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 6 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 2 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field string savepoint_name = 3 [json_name = "savepoint_name"];. + * + * @param string $var + * + * @return $this + */ + public function setSavepointName($var) + { + GPBUtil::checkString($var, true); + $this->savepoint_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TransactionStmtKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TransactionStmtKind.php new file mode 100644 index 000000000..d62e7ec2f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TransactionStmtKind.php @@ -0,0 +1,111 @@ +pg_query.TransactionStmtKind. + */ +class TransactionStmtKind +{ + /** + * Generated from protobuf enum TRANS_STMT_BEGIN = 1;. + */ + public const TRANS_STMT_BEGIN = 1; + + /** + * Generated from protobuf enum TRANS_STMT_COMMIT = 3;. + */ + public const TRANS_STMT_COMMIT = 3; + + /** + * Generated from protobuf enum TRANS_STMT_COMMIT_PREPARED = 9;. + */ + public const TRANS_STMT_COMMIT_PREPARED = 9; + + /** + * Generated from protobuf enum TRANS_STMT_PREPARE = 8;. + */ + public const TRANS_STMT_PREPARE = 8; + + /** + * Generated from protobuf enum TRANS_STMT_RELEASE = 6;. + */ + public const TRANS_STMT_RELEASE = 6; + + /** + * Generated from protobuf enum TRANS_STMT_ROLLBACK = 4;. + */ + public const TRANS_STMT_ROLLBACK = 4; + + /** + * Generated from protobuf enum TRANS_STMT_ROLLBACK_PREPARED = 10;. + */ + public const TRANS_STMT_ROLLBACK_PREPARED = 10; + + /** + * Generated from protobuf enum TRANS_STMT_ROLLBACK_TO = 7;. + */ + public const TRANS_STMT_ROLLBACK_TO = 7; + + /** + * Generated from protobuf enum TRANS_STMT_SAVEPOINT = 5;. + */ + public const TRANS_STMT_SAVEPOINT = 5; + + /** + * Generated from protobuf enum TRANS_STMT_START = 2;. + */ + public const TRANS_STMT_START = 2; + + /** + * Generated from protobuf enum TRANSACTION_STMT_KIND_UNDEFINED = 0;. + */ + public const TRANSACTION_STMT_KIND_UNDEFINED = 0; + + private static $valueToName = [ + self::TRANSACTION_STMT_KIND_UNDEFINED => 'TRANSACTION_STMT_KIND_UNDEFINED', + self::TRANS_STMT_BEGIN => 'TRANS_STMT_BEGIN', + self::TRANS_STMT_START => 'TRANS_STMT_START', + self::TRANS_STMT_COMMIT => 'TRANS_STMT_COMMIT', + self::TRANS_STMT_ROLLBACK => 'TRANS_STMT_ROLLBACK', + self::TRANS_STMT_SAVEPOINT => 'TRANS_STMT_SAVEPOINT', + self::TRANS_STMT_RELEASE => 'TRANS_STMT_RELEASE', + self::TRANS_STMT_ROLLBACK_TO => 'TRANS_STMT_ROLLBACK_TO', + self::TRANS_STMT_PREPARE => 'TRANS_STMT_PREPARE', + self::TRANS_STMT_COMMIT_PREPARED => 'TRANS_STMT_COMMIT_PREPARED', + self::TRANS_STMT_ROLLBACK_PREPARED => 'TRANS_STMT_ROLLBACK_PREPARED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TriggerTransition.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TriggerTransition.php new file mode 100644 index 000000000..362e44e7e --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TriggerTransition.php @@ -0,0 +1,124 @@ +pg_query.TriggerTransition. + */ +class TriggerTransition extends Message +{ + /** + * Generated from protobuf field bool is_new = 2 [json_name = "isNew"];. + */ + protected $is_new = false; + + /** + * Generated from protobuf field bool is_table = 3 [json_name = "isTable"];. + */ + protected $is_table = false; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var bool $is_new + * @var bool $is_table + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool is_new = 2 [json_name = "isNew"];. + * + * @return bool + */ + public function getIsNew() + { + return $this->is_new; + } + + /** + * Generated from protobuf field bool is_table = 3 [json_name = "isTable"];. + * + * @return bool + */ + public function getIsTable() + { + return $this->is_table; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field bool is_new = 2 [json_name = "isNew"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsNew($var) + { + GPBUtil::checkBool($var); + $this->is_new = $var; + + return $this; + } + + /** + * Generated from protobuf field bool is_table = 3 [json_name = "isTable"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsTable($var) + { + GPBUtil::checkBool($var); + $this->is_table = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TruncateStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TruncateStmt.php new file mode 100644 index 000000000..180caf534 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TruncateStmt.php @@ -0,0 +1,125 @@ +pg_query.TruncateStmt. + */ +class TruncateStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + */ + protected $behavior = 0; + + /** + * Generated from protobuf field bool restart_seqs = 2 [json_name = "restart_seqs"];. + */ + protected $restart_seqs = false; + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 1 [json_name = "relations"];. + */ + private $relations; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $relations + * @var bool $restart_seqs + * @var int $behavior + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + * + * @return int + */ + public function getBehavior() + { + return $this->behavior; + } + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 1 [json_name = "relations"];. + * + * @return RepeatedField + */ + public function getRelations() + { + return $this->relations; + } + + /** + * Generated from protobuf field bool restart_seqs = 2 [json_name = "restart_seqs"];. + * + * @return bool + */ + public function getRestartSeqs() + { + return $this->restart_seqs; + } + + /** + * Generated from protobuf field .pg_query.DropBehavior behavior = 3 [json_name = "behavior"];. + * + * @param int $var + * + * @return $this + */ + public function setBehavior($var) + { + GPBUtil::checkEnum($var, DropBehavior::class); + $this->behavior = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node relations = 1 [json_name = "relations"];. + * + * @param array $var + * + * @return $this + */ + public function setRelations($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->relations = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool restart_seqs = 2 [json_name = "restart_seqs"];. + * + * @param bool $var + * + * @return $this + */ + public function setRestartSeqs($var) + { + GPBUtil::checkBool($var); + $this->restart_seqs = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TypeCast.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TypeCast.php new file mode 100644 index 000000000..126bde28c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TypeCast.php @@ -0,0 +1,144 @@ +pg_query.TypeCast. + */ +class TypeCast extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + */ + protected $type_name; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $arg + * @var TypeName $type_name + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearTypeName() : void + { + $this->type_name = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->type_name; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasTypeName() + { + return isset($this->type_name); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 1 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 2 [json_name = "typeName"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->type_name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TypeName.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TypeName.php new file mode 100644 index 000000000..1d5660aff --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/TypeName.php @@ -0,0 +1,280 @@ +pg_query.TypeName. + */ +class TypeName extends Message +{ + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field bool pct_type = 4 [json_name = "pct_type"];. + */ + protected $pct_type = false; + + /** + * Generated from protobuf field bool setof = 3 [json_name = "setof"];. + */ + protected $setof = false; + + /** + * Generated from protobuf field uint32 type_oid = 2 [json_name = "typeOid"];. + */ + protected $type_oid = 0; + + /** + * Generated from protobuf field int32 typemod = 6 [json_name = "typemod"];. + */ + protected $typemod = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node array_bounds = 7 [json_name = "arrayBounds"];. + */ + private $array_bounds; + + /** + * Generated from protobuf field repeated .pg_query.Node names = 1 [json_name = "names"];. + */ + private $names; + + /** + * Generated from protobuf field repeated .pg_query.Node typmods = 5 [json_name = "typmods"];. + */ + private $typmods; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $names + * @var int $type_oid + * @var bool $setof + * @var bool $pct_type + * @var array $typmods + * @var int $typemod + * @var array $array_bounds + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node array_bounds = 7 [json_name = "arrayBounds"];. + * + * @return RepeatedField + */ + public function getArrayBounds() + { + return $this->array_bounds; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node names = 1 [json_name = "names"];. + * + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Generated from protobuf field bool pct_type = 4 [json_name = "pct_type"];. + * + * @return bool + */ + public function getPctType() + { + return $this->pct_type; + } + + /** + * Generated from protobuf field bool setof = 3 [json_name = "setof"];. + * + * @return bool + */ + public function getSetof() + { + return $this->setof; + } + + /** + * Generated from protobuf field int32 typemod = 6 [json_name = "typemod"];. + * + * @return int + */ + public function getTypemod() + { + return $this->typemod; + } + + /** + * Generated from protobuf field uint32 type_oid = 2 [json_name = "typeOid"];. + * + * @return int + */ + public function getTypeOid() + { + return $this->type_oid; + } + + /** + * Generated from protobuf field repeated .pg_query.Node typmods = 5 [json_name = "typmods"];. + * + * @return RepeatedField + */ + public function getTypmods() + { + return $this->typmods; + } + + /** + * Generated from protobuf field repeated .pg_query.Node array_bounds = 7 [json_name = "arrayBounds"];. + * + * @param array $var + * + * @return $this + */ + public function setArrayBounds($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->array_bounds = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node names = 1 [json_name = "names"];. + * + * @param array $var + * + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->names = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool pct_type = 4 [json_name = "pct_type"];. + * + * @param bool $var + * + * @return $this + */ + public function setPctType($var) + { + GPBUtil::checkBool($var); + $this->pct_type = $var; + + return $this; + } + + /** + * Generated from protobuf field bool setof = 3 [json_name = "setof"];. + * + * @param bool $var + * + * @return $this + */ + public function setSetof($var) + { + GPBUtil::checkBool($var); + $this->setof = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 typemod = 6 [json_name = "typemod"];. + * + * @param int $var + * + * @return $this + */ + public function setTypemod($var) + { + GPBUtil::checkInt32($var); + $this->typemod = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 type_oid = 2 [json_name = "typeOid"];. + * + * @param int $var + * + * @return $this + */ + public function setTypeOid($var) + { + GPBUtil::checkUint32($var); + $this->type_oid = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node typmods = 5 [json_name = "typmods"];. + * + * @param array $var + * + * @return $this + */ + public function setTypmods($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->typmods = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/UnlistenStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/UnlistenStmt.php new file mode 100644 index 000000000..b043cdd9f --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/UnlistenStmt.php @@ -0,0 +1,62 @@ +pg_query.UnlistenStmt. + */ +class UnlistenStmt extends Message +{ + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + */ + protected $conditionname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $conditionname + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + * + * @return string + */ + public function getConditionname() + { + return $this->conditionname; + } + + /** + * Generated from protobuf field string conditionname = 1 [json_name = "conditionname"];. + * + * @param string $var + * + * @return $this + */ + public function setConditionname($var) + { + GPBUtil::checkString($var, true); + $this->conditionname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/UpdateStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/UpdateStmt.php new file mode 100644 index 000000000..83d3d6de5 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/UpdateStmt.php @@ -0,0 +1,248 @@ +pg_query.UpdateStmt. + */ +class UpdateStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + */ + protected $where_clause; + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + */ + protected $with_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"];. + */ + private $from_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + */ + private $returning_list; + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 2 [json_name = "targetList"];. + */ + private $target_list; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var array $target_list + * @var Node $where_clause + * @var array $from_clause + * @var array $returning_list + * @var WithClause $with_clause + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + public function clearWhereClause() : void + { + $this->where_clause = null; + } + + public function clearWithClause() : void + { + $this->with_clause = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"];. + * + * @return RepeatedField + */ + public function getFromClause() + { + return $this->from_clause; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + * + * @return RepeatedField + */ + public function getReturningList() + { + return $this->returning_list; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 2 [json_name = "targetList"];. + * + * @return RepeatedField + */ + public function getTargetList() + { + return $this->target_list; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + * + * @return null|Node + */ + public function getWhereClause() + { + return $this->where_clause; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + * + * @return null|WithClause + */ + public function getWithClause() + { + return $this->with_clause; + } + + public function hasRelation() + { + return isset($this->relation); + } + + public function hasWhereClause() + { + return isset($this->where_clause); + } + + public function hasWithClause() + { + return isset($this->with_clause); + } + + /** + * Generated from protobuf field repeated .pg_query.Node from_clause = 4 [json_name = "fromClause"];. + * + * @param array $var + * + * @return $this + */ + public function setFromClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->from_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node returning_list = 5 [json_name = "returningList"];. + * + * @param array $var + * + * @return $this + */ + public function setReturningList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->returning_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node target_list = 2 [json_name = "targetList"];. + * + * @param array $var + * + * @return $this + */ + public function setTargetList($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->target_list = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node where_clause = 3 [json_name = "whereClause"];. + * + * @param Node $var + * + * @return $this + */ + public function setWhereClause($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->where_clause = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WithClause with_clause = 6 [json_name = "withClause"];. + * + * @param WithClause $var + * + * @return $this + */ + public function setWithClause($var) + { + GPBUtil::checkMessage($var, WithClause::class); + $this->with_clause = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VacuumRelation.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VacuumRelation.php new file mode 100644 index 000000000..2656273b9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VacuumRelation.php @@ -0,0 +1,135 @@ +pg_query.VacuumRelation. + */ +class VacuumRelation extends Message +{ + /** + * Generated from protobuf field uint32 oid = 2 [json_name = "oid"];. + */ + protected $oid = 0; + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + */ + protected $relation; + + /** + * Generated from protobuf field repeated .pg_query.Node va_cols = 3 [json_name = "va_cols"];. + */ + private $va_cols; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $relation + * @var int $oid + * @var array $va_cols + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearRelation() : void + { + $this->relation = null; + } + + /** + * Generated from protobuf field uint32 oid = 2 [json_name = "oid"];. + * + * @return int + */ + public function getOid() + { + return $this->oid; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @return null|RangeVar + */ + public function getRelation() + { + return $this->relation; + } + + /** + * Generated from protobuf field repeated .pg_query.Node va_cols = 3 [json_name = "va_cols"];. + * + * @return RepeatedField + */ + public function getVaCols() + { + return $this->va_cols; + } + + public function hasRelation() + { + return isset($this->relation); + } + + /** + * Generated from protobuf field uint32 oid = 2 [json_name = "oid"];. + * + * @param int $var + * + * @return $this + */ + public function setOid($var) + { + GPBUtil::checkUint32($var); + $this->oid = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar relation = 1 [json_name = "relation"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setRelation($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->relation = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node va_cols = 3 [json_name = "va_cols"];. + * + * @param array $var + * + * @return $this + */ + public function setVaCols($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->va_cols = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VacuumStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VacuumStmt.php new file mode 100644 index 000000000..6956c0b63 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VacuumStmt.php @@ -0,0 +1,125 @@ +pg_query.VacuumStmt. + */ +class VacuumStmt extends Message +{ + /** + * Generated from protobuf field bool is_vacuumcmd = 3 [json_name = "is_vacuumcmd"];. + */ + protected $is_vacuumcmd = false; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 1 [json_name = "options"];. + */ + private $options; + + /** + * Generated from protobuf field repeated .pg_query.Node rels = 2 [json_name = "rels"];. + */ + private $rels; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $options + * @var array $rels + * @var bool $is_vacuumcmd + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field bool is_vacuumcmd = 3 [json_name = "is_vacuumcmd"];. + * + * @return bool + */ + public function getIsVacuumcmd() + { + return $this->is_vacuumcmd; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 1 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field repeated .pg_query.Node rels = 2 [json_name = "rels"];. + * + * @return RepeatedField + */ + public function getRels() + { + return $this->rels; + } + + /** + * Generated from protobuf field bool is_vacuumcmd = 3 [json_name = "is_vacuumcmd"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsVacuumcmd($var) + { + GPBUtil::checkBool($var); + $this->is_vacuumcmd = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 1 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node rels = 2 [json_name = "rels"];. + * + * @param array $var + * + * @return $this + */ + public function setRels($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->rels = $arr; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableSetKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableSetKind.php new file mode 100644 index 000000000..584e1aeaa --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableSetKind.php @@ -0,0 +1,87 @@ +pg_query.VariableSetKind. + */ +class VariableSetKind +{ + /** + * Generated from protobuf enum VAR_RESET = 5;. + */ + public const VAR_RESET = 5; + + /** + * Generated from protobuf enum VAR_RESET_ALL = 6;. + */ + public const VAR_RESET_ALL = 6; + + /** + * Generated from protobuf enum VAR_SET_CURRENT = 3;. + */ + public const VAR_SET_CURRENT = 3; + + /** + * Generated from protobuf enum VAR_SET_DEFAULT = 2;. + */ + public const VAR_SET_DEFAULT = 2; + + /** + * Generated from protobuf enum VAR_SET_MULTI = 4;. + */ + public const VAR_SET_MULTI = 4; + + /** + * Generated from protobuf enum VAR_SET_VALUE = 1;. + */ + public const VAR_SET_VALUE = 1; + + /** + * Generated from protobuf enum VARIABLE_SET_KIND_UNDEFINED = 0;. + */ + public const VARIABLE_SET_KIND_UNDEFINED = 0; + + private static $valueToName = [ + self::VARIABLE_SET_KIND_UNDEFINED => 'VARIABLE_SET_KIND_UNDEFINED', + self::VAR_SET_VALUE => 'VAR_SET_VALUE', + self::VAR_SET_DEFAULT => 'VAR_SET_DEFAULT', + self::VAR_SET_CURRENT => 'VAR_SET_CURRENT', + self::VAR_SET_MULTI => 'VAR_SET_MULTI', + self::VAR_RESET => 'VAR_RESET', + self::VAR_RESET_ALL => 'VAR_RESET_ALL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableSetStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableSetStmt.php new file mode 100644 index 000000000..fb94918b3 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableSetStmt.php @@ -0,0 +1,156 @@ +pg_query.VariableSetStmt. + */ +class VariableSetStmt extends Message +{ + /** + * Generated from protobuf field bool is_local = 4 [json_name = "is_local"];. + */ + protected $is_local = false; + + /** + * Generated from protobuf field .pg_query.VariableSetKind kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + */ + private $args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var string $name + * @var array $args + * @var bool $is_local + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field bool is_local = 4 [json_name = "is_local"];. + * + * @return bool + */ + public function getIsLocal() + { + return $this->is_local; + } + + /** + * Generated from protobuf field .pg_query.VariableSetKind kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 3 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool is_local = 4 [json_name = "is_local"];. + * + * @param bool $var + * + * @return $this + */ + public function setIsLocal($var) + { + GPBUtil::checkBool($var); + $this->is_local = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.VariableSetKind kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, VariableSetKind::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 2 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableShowStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableShowStmt.php new file mode 100644 index 000000000..73470a42c --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/VariableShowStmt.php @@ -0,0 +1,62 @@ +pg_query.VariableShowStmt. + */ +class VariableShowStmt extends Message +{ + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ViewCheckOption.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ViewCheckOption.php new file mode 100644 index 000000000..bb588cee1 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ViewCheckOption.php @@ -0,0 +1,69 @@ +pg_query.ViewCheckOption. + */ +class ViewCheckOption +{ + /** + * Generated from protobuf enum CASCADED_CHECK_OPTION = 3;. + */ + public const CASCADED_CHECK_OPTION = 3; + + /** + * Generated from protobuf enum LOCAL_CHECK_OPTION = 2;. + */ + public const LOCAL_CHECK_OPTION = 2; + + /** + * Generated from protobuf enum NO_CHECK_OPTION = 1;. + */ + public const NO_CHECK_OPTION = 1; + + /** + * Generated from protobuf enum VIEW_CHECK_OPTION_UNDEFINED = 0;. + */ + public const VIEW_CHECK_OPTION_UNDEFINED = 0; + + private static $valueToName = [ + self::VIEW_CHECK_OPTION_UNDEFINED => 'VIEW_CHECK_OPTION_UNDEFINED', + self::NO_CHECK_OPTION => 'NO_CHECK_OPTION', + self::LOCAL_CHECK_OPTION => 'LOCAL_CHECK_OPTION', + self::CASCADED_CHECK_OPTION => 'CASCADED_CHECK_OPTION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ViewStmt.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ViewStmt.php new file mode 100644 index 000000000..cd6bdfba7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/ViewStmt.php @@ -0,0 +1,238 @@ +pg_query.ViewStmt. + */ +class ViewStmt extends Message +{ + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + */ + protected $query; + + /** + * Generated from protobuf field bool replace = 4 [json_name = "replace"];. + */ + protected $replace = false; + + /** + * Generated from protobuf field .pg_query.RangeVar view = 1 [json_name = "view"];. + */ + protected $view; + + /** + * Generated from protobuf field .pg_query.ViewCheckOption with_check_option = 6 [json_name = "withCheckOption"];. + */ + protected $with_check_option = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node aliases = 2 [json_name = "aliases"];. + */ + private $aliases; + + /** + * Generated from protobuf field repeated .pg_query.Node options = 5 [json_name = "options"];. + */ + private $options; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var RangeVar $view + * @var array $aliases + * @var Node $query + * @var bool $replace + * @var array $options + * @var int $with_check_option + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQuery() : void + { + $this->query = null; + } + + public function clearView() : void + { + $this->view = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node aliases = 2 [json_name = "aliases"];. + * + * @return RepeatedField + */ + public function getAliases() + { + return $this->aliases; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 5 [json_name = "options"];. + * + * @return RepeatedField + */ + public function getOptions() + { + return $this->options; + } + + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + * + * @return null|Node + */ + public function getQuery() + { + return $this->query; + } + + /** + * Generated from protobuf field bool replace = 4 [json_name = "replace"];. + * + * @return bool + */ + public function getReplace() + { + return $this->replace; + } + + /** + * Generated from protobuf field .pg_query.RangeVar view = 1 [json_name = "view"];. + * + * @return null|RangeVar + */ + public function getView() + { + return $this->view; + } + + /** + * Generated from protobuf field .pg_query.ViewCheckOption with_check_option = 6 [json_name = "withCheckOption"];. + * + * @return int + */ + public function getWithCheckOption() + { + return $this->with_check_option; + } + + public function hasQuery() + { + return isset($this->query); + } + + public function hasView() + { + return isset($this->view); + } + + /** + * Generated from protobuf field repeated .pg_query.Node aliases = 2 [json_name = "aliases"];. + * + * @param array $var + * + * @return $this + */ + public function setAliases($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->aliases = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node options = 5 [json_name = "options"];. + * + * @param array $var + * + * @return $this + */ + public function setOptions($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->options = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node query = 3 [json_name = "query"];. + * + * @param Node $var + * + * @return $this + */ + public function setQuery($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->query = $var; + + return $this; + } + + /** + * Generated from protobuf field bool replace = 4 [json_name = "replace"];. + * + * @param bool $var + * + * @return $this + */ + public function setReplace($var) + { + GPBUtil::checkBool($var); + $this->replace = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.RangeVar view = 1 [json_name = "view"];. + * + * @param RangeVar $var + * + * @return $this + */ + public function setView($var) + { + GPBUtil::checkMessage($var, RangeVar::class); + $this->view = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.ViewCheckOption with_check_option = 6 [json_name = "withCheckOption"];. + * + * @param int $var + * + * @return $this + */ + public function setWithCheckOption($var) + { + GPBUtil::checkEnum($var, ViewCheckOption::class); + $this->with_check_option = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WCOKind.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WCOKind.php new file mode 100644 index 000000000..5247663e2 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WCOKind.php @@ -0,0 +1,87 @@ +pg_query.WCOKind. + */ +class WCOKind +{ + /** + * Generated from protobuf enum WCO_RLS_CONFLICT_CHECK = 4;. + */ + public const WCO_RLS_CONFLICT_CHECK = 4; + + /** + * Generated from protobuf enum WCO_RLS_INSERT_CHECK = 2;. + */ + public const WCO_RLS_INSERT_CHECK = 2; + + /** + * Generated from protobuf enum WCO_RLS_MERGE_DELETE_CHECK = 6;. + */ + public const WCO_RLS_MERGE_DELETE_CHECK = 6; + + /** + * Generated from protobuf enum WCO_RLS_MERGE_UPDATE_CHECK = 5;. + */ + public const WCO_RLS_MERGE_UPDATE_CHECK = 5; + + /** + * Generated from protobuf enum WCO_RLS_UPDATE_CHECK = 3;. + */ + public const WCO_RLS_UPDATE_CHECK = 3; + + /** + * Generated from protobuf enum WCO_VIEW_CHECK = 1;. + */ + public const WCO_VIEW_CHECK = 1; + + /** + * Generated from protobuf enum WCOKIND_UNDEFINED = 0;. + */ + public const WCOKIND_UNDEFINED = 0; + + private static $valueToName = [ + self::WCOKIND_UNDEFINED => 'WCOKIND_UNDEFINED', + self::WCO_VIEW_CHECK => 'WCO_VIEW_CHECK', + self::WCO_RLS_INSERT_CHECK => 'WCO_RLS_INSERT_CHECK', + self::WCO_RLS_UPDATE_CHECK => 'WCO_RLS_UPDATE_CHECK', + self::WCO_RLS_CONFLICT_CHECK => 'WCO_RLS_CONFLICT_CHECK', + self::WCO_RLS_MERGE_UPDATE_CHECK => 'WCO_RLS_MERGE_UPDATE_CHECK', + self::WCO_RLS_MERGE_DELETE_CHECK => 'WCO_RLS_MERGE_DELETE_CHECK', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowClause.php new file mode 100644 index 000000000..1271a2cfe --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowClause.php @@ -0,0 +1,486 @@ +pg_query.WindowClause. + */ +class WindowClause extends Message +{ + /** + * Generated from protobuf field bool copied_order = 14 [json_name = "copiedOrder"];. + */ + protected $copied_order = false; + + /** + * Generated from protobuf field uint32 end_in_range_func = 9 [json_name = "endInRangeFunc"];. + */ + protected $end_in_range_func = 0; + + /** + * Generated from protobuf field .pg_query.Node end_offset = 7 [json_name = "endOffset"];. + */ + protected $end_offset; + + /** + * Generated from protobuf field int32 frame_options = 5 [json_name = "frameOptions"];. + */ + protected $frame_options = 0; + + /** + * Generated from protobuf field bool in_range_asc = 11 [json_name = "inRangeAsc"];. + */ + protected $in_range_asc = false; + + /** + * Generated from protobuf field uint32 in_range_coll = 10 [json_name = "inRangeColl"];. + */ + protected $in_range_coll = 0; + + /** + * Generated from protobuf field bool in_range_nulls_first = 12 [json_name = "inRangeNullsFirst"];. + */ + protected $in_range_nulls_first = false; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field string refname = 2 [json_name = "refname"];. + */ + protected $refname = ''; + + /** + * Generated from protobuf field uint32 start_in_range_func = 8 [json_name = "startInRangeFunc"];. + */ + protected $start_in_range_func = 0; + + /** + * Generated from protobuf field .pg_query.Node start_offset = 6 [json_name = "startOffset"];. + */ + protected $start_offset; + + /** + * Generated from protobuf field uint32 winref = 13 [json_name = "winref"];. + */ + protected $winref = 0; + + /** + * Generated from protobuf field repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"];. + */ + private $order_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"];. + */ + private $partition_clause; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var string $refname + * @var array $partition_clause + * @var array $order_clause + * @var int $frame_options + * @var Node $start_offset + * @var Node $end_offset + * @var int $start_in_range_func + * @var int $end_in_range_func + * @var int $in_range_coll + * @var bool $in_range_asc + * @var bool $in_range_nulls_first + * @var int $winref + * @var bool $copied_order + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearEndOffset() : void + { + $this->end_offset = null; + } + + public function clearStartOffset() : void + { + $this->start_offset = null; + } + + /** + * Generated from protobuf field bool copied_order = 14 [json_name = "copiedOrder"];. + * + * @return bool + */ + public function getCopiedOrder() + { + return $this->copied_order; + } + + /** + * Generated from protobuf field uint32 end_in_range_func = 9 [json_name = "endInRangeFunc"];. + * + * @return int + */ + public function getEndInRangeFunc() + { + return $this->end_in_range_func; + } + + /** + * Generated from protobuf field .pg_query.Node end_offset = 7 [json_name = "endOffset"];. + * + * @return null|Node + */ + public function getEndOffset() + { + return $this->end_offset; + } + + /** + * Generated from protobuf field int32 frame_options = 5 [json_name = "frameOptions"];. + * + * @return int + */ + public function getFrameOptions() + { + return $this->frame_options; + } + + /** + * Generated from protobuf field bool in_range_asc = 11 [json_name = "inRangeAsc"];. + * + * @return bool + */ + public function getInRangeAsc() + { + return $this->in_range_asc; + } + + /** + * Generated from protobuf field uint32 in_range_coll = 10 [json_name = "inRangeColl"];. + * + * @return int + */ + public function getInRangeColl() + { + return $this->in_range_coll; + } + + /** + * Generated from protobuf field bool in_range_nulls_first = 12 [json_name = "inRangeNullsFirst"];. + * + * @return bool + */ + public function getInRangeNullsFirst() + { + return $this->in_range_nulls_first; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"];. + * + * @return RepeatedField + */ + public function getOrderClause() + { + return $this->order_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"];. + * + * @return RepeatedField + */ + public function getPartitionClause() + { + return $this->partition_clause; + } + + /** + * Generated from protobuf field string refname = 2 [json_name = "refname"];. + * + * @return string + */ + public function getRefname() + { + return $this->refname; + } + + /** + * Generated from protobuf field uint32 start_in_range_func = 8 [json_name = "startInRangeFunc"];. + * + * @return int + */ + public function getStartInRangeFunc() + { + return $this->start_in_range_func; + } + + /** + * Generated from protobuf field .pg_query.Node start_offset = 6 [json_name = "startOffset"];. + * + * @return null|Node + */ + public function getStartOffset() + { + return $this->start_offset; + } + + /** + * Generated from protobuf field uint32 winref = 13 [json_name = "winref"];. + * + * @return int + */ + public function getWinref() + { + return $this->winref; + } + + public function hasEndOffset() + { + return isset($this->end_offset); + } + + public function hasStartOffset() + { + return isset($this->start_offset); + } + + /** + * Generated from protobuf field bool copied_order = 14 [json_name = "copiedOrder"];. + * + * @param bool $var + * + * @return $this + */ + public function setCopiedOrder($var) + { + GPBUtil::checkBool($var); + $this->copied_order = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 end_in_range_func = 9 [json_name = "endInRangeFunc"];. + * + * @param int $var + * + * @return $this + */ + public function setEndInRangeFunc($var) + { + GPBUtil::checkUint32($var); + $this->end_in_range_func = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node end_offset = 7 [json_name = "endOffset"];. + * + * @param Node $var + * + * @return $this + */ + public function setEndOffset($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->end_offset = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 frame_options = 5 [json_name = "frameOptions"];. + * + * @param int $var + * + * @return $this + */ + public function setFrameOptions($var) + { + GPBUtil::checkInt32($var); + $this->frame_options = $var; + + return $this; + } + + /** + * Generated from protobuf field bool in_range_asc = 11 [json_name = "inRangeAsc"];. + * + * @param bool $var + * + * @return $this + */ + public function setInRangeAsc($var) + { + GPBUtil::checkBool($var); + $this->in_range_asc = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 in_range_coll = 10 [json_name = "inRangeColl"];. + * + * @param int $var + * + * @return $this + */ + public function setInRangeColl($var) + { + GPBUtil::checkUint32($var); + $this->in_range_coll = $var; + + return $this; + } + + /** + * Generated from protobuf field bool in_range_nulls_first = 12 [json_name = "inRangeNullsFirst"];. + * + * @param bool $var + * + * @return $this + */ + public function setInRangeNullsFirst($var) + { + GPBUtil::checkBool($var); + $this->in_range_nulls_first = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"];. + * + * @param array $var + * + * @return $this + */ + public function setOrderClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->order_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"];. + * + * @param array $var + * + * @return $this + */ + public function setPartitionClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->partition_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field string refname = 2 [json_name = "refname"];. + * + * @param string $var + * + * @return $this + */ + public function setRefname($var) + { + GPBUtil::checkString($var, true); + $this->refname = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 start_in_range_func = 8 [json_name = "startInRangeFunc"];. + * + * @param int $var + * + * @return $this + */ + public function setStartInRangeFunc($var) + { + GPBUtil::checkUint32($var); + $this->start_in_range_func = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node start_offset = 6 [json_name = "startOffset"];. + * + * @param Node $var + * + * @return $this + */ + public function setStartOffset($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->start_offset = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 winref = 13 [json_name = "winref"];. + * + * @param int $var + * + * @return $this + */ + public function setWinref($var) + { + GPBUtil::checkUint32($var); + $this->winref = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowDef.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowDef.php new file mode 100644 index 000000000..c567c79e9 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowDef.php @@ -0,0 +1,300 @@ +pg_query.WindowDef. + */ +class WindowDef extends Message +{ + /** + * Generated from protobuf field .pg_query.Node end_offset = 7 [json_name = "endOffset"];. + */ + protected $end_offset; + + /** + * Generated from protobuf field int32 frame_options = 5 [json_name = "frameOptions"];. + */ + protected $frame_options = 0; + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field string refname = 2 [json_name = "refname"];. + */ + protected $refname = ''; + + /** + * Generated from protobuf field .pg_query.Node start_offset = 6 [json_name = "startOffset"];. + */ + protected $start_offset; + + /** + * Generated from protobuf field repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"];. + */ + private $order_clause; + + /** + * Generated from protobuf field repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"];. + */ + private $partition_clause; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var string $name + * @var string $refname + * @var array $partition_clause + * @var array $order_clause + * @var int $frame_options + * @var Node $start_offset + * @var Node $end_offset + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearEndOffset() : void + { + $this->end_offset = null; + } + + public function clearStartOffset() : void + { + $this->start_offset = null; + } + + /** + * Generated from protobuf field .pg_query.Node end_offset = 7 [json_name = "endOffset"];. + * + * @return null|Node + */ + public function getEndOffset() + { + return $this->end_offset; + } + + /** + * Generated from protobuf field int32 frame_options = 5 [json_name = "frameOptions"];. + * + * @return int + */ + public function getFrameOptions() + { + return $this->frame_options; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"];. + * + * @return RepeatedField + */ + public function getOrderClause() + { + return $this->order_clause; + } + + /** + * Generated from protobuf field repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"];. + * + * @return RepeatedField + */ + public function getPartitionClause() + { + return $this->partition_clause; + } + + /** + * Generated from protobuf field string refname = 2 [json_name = "refname"];. + * + * @return string + */ + public function getRefname() + { + return $this->refname; + } + + /** + * Generated from protobuf field .pg_query.Node start_offset = 6 [json_name = "startOffset"];. + * + * @return null|Node + */ + public function getStartOffset() + { + return $this->start_offset; + } + + public function hasEndOffset() + { + return isset($this->end_offset); + } + + public function hasStartOffset() + { + return isset($this->start_offset); + } + + /** + * Generated from protobuf field .pg_query.Node end_offset = 7 [json_name = "endOffset"];. + * + * @param Node $var + * + * @return $this + */ + public function setEndOffset($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->end_offset = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 frame_options = 5 [json_name = "frameOptions"];. + * + * @param int $var + * + * @return $this + */ + public function setFrameOptions($var) + { + GPBUtil::checkInt32($var); + $this->frame_options = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 8 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 1 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node order_clause = 4 [json_name = "orderClause"];. + * + * @param array $var + * + * @return $this + */ + public function setOrderClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->order_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node partition_clause = 3 [json_name = "partitionClause"];. + * + * @param array $var + * + * @return $this + */ + public function setPartitionClause($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->partition_clause = $arr; + + return $this; + } + + /** + * Generated from protobuf field string refname = 2 [json_name = "refname"];. + * + * @param string $var + * + * @return $this + */ + public function setRefname($var) + { + GPBUtil::checkString($var, true); + $this->refname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node start_offset = 6 [json_name = "startOffset"];. + * + * @param Node $var + * + * @return $this + */ + public function setStartOffset($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->start_offset = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowFunc.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowFunc.php new file mode 100644 index 000000000..4e06295f7 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowFunc.php @@ -0,0 +1,424 @@ +pg_query.WindowFunc. + */ +class WindowFunc extends Message +{ + /** + * Generated from protobuf field .pg_query.Node aggfilter = 7 [json_name = "aggfilter"];. + */ + protected $aggfilter; + + /** + * Generated from protobuf field uint32 inputcollid = 5 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field int32 location = 12 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field bool winagg = 11 [json_name = "winagg"];. + */ + protected $winagg = false; + + /** + * Generated from protobuf field uint32 wincollid = 4 [json_name = "wincollid"];. + */ + protected $wincollid = 0; + + /** + * Generated from protobuf field uint32 winfnoid = 2 [json_name = "winfnoid"];. + */ + protected $winfnoid = 0; + + /** + * Generated from protobuf field uint32 winref = 9 [json_name = "winref"];. + */ + protected $winref = 0; + + /** + * Generated from protobuf field bool winstar = 10 [json_name = "winstar"];. + */ + protected $winstar = false; + + /** + * Generated from protobuf field uint32 wintype = 3 [json_name = "wintype"];. + */ + protected $wintype = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node run_condition = 8 [json_name = "runCondition"];. + */ + private $run_condition; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $winfnoid + * @var int $wintype + * @var int $wincollid + * @var int $inputcollid + * @var array $args + * @var Node $aggfilter + * @var array $run_condition + * @var int $winref + * @var bool $winstar + * @var bool $winagg + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearAggfilter() : void + { + $this->aggfilter = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node aggfilter = 7 [json_name = "aggfilter"];. + * + * @return null|Node + */ + public function getAggfilter() + { + return $this->aggfilter; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field uint32 inputcollid = 5 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field int32 location = 12 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field repeated .pg_query.Node run_condition = 8 [json_name = "runCondition"];. + * + * @return RepeatedField + */ + public function getRunCondition() + { + return $this->run_condition; + } + + /** + * Generated from protobuf field bool winagg = 11 [json_name = "winagg"];. + * + * @return bool + */ + public function getWinagg() + { + return $this->winagg; + } + + /** + * Generated from protobuf field uint32 wincollid = 4 [json_name = "wincollid"];. + * + * @return int + */ + public function getWincollid() + { + return $this->wincollid; + } + + /** + * Generated from protobuf field uint32 winfnoid = 2 [json_name = "winfnoid"];. + * + * @return int + */ + public function getWinfnoid() + { + return $this->winfnoid; + } + + /** + * Generated from protobuf field uint32 winref = 9 [json_name = "winref"];. + * + * @return int + */ + public function getWinref() + { + return $this->winref; + } + + /** + * Generated from protobuf field bool winstar = 10 [json_name = "winstar"];. + * + * @return bool + */ + public function getWinstar() + { + return $this->winstar; + } + + /** + * Generated from protobuf field uint32 wintype = 3 [json_name = "wintype"];. + * + * @return int + */ + public function getWintype() + { + return $this->wintype; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasAggfilter() + { + return isset($this->aggfilter); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node aggfilter = 7 [json_name = "aggfilter"];. + * + * @param Node $var + * + * @return $this + */ + public function setAggfilter($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->aggfilter = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 5 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 12 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node run_condition = 8 [json_name = "runCondition"];. + * + * @param array $var + * + * @return $this + */ + public function setRunCondition($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->run_condition = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool winagg = 11 [json_name = "winagg"];. + * + * @param bool $var + * + * @return $this + */ + public function setWinagg($var) + { + GPBUtil::checkBool($var); + $this->winagg = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 wincollid = 4 [json_name = "wincollid"];. + * + * @param int $var + * + * @return $this + */ + public function setWincollid($var) + { + GPBUtil::checkUint32($var); + $this->wincollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 winfnoid = 2 [json_name = "winfnoid"];. + * + * @param int $var + * + * @return $this + */ + public function setWinfnoid($var) + { + GPBUtil::checkUint32($var); + $this->winfnoid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 winref = 9 [json_name = "winref"];. + * + * @param int $var + * + * @return $this + */ + public function setWinref($var) + { + GPBUtil::checkUint32($var); + $this->winref = $var; + + return $this; + } + + /** + * Generated from protobuf field bool winstar = 10 [json_name = "winstar"];. + * + * @param bool $var + * + * @return $this + */ + public function setWinstar($var) + { + GPBUtil::checkBool($var); + $this->winstar = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 wintype = 3 [json_name = "wintype"];. + * + * @param int $var + * + * @return $this + */ + public function setWintype($var) + { + GPBUtil::checkUint32($var); + $this->wintype = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowFuncRunCondition.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowFuncRunCondition.php new file mode 100644 index 000000000..08a067331 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WindowFuncRunCondition.php @@ -0,0 +1,206 @@ +pg_query.WindowFuncRunCondition. + */ +class WindowFuncRunCondition extends Message +{ + /** + * Generated from protobuf field .pg_query.Node arg = 5 [json_name = "arg"];. + */ + protected $arg; + + /** + * Generated from protobuf field uint32 inputcollid = 3 [json_name = "inputcollid"];. + */ + protected $inputcollid = 0; + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + */ + protected $opno = 0; + + /** + * Generated from protobuf field bool wfunc_left = 4 [json_name = "wfunc_left"];. + */ + protected $wfunc_left = false; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $opno + * @var int $inputcollid + * @var bool $wfunc_left + * @var Node $arg + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearArg() : void + { + $this->arg = null; + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field .pg_query.Node arg = 5 [json_name = "arg"];. + * + * @return null|Node + */ + public function getArg() + { + return $this->arg; + } + + /** + * Generated from protobuf field uint32 inputcollid = 3 [json_name = "inputcollid"];. + * + * @return int + */ + public function getInputcollid() + { + return $this->inputcollid; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @return int + */ + public function getOpno() + { + return $this->opno; + } + + /** + * Generated from protobuf field bool wfunc_left = 4 [json_name = "wfunc_left"];. + * + * @return bool + */ + public function getWfuncLeft() + { + return $this->wfunc_left; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasArg() + { + return isset($this->arg); + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field .pg_query.Node arg = 5 [json_name = "arg"];. + * + * @param Node $var + * + * @return $this + */ + public function setArg($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->arg = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 inputcollid = 3 [json_name = "inputcollid"];. + * + * @param int $var + * + * @return $this + */ + public function setInputcollid($var) + { + GPBUtil::checkUint32($var); + $this->inputcollid = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 opno = 2 [json_name = "opno"];. + * + * @param int $var + * + * @return $this + */ + public function setOpno($var) + { + GPBUtil::checkUint32($var); + $this->opno = $var; + + return $this; + } + + /** + * Generated from protobuf field bool wfunc_left = 4 [json_name = "wfunc_left"];. + * + * @param bool $var + * + * @return $this + */ + public function setWfuncLeft($var) + { + GPBUtil::checkBool($var); + $this->wfunc_left = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WithCheckOption.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WithCheckOption.php new file mode 100644 index 000000000..aa2ac88ac --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WithCheckOption.php @@ -0,0 +1,196 @@ +pg_query.WithCheckOption. + */ +class WithCheckOption extends Message +{ + /** + * Generated from protobuf field bool cascaded = 5 [json_name = "cascaded"];. + */ + protected $cascaded = false; + + /** + * Generated from protobuf field .pg_query.WCOKind kind = 1 [json_name = "kind"];. + */ + protected $kind = 0; + + /** + * Generated from protobuf field string polname = 3 [json_name = "polname"];. + */ + protected $polname = ''; + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + */ + protected $qual; + + /** + * Generated from protobuf field string relname = 2 [json_name = "relname"];. + */ + protected $relname = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $kind + * @var string $relname + * @var string $polname + * @var Node $qual + * @var bool $cascaded + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearQual() : void + { + $this->qual = null; + } + + /** + * Generated from protobuf field bool cascaded = 5 [json_name = "cascaded"];. + * + * @return bool + */ + public function getCascaded() + { + return $this->cascaded; + } + + /** + * Generated from protobuf field .pg_query.WCOKind kind = 1 [json_name = "kind"];. + * + * @return int + */ + public function getKind() + { + return $this->kind; + } + + /** + * Generated from protobuf field string polname = 3 [json_name = "polname"];. + * + * @return string + */ + public function getPolname() + { + return $this->polname; + } + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + * + * @return null|Node + */ + public function getQual() + { + return $this->qual; + } + + /** + * Generated from protobuf field string relname = 2 [json_name = "relname"];. + * + * @return string + */ + public function getRelname() + { + return $this->relname; + } + + public function hasQual() + { + return isset($this->qual); + } + + /** + * Generated from protobuf field bool cascaded = 5 [json_name = "cascaded"];. + * + * @param bool $var + * + * @return $this + */ + public function setCascaded($var) + { + GPBUtil::checkBool($var); + $this->cascaded = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.WCOKind kind = 1 [json_name = "kind"];. + * + * @param int $var + * + * @return $this + */ + public function setKind($var) + { + GPBUtil::checkEnum($var, WCOKind::class); + $this->kind = $var; + + return $this; + } + + /** + * Generated from protobuf field string polname = 3 [json_name = "polname"];. + * + * @param string $var + * + * @return $this + */ + public function setPolname($var) + { + GPBUtil::checkString($var, true); + $this->polname = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node qual = 4 [json_name = "qual"];. + * + * @param Node $var + * + * @return $this + */ + public function setQual($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->qual = $var; + + return $this; + } + + /** + * Generated from protobuf field string relname = 2 [json_name = "relname"];. + * + * @param string $var + * + * @return $this + */ + public function setRelname($var) + { + GPBUtil::checkString($var, true); + $this->relname = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WithClause.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WithClause.php new file mode 100644 index 000000000..c29399d8d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/WithClause.php @@ -0,0 +1,125 @@ +pg_query.WithClause. + */ +class WithClause extends Message +{ + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field bool recursive = 2 [json_name = "recursive"];. + */ + protected $recursive = false; + + /** + * Generated from protobuf field repeated .pg_query.Node ctes = 1 [json_name = "ctes"];. + */ + private $ctes; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var array $ctes + * @var bool $recursive + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctes = 1 [json_name = "ctes"];. + * + * @return RepeatedField + */ + public function getCtes() + { + return $this->ctes; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field bool recursive = 2 [json_name = "recursive"];. + * + * @return bool + */ + public function getRecursive() + { + return $this->recursive; + } + + /** + * Generated from protobuf field repeated .pg_query.Node ctes = 1 [json_name = "ctes"];. + * + * @param array $var + * + * @return $this + */ + public function setCtes($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->ctes = $arr; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 3 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field bool recursive = 2 [json_name = "recursive"];. + * + * @param bool $var + * + * @return $this + */ + public function setRecursive($var) + { + GPBUtil::checkBool($var); + $this->recursive = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlExpr.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlExpr.php new file mode 100644 index 000000000..f2639fef6 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlExpr.php @@ -0,0 +1,383 @@ +pg_query.XmlExpr. + */ +class XmlExpr extends Message +{ + /** + * Generated from protobuf field bool indent = 8 [json_name = "indent"];. + */ + protected $indent = false; + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + */ + protected $name = ''; + + /** + * Generated from protobuf field .pg_query.XmlExprOp op = 2 [json_name = "op"];. + */ + protected $op = 0; + + /** + * Generated from protobuf field uint32 type = 9 [json_name = "type"];. + */ + protected $type = 0; + + /** + * Generated from protobuf field int32 typmod = 10 [json_name = "typmod"];. + */ + protected $typmod = 0; + + /** + * Generated from protobuf field .pg_query.XmlOptionType xmloption = 7 [json_name = "xmloption"];. + */ + protected $xmloption = 0; + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + */ + protected $xpr; + + /** + * Generated from protobuf field repeated .pg_query.Node arg_names = 5 [json_name = "arg_names"];. + */ + private $arg_names; + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + */ + private $args; + + /** + * Generated from protobuf field repeated .pg_query.Node named_args = 4 [json_name = "named_args"];. + */ + private $named_args; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var Node $xpr + * @var int $op + * @var string $name + * @var array $named_args + * @var array $arg_names + * @var array $args + * @var int $xmloption + * @var bool $indent + * @var int $type + * @var int $typmod + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearXpr() : void + { + $this->xpr = null; + } + + /** + * Generated from protobuf field repeated .pg_query.Node arg_names = 5 [json_name = "arg_names"];. + * + * @return RepeatedField + */ + public function getArgNames() + { + return $this->arg_names; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + * + * @return RepeatedField + */ + public function getArgs() + { + return $this->args; + } + + /** + * Generated from protobuf field bool indent = 8 [json_name = "indent"];. + * + * @return bool + */ + public function getIndent() + { + return $this->indent; + } + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + * + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Generated from protobuf field repeated .pg_query.Node named_args = 4 [json_name = "named_args"];. + * + * @return RepeatedField + */ + public function getNamedArgs() + { + return $this->named_args; + } + + /** + * Generated from protobuf field .pg_query.XmlExprOp op = 2 [json_name = "op"];. + * + * @return int + */ + public function getOp() + { + return $this->op; + } + + /** + * Generated from protobuf field uint32 type = 9 [json_name = "type"];. + * + * @return int + */ + public function getType() + { + return $this->type; + } + + /** + * Generated from protobuf field int32 typmod = 10 [json_name = "typmod"];. + * + * @return int + */ + public function getTypmod() + { + return $this->typmod; + } + + /** + * Generated from protobuf field .pg_query.XmlOptionType xmloption = 7 [json_name = "xmloption"];. + * + * @return int + */ + public function getXmloption() + { + return $this->xmloption; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @return null|Node + */ + public function getXpr() + { + return $this->xpr; + } + + public function hasXpr() + { + return isset($this->xpr); + } + + /** + * Generated from protobuf field repeated .pg_query.Node arg_names = 5 [json_name = "arg_names"];. + * + * @param array $var + * + * @return $this + */ + public function setArgNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->arg_names = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node args = 6 [json_name = "args"];. + * + * @param array $var + * + * @return $this + */ + public function setArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->args = $arr; + + return $this; + } + + /** + * Generated from protobuf field bool indent = 8 [json_name = "indent"];. + * + * @param bool $var + * + * @return $this + */ + public function setIndent($var) + { + GPBUtil::checkBool($var); + $this->indent = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 11 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field string name = 3 [json_name = "name"];. + * + * @param string $var + * + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, true); + $this->name = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .pg_query.Node named_args = 4 [json_name = "named_args"];. + * + * @param array $var + * + * @return $this + */ + public function setNamedArgs($var) + { + $arr = GPBUtil::checkRepeatedField($var, GPBType::MESSAGE, Node::class); + $this->named_args = $arr; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.XmlExprOp op = 2 [json_name = "op"];. + * + * @param int $var + * + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkEnum($var, XmlExprOp::class); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field uint32 type = 9 [json_name = "type"];. + * + * @param int $var + * + * @return $this + */ + public function setType($var) + { + GPBUtil::checkUint32($var); + $this->type = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 typmod = 10 [json_name = "typmod"];. + * + * @param int $var + * + * @return $this + */ + public function setTypmod($var) + { + GPBUtil::checkInt32($var); + $this->typmod = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.XmlOptionType xmloption = 7 [json_name = "xmloption"];. + * + * @param int $var + * + * @return $this + */ + public function setXmloption($var) + { + GPBUtil::checkEnum($var, XmlOptionType::class); + $this->xmloption = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.Node xpr = 1 [json_name = "xpr"];. + * + * @param Node $var + * + * @return $this + */ + public function setXpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->xpr = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlExprOp.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlExprOp.php new file mode 100644 index 000000000..871e6ba40 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlExprOp.php @@ -0,0 +1,99 @@ +pg_query.XmlExprOp. + */ +class XmlExprOp +{ + /** + * Generated from protobuf enum IS_DOCUMENT = 8;. + */ + public const IS_DOCUMENT = 8; + + /** + * Generated from protobuf enum IS_XMLCONCAT = 1;. + */ + public const IS_XMLCONCAT = 1; + + /** + * Generated from protobuf enum IS_XMLELEMENT = 2;. + */ + public const IS_XMLELEMENT = 2; + + /** + * Generated from protobuf enum IS_XMLFOREST = 3;. + */ + public const IS_XMLFOREST = 3; + + /** + * Generated from protobuf enum IS_XMLPARSE = 4;. + */ + public const IS_XMLPARSE = 4; + + /** + * Generated from protobuf enum IS_XMLPI = 5;. + */ + public const IS_XMLPI = 5; + + /** + * Generated from protobuf enum IS_XMLROOT = 6;. + */ + public const IS_XMLROOT = 6; + + /** + * Generated from protobuf enum IS_XMLSERIALIZE = 7;. + */ + public const IS_XMLSERIALIZE = 7; + + /** + * Generated from protobuf enum XML_EXPR_OP_UNDEFINED = 0;. + */ + public const XML_EXPR_OP_UNDEFINED = 0; + + private static $valueToName = [ + self::XML_EXPR_OP_UNDEFINED => 'XML_EXPR_OP_UNDEFINED', + self::IS_XMLCONCAT => 'IS_XMLCONCAT', + self::IS_XMLELEMENT => 'IS_XMLELEMENT', + self::IS_XMLFOREST => 'IS_XMLFOREST', + self::IS_XMLPARSE => 'IS_XMLPARSE', + self::IS_XMLPI => 'IS_XMLPI', + self::IS_XMLROOT => 'IS_XMLROOT', + self::IS_XMLSERIALIZE => 'IS_XMLSERIALIZE', + self::IS_DOCUMENT => 'IS_DOCUMENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlOptionType.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlOptionType.php new file mode 100644 index 000000000..e5682673a --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlOptionType.php @@ -0,0 +1,63 @@ +pg_query.XmlOptionType. + */ +class XmlOptionType +{ + /** + * Generated from protobuf enum XML_OPTION_TYPE_UNDEFINED = 0;. + */ + public const XML_OPTION_TYPE_UNDEFINED = 0; + + /** + * Generated from protobuf enum XMLOPTION_CONTENT = 2;. + */ + public const XMLOPTION_CONTENT = 2; + + /** + * Generated from protobuf enum XMLOPTION_DOCUMENT = 1;. + */ + public const XMLOPTION_DOCUMENT = 1; + + private static $valueToName = [ + self::XML_OPTION_TYPE_UNDEFINED => 'XML_OPTION_TYPE_UNDEFINED', + self::XMLOPTION_DOCUMENT => 'XMLOPTION_DOCUMENT', + self::XMLOPTION_CONTENT => 'XMLOPTION_CONTENT', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', + self::class, + $value + )); + } + + return self::$valueToName[$value]; + } + + public static function value($name) + { + $const = self::class . '::' . strtoupper((string) $name); + + if (!defined($const)) { + throw new \UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', + self::class, + $name + )); + } + + return constant($const); + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlSerialize.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlSerialize.php new file mode 100644 index 000000000..29dc60a8d --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/AST/XmlSerialize.php @@ -0,0 +1,206 @@ +pg_query.XmlSerialize. + */ +class XmlSerialize extends Message +{ + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + */ + protected $expr; + + /** + * Generated from protobuf field bool indent = 4 [json_name = "indent"];. + */ + protected $indent = false; + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + */ + protected $location = 0; + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 3 [json_name = "typeName"];. + */ + protected $type_name; + + /** + * Generated from protobuf field .pg_query.XmlOptionType xmloption = 1 [json_name = "xmloption"];. + */ + protected $xmloption = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @var int $xmloption + * @var Node $expr + * @var TypeName $type_name + * @var bool $indent + * @var int $location + * } + */ + public function __construct($data = null) + { + PgQuery::initOnce(); + parent::__construct($data); + } + + public function clearExpr() : void + { + $this->expr = null; + } + + public function clearTypeName() : void + { + $this->type_name = null; + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @return null|Node + */ + public function getExpr() + { + return $this->expr; + } + + /** + * Generated from protobuf field bool indent = 4 [json_name = "indent"];. + * + * @return bool + */ + public function getIndent() + { + return $this->indent; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @return int + */ + public function getLocation() + { + return $this->location; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 3 [json_name = "typeName"];. + * + * @return null|TypeName + */ + public function getTypeName() + { + return $this->type_name; + } + + /** + * Generated from protobuf field .pg_query.XmlOptionType xmloption = 1 [json_name = "xmloption"];. + * + * @return int + */ + public function getXmloption() + { + return $this->xmloption; + } + + public function hasExpr() + { + return isset($this->expr); + } + + public function hasTypeName() + { + return isset($this->type_name); + } + + /** + * Generated from protobuf field .pg_query.Node expr = 2 [json_name = "expr"];. + * + * @param Node $var + * + * @return $this + */ + public function setExpr($var) + { + GPBUtil::checkMessage($var, Node::class); + $this->expr = $var; + + return $this; + } + + /** + * Generated from protobuf field bool indent = 4 [json_name = "indent"];. + * + * @param bool $var + * + * @return $this + */ + public function setIndent($var) + { + GPBUtil::checkBool($var); + $this->indent = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 location = 5 [json_name = "location"];. + * + * @param int $var + * + * @return $this + */ + public function setLocation($var) + { + GPBUtil::checkInt32($var); + $this->location = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.TypeName type_name = 3 [json_name = "typeName"];. + * + * @param TypeName $var + * + * @return $this + */ + public function setTypeName($var) + { + GPBUtil::checkMessage($var, TypeName::class); + $this->type_name = $var; + + return $this; + } + + /** + * Generated from protobuf field .pg_query.XmlOptionType xmloption = 1 [json_name = "xmloption"];. + * + * @param int $var + * + * @return $this + */ + public function setXmloption($var) + { + GPBUtil::checkEnum($var, XmlOptionType::class); + $this->xmloption = $var; + + return $this; + } +} diff --git a/src/lib/pg-query/src/Flow/PgQuery/Protobuf/Metadata/PgQuery.php b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/Metadata/PgQuery.php new file mode 100644 index 000000000..a785d4283 --- /dev/null +++ b/src/lib/pg-query/src/Flow/PgQuery/Protobuf/Metadata/PgQuery.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\x8B\x85\x06\x0A\x0Epg_query.proto\x12\x08pg_query\"@\x0A\x0BParseResult\x12\x0F\x0A\x07version\x18\x01 \x01(\x05\x12 \x0A\x05stmts\x18\x02 \x03(\x0B2\x11.pg_query.RawStmt\"B\x0A\x0AScanResult\x12\x0F\x0A\x07version\x18\x01 \x01(\x05\x12#\x0A\x06tokens\x18\x02 \x03(\x0B2\x13.pg_query.ScanToken\"\xD5\x8E\x01\x0A\x04Node\x12'\x0A\x05alias\x18\x01 \x01(\x0B2\x0F.pg_query.AliasH\x00R\x05Alias\x121\x0A\x09range_var\x18\x02 \x01(\x0B2\x12.pg_query.RangeVarH\x00R\x08RangeVar\x124\x0A\x0Atable_func\x18\x03 \x01(\x0B2\x13.pg_query.TableFuncH\x00R\x09TableFunc\x127\x0A\x0Binto_clause\x18\x04 \x01(\x0B2\x14.pg_query.IntoClauseH\x00R\x0AIntoClause\x12!\x0A\x03var\x18\x05 \x01(\x0B2\x0D.pg_query.VarH\x00R\x03Var\x12'\x0A\x05param\x18\x06 \x01(\x0B2\x0F.pg_query.ParamH\x00R\x05Param\x12*\x0A\x06aggref\x18\x07 \x01(\x0B2\x10.pg_query.AggrefH\x00R\x06Aggref\x12=\x0A\x0Dgrouping_func\x18\x08 \x01(\x0B2\x16.pg_query.GroupingFuncH\x00R\x0CGroupingFunc\x127\x0A\x0Bwindow_func\x18\x09 \x01(\x0B2\x14.pg_query.WindowFuncH\x00R\x0AWindowFunc\x12]\x0A\x19window_func_run_condition\x18\x0A \x01(\x0B2 .pg_query.WindowFuncRunConditionH\x00R\x16WindowFuncRunCondition\x12J\x0A\x12merge_support_func\x18\x0B \x01(\x0B2\x1A.pg_query.MergeSupportFuncH\x00R\x10MergeSupportFunc\x12F\x0A\x10subscripting_ref\x18\x0C \x01(\x0B2\x19.pg_query.SubscriptingRefH\x00R\x0FSubscriptingRef\x121\x0A\x09func_expr\x18\x0D \x01(\x0B2\x12.pg_query.FuncExprH\x00R\x08FuncExpr\x12>\x0A\x0Enamed_arg_expr\x18\x0E \x01(\x0B2\x16.pg_query.NamedArgExprH\x00R\x0CNamedArgExpr\x12+\x0A\x07op_expr\x18\x0F \x01(\x0B2\x10.pg_query.OpExprH\x00R\x06OpExpr\x12=\x0A\x0Ddistinct_expr\x18\x10 \x01(\x0B2\x16.pg_query.DistinctExprH\x00R\x0CDistinctExpr\x128\x0A\x0Cnull_if_expr\x18\x11 \x01(\x0B2\x14.pg_query.NullIfExprH\x00R\x0ANullIfExpr\x12N\x0A\x14scalar_array_op_expr\x18\x12 \x01(\x0B2\x1B.pg_query.ScalarArrayOpExprH\x00R\x11ScalarArrayOpExpr\x121\x0A\x09bool_expr\x18\x13 \x01(\x0B2\x12.pg_query.BoolExprH\x00R\x08BoolExpr\x12.\x0A\x08sub_link\x18\x14 \x01(\x0B2\x11.pg_query.SubLinkH\x00R\x07SubLink\x12.\x0A\x08sub_plan\x18\x15 \x01(\x0B2\x11.pg_query.SubPlanH\x00R\x07SubPlan\x12P\x0A\x14alternative_sub_plan\x18\x16 \x01(\x0B2\x1C.pg_query.AlternativeSubPlanH\x00R\x12AlternativeSubPlan\x12:\x0A\x0Cfield_select\x18\x17 \x01(\x0B2\x15.pg_query.FieldSelectH\x00R\x0BFieldSelect\x127\x0A\x0Bfield_store\x18\x18 \x01(\x0B2\x14.pg_query.FieldStoreH\x00R\x0AFieldStore\x12:\x0A\x0Crelabel_type\x18\x19 \x01(\x0B2\x15.pg_query.RelabelTypeH\x00R\x0BRelabelType\x12;\x0A\x0Dcoerce_via_io\x18\x1A \x01(\x0B2\x15.pg_query.CoerceViaIOH\x00R\x0BCoerceViaIO\x12G\x0A\x11array_coerce_expr\x18\x1B \x01(\x0B2\x19.pg_query.ArrayCoerceExprH\x00R\x0FArrayCoerceExpr\x12P\x0A\x14convert_rowtype_expr\x18\x1C \x01(\x0B2\x1C.pg_query.ConvertRowtypeExprH\x00R\x12ConvertRowtypeExpr\x12:\x0A\x0Ccollate_expr\x18\x1D \x01(\x0B2\x15.pg_query.CollateExprH\x00R\x0BCollateExpr\x121\x0A\x09case_expr\x18\x1E \x01(\x0B2\x12.pg_query.CaseExprH\x00R\x08CaseExpr\x121\x0A\x09case_when\x18\x1F \x01(\x0B2\x12.pg_query.CaseWhenH\x00R\x08CaseWhen\x12>\x0A\x0Ecase_test_expr\x18 \x01(\x0B2\x16.pg_query.CaseTestExprH\x00R\x0CCaseTestExpr\x124\x0A\x0Aarray_expr\x18! \x01(\x0B2\x13.pg_query.ArrayExprH\x00R\x09ArrayExpr\x12.\x0A\x08row_expr\x18\" \x01(\x0B2\x11.pg_query.RowExprH\x00R\x07RowExpr\x12D\x0A\x10row_compare_expr\x18# \x01(\x0B2\x18.pg_query.RowCompareExprH\x00R\x0ERowCompareExpr\x12=\x0A\x0Dcoalesce_expr\x18\$ \x01(\x0B2\x16.pg_query.CoalesceExprH\x00R\x0CCoalesceExpr\x128\x0A\x0Cmin_max_expr\x18% \x01(\x0B2\x14.pg_query.MinMaxExprH\x00R\x0AMinMaxExpr\x12I\x0A\x11sqlvalue_function\x18& \x01(\x0B2\x1A.pg_query.SQLValueFunctionH\x00R\x10SQLValueFunction\x12.\x0A\x08xml_expr\x18' \x01(\x0B2\x11.pg_query.XmlExprH\x00R\x07XmlExpr\x127\x0A\x0Bjson_format\x18( \x01(\x0B2\x14.pg_query.JsonFormatH\x00R\x0AJsonFormat\x12@\x0A\x0Ejson_returning\x18) \x01(\x0B2\x17.pg_query.JsonReturningH\x00R\x0DJsonReturning\x12A\x0A\x0Fjson_value_expr\x18* \x01(\x0B2\x17.pg_query.JsonValueExprH\x00R\x0DJsonValueExpr\x12S\x0A\x15json_constructor_expr\x18+ \x01(\x0B2\x1D.pg_query.JsonConstructorExprH\x00R\x13JsonConstructorExpr\x12G\x0A\x11json_is_predicate\x18, \x01(\x0B2\x19.pg_query.JsonIsPredicateH\x00R\x0FJsonIsPredicate\x12=\x0A\x0Djson_behavior\x18- \x01(\x0B2\x16.pg_query.JsonBehaviorH\x00R\x0CJsonBehavior\x121\x0A\x09json_expr\x18. \x01(\x0B2\x12.pg_query.JsonExprH\x00R\x08JsonExpr\x12A\x0A\x0Fjson_table_path\x18/ \x01(\x0B2\x17.pg_query.JsonTablePathH\x00R\x0DJsonTablePath\x12N\x0A\x14json_table_path_scan\x180 \x01(\x0B2\x1B.pg_query.JsonTablePathScanH\x00R\x11JsonTablePathScan\x12W\x0A\x17json_table_sibling_join\x181 \x01(\x0B2\x1E.pg_query.JsonTableSiblingJoinH\x00R\x14JsonTableSiblingJoin\x121\x0A\x09null_test\x182 \x01(\x0B2\x12.pg_query.NullTestH\x00R\x08NullTest\x12:\x0A\x0Cboolean_test\x183 \x01(\x0B2\x15.pg_query.BooleanTestH\x00R\x0BBooleanTest\x12:\x0A\x0Cmerge_action\x184 \x01(\x0B2\x15.pg_query.MergeActionH\x00R\x0BMergeAction\x12D\x0A\x10coerce_to_domain\x185 \x01(\x0B2\x18.pg_query.CoerceToDomainH\x00R\x0ECoerceToDomain\x12T\x0A\x16coerce_to_domain_value\x186 \x01(\x0B2\x1D.pg_query.CoerceToDomainValueH\x00R\x13CoerceToDomainValue\x12>\x0A\x0Eset_to_default\x187 \x01(\x0B2\x16.pg_query.SetToDefaultH\x00R\x0CSetToDefault\x12A\x0A\x0Fcurrent_of_expr\x188 \x01(\x0B2\x17.pg_query.CurrentOfExprH\x00R\x0DCurrentOfExpr\x12A\x0A\x0Fnext_value_expr\x189 \x01(\x0B2\x17.pg_query.NextValueExprH\x00R\x0DNextValueExpr\x12@\x0A\x0Einference_elem\x18: \x01(\x0B2\x17.pg_query.InferenceElemH\x00R\x0DInferenceElem\x12:\x0A\x0Ctarget_entry\x18; \x01(\x0B2\x15.pg_query.TargetEntryH\x00R\x0BTargetEntry\x12;\x0A\x0Drange_tbl_ref\x18< \x01(\x0B2\x15.pg_query.RangeTblRefH\x00R\x0BRangeTblRef\x121\x0A\x09join_expr\x18= \x01(\x0B2\x12.pg_query.JoinExprH\x00R\x08JoinExpr\x121\x0A\x09from_expr\x18> \x01(\x0B2\x12.pg_query.FromExprH\x00R\x08FromExpr\x12D\x0A\x10on_conflict_expr\x18? \x01(\x0B2\x18.pg_query.OnConflictExprH\x00R\x0EOnConflictExpr\x12'\x0A\x05query\x18@ \x01(\x0B2\x0F.pg_query.QueryH\x00R\x05Query\x121\x0A\x09type_name\x18A \x01(\x0B2\x12.pg_query.TypeNameH\x00R\x08TypeName\x124\x0A\x0Acolumn_ref\x18B \x01(\x0B2\x13.pg_query.ColumnRefH\x00R\x09ColumnRef\x121\x0A\x09param_ref\x18C \x01(\x0B2\x12.pg_query.ParamRefH\x00R\x08ParamRef\x12*\x0A\x06a_expr\x18D \x01(\x0B2\x10.pg_query.A_ExprH\x00R\x06A_Expr\x121\x0A\x09type_cast\x18E \x01(\x0B2\x12.pg_query.TypeCastH\x00R\x08TypeCast\x12@\x0A\x0Ecollate_clause\x18F \x01(\x0B2\x17.pg_query.CollateClauseH\x00R\x0DCollateClause\x121\x0A\x09role_spec\x18G \x01(\x0B2\x12.pg_query.RoleSpecH\x00R\x08RoleSpec\x121\x0A\x09func_call\x18H \x01(\x0B2\x12.pg_query.FuncCallH\x00R\x08FuncCall\x12*\x0A\x06a_star\x18I \x01(\x0B2\x10.pg_query.A_StarH\x00R\x06A_Star\x123\x0A\x09a_indices\x18J \x01(\x0B2\x13.pg_query.A_IndicesH\x00R\x09A_Indices\x12?\x0A\x0Da_indirection\x18K \x01(\x0B2\x17.pg_query.A_IndirectionH\x00R\x0DA_Indirection\x12:\x0A\x0Ca_array_expr\x18L \x01(\x0B2\x15.pg_query.A_ArrayExprH\x00R\x0BA_ArrayExpr\x124\x0A\x0Ares_target\x18M \x01(\x0B2\x13.pg_query.ResTargetH\x00R\x09ResTarget\x12D\x0A\x10multi_assign_ref\x18N \x01(\x0B2\x18.pg_query.MultiAssignRefH\x00R\x0EMultiAssignRef\x12+\x0A\x07sort_by\x18O \x01(\x0B2\x10.pg_query.SortByH\x00R\x06SortBy\x124\x0A\x0Awindow_def\x18P \x01(\x0B2\x13.pg_query.WindowDefH\x00R\x09WindowDef\x12C\x0A\x0Frange_subselect\x18Q \x01(\x0B2\x18.pg_query.RangeSubselectH\x00R\x0ERangeSubselect\x12@\x0A\x0Erange_function\x18R \x01(\x0B2\x17.pg_query.RangeFunctionH\x00R\x0DRangeFunction\x12D\x0A\x10range_table_func\x18S \x01(\x0B2\x18.pg_query.RangeTableFuncH\x00R\x0ERangeTableFunc\x12N\x0A\x14range_table_func_col\x18T \x01(\x0B2\x1B.pg_query.RangeTableFuncColH\x00R\x11RangeTableFuncCol\x12J\x0A\x12range_table_sample\x18U \x01(\x0B2\x1A.pg_query.RangeTableSampleH\x00R\x10RangeTableSample\x124\x0A\x0Acolumn_def\x18V \x01(\x0B2\x13.pg_query.ColumnDefH\x00R\x09ColumnDef\x12G\x0A\x11table_like_clause\x18W \x01(\x0B2\x19.pg_query.TableLikeClauseH\x00R\x0FTableLikeClause\x124\x0A\x0Aindex_elem\x18X \x01(\x0B2\x13.pg_query.IndexElemH\x00R\x09IndexElem\x12.\x0A\x08def_elem\x18Y \x01(\x0B2\x11.pg_query.DefElemH\x00R\x07DefElem\x12@\x0A\x0Elocking_clause\x18Z \x01(\x0B2\x17.pg_query.LockingClauseH\x00R\x0DLockingClause\x12=\x0A\x0Dxml_serialize\x18[ \x01(\x0B2\x16.pg_query.XmlSerializeH\x00R\x0CXmlSerialize\x12@\x0A\x0Epartition_elem\x18\\ \x01(\x0B2\x17.pg_query.PartitionElemH\x00R\x0DPartitionElem\x12@\x0A\x0Epartition_spec\x18] \x01(\x0B2\x17.pg_query.PartitionSpecH\x00R\x0DPartitionSpec\x12P\x0A\x14partition_bound_spec\x18^ \x01(\x0B2\x1C.pg_query.PartitionBoundSpecH\x00R\x12PartitionBoundSpec\x12S\x0A\x15partition_range_datum\x18_ \x01(\x0B2\x1D.pg_query.PartitionRangeDatumH\x00R\x13PartitionRangeDatum\x12S\x0A\x15single_partition_spec\x18` \x01(\x0B2\x1D.pg_query.SinglePartitionSpecH\x00R\x13SinglePartitionSpec\x12=\x0A\x0Dpartition_cmd\x18a \x01(\x0B2\x16.pg_query.PartitionCmdH\x00R\x0CPartitionCmd\x12A\x0A\x0Frange_tbl_entry\x18b \x01(\x0B2\x17.pg_query.RangeTblEntryH\x00R\x0DRangeTblEntry\x12L\x0A\x12rtepermission_info\x18c \x01(\x0B2\x1B.pg_query.RTEPermissionInfoH\x00R\x11RTEPermissionInfo\x12J\x0A\x12range_tbl_function\x18d \x01(\x0B2\x1A.pg_query.RangeTblFunctionH\x00R\x10RangeTblFunction\x12M\x0A\x13table_sample_clause\x18e \x01(\x0B2\x1B.pg_query.TableSampleClauseH\x00R\x11TableSampleClause\x12G\x0A\x11with_check_option\x18f \x01(\x0B2\x19.pg_query.WithCheckOptionH\x00R\x0FWithCheckOption\x12G\x0A\x11sort_group_clause\x18g \x01(\x0B2\x19.pg_query.SortGroupClauseH\x00R\x0FSortGroupClause\x12:\x0A\x0Cgrouping_set\x18h \x01(\x0B2\x15.pg_query.GroupingSetH\x00R\x0BGroupingSet\x12=\x0A\x0Dwindow_clause\x18i \x01(\x0B2\x16.pg_query.WindowClauseH\x00R\x0CWindowClause\x12A\x0A\x0Frow_mark_clause\x18j \x01(\x0B2\x17.pg_query.RowMarkClauseH\x00R\x0DRowMarkClause\x127\x0A\x0Bwith_clause\x18k \x01(\x0B2\x14.pg_query.WithClauseH\x00R\x0AWithClause\x12:\x0A\x0Cinfer_clause\x18l \x01(\x0B2\x15.pg_query.InferClauseH\x00R\x0BInferClause\x12J\x0A\x12on_conflict_clause\x18m \x01(\x0B2\x1A.pg_query.OnConflictClauseH\x00R\x10OnConflictClause\x12F\x0A\x10ctesearch_clause\x18n \x01(\x0B2\x19.pg_query.CTESearchClauseH\x00R\x0FCTESearchClause\x12C\x0A\x0Fctecycle_clause\x18o \x01(\x0B2\x18.pg_query.CTECycleClauseH\x00R\x0ECTECycleClause\x12G\x0A\x11common_table_expr\x18p \x01(\x0B2\x19.pg_query.CommonTableExprH\x00R\x0FCommonTableExpr\x12G\x0A\x11merge_when_clause\x18q \x01(\x0B2\x19.pg_query.MergeWhenClauseH\x00R\x0FMergeWhenClause\x12L\x0A\x12trigger_transition\x18r \x01(\x0B2\x1B.pg_query.TriggerTransitionH\x00R\x11TriggerTransition\x127\x0A\x0Bjson_output\x18s \x01(\x0B2\x14.pg_query.JsonOutputH\x00R\x0AJsonOutput\x12=\x0A\x0Djson_argument\x18t \x01(\x0B2\x16.pg_query.JsonArgumentH\x00R\x0CJsonArgument\x12>\x0A\x0Ejson_func_expr\x18u \x01(\x0B2\x16.pg_query.JsonFuncExprH\x00R\x0CJsonFuncExpr\x12N\x0A\x14json_table_path_spec\x18v \x01(\x0B2\x1B.pg_query.JsonTablePathSpecH\x00R\x11JsonTablePathSpec\x124\x0A\x0Ajson_table\x18w \x01(\x0B2\x13.pg_query.JsonTableH\x00R\x09JsonTable\x12G\x0A\x11json_table_column\x18x \x01(\x0B2\x19.pg_query.JsonTableColumnH\x00R\x0FJsonTableColumn\x12>\x0A\x0Ejson_key_value\x18y \x01(\x0B2\x16.pg_query.JsonKeyValueH\x00R\x0CJsonKeyValue\x12A\x0A\x0Fjson_parse_expr\x18z \x01(\x0B2\x17.pg_query.JsonParseExprH\x00R\x0DJsonParseExpr\x12D\x0A\x10json_scalar_expr\x18{ \x01(\x0B2\x18.pg_query.JsonScalarExprH\x00R\x0EJsonScalarExpr\x12M\x0A\x13json_serialize_expr\x18| \x01(\x0B2\x1B.pg_query.JsonSerializeExprH\x00R\x11JsonSerializeExpr\x12Y\x0A\x17json_object_constructor\x18} \x01(\x0B2\x1F.pg_query.JsonObjectConstructorH\x00R\x15JsonObjectConstructor\x12V\x0A\x16json_array_constructor\x18~ \x01(\x0B2\x1E.pg_query.JsonArrayConstructorH\x00R\x14JsonArrayConstructor\x12f\x0A\x1Cjson_array_query_constructor\x18\x7F \x01(\x0B2#.pg_query.JsonArrayQueryConstructorH\x00R\x19JsonArrayQueryConstructor\x12Q\x0A\x14json_agg_constructor\x18\x80\x01 \x01(\x0B2\x1C.pg_query.JsonAggConstructorH\x00R\x12JsonAggConstructor\x12B\x0A\x0Fjson_object_agg\x18\x81\x01 \x01(\x0B2\x17.pg_query.JsonObjectAggH\x00R\x0DJsonObjectAgg\x12?\x0A\x0Ejson_array_agg\x18\x82\x01 \x01(\x0B2\x16.pg_query.JsonArrayAggH\x00R\x0CJsonArrayAgg\x12/\x0A\x08raw_stmt\x18\x83\x01 \x01(\x0B2\x11.pg_query.RawStmtH\x00R\x07RawStmt\x128\x0A\x0Binsert_stmt\x18\x84\x01 \x01(\x0B2\x14.pg_query.InsertStmtH\x00R\x0AInsertStmt\x128\x0A\x0Bdelete_stmt\x18\x85\x01 \x01(\x0B2\x14.pg_query.DeleteStmtH\x00R\x0ADeleteStmt\x128\x0A\x0Bupdate_stmt\x18\x86\x01 \x01(\x0B2\x14.pg_query.UpdateStmtH\x00R\x0AUpdateStmt\x125\x0A\x0Amerge_stmt\x18\x87\x01 \x01(\x0B2\x13.pg_query.MergeStmtH\x00R\x09MergeStmt\x128\x0A\x0Bselect_stmt\x18\x88\x01 \x01(\x0B2\x14.pg_query.SelectStmtH\x00R\x0ASelectStmt\x12K\x0A\x12set_operation_stmt\x18\x89\x01 \x01(\x0B2\x1A.pg_query.SetOperationStmtH\x00R\x10SetOperationStmt\x128\x0A\x0Breturn_stmt\x18\x8A\x01 \x01(\x0B2\x14.pg_query.ReturnStmtH\x00R\x0AReturnStmt\x12>\x0A\x0Dplassign_stmt\x18\x8B\x01 \x01(\x0B2\x16.pg_query.PLAssignStmtH\x00R\x0CPLAssignStmt\x12K\x0A\x12create_schema_stmt\x18\x8C\x01 \x01(\x0B2\x1A.pg_query.CreateSchemaStmtH\x00R\x10CreateSchemaStmt\x12E\x0A\x10alter_table_stmt\x18\x8D\x01 \x01(\x0B2\x18.pg_query.AlterTableStmtH\x00R\x0EAlterTableStmt\x12T\x0A\x15replica_identity_stmt\x18\x8E\x01 \x01(\x0B2\x1D.pg_query.ReplicaIdentityStmtH\x00R\x13ReplicaIdentityStmt\x12B\x0A\x0Falter_table_cmd\x18\x8F\x01 \x01(\x0B2\x17.pg_query.AlterTableCmdH\x00R\x0DAlterTableCmd\x12Q\x0A\x14alter_collation_stmt\x18\x90\x01 \x01(\x0B2\x1C.pg_query.AlterCollationStmtH\x00R\x12AlterCollationStmt\x12H\x0A\x11alter_domain_stmt\x18\x91\x01 \x01(\x0B2\x19.pg_query.AlterDomainStmtH\x00R\x0FAlterDomainStmt\x125\x0A\x0Agrant_stmt\x18\x92\x01 \x01(\x0B2\x13.pg_query.GrantStmtH\x00R\x09GrantStmt\x12E\x0A\x10object_with_args\x18\x93\x01 \x01(\x0B2\x18.pg_query.ObjectWithArgsH\x00R\x0EObjectWithArgs\x128\x0A\x0Baccess_priv\x18\x94\x01 \x01(\x0B2\x14.pg_query.AccessPrivH\x00R\x0AAccessPriv\x12B\x0A\x0Fgrant_role_stmt\x18\x95\x01 \x01(\x0B2\x17.pg_query.GrantRoleStmtH\x00R\x0DGrantRoleStmt\x12j\x0A\x1Dalter_default_privileges_stmt\x18\x96\x01 \x01(\x0B2\$.pg_query.AlterDefaultPrivilegesStmtH\x00R\x1AAlterDefaultPrivilegesStmt\x122\x0A\x09copy_stmt\x18\x97\x01 \x01(\x0B2\x12.pg_query.CopyStmtH\x00R\x08CopyStmt\x12H\x0A\x11variable_set_stmt\x18\x98\x01 \x01(\x0B2\x19.pg_query.VariableSetStmtH\x00R\x0FVariableSetStmt\x12K\x0A\x12variable_show_stmt\x18\x99\x01 \x01(\x0B2\x1A.pg_query.VariableShowStmtH\x00R\x10VariableShowStmt\x128\x0A\x0Bcreate_stmt\x18\x9A\x01 \x01(\x0B2\x14.pg_query.CreateStmtH\x00R\x0ACreateStmt\x127\x0A\x0Aconstraint\x18\x9B\x01 \x01(\x0B2\x14.pg_query.ConstraintH\x00R\x0AConstraint\x12X\x0A\x17create_table_space_stmt\x18\x9C\x01 \x01(\x0B2\x1E.pg_query.CreateTableSpaceStmtH\x00R\x14CreateTableSpaceStmt\x12R\x0A\x15drop_table_space_stmt\x18\x9D\x01 \x01(\x0B2\x1C.pg_query.DropTableSpaceStmtH\x00R\x12DropTableSpaceStmt\x12k\x0A\x1Ealter_table_space_options_stmt\x18\x9E\x01 \x01(\x0B2\$.pg_query.AlterTableSpaceOptionsStmtH\x00R\x1AAlterTableSpaceOptionsStmt\x12\\\x0A\x19alter_table_move_all_stmt\x18\x9F\x01 \x01(\x0B2\x1F.pg_query.AlterTableMoveAllStmtH\x00R\x15AlterTableMoveAllStmt\x12T\x0A\x15create_extension_stmt\x18\xA0\x01 \x01(\x0B2\x1D.pg_query.CreateExtensionStmtH\x00R\x13CreateExtensionStmt\x12Q\x0A\x14alter_extension_stmt\x18\xA1\x01 \x01(\x0B2\x1C.pg_query.AlterExtensionStmtH\x00R\x12AlterExtensionStmt\x12j\x0A\x1Dalter_extension_contents_stmt\x18\xA2\x01 \x01(\x0B2\$.pg_query.AlterExtensionContentsStmtH\x00R\x1AAlterExtensionContentsStmt\x12B\x0A\x0Fcreate_fdw_stmt\x18\xA3\x01 \x01(\x0B2\x17.pg_query.CreateFdwStmtH\x00R\x0DCreateFdwStmt\x12?\x0A\x0Ealter_fdw_stmt\x18\xA4\x01 \x01(\x0B2\x16.pg_query.AlterFdwStmtH\x00R\x0CAlterFdwStmt\x12a\x0A\x1Acreate_foreign_server_stmt\x18\xA5\x01 \x01(\x0B2!.pg_query.CreateForeignServerStmtH\x00R\x17CreateForeignServerStmt\x12^\x0A\x19alter_foreign_server_stmt\x18\xA6\x01 \x01(\x0B2 .pg_query.AlterForeignServerStmtH\x00R\x16AlterForeignServerStmt\x12^\x0A\x19create_foreign_table_stmt\x18\xA7\x01 \x01(\x0B2 .pg_query.CreateForeignTableStmtH\x00R\x16CreateForeignTableStmt\x12[\x0A\x18create_user_mapping_stmt\x18\xA8\x01 \x01(\x0B2\x1F.pg_query.CreateUserMappingStmtH\x00R\x15CreateUserMappingStmt\x12X\x0A\x17alter_user_mapping_stmt\x18\xA9\x01 \x01(\x0B2\x1E.pg_query.AlterUserMappingStmtH\x00R\x14AlterUserMappingStmt\x12U\x0A\x16drop_user_mapping_stmt\x18\xAA\x01 \x01(\x0B2\x1D.pg_query.DropUserMappingStmtH\x00R\x13DropUserMappingStmt\x12a\x0A\x1Aimport_foreign_schema_stmt\x18\xAB\x01 \x01(\x0B2!.pg_query.ImportForeignSchemaStmtH\x00R\x17ImportForeignSchemaStmt\x12K\x0A\x12create_policy_stmt\x18\xAC\x01 \x01(\x0B2\x1A.pg_query.CreatePolicyStmtH\x00R\x10CreatePolicyStmt\x12H\x0A\x11alter_policy_stmt\x18\xAD\x01 \x01(\x0B2\x19.pg_query.AlterPolicyStmtH\x00R\x0FAlterPolicyStmt\x12?\x0A\x0Ecreate_am_stmt\x18\xAE\x01 \x01(\x0B2\x16.pg_query.CreateAmStmtH\x00R\x0CCreateAmStmt\x12E\x0A\x10create_trig_stmt\x18\xAF\x01 \x01(\x0B2\x18.pg_query.CreateTrigStmtH\x00R\x0ECreateTrigStmt\x12U\x0A\x16create_event_trig_stmt\x18\xB0\x01 \x01(\x0B2\x1D.pg_query.CreateEventTrigStmtH\x00R\x13CreateEventTrigStmt\x12R\x0A\x15alter_event_trig_stmt\x18\xB1\x01 \x01(\x0B2\x1C.pg_query.AlterEventTrigStmtH\x00R\x12AlterEventTrigStmt\x12H\x0A\x11create_plang_stmt\x18\xB2\x01 \x01(\x0B2\x19.pg_query.CreatePLangStmtH\x00R\x0FCreatePLangStmt\x12E\x0A\x10create_role_stmt\x18\xB3\x01 \x01(\x0B2\x18.pg_query.CreateRoleStmtH\x00R\x0ECreateRoleStmt\x12B\x0A\x0Falter_role_stmt\x18\xB4\x01 \x01(\x0B2\x17.pg_query.AlterRoleStmtH\x00R\x0DAlterRoleStmt\x12L\x0A\x13alter_role_set_stmt\x18\xB5\x01 \x01(\x0B2\x1A.pg_query.AlterRoleSetStmtH\x00R\x10AlterRoleSetStmt\x12?\x0A\x0Edrop_role_stmt\x18\xB6\x01 \x01(\x0B2\x16.pg_query.DropRoleStmtH\x00R\x0CDropRoleStmt\x12B\x0A\x0Fcreate_seq_stmt\x18\xB7\x01 \x01(\x0B2\x17.pg_query.CreateSeqStmtH\x00R\x0DCreateSeqStmt\x12?\x0A\x0Ealter_seq_stmt\x18\xB8\x01 \x01(\x0B2\x16.pg_query.AlterSeqStmtH\x00R\x0CAlterSeqStmt\x128\x0A\x0Bdefine_stmt\x18\xB9\x01 \x01(\x0B2\x14.pg_query.DefineStmtH\x00R\x0ADefineStmt\x12K\x0A\x12create_domain_stmt\x18\xBA\x01 \x01(\x0B2\x1A.pg_query.CreateDomainStmtH\x00R\x10CreateDomainStmt\x12O\x0A\x14create_op_class_stmt\x18\xBB\x01 \x01(\x0B2\x1B.pg_query.CreateOpClassStmtH\x00R\x11CreateOpClassStmt\x12O\x0A\x14create_op_class_item\x18\xBC\x01 \x01(\x0B2\x1B.pg_query.CreateOpClassItemH\x00R\x11CreateOpClassItem\x12R\x0A\x15create_op_family_stmt\x18\xBD\x01 \x01(\x0B2\x1C.pg_query.CreateOpFamilyStmtH\x00R\x12CreateOpFamilyStmt\x12O\x0A\x14alter_op_family_stmt\x18\xBE\x01 \x01(\x0B2\x1B.pg_query.AlterOpFamilyStmtH\x00R\x11AlterOpFamilyStmt\x122\x0A\x09drop_stmt\x18\xBF\x01 \x01(\x0B2\x12.pg_query.DropStmtH\x00R\x08DropStmt\x12>\x0A\x0Dtruncate_stmt\x18\xC0\x01 \x01(\x0B2\x16.pg_query.TruncateStmtH\x00R\x0CTruncateStmt\x12;\x0A\x0Ccomment_stmt\x18\xC1\x01 \x01(\x0B2\x15.pg_query.CommentStmtH\x00R\x0BCommentStmt\x12?\x0A\x0Esec_label_stmt\x18\xC2\x01 \x01(\x0B2\x16.pg_query.SecLabelStmtH\x00R\x0CSecLabelStmt\x12N\x0A\x13declare_cursor_stmt\x18\xC3\x01 \x01(\x0B2\x1B.pg_query.DeclareCursorStmtH\x00R\x11DeclareCursorStmt\x12H\x0A\x11close_portal_stmt\x18\xC4\x01 \x01(\x0B2\x19.pg_query.ClosePortalStmtH\x00R\x0FClosePortalStmt\x125\x0A\x0Afetch_stmt\x18\xC5\x01 \x01(\x0B2\x13.pg_query.FetchStmtH\x00R\x09FetchStmt\x125\x0A\x0Aindex_stmt\x18\xC6\x01 \x01(\x0B2\x13.pg_query.IndexStmtH\x00R\x09IndexStmt\x12H\x0A\x11create_stats_stmt\x18\xC7\x01 \x01(\x0B2\x19.pg_query.CreateStatsStmtH\x00R\x0FCreateStatsStmt\x125\x0A\x0Astats_elem\x18\xC8\x01 \x01(\x0B2\x13.pg_query.StatsElemH\x00R\x09StatsElem\x12E\x0A\x10alter_stats_stmt\x18\xC9\x01 \x01(\x0B2\x18.pg_query.AlterStatsStmtH\x00R\x0EAlterStatsStmt\x12Q\x0A\x14create_function_stmt\x18\xCA\x01 \x01(\x0B2\x1C.pg_query.CreateFunctionStmtH\x00R\x12CreateFunctionStmt\x12M\x0A\x12function_parameter\x18\xCB\x01 \x01(\x0B2\x1B.pg_query.FunctionParameterH\x00R\x11FunctionParameter\x12N\x0A\x13alter_function_stmt\x18\xCC\x01 \x01(\x0B2\x1B.pg_query.AlterFunctionStmtH\x00R\x11AlterFunctionStmt\x12,\x0A\x07do_stmt\x18\xCD\x01 \x01(\x0B2\x10.pg_query.DoStmtH\x00R\x06DoStmt\x12H\x0A\x11inline_code_block\x18\xCE\x01 \x01(\x0B2\x19.pg_query.InlineCodeBlockH\x00R\x0FInlineCodeBlock\x122\x0A\x09call_stmt\x18\xCF\x01 \x01(\x0B2\x12.pg_query.CallStmtH\x00R\x08CallStmt\x12;\x0A\x0Ccall_context\x18\xD0\x01 \x01(\x0B2\x15.pg_query.CallContextH\x00R\x0BCallContext\x128\x0A\x0Brename_stmt\x18\xD1\x01 \x01(\x0B2\x14.pg_query.RenameStmtH\x00R\x0ARenameStmt\x12^\x0A\x19alter_object_depends_stmt\x18\xD2\x01 \x01(\x0B2 .pg_query.AlterObjectDependsStmtH\x00R\x16AlterObjectDependsStmt\x12[\x0A\x18alter_object_schema_stmt\x18\xD3\x01 \x01(\x0B2\x1F.pg_query.AlterObjectSchemaStmtH\x00R\x15AlterObjectSchemaStmt\x12E\x0A\x10alter_owner_stmt\x18\xD4\x01 \x01(\x0B2\x18.pg_query.AlterOwnerStmtH\x00R\x0EAlterOwnerStmt\x12N\x0A\x13alter_operator_stmt\x18\xD5\x01 \x01(\x0B2\x1B.pg_query.AlterOperatorStmtH\x00R\x11AlterOperatorStmt\x12B\x0A\x0Falter_type_stmt\x18\xD6\x01 \x01(\x0B2\x17.pg_query.AlterTypeStmtH\x00R\x0DAlterTypeStmt\x122\x0A\x09rule_stmt\x18\xD7\x01 \x01(\x0B2\x12.pg_query.RuleStmtH\x00R\x08RuleStmt\x128\x0A\x0Bnotify_stmt\x18\xD8\x01 \x01(\x0B2\x14.pg_query.NotifyStmtH\x00R\x0ANotifyStmt\x128\x0A\x0Blisten_stmt\x18\xD9\x01 \x01(\x0B2\x14.pg_query.ListenStmtH\x00R\x0AListenStmt\x12>\x0A\x0Dunlisten_stmt\x18\xDA\x01 \x01(\x0B2\x16.pg_query.UnlistenStmtH\x00R\x0CUnlistenStmt\x12G\x0A\x10transaction_stmt\x18\xDB\x01 \x01(\x0B2\x19.pg_query.TransactionStmtH\x00R\x0FTransactionStmt\x12N\x0A\x13composite_type_stmt\x18\xDC\x01 \x01(\x0B2\x1B.pg_query.CompositeTypeStmtH\x00R\x11CompositeTypeStmt\x12E\x0A\x10create_enum_stmt\x18\xDD\x01 \x01(\x0B2\x18.pg_query.CreateEnumStmtH\x00R\x0ECreateEnumStmt\x12H\x0A\x11create_range_stmt\x18\xDE\x01 \x01(\x0B2\x19.pg_query.CreateRangeStmtH\x00R\x0FCreateRangeStmt\x12B\x0A\x0Falter_enum_stmt\x18\xDF\x01 \x01(\x0B2\x17.pg_query.AlterEnumStmtH\x00R\x0DAlterEnumStmt\x122\x0A\x09view_stmt\x18\xE0\x01 \x01(\x0B2\x12.pg_query.ViewStmtH\x00R\x08ViewStmt\x122\x0A\x09load_stmt\x18\xE1\x01 \x01(\x0B2\x12.pg_query.LoadStmtH\x00R\x08LoadStmt\x12>\x0A\x0Dcreatedb_stmt\x18\xE2\x01 \x01(\x0B2\x16.pg_query.CreatedbStmtH\x00R\x0CCreatedbStmt\x12N\x0A\x13alter_database_stmt\x18\xE3\x01 \x01(\x0B2\x1B.pg_query.AlterDatabaseStmtH\x00R\x11AlterDatabaseStmt\x12q\x0A alter_database_refresh_coll_stmt\x18\xE4\x01 \x01(\x0B2&.pg_query.AlterDatabaseRefreshCollStmtH\x00R\x1CAlterDatabaseRefreshCollStmt\x12X\x0A\x17alter_database_set_stmt\x18\xE5\x01 \x01(\x0B2\x1E.pg_query.AlterDatabaseSetStmtH\x00R\x14AlterDatabaseSetStmt\x128\x0A\x0Bdropdb_stmt\x18\xE6\x01 \x01(\x0B2\x14.pg_query.DropdbStmtH\x00R\x0ADropdbStmt\x12H\x0A\x11alter_system_stmt\x18\xE7\x01 \x01(\x0B2\x19.pg_query.AlterSystemStmtH\x00R\x0FAlterSystemStmt\x12;\x0A\x0Ccluster_stmt\x18\xE8\x01 \x01(\x0B2\x15.pg_query.ClusterStmtH\x00R\x0BClusterStmt\x128\x0A\x0Bvacuum_stmt\x18\xE9\x01 \x01(\x0B2\x14.pg_query.VacuumStmtH\x00R\x0AVacuumStmt\x12D\x0A\x0Fvacuum_relation\x18\xEA\x01 \x01(\x0B2\x18.pg_query.VacuumRelationH\x00R\x0EVacuumRelation\x12;\x0A\x0Cexplain_stmt\x18\xEB\x01 \x01(\x0B2\x15.pg_query.ExplainStmtH\x00R\x0BExplainStmt\x12O\x0A\x14create_table_as_stmt\x18\xEC\x01 \x01(\x0B2\x1B.pg_query.CreateTableAsStmtH\x00R\x11CreateTableAsStmt\x12R\x0A\x15refresh_mat_view_stmt\x18\xED\x01 \x01(\x0B2\x1C.pg_query.RefreshMatViewStmtH\x00R\x12RefreshMatViewStmt\x12E\x0A\x10check_point_stmt\x18\xEE\x01 \x01(\x0B2\x18.pg_query.CheckPointStmtH\x00R\x0ECheckPointStmt\x12;\x0A\x0Cdiscard_stmt\x18\xEF\x01 \x01(\x0B2\x15.pg_query.DiscardStmtH\x00R\x0BDiscardStmt\x122\x0A\x09lock_stmt\x18\xF0\x01 \x01(\x0B2\x12.pg_query.LockStmtH\x00R\x08LockStmt\x12Q\x0A\x14constraints_set_stmt\x18\xF1\x01 \x01(\x0B2\x1C.pg_query.ConstraintsSetStmtH\x00R\x12ConstraintsSetStmt\x12;\x0A\x0Creindex_stmt\x18\xF2\x01 \x01(\x0B2\x15.pg_query.ReindexStmtH\x00R\x0BReindexStmt\x12W\x0A\x16create_conversion_stmt\x18\xF3\x01 \x01(\x0B2\x1E.pg_query.CreateConversionStmtH\x00R\x14CreateConversionStmt\x12E\x0A\x10create_cast_stmt\x18\xF4\x01 \x01(\x0B2\x18.pg_query.CreateCastStmtH\x00R\x0ECreateCastStmt\x12T\x0A\x15create_transform_stmt\x18\xF5\x01 \x01(\x0B2\x1D.pg_query.CreateTransformStmtH\x00R\x13CreateTransformStmt\x12;\x0A\x0Cprepare_stmt\x18\xF6\x01 \x01(\x0B2\x15.pg_query.PrepareStmtH\x00R\x0BPrepareStmt\x12;\x0A\x0Cexecute_stmt\x18\xF7\x01 \x01(\x0B2\x15.pg_query.ExecuteStmtH\x00R\x0BExecuteStmt\x12D\x0A\x0Fdeallocate_stmt\x18\xF8\x01 \x01(\x0B2\x18.pg_query.DeallocateStmtH\x00R\x0EDeallocateStmt\x12B\x0A\x0Fdrop_owned_stmt\x18\xF9\x01 \x01(\x0B2\x17.pg_query.DropOwnedStmtH\x00R\x0DDropOwnedStmt\x12N\x0A\x13reassign_owned_stmt\x18\xFA\x01 \x01(\x0B2\x1B.pg_query.ReassignOwnedStmtH\x00R\x11ReassignOwnedStmt\x12Z\x0A\x17alter_tsdictionary_stmt\x18\xFB\x01 \x01(\x0B2\x1F.pg_query.AlterTSDictionaryStmtH\x00R\x15AlterTSDictionaryStmt\x12c\x0A\x1Aalter_tsconfiguration_stmt\x18\xFC\x01 \x01(\x0B2\".pg_query.AlterTSConfigurationStmtH\x00R\x18AlterTSConfigurationStmt\x12J\x0A\x11publication_table\x18\xFD\x01 \x01(\x0B2\x1A.pg_query.PublicationTableH\x00R\x10PublicationTable\x12Q\x0A\x14publication_obj_spec\x18\xFE\x01 \x01(\x0B2\x1C.pg_query.PublicationObjSpecH\x00R\x12PublicationObjSpec\x12Z\x0A\x17create_publication_stmt\x18\xFF\x01 \x01(\x0B2\x1F.pg_query.CreatePublicationStmtH\x00R\x15CreatePublicationStmt\x12W\x0A\x16alter_publication_stmt\x18\x80\x02 \x01(\x0B2\x1E.pg_query.AlterPublicationStmtH\x00R\x14AlterPublicationStmt\x12]\x0A\x18create_subscription_stmt\x18\x81\x02 \x01(\x0B2 .pg_query.CreateSubscriptionStmtH\x00R\x16CreateSubscriptionStmt\x12Z\x0A\x17alter_subscription_stmt\x18\x82\x02 \x01(\x0B2\x1F.pg_query.AlterSubscriptionStmtH\x00R\x15AlterSubscriptionStmt\x12W\x0A\x16drop_subscription_stmt\x18\x83\x02 \x01(\x0B2\x1E.pg_query.DropSubscriptionStmtH\x00R\x14DropSubscriptionStmt\x12.\x0A\x07integer\x18\x84\x02 \x01(\x0B2\x11.pg_query.IntegerH\x00R\x07Integer\x12(\x0A\x05float\x18\x85\x02 \x01(\x0B2\x0F.pg_query.FloatH\x00R\x05Float\x12.\x0A\x07boolean\x18\x86\x02 \x01(\x0B2\x11.pg_query.BooleanH\x00R\x07Boolean\x12+\x0A\x06string\x18\x87\x02 \x01(\x0B2\x10.pg_query.StringH\x00R\x06String\x125\x0A\x0Abit_string\x18\x88\x02 \x01(\x0B2\x13.pg_query.BitStringH\x00R\x09BitString\x12%\x0A\x04list\x18\x89\x02 \x01(\x0B2\x0E.pg_query.ListH\x00R\x04List\x12/\x0A\x08int_list\x18\x8A\x02 \x01(\x0B2\x11.pg_query.IntListH\x00R\x07IntList\x12/\x0A\x08oid_list\x18\x8B\x02 \x01(\x0B2\x11.pg_query.OidListH\x00R\x07OidList\x12.\x0A\x07a_const\x18\x8C\x02 \x01(\x0B2\x11.pg_query.A_ConstH\x00R\x07A_ConstB\x06\x0A\x04node\"\x17\x0A\x07Integer\x12\x0C\x0A\x04ival\x18\x01 \x01(\x05\"\x15\x0A\x05Float\x12\x0C\x0A\x04fval\x18\x01 \x01(\x09\"\x1A\x0A\x07Boolean\x12\x0F\x0A\x07boolval\x18\x01 \x01(\x08\"\x16\x0A\x06String\x12\x0C\x0A\x04sval\x18\x01 \x01(\x09\"\x1A\x0A\x09BitString\x12\x0D\x0A\x05bsval\x18\x01 \x01(\x09\"%\x0A\x04List\x12\x1D\x0A\x05items\x18\x01 \x03(\x0B2\x0E.pg_query.Node\"(\x0A\x07OidList\x12\x1D\x0A\x05items\x18\x01 \x03(\x0B2\x0E.pg_query.Node\"(\x0A\x07IntList\x12\x1D\x0A\x05items\x18\x01 \x03(\x0B2\x0E.pg_query.Node\"\xE4\x01\x0A\x07A_Const\x12!\x0A\x04ival\x18\x01 \x01(\x0B2\x11.pg_query.IntegerH\x00\x12\x1F\x0A\x04fval\x18\x02 \x01(\x0B2\x0F.pg_query.FloatH\x00\x12\$\x0A\x07boolval\x18\x03 \x01(\x0B2\x11.pg_query.BooleanH\x00\x12 \x0A\x04sval\x18\x04 \x01(\x0B2\x10.pg_query.StringH\x00\x12\$\x0A\x05bsval\x18\x05 \x01(\x0B2\x13.pg_query.BitStringH\x00\x12\x0E\x0A\x06isnull\x18\x0A \x01(\x08\x12\x10\x0A\x08location\x18\x0B \x01(\x05B\x05\x0A\x03val\"Q\x0A\x05Alias\x12\x1C\x0A\x09aliasname\x18\x01 \x01(\x09R\x09aliasname\x12*\x0A\x08colnames\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x08colnames\"\xE3\x01\x0A\x08RangeVar\x12 \x0A\x0Bcatalogname\x18\x01 \x01(\x09R\x0Bcatalogname\x12\x1E\x0A\x0Aschemaname\x18\x02 \x01(\x09R\x0Aschemaname\x12\x18\x0A\x07relname\x18\x03 \x01(\x09R\x07relname\x12\x10\x0A\x03inh\x18\x04 \x01(\x08R\x03inh\x12&\x0A\x0Erelpersistence\x18\x05 \x01(\x09R\x0Erelpersistence\x12%\x0A\x05alias\x18\x06 \x01(\x0B2\x0F.pg_query.AliasR\x05alias\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\xF4\x05\x0A\x09TableFunc\x123\x0A\x08functype\x18\x01 \x01(\x0E2\x17.pg_query.TableFuncTypeR\x08functype\x12(\x0A\x07ns_uris\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07ns_uris\x12*\x0A\x08ns_names\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x08ns_names\x12(\x0A\x07docexpr\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x07docexpr\x12(\x0A\x07rowexpr\x18\x05 \x01(\x0B2\x0E.pg_query.NodeR\x07rowexpr\x12*\x0A\x08colnames\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x08colnames\x12*\x0A\x08coltypes\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x08coltypes\x12.\x0A\x0Acoltypmods\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x0Acoltypmods\x124\x0A\x0Dcolcollations\x18\x09 \x03(\x0B2\x0E.pg_query.NodeR\x0Dcolcollations\x12*\x0A\x08colexprs\x18\x0A \x03(\x0B2\x0E.pg_query.NodeR\x08colexprs\x120\x0A\x0Bcoldefexprs\x18\x0B \x03(\x0B2\x0E.pg_query.NodeR\x0Bcoldefexprs\x120\x0A\x0Bcolvalexprs\x18\x0C \x03(\x0B2\x0E.pg_query.NodeR\x0Bcolvalexprs\x128\x0A\x0Fpassingvalexprs\x18\x0D \x03(\x0B2\x0E.pg_query.NodeR\x0Fpassingvalexprs\x12\x1A\x0A\x08notnulls\x18\x0E \x03(\x04R\x08notnulls\x12\"\x0A\x04plan\x18\x0F \x01(\x0B2\x0E.pg_query.NodeR\x04plan\x12\$\x0A\x0Dordinalitycol\x18\x10 \x01(\x05R\x0Dordinalitycol\x12\x1A\x0A\x08location\x18\x11 \x01(\x05R\x08location\"\xDB\x02\x0A\x0AIntoClause\x12\$\x0A\x03rel\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x03rel\x12+\x0A\x09col_names\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x08colNames\x12#\x0A\x0Daccess_method\x18\x03 \x01(\x09R\x0CaccessMethod\x12(\x0A\x07options\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x125\x0A\x09on_commit\x18\x05 \x01(\x0E2\x18.pg_query.OnCommitActionR\x08onCommit\x12(\x0A\x10table_space_name\x18\x06 \x01(\x09R\x0EtableSpaceName\x12-\x0A\x0Aview_query\x18\x07 \x01(\x0B2\x0E.pg_query.NodeR\x09viewQuery\x12\x1B\x0A\x09skip_data\x18\x08 \x01(\x08R\x08skipData\"\x95\x02\x0A\x03Var\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x14\x0A\x05varno\x18\x02 \x01(\x05R\x05varno\x12\x1A\x0A\x08varattno\x18\x03 \x01(\x05R\x08varattno\x12\x18\x0A\x07vartype\x18\x04 \x01(\x0DR\x07vartype\x12\x1C\x0A\x09vartypmod\x18\x05 \x01(\x05R\x09vartypmod\x12\x1C\x0A\x09varcollid\x18\x06 \x01(\x0DR\x09varcollid\x12&\x0A\x0Evarnullingrels\x18\x07 \x03(\x04R\x0Evarnullingrels\x12 \x0A\x0Bvarlevelsup\x18\x08 \x01(\x0DR\x0Bvarlevelsup\x12\x1A\x0A\x08location\x18\x09 \x01(\x05R\x08location\"\xF4\x01\x0A\x05Param\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x121\x0A\x09paramkind\x18\x02 \x01(\x0E2\x13.pg_query.ParamKindR\x09paramkind\x12\x18\x0A\x07paramid\x18\x03 \x01(\x05R\x07paramid\x12\x1C\x0A\x09paramtype\x18\x04 \x01(\x0DR\x09paramtype\x12 \x0A\x0Bparamtypmod\x18\x05 \x01(\x05R\x0Bparamtypmod\x12 \x0A\x0Bparamcollid\x18\x06 \x01(\x0DR\x0Bparamcollid\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\xB2\x05\x0A\x06Aggref\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x1A\x0A\x08aggfnoid\x18\x02 \x01(\x0DR\x08aggfnoid\x12\x18\x0A\x07aggtype\x18\x03 \x01(\x0DR\x07aggtype\x12\x1C\x0A\x09aggcollid\x18\x04 \x01(\x0DR\x09aggcollid\x12 \x0A\x0Binputcollid\x18\x05 \x01(\x0DR\x0Binputcollid\x120\x0A\x0Baggargtypes\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x0Baggargtypes\x124\x0A\x0Daggdirectargs\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x0Daggdirectargs\x12\"\x0A\x04args\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12*\x0A\x08aggorder\x18\x09 \x03(\x0B2\x0E.pg_query.NodeR\x08aggorder\x120\x0A\x0Baggdistinct\x18\x0A \x03(\x0B2\x0E.pg_query.NodeR\x0Baggdistinct\x12,\x0A\x09aggfilter\x18\x0B \x01(\x0B2\x0E.pg_query.NodeR\x09aggfilter\x12\x18\x0A\x07aggstar\x18\x0C \x01(\x08R\x07aggstar\x12 \x0A\x0Baggvariadic\x18\x0D \x01(\x08R\x0Baggvariadic\x12\x18\x0A\x07aggkind\x18\x0E \x01(\x09R\x07aggkind\x12 \x0A\x0Bagglevelsup\x18\x0F \x01(\x0DR\x0Bagglevelsup\x12.\x0A\x08aggsplit\x18\x10 \x01(\x0E2\x12.pg_query.AggSplitR\x08aggsplit\x12\x14\x0A\x05aggno\x18\x11 \x01(\x05R\x05aggno\x12\x1E\x0A\x0Aaggtransno\x18\x12 \x01(\x05R\x0Aaggtransno\x12\x1A\x0A\x08location\x18\x13 \x01(\x05R\x08location\"\xB6\x01\x0A\x0CGroupingFunc\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\"\x0A\x04args\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\"\x0A\x04refs\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x04refs\x12 \x0A\x0Bagglevelsup\x18\x04 \x01(\x0DR\x0Bagglevelsup\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\x91\x03\x0A\x0AWindowFunc\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x1A\x0A\x08winfnoid\x18\x02 \x01(\x0DR\x08winfnoid\x12\x18\x0A\x07wintype\x18\x03 \x01(\x0DR\x07wintype\x12\x1C\x0A\x09wincollid\x18\x04 \x01(\x0DR\x09wincollid\x12 \x0A\x0Binputcollid\x18\x05 \x01(\x0DR\x0Binputcollid\x12\"\x0A\x04args\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12,\x0A\x09aggfilter\x18\x07 \x01(\x0B2\x0E.pg_query.NodeR\x09aggfilter\x123\x0A\x0Drun_condition\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x0CrunCondition\x12\x16\x0A\x06winref\x18\x09 \x01(\x0DR\x06winref\x12\x18\x0A\x07winstar\x18\x0A \x01(\x08R\x07winstar\x12\x16\x0A\x06winagg\x18\x0B \x01(\x08R\x06winagg\x12\x1A\x0A\x08location\x18\x0C \x01(\x05R\x08location\"\xB2\x01\x0A\x16WindowFuncRunCondition\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x12\x0A\x04opno\x18\x02 \x01(\x0DR\x04opno\x12 \x0A\x0Binputcollid\x18\x03 \x01(\x0DR\x0Binputcollid\x12\x1E\x0A\x0Awfunc_left\x18\x04 \x01(\x08R\x0Awfunc_left\x12 \x0A\x03arg\x18\x05 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\"\x88\x01\x0A\x10MergeSupportFunc\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x18\x0A\x07msftype\x18\x02 \x01(\x0DR\x07msftype\x12\x1C\x0A\x09msfcollid\x18\x03 \x01(\x0DR\x09msfcollid\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xAF\x03\x0A\x0FSubscriptingRef\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12*\x0A\x10refcontainertype\x18\x02 \x01(\x0DR\x10refcontainertype\x12 \x0A\x0Brefelemtype\x18\x03 \x01(\x0DR\x0Brefelemtype\x12\x1E\x0A\x0Arefrestype\x18\x04 \x01(\x0DR\x0Arefrestype\x12\x1C\x0A\x09reftypmod\x18\x05 \x01(\x05R\x09reftypmod\x12\x1C\x0A\x09refcollid\x18\x06 \x01(\x0DR\x09refcollid\x128\x0A\x0Frefupperindexpr\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x0Frefupperindexpr\x128\x0A\x0Freflowerindexpr\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x0Freflowerindexpr\x12(\x0A\x07refexpr\x18\x09 \x01(\x0B2\x0E.pg_query.NodeR\x07refexpr\x122\x0A\x0Crefassgnexpr\x18\x0A \x01(\x0B2\x0E.pg_query.NodeR\x0Crefassgnexpr\"\xEA\x02\x0A\x08FuncExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x16\x0A\x06funcid\x18\x02 \x01(\x0DR\x06funcid\x12&\x0A\x0Efuncresulttype\x18\x03 \x01(\x0DR\x0Efuncresulttype\x12\x1E\x0A\x0Afuncretset\x18\x04 \x01(\x08R\x0Afuncretset\x12\"\x0A\x0Cfuncvariadic\x18\x05 \x01(\x08R\x0Cfuncvariadic\x126\x0A\x0Afuncformat\x18\x06 \x01(\x0E2\x16.pg_query.CoercionFormR\x0Afuncformat\x12\x1E\x0A\x0Afunccollid\x18\x07 \x01(\x0DR\x0Afunccollid\x12 \x0A\x0Binputcollid\x18\x08 \x01(\x0DR\x0Binputcollid\x12\"\x0A\x04args\x18\x09 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08location\x18\x0A \x01(\x05R\x08location\"\xA0\x01\x0A\x0CNamedArgExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12\x12\x0A\x04name\x18\x03 \x01(\x09R\x04name\x12\x1C\x0A\x09argnumber\x18\x04 \x01(\x05R\x09argnumber\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xFC\x01\x0A\x06OpExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x12\x0A\x04opno\x18\x02 \x01(\x0DR\x04opno\x12\"\x0A\x0Copresulttype\x18\x03 \x01(\x0DR\x0Copresulttype\x12\x1A\x0A\x08opretset\x18\x04 \x01(\x08R\x08opretset\x12\x1A\x0A\x08opcollid\x18\x05 \x01(\x0DR\x08opcollid\x12 \x0A\x0Binputcollid\x18\x06 \x01(\x0DR\x0Binputcollid\x12\"\x0A\x04args\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08location\x18\x08 \x01(\x05R\x08location\"\x82\x02\x0A\x0CDistinctExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x12\x0A\x04opno\x18\x02 \x01(\x0DR\x04opno\x12\"\x0A\x0Copresulttype\x18\x03 \x01(\x0DR\x0Copresulttype\x12\x1A\x0A\x08opretset\x18\x04 \x01(\x08R\x08opretset\x12\x1A\x0A\x08opcollid\x18\x05 \x01(\x0DR\x08opcollid\x12 \x0A\x0Binputcollid\x18\x06 \x01(\x0DR\x0Binputcollid\x12\"\x0A\x04args\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08location\x18\x08 \x01(\x05R\x08location\"\x80\x02\x0A\x0ANullIfExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x12\x0A\x04opno\x18\x02 \x01(\x0DR\x04opno\x12\"\x0A\x0Copresulttype\x18\x03 \x01(\x0DR\x0Copresulttype\x12\x1A\x0A\x08opretset\x18\x04 \x01(\x08R\x08opretset\x12\x1A\x0A\x08opcollid\x18\x05 \x01(\x0DR\x08opcollid\x12 \x0A\x0Binputcollid\x18\x06 \x01(\x0DR\x0Binputcollid\x12\"\x0A\x04args\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08location\x18\x08 \x01(\x05R\x08location\"\xC2\x01\x0A\x11ScalarArrayOpExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x12\x0A\x04opno\x18\x02 \x01(\x0DR\x04opno\x12\x15\x0A\x06use_or\x18\x03 \x01(\x08R\x05useOr\x12 \x0A\x0Binputcollid\x18\x04 \x01(\x0DR\x0Binputcollid\x12\"\x0A\x04args\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08location\x18\x06 \x01(\x05R\x08location\"\x9C\x01\x0A\x08BoolExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12.\x0A\x06boolop\x18\x02 \x01(\x0E2\x16.pg_query.BoolExprTypeR\x06boolop\x12\"\x0A\x04args\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xA9\x02\x0A\x07SubLink\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x129\x0A\x0Dsub_link_type\x18\x02 \x01(\x0E2\x15.pg_query.SubLinkTypeR\x0BsubLinkType\x12\x1E\x0A\x0Bsub_link_id\x18\x03 \x01(\x05R\x09subLinkId\x12*\x0A\x08testexpr\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x08testexpr\x12+\x0A\x09oper_name\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x08operName\x12,\x0A\x09subselect\x18\x06 \x01(\x0B2\x0E.pg_query.NodeR\x09subselect\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\xB5\x05\x0A\x07SubPlan\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x129\x0A\x0Dsub_link_type\x18\x02 \x01(\x0E2\x15.pg_query.SubLinkTypeR\x0BsubLinkType\x12*\x0A\x08testexpr\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x08testexpr\x12+\x0A\x09param_ids\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x08paramIds\x12\x18\x0A\x07plan_id\x18\x05 \x01(\x05R\x07plan_id\x12\x1C\x0A\x09plan_name\x18\x06 \x01(\x09R\x09plan_name\x12\$\x0A\x0Efirst_col_type\x18\x07 \x01(\x0DR\x0CfirstColType\x12(\x0A\x10first_col_typmod\x18\x08 \x01(\x05R\x0EfirstColTypmod\x12.\x0A\x13first_col_collation\x18\x09 \x01(\x0DR\x11firstColCollation\x12\$\x0A\x0Euse_hash_table\x18\x0A \x01(\x08R\x0CuseHashTable\x12(\x0A\x10unknown_eq_false\x18\x0B \x01(\x08R\x0EunknownEqFalse\x12\$\x0A\x0Dparallel_safe\x18\x0C \x01(\x08R\x0Dparallel_safe\x12+\x0A\x09set_param\x18\x0D \x03(\x0B2\x0E.pg_query.NodeR\x08setParam\x12+\x0A\x09par_param\x18\x0E \x03(\x0B2\x0E.pg_query.NodeR\x08parParam\x12\"\x0A\x04args\x18\x0F \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\"\x0A\x0Cstartup_cost\x18\x10 \x01(\x01R\x0Cstartup_cost\x12\$\x0A\x0Dper_call_cost\x18\x11 \x01(\x01R\x0Dper_call_cost\"b\x0A\x12AlternativeSubPlan\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12*\x0A\x08subplans\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x08subplans\"\xD5\x01\x0A\x0BFieldSelect\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12\x1A\x0A\x08fieldnum\x18\x03 \x01(\x05R\x08fieldnum\x12\x1E\x0A\x0Aresulttype\x18\x04 \x01(\x0DR\x0Aresulttype\x12\"\x0A\x0Cresulttypmod\x18\x05 \x01(\x05R\x0Cresulttypmod\x12\"\x0A\x0Cresultcollid\x18\x06 \x01(\x0DR\x0Cresultcollid\"\xC8\x01\x0A\x0AFieldStore\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12(\x0A\x07newvals\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07newvals\x12,\x0A\x09fieldnums\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x09fieldnums\x12\x1E\x0A\x0Aresulttype\x18\x05 \x01(\x0DR\x0Aresulttype\"\x93\x02\x0A\x0BRelabelType\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12\x1E\x0A\x0Aresulttype\x18\x03 \x01(\x0DR\x0Aresulttype\x12\"\x0A\x0Cresulttypmod\x18\x04 \x01(\x05R\x0Cresulttypmod\x12\"\x0A\x0Cresultcollid\x18\x05 \x01(\x0DR\x0Cresultcollid\x12<\x0A\x0Drelabelformat\x18\x06 \x01(\x0E2\x16.pg_query.CoercionFormR\x0Drelabelformat\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\xED\x01\x0A\x0BCoerceViaIO\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12\x1E\x0A\x0Aresulttype\x18\x03 \x01(\x0DR\x0Aresulttype\x12\"\x0A\x0Cresultcollid\x18\x04 \x01(\x0DR\x0Cresultcollid\x12:\x0A\x0Ccoerceformat\x18\x05 \x01(\x0E2\x16.pg_query.CoercionFormR\x0Ccoerceformat\x12\x1A\x0A\x08location\x18\x06 \x01(\x05R\x08location\"\xC1\x02\x0A\x0FArrayCoerceExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12*\x0A\x08elemexpr\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x08elemexpr\x12\x1E\x0A\x0Aresulttype\x18\x04 \x01(\x0DR\x0Aresulttype\x12\"\x0A\x0Cresulttypmod\x18\x05 \x01(\x05R\x0Cresulttypmod\x12\"\x0A\x0Cresultcollid\x18\x06 \x01(\x0DR\x0Cresultcollid\x12:\x0A\x0Ccoerceformat\x18\x07 \x01(\x0E2\x16.pg_query.CoercionFormR\x0Ccoerceformat\x12\x1A\x0A\x08location\x18\x08 \x01(\x05R\x08location\"\xD2\x01\x0A\x12ConvertRowtypeExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12\x1E\x0A\x0Aresulttype\x18\x03 \x01(\x0DR\x0Aresulttype\x12<\x0A\x0Dconvertformat\x18\x04 \x01(\x0E2\x16.pg_query.CoercionFormR\x0Dconvertformat\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\x88\x01\x0A\x0BCollateExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12\x19\x0A\x08coll_oid\x18\x03 \x01(\x0DR\x07collOid\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xF8\x01\x0A\x08CaseExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x1A\x0A\x08casetype\x18\x02 \x01(\x0DR\x08casetype\x12\x1E\x0A\x0Acasecollid\x18\x03 \x01(\x0DR\x0Acasecollid\x12 \x0A\x03arg\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12\"\x0A\x04args\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12,\x0A\x09defresult\x18\x06 \x01(\x0B2\x0E.pg_query.NodeR\x09defresult\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\x94\x01\x0A\x08CaseWhen\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\"\x0A\x04expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12&\x0A\x06result\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x06result\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\x82\x01\x0A\x0CCaseTestExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x17\x0A\x07type_id\x18\x02 \x01(\x0DR\x06typeId\x12\x19\x0A\x08type_mod\x18\x03 \x01(\x05R\x07typeMod\x12\x1C\x0A\x09collation\x18\x04 \x01(\x0DR\x09collation\"\x83\x02\x0A\x09ArrayExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\"\x0A\x0Carray_typeid\x18\x02 \x01(\x0DR\x0Carray_typeid\x12\"\x0A\x0Carray_collid\x18\x03 \x01(\x0DR\x0Carray_collid\x12&\x0A\x0Eelement_typeid\x18\x04 \x01(\x0DR\x0Eelement_typeid\x12*\x0A\x08elements\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x08elements\x12\x1C\x0A\x09multidims\x18\x06 \x01(\x08R\x09multidims\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\xEF\x01\x0A\x07RowExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\"\x0A\x04args\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1E\x0A\x0Arow_typeid\x18\x03 \x01(\x0DR\x0Arow_typeid\x126\x0A\x0Arow_format\x18\x04 \x01(\x0E2\x16.pg_query.CoercionFormR\x0Arow_format\x12*\x0A\x08colnames\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x08colnames\x12\x1A\x0A\x08location\x18\x06 \x01(\x05R\x08location\"\xBA\x02\x0A\x0ERowCompareExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x120\x0A\x06rctype\x18\x02 \x01(\x0E2\x18.pg_query.RowCompareTypeR\x06rctype\x12\$\x0A\x05opnos\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x05opnos\x12.\x0A\x0Aopfamilies\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0Aopfamilies\x122\x0A\x0Cinputcollids\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0Cinputcollids\x12\$\x0A\x05largs\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x05largs\x12\$\x0A\x05rargs\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x05rargs\"\xBC\x01\x0A\x0CCoalesceExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\"\x0A\x0Ccoalescetype\x18\x02 \x01(\x0DR\x0Ccoalescetype\x12&\x0A\x0Ecoalescecollid\x18\x03 \x01(\x0DR\x0Ecoalescecollid\x12\"\x0A\x04args\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xF8\x01\x0A\x0AMinMaxExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x1E\x0A\x0Aminmaxtype\x18\x02 \x01(\x0DR\x0Aminmaxtype\x12\"\x0A\x0Cminmaxcollid\x18\x03 \x01(\x0DR\x0Cminmaxcollid\x12 \x0A\x0Binputcollid\x18\x04 \x01(\x0DR\x0Binputcollid\x12\"\x0A\x02op\x18\x05 \x01(\x0E2\x12.pg_query.MinMaxOpR\x02op\x12\"\x0A\x04args\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\xAA\x01\x0A\x10SQLValueFunction\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12,\x0A\x02op\x18\x02 \x01(\x0E2\x1C.pg_query.SQLValueFunctionOpR\x02op\x12\x12\x0A\x04type\x18\x03 \x01(\x0DR\x04type\x12\x16\x0A\x06typmod\x18\x04 \x01(\x05R\x06typmod\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xFD\x02\x0A\x07XmlExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12#\x0A\x02op\x18\x02 \x01(\x0E2\x13.pg_query.XmlExprOpR\x02op\x12\x12\x0A\x04name\x18\x03 \x01(\x09R\x04name\x12.\x0A\x0Anamed_args\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0Anamed_args\x12,\x0A\x09arg_names\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x09arg_names\x12\"\x0A\x04args\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x125\x0A\x09xmloption\x18\x07 \x01(\x0E2\x17.pg_query.XmlOptionTypeR\x09xmloption\x12\x16\x0A\x06indent\x18\x08 \x01(\x08R\x06indent\x12\x12\x0A\x04type\x18\x09 \x01(\x0DR\x04type\x12\x16\x0A\x06typmod\x18\x0A \x01(\x05R\x06typmod\x12\x1A\x0A\x08location\x18\x0B \x01(\x05R\x08location\"\x98\x01\x0A\x0AJsonFormat\x12:\x0A\x0Bformat_type\x18\x01 \x01(\x0E2\x18.pg_query.JsonFormatTypeR\x0Bformat_type\x122\x0A\x08encoding\x18\x02 \x01(\x0E2\x16.pg_query.JsonEncodingR\x08encoding\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"k\x0A\x0DJsonReturning\x12,\x0A\x06format\x18\x01 \x01(\x0B2\x14.pg_query.JsonFormatR\x06format\x12\x14\x0A\x05typid\x18\x02 \x01(\x0DR\x05typid\x12\x16\x0A\x06typmod\x18\x03 \x01(\x05R\x06typmod\"\xA1\x01\x0A\x0DJsonValueExpr\x12*\x0A\x08raw_expr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x08raw_expr\x126\x0A\x0Eformatted_expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x0Eformatted_expr\x12,\x0A\x06format\x18\x03 \x01(\x0B2\x14.pg_query.JsonFormatR\x06format\"\xF1\x02\x0A\x13JsonConstructorExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x121\x0A\x04type\x18\x02 \x01(\x0E2\x1D.pg_query.JsonConstructorTypeR\x04type\x12\"\x0A\x04args\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\"\x0A\x04func\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x04func\x12*\x0A\x08coercion\x18\x05 \x01(\x0B2\x0E.pg_query.NodeR\x08coercion\x125\x0A\x09returning\x18\x06 \x01(\x0B2\x17.pg_query.JsonReturningR\x09returning\x12&\x0A\x0Eabsent_on_null\x18\x07 \x01(\x08R\x0Eabsent_on_null\x12\x16\x0A\x06unique\x18\x08 \x01(\x08R\x06unique\x12\x1A\x0A\x08location\x18\x09 \x01(\x05R\x08location\"\xD8\x01\x0A\x0FJsonIsPredicate\x12\"\x0A\x04expr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12,\x0A\x06format\x18\x02 \x01(\x0B2\x14.pg_query.JsonFormatR\x06format\x125\x0A\x09item_type\x18\x03 \x01(\x0E2\x17.pg_query.JsonValueTypeR\x09item_type\x12 \x0A\x0Bunique_keys\x18\x04 \x01(\x08R\x0Bunique_keys\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\x98\x01\x0A\x0CJsonBehavior\x120\x0A\x05btype\x18\x01 \x01(\x0E2\x1A.pg_query.JsonBehaviorTypeR\x05btype\x12\"\x0A\x04expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12\x16\x0A\x06coerce\x18\x03 \x01(\x08R\x06coerce\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xFA\x05\x0A\x08JsonExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\$\x0A\x02op\x18\x02 \x01(\x0E2\x14.pg_query.JsonExprOpR\x02op\x12 \x0A\x0Bcolumn_name\x18\x03 \x01(\x09R\x0Bcolumn_name\x126\x0A\x0Eformatted_expr\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x0Eformatted_expr\x12,\x0A\x06format\x18\x05 \x01(\x0B2\x14.pg_query.JsonFormatR\x06format\x12,\x0A\x09path_spec\x18\x06 \x01(\x0B2\x0E.pg_query.NodeR\x09path_spec\x125\x0A\x09returning\x18\x07 \x01(\x0B2\x17.pg_query.JsonReturningR\x09returning\x124\x0A\x0Dpassing_names\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x0Dpassing_names\x126\x0A\x0Epassing_values\x18\x09 \x03(\x0B2\x0E.pg_query.NodeR\x0Epassing_values\x122\x0A\x08on_empty\x18\x0A \x01(\x0B2\x16.pg_query.JsonBehaviorR\x08on_empty\x122\x0A\x08on_error\x18\x0B \x01(\x0B2\x16.pg_query.JsonBehaviorR\x08on_error\x12(\x0A\x0Fuse_io_coercion\x18\x0C \x01(\x08R\x0Fuse_io_coercion\x12,\x0A\x11use_json_coercion\x18\x0D \x01(\x08R\x11use_json_coercion\x12/\x0A\x07wrapper\x18\x0E \x01(\x0E2\x15.pg_query.JsonWrapperR\x07wrapper\x12 \x0A\x0Bomit_quotes\x18\x0F \x01(\x08R\x0Bomit_quotes\x12\x1C\x0A\x09collation\x18\x10 \x01(\x0DR\x09collation\x12\x1A\x0A\x08location\x18\x11 \x01(\x05R\x08location\"#\x0A\x0DJsonTablePath\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\"\xE2\x01\x0A\x11JsonTablePathScan\x12\"\x0A\x04plan\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x04plan\x12+\x0A\x04path\x18\x02 \x01(\x0B2\x17.pg_query.JsonTablePathR\x04path\x12\$\x0A\x0Eerror_on_error\x18\x03 \x01(\x08R\x0CerrorOnError\x12\$\x0A\x05child\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x05child\x12\x17\x0A\x07col_min\x18\x05 \x01(\x05R\x06colMin\x12\x17\x0A\x07col_max\x18\x06 \x01(\x05R\x06colMax\"\x86\x01\x0A\x14JsonTableSiblingJoin\x12\"\x0A\x04plan\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x04plan\x12\$\x0A\x05lplan\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x05lplan\x12\$\x0A\x05rplan\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x05rplan\"\xC2\x01\x0A\x08NullTest\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12:\x0A\x0Cnulltesttype\x18\x03 \x01(\x0E2\x16.pg_query.NullTestTypeR\x0Cnulltesttype\x12\x1A\x0A\x08argisrow\x18\x04 \x01(\x08R\x08argisrow\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xA9\x01\x0A\x0BBooleanTest\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12:\x0A\x0Cbooltesttype\x18\x03 \x01(\x0E2\x16.pg_query.BoolTestTypeR\x0Cbooltesttype\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xBC\x02\x0A\x0BMergeAction\x127\x0A\x0Amatch_kind\x18\x01 \x01(\x0E2\x18.pg_query.MergeMatchKindR\x09matchKind\x124\x0A\x0Ccommand_type\x18\x02 \x01(\x0E2\x11.pg_query.CmdTypeR\x0BcommandType\x124\x0A\x08override\x18\x03 \x01(\x0E2\x18.pg_query.OverridingKindR\x08override\x12\"\x0A\x04qual\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x04qual\x12/\x0A\x0Btarget_list\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0AtargetList\x123\x0A\x0Dupdate_colnos\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x0CupdateColnos\"\x98\x02\x0A\x0ECoerceToDomain\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12 \x0A\x03arg\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12\x1E\x0A\x0Aresulttype\x18\x03 \x01(\x0DR\x0Aresulttype\x12\"\x0A\x0Cresulttypmod\x18\x04 \x01(\x05R\x0Cresulttypmod\x12\"\x0A\x0Cresultcollid\x18\x05 \x01(\x0DR\x0Cresultcollid\x12>\x0A\x0Ecoercionformat\x18\x06 \x01(\x0E2\x16.pg_query.CoercionFormR\x0Ecoercionformat\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\xA5\x01\x0A\x13CoerceToDomainValue\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x17\x0A\x07type_id\x18\x02 \x01(\x0DR\x06typeId\x12\x19\x0A\x08type_mod\x18\x03 \x01(\x05R\x07typeMod\x12\x1C\x0A\x09collation\x18\x04 \x01(\x0DR\x09collation\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\x9E\x01\x0A\x0CSetToDefault\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x17\x0A\x07type_id\x18\x02 \x01(\x0DR\x06typeId\x12\x19\x0A\x08type_mod\x18\x03 \x01(\x05R\x07typeMod\x12\x1C\x0A\x09collation\x18\x04 \x01(\x0DR\x09collation\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\x8F\x01\x0A\x0DCurrentOfExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x16\x0A\x06cvarno\x18\x02 \x01(\x0DR\x06cvarno\x12 \x0A\x0Bcursor_name\x18\x03 \x01(\x09R\x0Bcursor_name\x12\"\x0A\x0Ccursor_param\x18\x04 \x01(\x05R\x0Ccursor_param\"`\x0A\x0DNextValueExpr\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\x14\x0A\x05seqid\x18\x02 \x01(\x0DR\x05seqid\x12\x17\x0A\x07type_id\x18\x03 \x01(\x0DR\x06typeId\"\x9B\x01\x0A\x0DInferenceElem\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\"\x0A\x04expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12 \x0A\x0Binfercollid\x18\x03 \x01(\x0DR\x0Binfercollid\x12\"\x0A\x0Cinferopclass\x18\x04 \x01(\x0DR\x0Cinferopclass\"\x87\x02\x0A\x0BTargetEntry\x12 \x0A\x03xpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03xpr\x12\"\x0A\x04expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12\x14\x0A\x05resno\x18\x03 \x01(\x05R\x05resno\x12\x18\x0A\x07resname\x18\x04 \x01(\x09R\x07resname\x12(\x0A\x0Fressortgroupref\x18\x05 \x01(\x0DR\x0Fressortgroupref\x12\x1E\x0A\x0Aresorigtbl\x18\x06 \x01(\x0DR\x0Aresorigtbl\x12\x1E\x0A\x0Aresorigcol\x18\x07 \x01(\x05R\x0Aresorigcol\x12\x18\x0A\x07resjunk\x18\x08 \x01(\x08R\x07resjunk\"'\x0A\x0BRangeTblRef\x12\x18\x0A\x07rtindex\x18\x01 \x01(\x05R\x07rtindex\"\xF8\x02\x0A\x08JoinExpr\x12.\x0A\x08jointype\x18\x01 \x01(\x0E2\x12.pg_query.JoinTypeR\x08jointype\x12\x1D\x0A\x0Ais_natural\x18\x02 \x01(\x08R\x09isNatural\x12\"\x0A\x04larg\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x04larg\x12\"\x0A\x04rarg\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x04rarg\x121\x0A\x0Cusing_clause\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0BusingClause\x12;\x0A\x10join_using_alias\x18\x06 \x01(\x0B2\x0F.pg_query.AliasR\x10join_using_alias\x12\$\x0A\x05quals\x18\x07 \x01(\x0B2\x0E.pg_query.NodeR\x05quals\x12%\x0A\x05alias\x18\x08 \x01(\x0B2\x0F.pg_query.AliasR\x05alias\x12\x18\x0A\x07rtindex\x18\x09 \x01(\x05R\x07rtindex\"\\\x0A\x08FromExpr\x12*\x0A\x08fromlist\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08fromlist\x12\$\x0A\x05quals\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x05quals\"\x9E\x03\x0A\x0EOnConflictExpr\x122\x0A\x06action\x18\x01 \x01(\x0E2\x1A.pg_query.OnConflictActionR\x06action\x123\x0A\x0Darbiter_elems\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0CarbiterElems\x123\x0A\x0Darbiter_where\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x0CarbiterWhere\x12\x1E\x0A\x0Aconstraint\x18\x04 \x01(\x0DR\x0Aconstraint\x126\x0A\x0Fon_conflict_set\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0DonConflictSet\x12:\x0A\x11on_conflict_where\x18\x06 \x01(\x0B2\x0E.pg_query.NodeR\x0FonConflictWhere\x12\$\x0A\x0Eexcl_rel_index\x18\x07 \x01(\x05R\x0CexclRelIndex\x124\x0A\x0Eexcl_rel_tlist\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x0CexclRelTlist\"\xC6\x0F\x0A\x05Query\x124\x0A\x0Ccommand_type\x18\x01 \x01(\x0E2\x11.pg_query.CmdTypeR\x0BcommandType\x128\x0A\x0Cquery_source\x18\x02 \x01(\x0E2\x15.pg_query.QuerySourceR\x0BquerySource\x12\x1E\x0A\x0Bcan_set_tag\x18\x03 \x01(\x08R\x09canSetTag\x121\x0A\x0Cutility_stmt\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x0ButilityStmt\x12'\x0A\x0Fresult_relation\x18\x05 \x01(\x05R\x0EresultRelation\x12\x19\x0A\x08has_aggs\x18\x06 \x01(\x08R\x07hasAggs\x12(\x0A\x10has_window_funcs\x18\x07 \x01(\x08R\x0EhasWindowFuncs\x12&\x0A\x0Fhas_target_srfs\x18\x08 \x01(\x08R\x0DhasTargetSRFs\x12\"\x0A\x0Dhas_sub_links\x18\x09 \x01(\x08R\x0BhasSubLinks\x12&\x0A\x0Fhas_distinct_on\x18\x0A \x01(\x08R\x0DhasDistinctOn\x12#\x0A\x0Dhas_recursive\x18\x0B \x01(\x08R\x0ChasRecursive\x12*\x0A\x11has_modifying_cte\x18\x0C \x01(\x08R\x0FhasModifyingCTE\x12\$\x0A\x0Ehas_for_update\x18\x0D \x01(\x08R\x0ChasForUpdate\x12(\x0A\x10has_row_security\x18\x0E \x01(\x08R\x0EhasRowSecurity\x12\x1B\x0A\x09is_return\x18\x0F \x01(\x08R\x08isReturn\x12)\x0A\x08cte_list\x18\x10 \x03(\x0B2\x0E.pg_query.NodeR\x07cteList\x12&\x0A\x06rtable\x18\x11 \x03(\x0B2\x0E.pg_query.NodeR\x06rtable\x122\x0A\x0Crteperminfos\x18\x12 \x03(\x0B2\x0E.pg_query.NodeR\x0Crteperminfos\x12.\x0A\x08jointree\x18\x13 \x01(\x0B2\x12.pg_query.FromExprR\x08jointree\x12:\x0A\x11merge_action_list\x18\x14 \x03(\x0B2\x0E.pg_query.NodeR\x0FmergeActionList\x122\x0A\x15merge_target_relation\x18\x15 \x01(\x05R\x13mergeTargetRelation\x12@\x0A\x14merge_join_condition\x18\x16 \x01(\x0B2\x0E.pg_query.NodeR\x12mergeJoinCondition\x12/\x0A\x0Btarget_list\x18\x17 \x03(\x0B2\x0E.pg_query.NodeR\x0AtargetList\x124\x0A\x08override\x18\x18 \x01(\x0E2\x18.pg_query.OverridingKindR\x08override\x129\x0A\x0Bon_conflict\x18\x19 \x01(\x0B2\x18.pg_query.OnConflictExprR\x0AonConflict\x125\x0A\x0Ereturning_list\x18\x1A \x03(\x0B2\x0E.pg_query.NodeR\x0DreturningList\x121\x0A\x0Cgroup_clause\x18\x1B \x03(\x0B2\x0E.pg_query.NodeR\x0BgroupClause\x12%\x0A\x0Egroup_distinct\x18\x1C \x01(\x08R\x0DgroupDistinct\x123\x0A\x0Dgrouping_sets\x18\x1D \x03(\x0B2\x0E.pg_query.NodeR\x0CgroupingSets\x12/\x0A\x0Bhaving_qual\x18\x1E \x01(\x0B2\x0E.pg_query.NodeR\x0AhavingQual\x123\x0A\x0Dwindow_clause\x18\x1F \x03(\x0B2\x0E.pg_query.NodeR\x0CwindowClause\x127\x0A\x0Fdistinct_clause\x18 \x03(\x0B2\x0E.pg_query.NodeR\x0EdistinctClause\x12/\x0A\x0Bsort_clause\x18! \x03(\x0B2\x0E.pg_query.NodeR\x0AsortClause\x121\x0A\x0Climit_offset\x18\" \x01(\x0B2\x0E.pg_query.NodeR\x0BlimitOffset\x12/\x0A\x0Blimit_count\x18# \x01(\x0B2\x0E.pg_query.NodeR\x0AlimitCount\x128\x0A\x0Climit_option\x18\$ \x01(\x0E2\x15.pg_query.LimitOptionR\x0BlimitOption\x12+\x0A\x09row_marks\x18% \x03(\x0B2\x0E.pg_query.NodeR\x08rowMarks\x125\x0A\x0Eset_operations\x18& \x01(\x0B2\x0E.pg_query.NodeR\x0DsetOperations\x127\x0A\x0Fconstraint_deps\x18' \x03(\x0B2\x0E.pg_query.NodeR\x0EconstraintDeps\x12<\x0A\x12with_check_options\x18( \x03(\x0B2\x0E.pg_query.NodeR\x10withCheckOptions\x12\$\x0A\x0Dstmt_location\x18) \x01(\x05R\x0Dstmt_location\x12\x1A\x0A\x08stmt_len\x18* \x01(\x05R\x08stmt_len\"\x90\x02\x0A\x08TypeName\x12\$\x0A\x05names\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x05names\x12\x19\x0A\x08type_oid\x18\x02 \x01(\x0DR\x07typeOid\x12\x14\x0A\x05setof\x18\x03 \x01(\x08R\x05setof\x12\x1A\x0A\x08pct_type\x18\x04 \x01(\x08R\x08pct_type\x12(\x0A\x07typmods\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x07typmods\x12\x18\x0A\x07typemod\x18\x06 \x01(\x05R\x07typemod\x121\x0A\x0Carray_bounds\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x0BarrayBounds\x12\x1A\x0A\x08location\x18\x08 \x01(\x05R\x08location\"O\x0A\x09ColumnRef\x12&\x0A\x06fields\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x06fields\x12\x1A\x0A\x08location\x18\x02 \x01(\x05R\x08location\">\x0A\x08ParamRef\x12\x16\x0A\x06number\x18\x01 \x01(\x05R\x06number\x12\x1A\x0A\x08location\x18\x02 \x01(\x05R\x08location\"\xBF\x01\x0A\x06A_Expr\x12)\x0A\x04kind\x18\x01 \x01(\x0E2\x15.pg_query.A_Expr_KindR\x04kind\x12\"\x0A\x04name\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04name\x12\$\x0A\x05lexpr\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x05lexpr\x12\$\x0A\x05rexpr\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x05rexpr\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"y\x0A\x08TypeCast\x12 \x0A\x03arg\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12/\x0A\x09type_name\x18\x02 \x01(\x0B2\x12.pg_query.TypeNameR\x08typeName\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"y\x0A\x0DCollateClause\x12 \x0A\x03arg\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x12*\x0A\x08collname\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x08collname\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"v\x0A\x08RoleSpec\x122\x0A\x08roletype\x18\x01 \x01(\x0E2\x16.pg_query.RoleSpecTypeR\x08roletype\x12\x1A\x0A\x08rolename\x18\x02 \x01(\x09R\x08rolename\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"\xC7\x03\x0A\x08FuncCall\x12*\x0A\x08funcname\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08funcname\x12\"\x0A\x04args\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12,\x0A\x09agg_order\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x09agg_order\x12.\x0A\x0Aagg_filter\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x0Aagg_filter\x12'\x0A\x04over\x18\x05 \x01(\x0B2\x13.pg_query.WindowDefR\x04over\x12*\x0A\x10agg_within_group\x18\x06 \x01(\x08R\x10agg_within_group\x12\x1A\x0A\x08agg_star\x18\x07 \x01(\x08R\x08agg_star\x12\"\x0A\x0Cagg_distinct\x18\x08 \x01(\x08R\x0Cagg_distinct\x12\$\x0A\x0Dfunc_variadic\x18\x09 \x01(\x08R\x0Dfunc_variadic\x126\x0A\x0Afuncformat\x18\x0A \x01(\x0E2\x16.pg_query.CoercionFormR\x0Afuncformat\x12\x1A\x0A\x08location\x18\x0B \x01(\x05R\x08location\"\x08\x0A\x06A_Star\"o\x0A\x09A_Indices\x12\x1A\x0A\x08is_slice\x18\x01 \x01(\x08R\x08is_slice\x12\"\x0A\x04lidx\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04lidx\x12\"\x0A\x04uidx\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x04uidx\"c\x0A\x0DA_Indirection\x12 \x0A\x03arg\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x120\x0A\x0Bindirection\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Bindirection\"U\x0A\x0BA_ArrayExpr\x12*\x0A\x08elements\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08elements\x12\x1A\x0A\x08location\x18\x02 \x01(\x05R\x08location\"\x8F\x01\x0A\x09ResTarget\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x120\x0A\x0Bindirection\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Bindirection\x12 \x0A\x03val\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x03val\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"j\x0A\x0EMultiAssignRef\x12&\x0A\x06source\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x06source\x12\x14\x0A\x05colno\x18\x02 \x01(\x05R\x05colno\x12\x1A\x0A\x08ncolumns\x18\x03 \x01(\x05R\x08ncolumns\"\xDF\x01\x0A\x06SortBy\x12\"\x0A\x04node\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x04node\x123\x0A\x0Asortby_dir\x18\x02 \x01(\x0E2\x13.pg_query.SortByDirR\x0Asortby_dir\x129\x0A\x0Csortby_nulls\x18\x03 \x01(\x0E2\x15.pg_query.SortByNullsR\x0Csortby_nulls\x12%\x0A\x06use_op\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x05useOp\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xCA\x02\x0A\x09WindowDef\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12\x18\x0A\x07refname\x18\x02 \x01(\x09R\x07refname\x129\x0A\x10partition_clause\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0FpartitionClause\x121\x0A\x0Corder_clause\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0BorderClause\x12#\x0A\x0Dframe_options\x18\x05 \x01(\x05R\x0CframeOptions\x121\x0A\x0Cstart_offset\x18\x06 \x01(\x0B2\x0E.pg_query.NodeR\x0BstartOffset\x12-\x0A\x0Aend_offset\x18\x07 \x01(\x0B2\x0E.pg_query.NodeR\x09endOffset\x12\x1A\x0A\x08location\x18\x08 \x01(\x05R\x08location\"}\x0A\x0ERangeSubselect\x12\x18\x0A\x07lateral\x18\x01 \x01(\x08R\x07lateral\x12*\x0A\x08subquery\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x08subquery\x12%\x0A\x05alias\x18\x03 \x01(\x0B2\x0F.pg_query.AliasR\x05alias\"\xF0\x01\x0A\x0DRangeFunction\x12\x18\x0A\x07lateral\x18\x01 \x01(\x08R\x07lateral\x12\x1E\x0A\x0Aordinality\x18\x02 \x01(\x08R\x0Aordinality\x12 \x0A\x0Bis_rowsfrom\x18\x03 \x01(\x08R\x0Bis_rowsfrom\x12,\x0A\x09functions\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x09functions\x12%\x0A\x05alias\x18\x05 \x01(\x0B2\x0F.pg_query.AliasR\x05alias\x12.\x0A\x0Acoldeflist\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x0Acoldeflist\"\x9B\x02\x0A\x0ERangeTableFunc\x12\x18\x0A\x07lateral\x18\x01 \x01(\x08R\x07lateral\x12(\x0A\x07docexpr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x07docexpr\x12(\x0A\x07rowexpr\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x07rowexpr\x12.\x0A\x0Anamespaces\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0Anamespaces\x12(\x0A\x07columns\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x07columns\x12%\x0A\x05alias\x18\x06 \x01(\x0B2\x0F.pg_query.AliasR\x05alias\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\x9E\x02\x0A\x11RangeTableFuncCol\x12\x18\x0A\x07colname\x18\x01 \x01(\x09R\x07colname\x12/\x0A\x09type_name\x18\x02 \x01(\x0B2\x12.pg_query.TypeNameR\x08typeName\x12&\x0A\x0Efor_ordinality\x18\x03 \x01(\x08R\x0Efor_ordinality\x12 \x0A\x0Bis_not_null\x18\x04 \x01(\x08R\x0Bis_not_null\x12(\x0A\x07colexpr\x18\x05 \x01(\x0B2\x0E.pg_query.NodeR\x07colexpr\x12.\x0A\x0Acoldefexpr\x18\x06 \x01(\x0B2\x0E.pg_query.NodeR\x0Acoldefexpr\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\"\xD6\x01\x0A\x10RangeTableSample\x12*\x0A\x08relation\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x08relation\x12&\x0A\x06method\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x06method\x12\"\x0A\x04args\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12.\x0A\x0Arepeatable\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x0Arepeatable\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xEC\x05\x0A\x09ColumnDef\x12\x18\x0A\x07colname\x18\x01 \x01(\x09R\x07colname\x12/\x0A\x09type_name\x18\x02 \x01(\x0B2\x12.pg_query.TypeNameR\x08typeName\x12 \x0A\x0Bcompression\x18\x03 \x01(\x09R\x0Bcompression\x12\x1A\x0A\x08inhcount\x18\x04 \x01(\x05R\x08inhcount\x12\x1A\x0A\x08is_local\x18\x05 \x01(\x08R\x08is_local\x12 \x0A\x0Bis_not_null\x18\x06 \x01(\x08R\x0Bis_not_null\x12\"\x0A\x0Cis_from_type\x18\x07 \x01(\x08R\x0Cis_from_type\x12\x18\x0A\x07storage\x18\x08 \x01(\x09R\x07storage\x12\"\x0A\x0Cstorage_name\x18\x09 \x01(\x09R\x0Cstorage_name\x120\x0A\x0Braw_default\x18\x0A \x01(\x0B2\x0E.pg_query.NodeR\x0Braw_default\x126\x0A\x0Ecooked_default\x18\x0B \x01(\x0B2\x0E.pg_query.NodeR\x0Ecooked_default\x12\x1A\x0A\x08identity\x18\x0C \x01(\x09R\x08identity\x12?\x0A\x11identity_sequence\x18\x0D \x01(\x0B2\x12.pg_query.RangeVarR\x10identitySequence\x12\x1C\x0A\x09generated\x18\x0E \x01(\x09R\x09generated\x128\x0A\x0Bcoll_clause\x18\x0F \x01(\x0B2\x17.pg_query.CollateClauseR\x0AcollClause\x12\x19\x0A\x08coll_oid\x18\x10 \x01(\x0DR\x07collOid\x120\x0A\x0Bconstraints\x18\x11 \x03(\x0B2\x0E.pg_query.NodeR\x0Bconstraints\x12.\x0A\x0Afdwoptions\x18\x12 \x03(\x0B2\x0E.pg_query.NodeR\x0Afdwoptions\x12\x1A\x0A\x08location\x18\x13 \x01(\x05R\x08location\"~\x0A\x0FTableLikeClause\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12\x18\x0A\x07options\x18\x02 \x01(\x0DR\x07options\x12!\x0A\x0Crelation_oid\x18\x03 \x01(\x0DR\x0BrelationOid\"\xE1\x02\x0A\x09IndexElem\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12\"\x0A\x04expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12\"\x0A\x0Cindexcolname\x18\x03 \x01(\x09R\x0Cindexcolname\x12,\x0A\x09collation\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x09collation\x12(\x0A\x07opclass\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x07opclass\x120\x0A\x0Bopclassopts\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x0Bopclassopts\x12/\x0A\x08ordering\x18\x07 \x01(\x0E2\x13.pg_query.SortByDirR\x08ordering\x12=\x0A\x0Enulls_ordering\x18\x08 \x01(\x0E2\x15.pg_query.SortByNullsR\x0Enulls_ordering\"\xBC\x01\x0A\x07DefElem\x12\"\x0A\x0Cdefnamespace\x18\x01 \x01(\x09R\x0Cdefnamespace\x12\x18\x0A\x07defname\x18\x02 \x01(\x09R\x07defname\x12 \x0A\x03arg\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x03arg\x125\x0A\x09defaction\x18\x04 \x01(\x0E2\x17.pg_query.DefElemActionR\x09defaction\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xB5\x01\x0A\x0DLockingClause\x12/\x0A\x0Blocked_rels\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0AlockedRels\x128\x0A\x08strength\x18\x02 \x01(\x0E2\x1C.pg_query.LockClauseStrengthR\x08strength\x129\x0A\x0Bwait_policy\x18\x03 \x01(\x0E2\x18.pg_query.LockWaitPolicyR\x0AwaitPolicy\"\xCE\x01\x0A\x0CXmlSerialize\x125\x0A\x09xmloption\x18\x01 \x01(\x0E2\x17.pg_query.XmlOptionTypeR\x09xmloption\x12\"\x0A\x04expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12/\x0A\x09type_name\x18\x03 \x01(\x0B2\x12.pg_query.TypeNameR\x08typeName\x12\x16\x0A\x06indent\x18\x04 \x01(\x08R\x06indent\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xBB\x01\x0A\x0DPartitionElem\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12\"\x0A\x04expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12,\x0A\x09collation\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x09collation\x12(\x0A\x07opclass\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x07opclass\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\x95\x01\x0A\x0DPartitionSpec\x127\x0A\x08strategy\x18\x01 \x01(\x0E2\x1B.pg_query.PartitionStrategyR\x08strategy\x12/\x0A\x0Bpart_params\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0ApartParams\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"\xB8\x02\x0A\x12PartitionBoundSpec\x12\x1A\x0A\x08strategy\x18\x01 \x01(\x09R\x08strategy\x12\x1E\x0A\x0Ais_default\x18\x02 \x01(\x08R\x0Ais_default\x12\x18\x0A\x07modulus\x18\x03 \x01(\x05R\x07modulus\x12\x1C\x0A\x09remainder\x18\x04 \x01(\x05R\x09remainder\x12.\x0A\x0Alistdatums\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0Alistdatums\x120\x0A\x0Blowerdatums\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x0Blowerdatums\x120\x0A\x0Bupperdatums\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x0Bupperdatums\x12\x1A\x0A\x08location\x18\x08 \x01(\x05R\x08location\"\x8E\x01\x0A\x13PartitionRangeDatum\x125\x0A\x04kind\x18\x01 \x01(\x0E2!.pg_query.PartitionRangeDatumKindR\x04kind\x12\$\x0A\x05value\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x05value\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"\x15\x0A\x13SinglePartitionSpec\"\x8A\x01\x0A\x0CPartitionCmd\x12&\x0A\x04name\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x04name\x122\x0A\x05bound\x18\x02 \x01(\x0B2\x1C.pg_query.PartitionBoundSpecR\x05bound\x12\x1E\x0A\x0Aconcurrent\x18\x03 \x01(\x08R\x0Aconcurrent\"\xB9\x0A\x0A\x0DRangeTblEntry\x12%\x0A\x05alias\x18\x01 \x01(\x0B2\x0F.pg_query.AliasR\x05alias\x12#\x0A\x04eref\x18\x02 \x01(\x0B2\x0F.pg_query.AliasR\x04eref\x12+\x0A\x07rtekind\x18\x03 \x01(\x0E2\x11.pg_query.RTEKindR\x07rtekind\x12\x14\x0A\x05relid\x18\x04 \x01(\x0DR\x05relid\x12\x10\x0A\x03inh\x18\x05 \x01(\x08R\x03inh\x12\x18\x0A\x07relkind\x18\x06 \x01(\x09R\x07relkind\x12 \x0A\x0Brellockmode\x18\x07 \x01(\x05R\x0Brellockmode\x12\$\x0A\x0Dperminfoindex\x18\x08 \x01(\x0DR\x0Dperminfoindex\x12=\x0A\x0Btablesample\x18\x09 \x01(\x0B2\x1B.pg_query.TableSampleClauseR\x0Btablesample\x12+\x0A\x08subquery\x18\x0A \x01(\x0B2\x0F.pg_query.QueryR\x08subquery\x12*\x0A\x10security_barrier\x18\x0B \x01(\x08R\x10security_barrier\x12.\x0A\x08jointype\x18\x0C \x01(\x0E2\x12.pg_query.JoinTypeR\x08jointype\x12&\x0A\x0Ejoinmergedcols\x18\x0D \x01(\x05R\x0Ejoinmergedcols\x124\x0A\x0Djoinaliasvars\x18\x0E \x03(\x0B2\x0E.pg_query.NodeR\x0Djoinaliasvars\x122\x0A\x0Cjoinleftcols\x18\x0F \x03(\x0B2\x0E.pg_query.NodeR\x0Cjoinleftcols\x124\x0A\x0Djoinrightcols\x18\x10 \x03(\x0B2\x0E.pg_query.NodeR\x0Djoinrightcols\x12;\x0A\x10join_using_alias\x18\x11 \x01(\x0B2\x0F.pg_query.AliasR\x10join_using_alias\x12,\x0A\x09functions\x18\x12 \x03(\x0B2\x0E.pg_query.NodeR\x09functions\x12&\x0A\x0Efuncordinality\x18\x13 \x01(\x08R\x0Efuncordinality\x121\x0A\x09tablefunc\x18\x14 \x01(\x0B2\x13.pg_query.TableFuncR\x09tablefunc\x122\x0A\x0Cvalues_lists\x18\x15 \x03(\x0B2\x0E.pg_query.NodeR\x0Cvalues_lists\x12\x18\x0A\x07ctename\x18\x16 \x01(\x09R\x07ctename\x12 \x0A\x0Bctelevelsup\x18\x17 \x01(\x0DR\x0Bctelevelsup\x12&\x0A\x0Eself_reference\x18\x18 \x01(\x08R\x0Eself_reference\x12*\x0A\x08coltypes\x18\x19 \x03(\x0B2\x0E.pg_query.NodeR\x08coltypes\x12.\x0A\x0Acoltypmods\x18\x1A \x03(\x0B2\x0E.pg_query.NodeR\x0Acoltypmods\x124\x0A\x0Dcolcollations\x18\x1B \x03(\x0B2\x0E.pg_query.NodeR\x0Dcolcollations\x12\x18\x0A\x07enrname\x18\x1C \x01(\x09R\x07enrname\x12\x1C\x0A\x09enrtuples\x18\x1D \x01(\x01R\x09enrtuples\x12\x18\x0A\x07lateral\x18\x1E \x01(\x08R\x07lateral\x12\x1C\x0A\x0Ain_from_cl\x18\x1F \x01(\x08R\x08inFromCl\x125\x0A\x0Esecurity_quals\x18 \x03(\x0B2\x0E.pg_query.NodeR\x0DsecurityQuals\"\xF3\x01\x0A\x11RTEPermissionInfo\x12\x14\x0A\x05relid\x18\x01 \x01(\x0DR\x05relid\x12\x10\x0A\x03inh\x18\x02 \x01(\x08R\x03inh\x12%\x0A\x0Erequired_perms\x18\x03 \x01(\x04R\x0DrequiredPerms\x12\"\x0A\x0Dcheck_as_user\x18\x04 \x01(\x0DR\x0BcheckAsUser\x12#\x0A\x0Dselected_cols\x18\x05 \x03(\x04R\x0CselectedCols\x12#\x0A\x0Dinserted_cols\x18\x06 \x03(\x04R\x0CinsertedCols\x12!\x0A\x0Cupdated_cols\x18\x07 \x03(\x04R\x0BupdatedCols\"\xE0\x02\x0A\x10RangeTblFunction\x12*\x0A\x08funcexpr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x08funcexpr\x12\"\x0A\x0Cfunccolcount\x18\x02 \x01(\x05R\x0Cfunccolcount\x122\x0A\x0Cfunccolnames\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0Cfunccolnames\x122\x0A\x0Cfunccoltypes\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0Cfunccoltypes\x126\x0A\x0Efunccoltypmods\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0Efunccoltypmods\x12<\x0A\x11funccolcollations\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x11funccolcollations\x12\x1E\x0A\x0Afuncparams\x18\x07 \x03(\x04R\x0Afuncparams\"\x87\x01\x0A\x11TableSampleClause\x12\x1E\x0A\x0Atsmhandler\x18\x01 \x01(\x0DR\x0Atsmhandler\x12\"\x0A\x04args\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12.\x0A\x0Arepeatable\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x0Arepeatable\"\xAC\x01\x0A\x0FWithCheckOption\x12%\x0A\x04kind\x18\x01 \x01(\x0E2\x11.pg_query.WCOKindR\x04kind\x12\x18\x0A\x07relname\x18\x02 \x01(\x09R\x07relname\x12\x18\x0A\x07polname\x18\x03 \x01(\x09R\x07polname\x12\"\x0A\x04qual\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x04qual\x12\x1A\x0A\x08cascaded\x18\x05 \x01(\x08R\x08cascaded\"\xA8\x01\x0A\x0FSortGroupClause\x12+\x0A\x12tle_sort_group_ref\x18\x01 \x01(\x0DR\x0FtleSortGroupRef\x12\x12\x0A\x04eqop\x18\x02 \x01(\x0DR\x04eqop\x12\x16\x0A\x06sortop\x18\x03 \x01(\x0DR\x06sortop\x12 \x0A\x0Bnulls_first\x18\x04 \x01(\x08R\x0Bnulls_first\x12\x1A\x0A\x08hashable\x18\x05 \x01(\x08R\x08hashable\"\x82\x01\x0A\x0BGroupingSet\x12-\x0A\x04kind\x18\x01 \x01(\x0E2\x19.pg_query.GroupingSetKindR\x04kind\x12(\x0A\x07content\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07content\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"\xBD\x04\x0A\x0CWindowClause\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12\x18\x0A\x07refname\x18\x02 \x01(\x09R\x07refname\x129\x0A\x10partition_clause\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0FpartitionClause\x121\x0A\x0Corder_clause\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0BorderClause\x12#\x0A\x0Dframe_options\x18\x05 \x01(\x05R\x0CframeOptions\x121\x0A\x0Cstart_offset\x18\x06 \x01(\x0B2\x0E.pg_query.NodeR\x0BstartOffset\x12-\x0A\x0Aend_offset\x18\x07 \x01(\x0B2\x0E.pg_query.NodeR\x09endOffset\x12-\x0A\x13start_in_range_func\x18\x08 \x01(\x0DR\x10startInRangeFunc\x12)\x0A\x11end_in_range_func\x18\x09 \x01(\x0DR\x0EendInRangeFunc\x12\"\x0A\x0Din_range_coll\x18\x0A \x01(\x0DR\x0BinRangeColl\x12 \x0A\x0Cin_range_asc\x18\x0B \x01(\x08R\x0AinRangeAsc\x12/\x0A\x14in_range_nulls_first\x18\x0C \x01(\x08R\x11inRangeNullsFirst\x12\x16\x0A\x06winref\x18\x0D \x01(\x0DR\x06winref\x12!\x0A\x0Ccopied_order\x18\x0E \x01(\x08R\x0BcopiedOrder\"\xB7\x01\x0A\x0DRowMarkClause\x12\x10\x0A\x03rti\x18\x01 \x01(\x0DR\x03rti\x128\x0A\x08strength\x18\x02 \x01(\x0E2\x1C.pg_query.LockClauseStrengthR\x08strength\x129\x0A\x0Bwait_policy\x18\x03 \x01(\x0E2\x18.pg_query.LockWaitPolicyR\x0AwaitPolicy\x12\x1F\x0A\x0Bpushed_down\x18\x04 \x01(\x08R\x0ApushedDown\"j\x0A\x0AWithClause\x12\"\x0A\x04ctes\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x04ctes\x12\x1C\x0A\x09recursive\x18\x02 \x01(\x08R\x09recursive\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"\xA7\x01\x0A\x0BInferClause\x12/\x0A\x0Bindex_elems\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0AindexElems\x121\x0A\x0Cwhere_clause\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\x12\x18\x0A\x07conname\x18\x03 \x01(\x09R\x07conname\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xF3\x01\x0A\x10OnConflictClause\x122\x0A\x06action\x18\x01 \x01(\x0E2\x1A.pg_query.OnConflictActionR\x06action\x12+\x0A\x05infer\x18\x02 \x01(\x0B2\x15.pg_query.InferClauseR\x05infer\x12/\x0A\x0Btarget_list\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0AtargetList\x121\x0A\x0Cwhere_clause\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xC9\x01\x0A\x0FCTESearchClause\x128\x0A\x0Fsearch_col_list\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Fsearch_col_list\x122\x0A\x14search_breadth_first\x18\x02 \x01(\x08R\x14search_breadth_first\x12,\x0A\x11search_seq_column\x18\x03 \x01(\x09R\x11search_seq_column\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xF2\x03\x0A\x0ECTECycleClause\x126\x0A\x0Ecycle_col_list\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Ecycle_col_list\x12,\x0A\x11cycle_mark_column\x18\x02 \x01(\x09R\x11cycle_mark_column\x12:\x0A\x10cycle_mark_value\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x10cycle_mark_value\x12>\x0A\x12cycle_mark_default\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x12cycle_mark_default\x12,\x0A\x11cycle_path_column\x18\x05 \x01(\x09R\x11cycle_path_column\x12\x1A\x0A\x08location\x18\x06 \x01(\x05R\x08location\x12(\x0A\x0Fcycle_mark_type\x18\x07 \x01(\x0DR\x0Fcycle_mark_type\x12,\x0A\x11cycle_mark_typmod\x18\x08 \x01(\x05R\x11cycle_mark_typmod\x122\x0A\x14cycle_mark_collation\x18\x09 \x01(\x0DR\x14cycle_mark_collation\x12(\x0A\x0Fcycle_mark_neop\x18\x0A \x01(\x0DR\x0Fcycle_mark_neop\"\x88\x05\x0A\x0FCommonTableExpr\x12\x18\x0A\x07ctename\x18\x01 \x01(\x09R\x07ctename\x124\x0A\x0Daliascolnames\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Daliascolnames\x12B\x0A\x0Fctematerialized\x18\x03 \x01(\x0E2\x18.pg_query.CTEMaterializeR\x0Fctematerialized\x12*\x0A\x08ctequery\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x08ctequery\x12?\x0A\x0Dsearch_clause\x18\x05 \x01(\x0B2\x19.pg_query.CTESearchClauseR\x0Dsearch_clause\x12<\x0A\x0Ccycle_clause\x18\x06 \x01(\x0B2\x18.pg_query.CTECycleClauseR\x0Ccycle_clause\x12\x1A\x0A\x08location\x18\x07 \x01(\x05R\x08location\x12\"\x0A\x0Ccterecursive\x18\x08 \x01(\x08R\x0Ccterecursive\x12 \x0A\x0Bcterefcount\x18\x09 \x01(\x05R\x0Bcterefcount\x120\x0A\x0Bctecolnames\x18\x0A \x03(\x0B2\x0E.pg_query.NodeR\x0Bctecolnames\x120\x0A\x0Bctecoltypes\x18\x0B \x03(\x0B2\x0E.pg_query.NodeR\x0Bctecoltypes\x124\x0A\x0Dctecoltypmods\x18\x0C \x03(\x0B2\x0E.pg_query.NodeR\x0Dctecoltypmods\x12:\x0A\x10ctecolcollations\x18\x0D \x03(\x0B2\x0E.pg_query.NodeR\x10ctecolcollations\"\xBD\x02\x0A\x0FMergeWhenClause\x127\x0A\x0Amatch_kind\x18\x01 \x01(\x0E2\x18.pg_query.MergeMatchKindR\x09matchKind\x124\x0A\x0Ccommand_type\x18\x02 \x01(\x0E2\x11.pg_query.CmdTypeR\x0BcommandType\x124\x0A\x08override\x18\x03 \x01(\x0E2\x18.pg_query.OverridingKindR\x08override\x12,\x0A\x09condition\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x09condition\x12/\x0A\x0Btarget_list\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0AtargetList\x12&\x0A\x06values\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x06values\"Y\x0A\x11TriggerTransition\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12\x15\x0A\x06is_new\x18\x02 \x01(\x08R\x05isNew\x12\x19\x0A\x08is_table\x18\x03 \x01(\x08R\x07isTable\"t\x0A\x0AJsonOutput\x12/\x0A\x09type_name\x18\x01 \x01(\x0B2\x12.pg_query.TypeNameR\x08typeName\x125\x0A\x09returning\x18\x02 \x01(\x0B2\x17.pg_query.JsonReturningR\x09returning\"M\x0A\x0CJsonArgument\x12)\x0A\x03val\x18\x01 \x01(\x0B2\x17.pg_query.JsonValueExprR\x03val\x12\x12\x0A\x04name\x18\x02 \x01(\x09R\x04name\"\xFA\x03\x0A\x0CJsonFuncExpr\x12\$\x0A\x02op\x18\x01 \x01(\x0E2\x14.pg_query.JsonExprOpR\x02op\x12 \x0A\x0Bcolumn_name\x18\x02 \x01(\x09R\x0Bcolumn_name\x12;\x0A\x0Ccontext_item\x18\x03 \x01(\x0B2\x17.pg_query.JsonValueExprR\x0Ccontext_item\x12*\x0A\x08pathspec\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x08pathspec\x12(\x0A\x07passing\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x07passing\x12,\x0A\x06output\x18\x06 \x01(\x0B2\x14.pg_query.JsonOutputR\x06output\x122\x0A\x08on_empty\x18\x07 \x01(\x0B2\x16.pg_query.JsonBehaviorR\x08on_empty\x122\x0A\x08on_error\x18\x08 \x01(\x0B2\x16.pg_query.JsonBehaviorR\x08on_error\x12/\x0A\x07wrapper\x18\x09 \x01(\x0E2\x15.pg_query.JsonWrapperR\x07wrapper\x12,\x0A\x06quotes\x18\x0A \x01(\x0E2\x14.pg_query.JsonQuotesR\x06quotes\x12\x1A\x0A\x08location\x18\x0B \x01(\x05R\x08location\"\x91\x01\x0A\x11JsonTablePathSpec\x12&\x0A\x06string\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x06string\x12\x12\x0A\x04name\x18\x02 \x01(\x09R\x04name\x12\$\x0A\x0Dname_location\x18\x03 \x01(\x05R\x0Dname_location\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xE6\x02\x0A\x09JsonTable\x12;\x0A\x0Ccontext_item\x18\x01 \x01(\x0B2\x17.pg_query.JsonValueExprR\x0Ccontext_item\x127\x0A\x08pathspec\x18\x02 \x01(\x0B2\x1B.pg_query.JsonTablePathSpecR\x08pathspec\x12(\x0A\x07passing\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07passing\x12(\x0A\x07columns\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x07columns\x122\x0A\x08on_error\x18\x05 \x01(\x0B2\x16.pg_query.JsonBehaviorR\x08on_error\x12%\x0A\x05alias\x18\x06 \x01(\x0B2\x0F.pg_query.AliasR\x05alias\x12\x18\x0A\x07lateral\x18\x07 \x01(\x08R\x07lateral\x12\x1A\x0A\x08location\x18\x08 \x01(\x05R\x08location\"\x83\x04\x0A\x0FJsonTableColumn\x127\x0A\x07coltype\x18\x01 \x01(\x0E2\x1D.pg_query.JsonTableColumnTypeR\x07coltype\x12\x12\x0A\x04name\x18\x02 \x01(\x09R\x04name\x12/\x0A\x09type_name\x18\x03 \x01(\x0B2\x12.pg_query.TypeNameR\x08typeName\x127\x0A\x08pathspec\x18\x04 \x01(\x0B2\x1B.pg_query.JsonTablePathSpecR\x08pathspec\x12,\x0A\x06format\x18\x05 \x01(\x0B2\x14.pg_query.JsonFormatR\x06format\x12/\x0A\x07wrapper\x18\x06 \x01(\x0E2\x15.pg_query.JsonWrapperR\x07wrapper\x12,\x0A\x06quotes\x18\x07 \x01(\x0E2\x14.pg_query.JsonQuotesR\x06quotes\x12(\x0A\x07columns\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x07columns\x122\x0A\x08on_empty\x18\x09 \x01(\x0B2\x16.pg_query.JsonBehaviorR\x08on_empty\x122\x0A\x08on_error\x18\x0A \x01(\x0B2\x16.pg_query.JsonBehaviorR\x08on_error\x12\x1A\x0A\x08location\x18\x0B \x01(\x05R\x08location\"_\x0A\x0CJsonKeyValue\x12 \x0A\x03key\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x03key\x12-\x0A\x05value\x18\x02 \x01(\x0B2\x17.pg_query.JsonValueExprR\x05value\"\xA8\x01\x0A\x0DJsonParseExpr\x12+\x0A\x04expr\x18\x01 \x01(\x0B2\x17.pg_query.JsonValueExprR\x04expr\x12,\x0A\x06output\x18\x02 \x01(\x0B2\x14.pg_query.JsonOutputR\x06output\x12 \x0A\x0Bunique_keys\x18\x03 \x01(\x08R\x0Bunique_keys\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"~\x0A\x0EJsonScalarExpr\x12\"\x0A\x04expr\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\x12,\x0A\x06output\x18\x02 \x01(\x0B2\x14.pg_query.JsonOutputR\x06output\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"\x8A\x01\x0A\x11JsonSerializeExpr\x12+\x0A\x04expr\x18\x01 \x01(\x0B2\x17.pg_query.JsonValueExprR\x04expr\x12,\x0A\x06output\x18\x02 \x01(\x0B2\x14.pg_query.JsonOutputR\x06output\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"\xC7\x01\x0A\x15JsonObjectConstructor\x12\$\x0A\x05exprs\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x05exprs\x12,\x0A\x06output\x18\x02 \x01(\x0B2\x14.pg_query.JsonOutputR\x06output\x12&\x0A\x0Eabsent_on_null\x18\x03 \x01(\x08R\x0Eabsent_on_null\x12\x16\x0A\x06unique\x18\x04 \x01(\x08R\x06unique\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xAE\x01\x0A\x14JsonArrayConstructor\x12\$\x0A\x05exprs\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x05exprs\x12,\x0A\x06output\x18\x02 \x01(\x0B2\x14.pg_query.JsonOutputR\x06output\x12&\x0A\x0Eabsent_on_null\x18\x03 \x01(\x08R\x0Eabsent_on_null\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xE1\x01\x0A\x19JsonArrayQueryConstructor\x12\$\x0A\x05query\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x05query\x12,\x0A\x06output\x18\x02 \x01(\x0B2\x14.pg_query.JsonOutputR\x06output\x12,\x0A\x06format\x18\x03 \x01(\x0B2\x14.pg_query.JsonFormatR\x06format\x12&\x0A\x0Eabsent_on_null\x18\x04 \x01(\x08R\x0Eabsent_on_null\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xE5\x01\x0A\x12JsonAggConstructor\x12,\x0A\x06output\x18\x01 \x01(\x0B2\x14.pg_query.JsonOutputR\x06output\x12.\x0A\x0Aagg_filter\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x0Aagg_filter\x12,\x0A\x09agg_order\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x09agg_order\x12'\x0A\x04over\x18\x04 \x01(\x0B2\x13.pg_query.WindowDefR\x04over\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xB9\x01\x0A\x0DJsonObjectAgg\x12>\x0A\x0Bconstructor\x18\x01 \x01(\x0B2\x1C.pg_query.JsonAggConstructorR\x0Bconstructor\x12(\x0A\x03arg\x18\x02 \x01(\x0B2\x16.pg_query.JsonKeyValueR\x03arg\x12&\x0A\x0Eabsent_on_null\x18\x03 \x01(\x08R\x0Eabsent_on_null\x12\x16\x0A\x06unique\x18\x04 \x01(\x08R\x06unique\"\xA1\x01\x0A\x0CJsonArrayAgg\x12>\x0A\x0Bconstructor\x18\x01 \x01(\x0B2\x1C.pg_query.JsonAggConstructorR\x0Bconstructor\x12)\x0A\x03arg\x18\x02 \x01(\x0B2\x17.pg_query.JsonValueExprR\x03arg\x12&\x0A\x0Eabsent_on_null\x18\x03 \x01(\x08R\x0Eabsent_on_null\"o\x0A\x07RawStmt\x12\"\x0A\x04stmt\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x04stmt\x12\$\x0A\x0Dstmt_location\x18\x02 \x01(\x05R\x0Dstmt_location\x12\x1A\x0A\x08stmt_len\x18\x03 \x01(\x05R\x08stmt_len\"\xFF\x02\x0A\x0AInsertStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12\"\x0A\x04cols\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04cols\x12/\x0A\x0Bselect_stmt\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x0AselectStmt\x12H\x0A\x12on_conflict_clause\x18\x04 \x01(\x0B2\x1A.pg_query.OnConflictClauseR\x10onConflictClause\x125\x0A\x0Ereturning_list\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0DreturningList\x125\x0A\x0Bwith_clause\x18\x06 \x01(\x0B2\x14.pg_query.WithClauseR\x0AwithClause\x124\x0A\x08override\x18\x07 \x01(\x0E2\x18.pg_query.OverridingKindR\x08override\"\x90\x02\x0A\x0ADeleteStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x121\x0A\x0Cusing_clause\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0BusingClause\x121\x0A\x0Cwhere_clause\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\x125\x0A\x0Ereturning_list\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0DreturningList\x125\x0A\x0Bwith_clause\x18\x05 \x01(\x0B2\x14.pg_query.WithClauseR\x0AwithClause\"\xBF\x02\x0A\x0AUpdateStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12/\x0A\x0Btarget_list\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0AtargetList\x121\x0A\x0Cwhere_clause\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\x12/\x0A\x0Bfrom_clause\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0AfromClause\x125\x0A\x0Ereturning_list\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0DreturningList\x125\x0A\x0Bwith_clause\x18\x06 \x01(\x0B2\x14.pg_query.WithClauseR\x0AwithClause\"\xD7\x02\x0A\x09MergeStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x127\x0A\x0Fsource_relation\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x0EsourceRelation\x125\x0A\x0Ejoin_condition\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x0DjoinCondition\x12<\x0A\x12merge_when_clauses\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x10mergeWhenClauses\x125\x0A\x0Ereturning_list\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0DreturningList\x125\x0A\x0Bwith_clause\x18\x06 \x01(\x0B2\x14.pg_query.WithClauseR\x0AwithClause\"\xD3\x07\x0A\x0ASelectStmt\x127\x0A\x0Fdistinct_clause\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0EdistinctClause\x125\x0A\x0Binto_clause\x18\x02 \x01(\x0B2\x14.pg_query.IntoClauseR\x0AintoClause\x12/\x0A\x0Btarget_list\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0AtargetList\x12/\x0A\x0Bfrom_clause\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0AfromClause\x121\x0A\x0Cwhere_clause\x18\x05 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\x121\x0A\x0Cgroup_clause\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x0BgroupClause\x12%\x0A\x0Egroup_distinct\x18\x07 \x01(\x08R\x0DgroupDistinct\x123\x0A\x0Dhaving_clause\x18\x08 \x01(\x0B2\x0E.pg_query.NodeR\x0ChavingClause\x123\x0A\x0Dwindow_clause\x18\x09 \x03(\x0B2\x0E.pg_query.NodeR\x0CwindowClause\x121\x0A\x0Cvalues_lists\x18\x0A \x03(\x0B2\x0E.pg_query.NodeR\x0BvaluesLists\x12/\x0A\x0Bsort_clause\x18\x0B \x03(\x0B2\x0E.pg_query.NodeR\x0AsortClause\x121\x0A\x0Climit_offset\x18\x0C \x01(\x0B2\x0E.pg_query.NodeR\x0BlimitOffset\x12/\x0A\x0Blimit_count\x18\x0D \x01(\x0B2\x0E.pg_query.NodeR\x0AlimitCount\x128\x0A\x0Climit_option\x18\x0E \x01(\x0E2\x15.pg_query.LimitOptionR\x0BlimitOption\x125\x0A\x0Elocking_clause\x18\x0F \x03(\x0B2\x0E.pg_query.NodeR\x0DlockingClause\x125\x0A\x0Bwith_clause\x18\x10 \x01(\x0B2\x14.pg_query.WithClauseR\x0AwithClause\x12&\x0A\x02op\x18\x11 \x01(\x0E2\x16.pg_query.SetOperationR\x02op\x12\x10\x0A\x03all\x18\x12 \x01(\x08R\x03all\x12(\x0A\x04larg\x18\x13 \x01(\x0B2\x14.pg_query.SelectStmtR\x04larg\x12(\x0A\x04rarg\x18\x14 \x01(\x0B2\x14.pg_query.SelectStmtR\x04rarg\"\xDE\x02\x0A\x10SetOperationStmt\x12&\x0A\x02op\x18\x01 \x01(\x0E2\x16.pg_query.SetOperationR\x02op\x12\x10\x0A\x03all\x18\x02 \x01(\x08R\x03all\x12\"\x0A\x04larg\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x04larg\x12\"\x0A\x04rarg\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x04rarg\x12+\x0A\x09col_types\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x08colTypes\x12/\x0A\x0Bcol_typmods\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x0AcolTypmods\x125\x0A\x0Ecol_collations\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x0DcolCollations\x123\x0A\x0Dgroup_clauses\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x0CgroupClauses\":\x0A\x0AReturnStmt\x12,\x0A\x09returnval\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x09returnval\"\xB0\x01\x0A\x0CPLAssignStmt\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x120\x0A\x0Bindirection\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Bindirection\x12\x16\x0A\x06nnames\x18\x03 \x01(\x05R\x06nnames\x12&\x0A\x03val\x18\x04 \x01(\x0B2\x14.pg_query.SelectStmtR\x03val\x12\x1A\x0A\x08location\x18\x05 \x01(\x05R\x08location\"\xB9\x01\x0A\x10CreateSchemaStmt\x12\x1E\x0A\x0Aschemaname\x18\x01 \x01(\x09R\x0Aschemaname\x12.\x0A\x08authrole\x18\x02 \x01(\x0B2\x12.pg_query.RoleSpecR\x08authrole\x12/\x0A\x0Bschema_elts\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0AschemaElts\x12\$\x0A\x0Dif_not_exists\x18\x04 \x01(\x08R\x0Dif_not_exists\"\xB4\x01\x0A\x0EAlterTableStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12\"\x0A\x04cmds\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04cmds\x12.\x0A\x07objtype\x18\x03 \x01(\x0E2\x14.pg_query.ObjectTypeR\x07objtype\x12\x1E\x0A\x0Amissing_ok\x18\x04 \x01(\x08R\x0Amissing_ok\"O\x0A\x13ReplicaIdentityStmt\x12\$\x0A\x0Didentity_type\x18\x01 \x01(\x09R\x0Didentity_type\x12\x12\x0A\x04name\x18\x02 \x01(\x09R\x04name\"\xA9\x02\x0A\x0DAlterTableCmd\x122\x0A\x07subtype\x18\x01 \x01(\x0E2\x18.pg_query.AlterTableTypeR\x07subtype\x12\x12\x0A\x04name\x18\x02 \x01(\x09R\x04name\x12\x10\x0A\x03num\x18\x03 \x01(\x05R\x03num\x12.\x0A\x08newowner\x18\x04 \x01(\x0B2\x12.pg_query.RoleSpecR\x08newowner\x12 \x0A\x03def\x18\x05 \x01(\x0B2\x0E.pg_query.NodeR\x03def\x122\x0A\x08behavior\x18\x06 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\x12\x1E\x0A\x0Amissing_ok\x18\x07 \x01(\x08R\x0Amissing_ok\x12\x18\x0A\x07recurse\x18\x08 \x01(\x08R\x07recurse\"@\x0A\x12AlterCollationStmt\x12*\x0A\x08collname\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08collname\"\xE2\x01\x0A\x0FAlterDomainStmt\x12\x18\x0A\x07subtype\x18\x01 \x01(\x09R\x07subtype\x12+\x0A\x09type_name\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x08typeName\x12\x12\x0A\x04name\x18\x03 \x01(\x09R\x04name\x12 \x0A\x03def\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x03def\x122\x0A\x08behavior\x18\x05 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\x12\x1E\x0A\x0Amissing_ok\x18\x06 \x01(\x08R\x0Amissing_ok\"\x9A\x03\x0A\x09GrantStmt\x12\x1A\x0A\x08is_grant\x18\x01 \x01(\x08R\x08is_grant\x125\x0A\x08targtype\x18\x02 \x01(\x0E2\x19.pg_query.GrantTargetTypeR\x08targtype\x12.\x0A\x07objtype\x18\x03 \x01(\x0E2\x14.pg_query.ObjectTypeR\x07objtype\x12(\x0A\x07objects\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x07objects\x12.\x0A\x0Aprivileges\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0Aprivileges\x12*\x0A\x08grantees\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x08grantees\x12\"\x0A\x0Cgrant_option\x18\x07 \x01(\x08R\x0Cgrant_option\x12,\x0A\x07grantor\x18\x08 \x01(\x0B2\x12.pg_query.RoleSpecR\x07grantor\x122\x0A\x08behavior\x18\x09 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\"\xC2\x01\x0A\x0EObjectWithArgs\x12(\x0A\x07objname\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x07objname\x12(\x0A\x07objargs\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07objargs\x120\x0A\x0Bobjfuncargs\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0Bobjfuncargs\x12*\x0A\x10args_unspecified\x18\x04 \x01(\x08R\x10args_unspecified\"N\x0A\x0AAccessPriv\x12\x1C\x0A\x09priv_name\x18\x01 \x01(\x09R\x09priv_name\x12\"\x0A\x04cols\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04cols\"\x9B\x02\x0A\x0DGrantRoleStmt\x124\x0A\x0Dgranted_roles\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Dgranted_roles\x124\x0A\x0Dgrantee_roles\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Dgrantee_roles\x12\x1A\x0A\x08is_grant\x18\x03 \x01(\x08R\x08is_grant\x12 \x0A\x03opt\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x03opt\x12,\x0A\x07grantor\x18\x05 \x01(\x0B2\x12.pg_query.RoleSpecR\x07grantor\x122\x0A\x08behavior\x18\x06 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\"s\x0A\x1AAlterDefaultPrivilegesStmt\x12(\x0A\x07options\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12+\x0A\x06action\x18\x02 \x01(\x0B2\x13.pg_query.GrantStmtR\x06action\"\xBD\x02\x0A\x08CopyStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12\$\x0A\x05query\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x05query\x12(\x0A\x07attlist\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07attlist\x12\x18\x0A\x07is_from\x18\x04 \x01(\x08R\x07is_from\x12\x1E\x0A\x0Ais_program\x18\x05 \x01(\x08R\x0Ais_program\x12\x1A\x0A\x08filename\x18\x06 \x01(\x09R\x08filename\x12(\x0A\x07options\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x121\x0A\x0Cwhere_clause\x18\x08 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\"\x94\x01\x0A\x0FVariableSetStmt\x12-\x0A\x04kind\x18\x01 \x01(\x0E2\x19.pg_query.VariableSetKindR\x04kind\x12\x12\x0A\x04name\x18\x02 \x01(\x09R\x04name\x12\"\x0A\x04args\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x1A\x0A\x08is_local\x18\x04 \x01(\x08R\x08is_local\"&\x0A\x10VariableShowStmt\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\"\xCB\x04\x0A\x0ACreateStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12-\x0A\x0Atable_elts\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x09tableElts\x123\x0A\x0Dinh_relations\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0CinhRelations\x12:\x0A\x09partbound\x18\x04 \x01(\x0B2\x1C.pg_query.PartitionBoundSpecR\x09partbound\x123\x0A\x08partspec\x18\x05 \x01(\x0B2\x17.pg_query.PartitionSpecR\x08partspec\x123\x0A\x0Bof_typename\x18\x06 \x01(\x0B2\x12.pg_query.TypeNameR\x0AofTypename\x120\x0A\x0Bconstraints\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x0Bconstraints\x12(\x0A\x07options\x18\x08 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x124\x0A\x08oncommit\x18\x09 \x01(\x0E2\x18.pg_query.OnCommitActionR\x08oncommit\x12&\x0A\x0Etablespacename\x18\x0A \x01(\x09R\x0Etablespacename\x12#\x0A\x0Daccess_method\x18\x0B \x01(\x09R\x0CaccessMethod\x12\$\x0A\x0Dif_not_exists\x18\x0C \x01(\x08R\x0Dif_not_exists\"\xFA\x09\x0A\x0AConstraint\x12.\x0A\x07contype\x18\x01 \x01(\x0E2\x14.pg_query.ConstrTypeR\x07contype\x12\x18\x0A\x07conname\x18\x02 \x01(\x09R\x07conname\x12\x1E\x0A\x0Adeferrable\x18\x03 \x01(\x08R\x0Adeferrable\x12\"\x0A\x0Cinitdeferred\x18\x04 \x01(\x08R\x0Cinitdeferred\x12(\x0A\x0Fskip_validation\x18\x05 \x01(\x08R\x0Fskip_validation\x12(\x0A\x0Finitially_valid\x18\x06 \x01(\x08R\x0Finitially_valid\x12\$\x0A\x0Dis_no_inherit\x18\x07 \x01(\x08R\x0Dis_no_inherit\x12*\x0A\x08raw_expr\x18\x08 \x01(\x0B2\x0E.pg_query.NodeR\x08raw_expr\x12 \x0A\x0Bcooked_expr\x18\x09 \x01(\x09R\x0Bcooked_expr\x12&\x0A\x0Egenerated_when\x18\x0A \x01(\x09R\x0Egenerated_when\x12\x1A\x0A\x08inhcount\x18\x0B \x01(\x05R\x08inhcount\x12.\x0A\x12nulls_not_distinct\x18\x0C \x01(\x08R\x12nulls_not_distinct\x12\"\x0A\x04keys\x18\x0D \x03(\x0B2\x0E.pg_query.NodeR\x04keys\x12,\x0A\x09including\x18\x0E \x03(\x0B2\x0E.pg_query.NodeR\x09including\x12.\x0A\x0Aexclusions\x18\x0F \x03(\x0B2\x0E.pg_query.NodeR\x0Aexclusions\x12(\x0A\x07options\x18\x10 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12\x1C\x0A\x09indexname\x18\x11 \x01(\x09R\x09indexname\x12\x1E\x0A\x0Aindexspace\x18\x12 \x01(\x09R\x0Aindexspace\x122\x0A\x14reset_default_tblspc\x18\x13 \x01(\x08R\x14reset_default_tblspc\x12\$\x0A\x0Daccess_method\x18\x14 \x01(\x09R\x0Daccess_method\x122\x0A\x0Cwhere_clause\x18\x15 \x01(\x0B2\x0E.pg_query.NodeR\x0Cwhere_clause\x12,\x0A\x07pktable\x18\x16 \x01(\x0B2\x12.pg_query.RangeVarR\x07pktable\x12*\x0A\x08fk_attrs\x18\x17 \x03(\x0B2\x0E.pg_query.NodeR\x08fk_attrs\x12*\x0A\x08pk_attrs\x18\x18 \x03(\x0B2\x0E.pg_query.NodeR\x08pk_attrs\x12\"\x0A\x0Cfk_matchtype\x18\x19 \x01(\x09R\x0Cfk_matchtype\x12\$\x0A\x0Dfk_upd_action\x18\x1A \x01(\x09R\x0Dfk_upd_action\x12\$\x0A\x0Dfk_del_action\x18\x1B \x01(\x09R\x0Dfk_del_action\x128\x0A\x0Ffk_del_set_cols\x18\x1C \x03(\x0B2\x0E.pg_query.NodeR\x0Ffk_del_set_cols\x124\x0A\x0Dold_conpfeqop\x18\x1D \x03(\x0B2\x0E.pg_query.NodeR\x0Dold_conpfeqop\x12(\x0A\x0Fold_pktable_oid\x18\x1E \x01(\x0DR\x0Fold_pktable_oid\x12\x1A\x0A\x08location\x18\x1F \x01(\x05R\x08location\"\xAE\x01\x0A\x14CreateTableSpaceStmt\x12&\x0A\x0Etablespacename\x18\x01 \x01(\x09R\x0Etablespacename\x12(\x0A\x05owner\x18\x02 \x01(\x0B2\x12.pg_query.RoleSpecR\x05owner\x12\x1A\x0A\x08location\x18\x03 \x01(\x09R\x08location\x12(\x0A\x07options\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\\\x0A\x12DropTableSpaceStmt\x12&\x0A\x0Etablespacename\x18\x01 \x01(\x09R\x0Etablespacename\x12\x1E\x0A\x0Amissing_ok\x18\x02 \x01(\x08R\x0Amissing_ok\"\x89\x01\x0A\x1AAlterTableSpaceOptionsStmt\x12&\x0A\x0Etablespacename\x18\x01 \x01(\x09R\x0Etablespacename\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12\x19\x0A\x08is_reset\x18\x03 \x01(\x08R\x07isReset\"\xE7\x01\x0A\x15AlterTableMoveAllStmt\x120\x0A\x13orig_tablespacename\x18\x01 \x01(\x09R\x13orig_tablespacename\x12.\x0A\x07objtype\x18\x02 \x01(\x0E2\x14.pg_query.ObjectTypeR\x07objtype\x12\$\x0A\x05roles\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x05roles\x12.\x0A\x12new_tablespacename\x18\x04 \x01(\x09R\x12new_tablespacename\x12\x16\x0A\x06nowait\x18\x05 \x01(\x08R\x06nowait\"\x7F\x0A\x13CreateExtensionStmt\x12\x18\x0A\x07extname\x18\x01 \x01(\x09R\x07extname\x12\$\x0A\x0Dif_not_exists\x18\x02 \x01(\x08R\x0Dif_not_exists\x12(\x0A\x07options\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"X\x0A\x12AlterExtensionStmt\x12\x18\x0A\x07extname\x18\x01 \x01(\x09R\x07extname\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\xA6\x01\x0A\x1AAlterExtensionContentsStmt\x12\x18\x0A\x07extname\x18\x01 \x01(\x09R\x07extname\x12\x16\x0A\x06action\x18\x02 \x01(\x05R\x06action\x12.\x0A\x07objtype\x18\x03 \x01(\x0E2\x14.pg_query.ObjectTypeR\x07objtype\x12&\x0A\x06object\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x06object\"\x87\x01\x0A\x0DCreateFdwStmt\x12\x18\x0A\x07fdwname\x18\x01 \x01(\x09R\x07fdwname\x122\x0A\x0Cfunc_options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Cfunc_options\x12(\x0A\x07options\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\x86\x01\x0A\x0CAlterFdwStmt\x12\x18\x0A\x07fdwname\x18\x01 \x01(\x09R\x07fdwname\x122\x0A\x0Cfunc_options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Cfunc_options\x12(\x0A\x07options\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\xDD\x01\x0A\x17CreateForeignServerStmt\x12\x1E\x0A\x0Aservername\x18\x01 \x01(\x09R\x0Aservername\x12\x1E\x0A\x0Aservertype\x18\x02 \x01(\x09R\x0Aservertype\x12\x18\x0A\x07version\x18\x03 \x01(\x09R\x07version\x12\x18\x0A\x07fdwname\x18\x04 \x01(\x09R\x07fdwname\x12\$\x0A\x0Dif_not_exists\x18\x05 \x01(\x08R\x0Dif_not_exists\x12(\x0A\x07options\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\x9E\x01\x0A\x16AlterForeignServerStmt\x12\x1E\x0A\x0Aservername\x18\x01 \x01(\x09R\x0Aservername\x12\x18\x0A\x07version\x18\x02 \x01(\x09R\x07version\x12(\x0A\x07options\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12 \x0A\x0Bhas_version\x18\x04 \x01(\x08R\x0Bhas_version\"\x91\x01\x0A\x16CreateForeignTableStmt\x12-\x0A\x09base_stmt\x18\x01 \x01(\x0B2\x14.pg_query.CreateStmtR\x04base\x12\x1E\x0A\x0Aservername\x18\x02 \x01(\x09R\x0Aservername\x12(\x0A\x07options\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\xAF\x01\x0A\x15CreateUserMappingStmt\x12&\x0A\x04user\x18\x01 \x01(\x0B2\x12.pg_query.RoleSpecR\x04user\x12\x1E\x0A\x0Aservername\x18\x02 \x01(\x09R\x0Aservername\x12\$\x0A\x0Dif_not_exists\x18\x03 \x01(\x08R\x0Dif_not_exists\x12(\x0A\x07options\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\x88\x01\x0A\x14AlterUserMappingStmt\x12&\x0A\x04user\x18\x01 \x01(\x0B2\x12.pg_query.RoleSpecR\x04user\x12\x1E\x0A\x0Aservername\x18\x02 \x01(\x09R\x0Aservername\x12(\x0A\x07options\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"}\x0A\x13DropUserMappingStmt\x12&\x0A\x04user\x18\x01 \x01(\x0B2\x12.pg_query.RoleSpecR\x04user\x12\x1E\x0A\x0Aservername\x18\x02 \x01(\x09R\x0Aservername\x12\x1E\x0A\x0Amissing_ok\x18\x03 \x01(\x08R\x0Amissing_ok\"\xA0\x02\x0A\x17ImportForeignSchemaStmt\x12 \x0A\x0Bserver_name\x18\x01 \x01(\x09R\x0Bserver_name\x12\$\x0A\x0Dremote_schema\x18\x02 \x01(\x09R\x0Dremote_schema\x12\"\x0A\x0Clocal_schema\x18\x03 \x01(\x09R\x0Clocal_schema\x12?\x0A\x09list_type\x18\x04 \x01(\x0E2!.pg_query.ImportForeignSchemaTypeR\x09list_type\x12.\x0A\x0Atable_list\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0Atable_list\x12(\x0A\x07options\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\x94\x02\x0A\x10CreatePolicyStmt\x12 \x0A\x0Bpolicy_name\x18\x01 \x01(\x09R\x0Bpolicy_name\x12(\x0A\x05table\x18\x02 \x01(\x0B2\x12.pg_query.RangeVarR\x05table\x12\x1A\x0A\x08cmd_name\x18\x03 \x01(\x09R\x08cmd_name\x12\x1E\x0A\x0Apermissive\x18\x04 \x01(\x08R\x0Apermissive\x12\$\x0A\x05roles\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x05roles\x12\"\x0A\x04qual\x18\x06 \x01(\x0B2\x0E.pg_query.NodeR\x04qual\x12.\x0A\x0Awith_check\x18\x07 \x01(\x0B2\x0E.pg_query.NodeR\x0Awith_check\"\xD7\x01\x0A\x0FAlterPolicyStmt\x12 \x0A\x0Bpolicy_name\x18\x01 \x01(\x09R\x0Bpolicy_name\x12(\x0A\x05table\x18\x02 \x01(\x0B2\x12.pg_query.RangeVarR\x05table\x12\$\x0A\x05roles\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x05roles\x12\"\x0A\x04qual\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x04qual\x12.\x0A\x0Awith_check\x18\x05 \x01(\x0B2\x0E.pg_query.NodeR\x0Awith_check\"r\x0A\x0CCreateAmStmt\x12\x16\x0A\x06amname\x18\x01 \x01(\x09R\x06amname\x122\x0A\x0Chandler_name\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Chandler_name\x12\x16\x0A\x06amtype\x18\x03 \x01(\x09R\x06amtype\"\xB6\x04\x0A\x0ECreateTrigStmt\x12\x18\x0A\x07replace\x18\x01 \x01(\x08R\x07replace\x12\"\x0A\x0Cisconstraint\x18\x02 \x01(\x08R\x0Cisconstraint\x12\x1A\x0A\x08trigname\x18\x03 \x01(\x09R\x08trigname\x12.\x0A\x08relation\x18\x04 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12*\x0A\x08funcname\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x08funcname\x12\"\x0A\x04args\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12\x10\x0A\x03row\x18\x07 \x01(\x08R\x03row\x12\x16\x0A\x06timing\x18\x08 \x01(\x05R\x06timing\x12\x16\x0A\x06events\x18\x09 \x01(\x05R\x06events\x12(\x0A\x07columns\x18\x0A \x03(\x0B2\x0E.pg_query.NodeR\x07columns\x12/\x0A\x0Bwhen_clause\x18\x0B \x01(\x0B2\x0E.pg_query.NodeR\x0AwhenClause\x127\x0A\x0Ftransition_rels\x18\x0C \x03(\x0B2\x0E.pg_query.NodeR\x0EtransitionRels\x12\x1E\x0A\x0Adeferrable\x18\x0D \x01(\x08R\x0Adeferrable\x12\"\x0A\x0Cinitdeferred\x18\x0E \x01(\x08R\x0Cinitdeferred\x120\x0A\x09constrrel\x18\x0F \x01(\x0B2\x12.pg_query.RangeVarR\x09constrrel\"\xAB\x01\x0A\x13CreateEventTrigStmt\x12\x1A\x0A\x08trigname\x18\x01 \x01(\x09R\x08trigname\x12\x1C\x0A\x09eventname\x18\x02 \x01(\x09R\x09eventname\x12.\x0A\x0Awhenclause\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0Awhenclause\x12*\x0A\x08funcname\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x08funcname\"N\x0A\x12AlterEventTrigStmt\x12\x1A\x0A\x08trigname\x18\x01 \x01(\x09R\x08trigname\x12\x1C\x0A\x09tgenabled\x18\x02 \x01(\x09R\x09tgenabled\"\xED\x01\x0A\x0FCreatePLangStmt\x12\x18\x0A\x07replace\x18\x01 \x01(\x08R\x07replace\x12\x16\x0A\x06plname\x18\x02 \x01(\x09R\x06plname\x12,\x0A\x09plhandler\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x09plhandler\x12*\x0A\x08plinline\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x08plinline\x120\x0A\x0Bplvalidator\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0Bplvalidator\x12\x1C\x0A\x09pltrusted\x18\x06 \x01(\x08R\x09pltrusted\"\x84\x01\x0A\x0ECreateRoleStmt\x124\x0A\x09stmt_type\x18\x01 \x01(\x0E2\x16.pg_query.RoleStmtTypeR\x09stmt_type\x12\x12\x0A\x04role\x18\x02 \x01(\x09R\x04role\x12(\x0A\x07options\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"y\x0A\x0DAlterRoleStmt\x12&\x0A\x04role\x18\x01 \x01(\x0B2\x12.pg_query.RoleSpecR\x04role\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12\x16\x0A\x06action\x18\x03 \x01(\x05R\x06action\"\x8B\x01\x0A\x10AlterRoleSetStmt\x12&\x0A\x04role\x18\x01 \x01(\x0B2\x12.pg_query.RoleSpecR\x04role\x12\x1A\x0A\x08database\x18\x02 \x01(\x09R\x08database\x123\x0A\x07setstmt\x18\x03 \x01(\x0B2\x19.pg_query.VariableSetStmtR\x07setstmt\"T\x0A\x0CDropRoleStmt\x12\$\x0A\x05roles\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x05roles\x12\x1E\x0A\x0Amissing_ok\x18\x02 \x01(\x08R\x0Amissing_ok\"\xCE\x01\x0A\x0DCreateSeqStmt\x12.\x0A\x08sequence\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08sequence\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12\x19\x0A\x08owner_id\x18\x03 \x01(\x0DR\x07ownerId\x12\"\x0A\x0Cfor_identity\x18\x04 \x01(\x08R\x0Cfor_identity\x12\$\x0A\x0Dif_not_exists\x18\x05 \x01(\x08R\x0Dif_not_exists\"\xAC\x01\x0A\x0CAlterSeqStmt\x12.\x0A\x08sequence\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08sequence\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12\"\x0A\x0Cfor_identity\x18\x03 \x01(\x08R\x0Cfor_identity\x12\x1E\x0A\x0Amissing_ok\x18\x04 \x01(\x08R\x0Amissing_ok\"\x92\x02\x0A\x0ADefineStmt\x12(\x0A\x04kind\x18\x01 \x01(\x0E2\x14.pg_query.ObjectTypeR\x04kind\x12\x1A\x0A\x08oldstyle\x18\x02 \x01(\x08R\x08oldstyle\x12*\x0A\x08defnames\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x08defnames\x12\"\x0A\x04args\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x04args\x12.\x0A\x0Adefinition\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0Adefinition\x12\$\x0A\x0Dif_not_exists\x18\x06 \x01(\x08R\x0Dif_not_exists\x12\x18\x0A\x07replace\x18\x07 \x01(\x08R\x07replace\"\xDF\x01\x0A\x10CreateDomainStmt\x12.\x0A\x0Adomainname\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Adomainname\x12/\x0A\x09type_name\x18\x02 \x01(\x0B2\x12.pg_query.TypeNameR\x08typeName\x128\x0A\x0Bcoll_clause\x18\x03 \x01(\x0B2\x17.pg_query.CollateClauseR\x0AcollClause\x120\x0A\x0Bconstraints\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0Bconstraints\"\x86\x02\x0A\x11CreateOpClassStmt\x120\x0A\x0Bopclassname\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Bopclassname\x122\x0A\x0Copfamilyname\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Copfamilyname\x12\x16\x0A\x06amname\x18\x03 \x01(\x09R\x06amname\x12.\x0A\x08datatype\x18\x04 \x01(\x0B2\x12.pg_query.TypeNameR\x08datatype\x12\$\x0A\x05items\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x05items\x12\x1D\x0A\x0Ais_default\x18\x06 \x01(\x08R\x09isDefault\"\x8D\x02\x0A\x11CreateOpClassItem\x12\x1A\x0A\x08itemtype\x18\x01 \x01(\x05R\x08itemtype\x12,\x0A\x04name\x18\x02 \x01(\x0B2\x18.pg_query.ObjectWithArgsR\x04name\x12\x16\x0A\x06number\x18\x03 \x01(\x05R\x06number\x122\x0A\x0Corder_family\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0Corder_family\x12.\x0A\x0Aclass_args\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0Aclass_args\x122\x0A\x0Astoredtype\x18\x06 \x01(\x0B2\x12.pg_query.TypeNameR\x0Astoredtype\"`\x0A\x12CreateOpFamilyStmt\x122\x0A\x0Copfamilyname\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Copfamilyname\x12\x16\x0A\x06amname\x18\x02 \x01(\x09R\x06amname\"\x9E\x01\x0A\x11AlterOpFamilyStmt\x122\x0A\x0Copfamilyname\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Copfamilyname\x12\x16\x0A\x06amname\x18\x02 \x01(\x09R\x06amname\x12\x17\x0A\x07is_drop\x18\x03 \x01(\x08R\x06isDrop\x12\$\x0A\x05items\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x05items\"\xDF\x01\x0A\x08DropStmt\x12(\x0A\x07objects\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x07objects\x125\x0A\x0Bremove_type\x18\x02 \x01(\x0E2\x14.pg_query.ObjectTypeR\x0AremoveType\x122\x0A\x08behavior\x18\x03 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\x12\x1E\x0A\x0Amissing_ok\x18\x04 \x01(\x08R\x0Amissing_ok\x12\x1E\x0A\x0Aconcurrent\x18\x05 \x01(\x08R\x0Aconcurrent\"\x94\x01\x0A\x0CTruncateStmt\x12,\x0A\x09relations\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x09relations\x12\"\x0A\x0Crestart_seqs\x18\x02 \x01(\x08R\x0Crestart_seqs\x122\x0A\x08behavior\x18\x03 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\"\x7F\x0A\x0BCommentStmt\x12.\x0A\x07objtype\x18\x01 \x01(\x0E2\x14.pg_query.ObjectTypeR\x07objtype\x12&\x0A\x06object\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x06object\x12\x18\x0A\x07comment\x18\x03 \x01(\x09R\x07comment\"\x98\x01\x0A\x0CSecLabelStmt\x12.\x0A\x07objtype\x18\x01 \x01(\x0E2\x14.pg_query.ObjectTypeR\x07objtype\x12&\x0A\x06object\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x06object\x12\x1A\x0A\x08provider\x18\x03 \x01(\x09R\x08provider\x12\x14\x0A\x05label\x18\x04 \x01(\x09R\x05label\"s\x0A\x11DeclareCursorStmt\x12\x1E\x0A\x0Aportalname\x18\x01 \x01(\x09R\x0Aportalname\x12\x18\x0A\x07options\x18\x02 \x01(\x05R\x07options\x12\$\x0A\x05query\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x05query\"1\x0A\x0FClosePortalStmt\x12\x1E\x0A\x0Aportalname\x18\x01 \x01(\x09R\x0Aportalname\"\x96\x01\x0A\x09FetchStmt\x126\x0A\x09direction\x18\x01 \x01(\x0E2\x18.pg_query.FetchDirectionR\x09direction\x12\x19\x0A\x08how_many\x18\x02 \x01(\x03R\x07howMany\x12\x1E\x0A\x0Aportalname\x18\x03 \x01(\x09R\x0Aportalname\x12\x16\x0A\x06ismove\x18\x04 \x01(\x08R\x06ismove\"\xDC\x07\x0A\x09IndexStmt\x12\x18\x0A\x07idxname\x18\x01 \x01(\x09R\x07idxname\x12.\x0A\x08relation\x18\x02 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12#\x0A\x0Daccess_method\x18\x03 \x01(\x09R\x0CaccessMethod\x12\x1F\x0A\x0Btable_space\x18\x04 \x01(\x09R\x0AtableSpace\x121\x0A\x0Cindex_params\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x0BindexParams\x12D\x0A\x16index_including_params\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x14indexIncludingParams\x12(\x0A\x07options\x18\x07 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x121\x0A\x0Cwhere_clause\x18\x08 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\x128\x0A\x10exclude_op_names\x18\x09 \x03(\x0B2\x0E.pg_query.NodeR\x0EexcludeOpNames\x12\x1E\x0A\x0Aidxcomment\x18\x0A \x01(\x09R\x0Aidxcomment\x12\x1B\x0A\x09index_oid\x18\x0B \x01(\x0DR\x08indexOid\x12\x1D\x0A\x0Aold_number\x18\x0C \x01(\x0DR\x09oldNumber\x12(\x0A\x10old_create_subid\x18\x0D \x01(\x0DR\x0EoldCreateSubid\x12C\x0A\x1Eold_first_relfilelocator_subid\x18\x0E \x01(\x0DR\x1BoldFirstRelfilelocatorSubid\x12\x16\x0A\x06unique\x18\x0F \x01(\x08R\x06unique\x12.\x0A\x12nulls_not_distinct\x18\x10 \x01(\x08R\x12nulls_not_distinct\x12\x18\x0A\x07primary\x18\x11 \x01(\x08R\x07primary\x12\"\x0A\x0Cisconstraint\x18\x12 \x01(\x08R\x0Cisconstraint\x12\x1E\x0A\x0Adeferrable\x18\x13 \x01(\x08R\x0Adeferrable\x12\"\x0A\x0Cinitdeferred\x18\x14 \x01(\x08R\x0Cinitdeferred\x12 \x0A\x0Btransformed\x18\x15 \x01(\x08R\x0Btransformed\x12\x1E\x0A\x0Aconcurrent\x18\x16 \x01(\x08R\x0Aconcurrent\x12\$\x0A\x0Dif_not_exists\x18\x17 \x01(\x08R\x0Dif_not_exists\x122\x0A\x14reset_default_tblspc\x18\x18 \x01(\x08R\x14reset_default_tblspc\"\xA9\x02\x0A\x0FCreateStatsStmt\x12*\x0A\x08defnames\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08defnames\x12.\x0A\x0Astat_types\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Astat_types\x12\$\x0A\x05exprs\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x05exprs\x12,\x0A\x09relations\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x09relations\x12\x1E\x0A\x0Astxcomment\x18\x05 \x01(\x09R\x0Astxcomment\x12 \x0A\x0Btransformed\x18\x06 \x01(\x08R\x0Btransformed\x12\$\x0A\x0Dif_not_exists\x18\x07 \x01(\x08R\x0Dif_not_exists\"C\x0A\x09StatsElem\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12\"\x0A\x04expr\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x04expr\"\x92\x01\x0A\x0EAlterStatsStmt\x12*\x0A\x08defnames\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08defnames\x124\x0A\x0Dstxstattarget\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x0Dstxstattarget\x12\x1E\x0A\x0Amissing_ok\x18\x03 \x01(\x08R\x0Amissing_ok\"\xB9\x02\x0A\x12CreateFunctionStmt\x12\"\x0A\x0Cis_procedure\x18\x01 \x01(\x08R\x0Cis_procedure\x12\x18\x0A\x07replace\x18\x02 \x01(\x08R\x07replace\x12*\x0A\x08funcname\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x08funcname\x12.\x0A\x0Aparameters\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0Aparameters\x123\x0A\x0Breturn_type\x18\x05 \x01(\x0B2\x12.pg_query.TypeNameR\x0AreturnType\x12(\x0A\x07options\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12*\x0A\x08sql_body\x18\x07 \x01(\x0B2\x0E.pg_query.NodeR\x08sql_body\"\xB5\x01\x0A\x11FunctionParameter\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12-\x0A\x08arg_type\x18\x02 \x01(\x0B2\x12.pg_query.TypeNameR\x07argType\x123\x0A\x04mode\x18\x03 \x01(\x0E2\x1F.pg_query.FunctionParameterModeR\x04mode\x12(\x0A\x07defexpr\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x07defexpr\"\x9B\x01\x0A\x11AlterFunctionStmt\x12.\x0A\x07objtype\x18\x01 \x01(\x0E2\x14.pg_query.ObjectTypeR\x07objtype\x12,\x0A\x04func\x18\x02 \x01(\x0B2\x18.pg_query.ObjectWithArgsR\x04func\x12(\x0A\x07actions\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07actions\",\x0A\x06DoStmt\x12\"\x0A\x04args\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x04args\"\x8E\x01\x0A\x0FInlineCodeBlock\x12 \x0A\x0Bsource_text\x18\x01 \x01(\x09R\x0Bsource_text\x12\x19\x0A\x08lang_oid\x18\x02 \x01(\x0DR\x07langOid\x12&\x0A\x0Flang_is_trusted\x18\x03 \x01(\x08R\x0DlangIsTrusted\x12\x16\x0A\x06atomic\x18\x04 \x01(\x08R\x06atomic\"\x94\x01\x0A\x08CallStmt\x12.\x0A\x08funccall\x18\x01 \x01(\x0B2\x12.pg_query.FuncCallR\x08funccall\x12.\x0A\x08funcexpr\x18\x02 \x01(\x0B2\x12.pg_query.FuncExprR\x08funcexpr\x12(\x0A\x07outargs\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07outargs\"%\x0A\x0BCallContext\x12\x16\x0A\x06atomic\x18\x01 \x01(\x08R\x06atomic\"\xDE\x02\x0A\x0ARenameStmt\x125\x0A\x0Brename_type\x18\x01 \x01(\x0E2\x14.pg_query.ObjectTypeR\x0ArenameType\x129\x0A\x0Drelation_type\x18\x02 \x01(\x0E2\x14.pg_query.ObjectTypeR\x0CrelationType\x12.\x0A\x08relation\x18\x03 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12&\x0A\x06object\x18\x04 \x01(\x0B2\x0E.pg_query.NodeR\x06object\x12\x18\x0A\x07subname\x18\x05 \x01(\x09R\x07subname\x12\x18\x0A\x07newname\x18\x06 \x01(\x09R\x07newname\x122\x0A\x08behavior\x18\x07 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\x12\x1E\x0A\x0Amissing_ok\x18\x08 \x01(\x08R\x0Amissing_ok\"\xEB\x01\x0A\x16AlterObjectDependsStmt\x125\x0A\x0Bobject_type\x18\x01 \x01(\x0E2\x14.pg_query.ObjectTypeR\x0AobjectType\x12.\x0A\x08relation\x18\x02 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12&\x0A\x06object\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x06object\x12*\x0A\x07extname\x18\x04 \x01(\x0B2\x10.pg_query.StringR\x07extname\x12\x16\x0A\x06remove\x18\x05 \x01(\x08R\x06remove\"\xE4\x01\x0A\x15AlterObjectSchemaStmt\x125\x0A\x0Bobject_type\x18\x01 \x01(\x0E2\x14.pg_query.ObjectTypeR\x0AobjectType\x12.\x0A\x08relation\x18\x02 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12&\x0A\x06object\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x06object\x12\x1C\x0A\x09newschema\x18\x04 \x01(\x09R\x09newschema\x12\x1E\x0A\x0Amissing_ok\x18\x05 \x01(\x08R\x0Amissing_ok\"\xCF\x01\x0A\x0EAlterOwnerStmt\x125\x0A\x0Bobject_type\x18\x01 \x01(\x0E2\x14.pg_query.ObjectTypeR\x0AobjectType\x12.\x0A\x08relation\x18\x02 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12&\x0A\x06object\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x06object\x12.\x0A\x08newowner\x18\x04 \x01(\x0B2\x12.pg_query.RoleSpecR\x08newowner\"s\x0A\x11AlterOperatorStmt\x124\x0A\x08opername\x18\x01 \x01(\x0B2\x18.pg_query.ObjectWithArgsR\x08opername\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"f\x0A\x0DAlterTypeStmt\x12+\x0A\x09type_name\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08typeName\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\x90\x02\x0A\x08RuleStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12\x1A\x0A\x08rulename\x18\x02 \x01(\x09R\x08rulename\x121\x0A\x0Cwhere_clause\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\x12'\x0A\x05event\x18\x04 \x01(\x0E2\x11.pg_query.CmdTypeR\x05event\x12\x18\x0A\x07instead\x18\x05 \x01(\x08R\x07instead\x12(\x0A\x07actions\x18\x06 \x03(\x0B2\x0E.pg_query.NodeR\x07actions\x12\x18\x0A\x07replace\x18\x07 \x01(\x08R\x07replace\"L\x0A\x0ANotifyStmt\x12\$\x0A\x0Dconditionname\x18\x01 \x01(\x09R\x0Dconditionname\x12\x18\x0A\x07payload\x18\x02 \x01(\x09R\x07payload\"2\x0A\x0AListenStmt\x12\$\x0A\x0Dconditionname\x18\x01 \x01(\x09R\x0Dconditionname\"4\x0A\x0CUnlistenStmt\x12\$\x0A\x0Dconditionname\x18\x01 \x01(\x09R\x0Dconditionname\"\xDA\x01\x0A\x0FTransactionStmt\x121\x0A\x04kind\x18\x01 \x01(\x0E2\x1D.pg_query.TransactionStmtKindR\x04kind\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12&\x0A\x0Esavepoint_name\x18\x03 \x01(\x09R\x0Esavepoint_name\x12\x10\x0A\x03gid\x18\x04 \x01(\x09R\x03gid\x12\x14\x0A\x05chain\x18\x05 \x01(\x08R\x05chain\x12\x1A\x0A\x08location\x18\x06 \x01(\x05R\x08location\"q\x0A\x11CompositeTypeStmt\x12,\x0A\x07typevar\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x07typevar\x12.\x0A\x0Acoldeflist\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x0Acoldeflist\"a\x0A\x0ECreateEnumStmt\x12+\x0A\x09type_name\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08typeName\x12\"\x0A\x04vals\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04vals\"f\x0A\x0FCreateRangeStmt\x12+\x0A\x09type_name\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08typeName\x12&\x0A\x06params\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x06params\"\xF5\x01\x0A\x0DAlterEnumStmt\x12+\x0A\x09type_name\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08typeName\x12\x17\x0A\x07old_val\x18\x02 \x01(\x09R\x06oldVal\x12\x17\x0A\x07new_val\x18\x03 \x01(\x09R\x06newVal\x12(\x0A\x10new_val_neighbor\x18\x04 \x01(\x09R\x0EnewValNeighbor\x12'\x0A\x10new_val_is_after\x18\x05 \x01(\x08R\x0DnewValIsAfter\x122\x0A\x16skip_if_new_val_exists\x18\x06 \x01(\x08R\x12skipIfNewValExists\"\x8D\x02\x0A\x08ViewStmt\x12&\x0A\x04view\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x04view\x12(\x0A\x07aliases\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07aliases\x12\$\x0A\x05query\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x05query\x12\x18\x0A\x07replace\x18\x04 \x01(\x08R\x07replace\x12(\x0A\x07options\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12E\x0A\x11with_check_option\x18\x06 \x01(\x0E2\x19.pg_query.ViewCheckOptionR\x0FwithCheckOption\"&\x0A\x08LoadStmt\x12\x1A\x0A\x08filename\x18\x01 \x01(\x09R\x08filename\"P\x0A\x0CCreatedbStmt\x12\x16\x0A\x06dbname\x18\x01 \x01(\x09R\x06dbname\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"U\x0A\x11AlterDatabaseStmt\x12\x16\x0A\x06dbname\x18\x01 \x01(\x09R\x06dbname\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"6\x0A\x1CAlterDatabaseRefreshCollStmt\x12\x16\x0A\x06dbname\x18\x01 \x01(\x09R\x06dbname\"c\x0A\x14AlterDatabaseSetStmt\x12\x16\x0A\x06dbname\x18\x01 \x01(\x09R\x06dbname\x123\x0A\x07setstmt\x18\x02 \x01(\x0B2\x19.pg_query.VariableSetStmtR\x07setstmt\"n\x0A\x0ADropdbStmt\x12\x16\x0A\x06dbname\x18\x01 \x01(\x09R\x06dbname\x12\x1E\x0A\x0Amissing_ok\x18\x02 \x01(\x08R\x0Amissing_ok\x12(\x0A\x07options\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"F\x0A\x0FAlterSystemStmt\x123\x0A\x07setstmt\x18\x01 \x01(\x0B2\x19.pg_query.VariableSetStmtR\x07setstmt\"\x83\x01\x0A\x0BClusterStmt\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12\x1C\x0A\x09indexname\x18\x02 \x01(\x09R\x09indexname\x12&\x0A\x06params\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x06params\"~\x0A\x0AVacuumStmt\x12(\x0A\x07options\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12\"\x0A\x04rels\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x04rels\x12\"\x0A\x0Cis_vacuumcmd\x18\x03 \x01(\x08R\x0Cis_vacuumcmd\"|\x0A\x0EVacuumRelation\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12\x10\x0A\x03oid\x18\x02 \x01(\x0DR\x03oid\x12(\x0A\x07va_cols\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07va_cols\"]\x0A\x0BExplainStmt\x12\$\x0A\x05query\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x05query\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\xE1\x01\x0A\x11CreateTableAsStmt\x12\$\x0A\x05query\x18\x01 \x01(\x0B2\x0E.pg_query.NodeR\x05query\x12(\x0A\x04into\x18\x02 \x01(\x0B2\x14.pg_query.IntoClauseR\x04into\x12.\x0A\x07objtype\x18\x03 \x01(\x0E2\x14.pg_query.ObjectTypeR\x07objtype\x12&\x0A\x0Eis_select_into\x18\x04 \x01(\x08R\x0Eis_select_into\x12\$\x0A\x0Dif_not_exists\x18\x05 \x01(\x08R\x0Dif_not_exists\"\x81\x01\x0A\x12RefreshMatViewStmt\x12\x1E\x0A\x0Aconcurrent\x18\x01 \x01(\x08R\x0Aconcurrent\x12\x1B\x0A\x09skip_data\x18\x02 \x01(\x08R\x08skipData\x12.\x0A\x08relation\x18\x03 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\"\x10\x0A\x0ECheckPointStmt\"<\x0A\x0BDiscardStmt\x12-\x0A\x06target\x18\x01 \x01(\x0E2\x15.pg_query.DiscardModeR\x06target\"d\x0A\x08LockStmt\x12,\x0A\x09relations\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x09relations\x12\x12\x0A\x04mode\x18\x02 \x01(\x05R\x04mode\x12\x16\x0A\x06nowait\x18\x03 \x01(\x08R\x06nowait\"b\x0A\x12ConstraintsSetStmt\x120\x0A\x0Bconstraints\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Bconstraints\x12\x1A\x0A\x08deferred\x18\x02 \x01(\x08R\x08deferred\"\xAA\x01\x0A\x0BReindexStmt\x12/\x0A\x04kind\x18\x01 \x01(\x0E2\x1B.pg_query.ReindexObjectTypeR\x04kind\x12.\x0A\x08relation\x18\x02 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x12\x12\x0A\x04name\x18\x03 \x01(\x09R\x04name\x12&\x0A\x06params\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x06params\"\xEA\x01\x0A\x14CreateConversionStmt\x128\x0A\x0Fconversion_name\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x0Fconversion_name\x12,\x0A\x11for_encoding_name\x18\x02 \x01(\x09R\x11for_encoding_name\x12*\x0A\x10to_encoding_name\x18\x03 \x01(\x09R\x10to_encoding_name\x12,\x0A\x09func_name\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x09func_name\x12\x10\x0A\x03def\x18\x05 \x01(\x08R\x03def\"\xF1\x01\x0A\x0ECreateCastStmt\x122\x0A\x0Asourcetype\x18\x01 \x01(\x0B2\x12.pg_query.TypeNameR\x0Asourcetype\x122\x0A\x0Atargettype\x18\x02 \x01(\x0B2\x12.pg_query.TypeNameR\x0Atargettype\x12,\x0A\x04func\x18\x03 \x01(\x0B2\x18.pg_query.ObjectWithArgsR\x04func\x123\x0A\x07context\x18\x04 \x01(\x0E2\x19.pg_query.CoercionContextR\x07context\x12\x14\x0A\x05inout\x18\x05 \x01(\x08R\x05inout\"\xD9\x01\x0A\x13CreateTransformStmt\x12\x18\x0A\x07replace\x18\x01 \x01(\x08R\x07replace\x120\x0A\x09type_name\x18\x02 \x01(\x0B2\x12.pg_query.TypeNameR\x09type_name\x12\x12\x0A\x04lang\x18\x03 \x01(\x09R\x04lang\x122\x0A\x07fromsql\x18\x04 \x01(\x0B2\x18.pg_query.ObjectWithArgsR\x07fromsql\x12.\x0A\x05tosql\x18\x05 \x01(\x0B2\x18.pg_query.ObjectWithArgsR\x05tosql\"s\x0A\x0BPrepareStmt\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12*\x0A\x08argtypes\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x08argtypes\x12\$\x0A\x05query\x18\x03 \x01(\x0B2\x0E.pg_query.NodeR\x05query\"I\x0A\x0BExecuteStmt\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12&\x0A\x06params\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x06params\"V\x0A\x0EDeallocateStmt\x12\x12\x0A\x04name\x18\x01 \x01(\x09R\x04name\x12\x14\x0A\x05isall\x18\x02 \x01(\x08R\x05isall\x12\x1A\x0A\x08location\x18\x03 \x01(\x05R\x08location\"i\x0A\x0DDropOwnedStmt\x12\$\x0A\x05roles\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x05roles\x122\x0A\x08behavior\x18\x02 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\"g\x0A\x11ReassignOwnedStmt\x12\$\x0A\x05roles\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x05roles\x12,\x0A\x07newrole\x18\x02 \x01(\x0B2\x12.pg_query.RoleSpecR\x07newrole\"m\x0A\x15AlterTSDictionaryStmt\x12*\x0A\x08dictname\x18\x01 \x03(\x0B2\x0E.pg_query.NodeR\x08dictname\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\x9F\x02\x0A\x18AlterTSConfigurationStmt\x12/\x0A\x04kind\x18\x01 \x01(\x0E2\x1B.pg_query.AlterTSConfigTypeR\x04kind\x12(\x0A\x07cfgname\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07cfgname\x12,\x0A\x09tokentype\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x09tokentype\x12\$\x0A\x05dicts\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x05dicts\x12\x1A\x0A\x08override\x18\x05 \x01(\x08R\x08override\x12\x18\x0A\x07replace\x18\x06 \x01(\x08R\x07replace\x12\x1E\x0A\x0Amissing_ok\x18\x07 \x01(\x08R\x0Amissing_ok\"\x9F\x01\x0A\x10PublicationTable\x12.\x0A\x08relation\x18\x01 \x01(\x0B2\x12.pg_query.RangeVarR\x08relation\x121\x0A\x0Cwhere_clause\x18\x02 \x01(\x0B2\x0E.pg_query.NodeR\x0BwhereClause\x12(\x0A\x07columns\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x07columns\"\xBE\x01\x0A\x12PublicationObjSpec\x12@\x0A\x0Apubobjtype\x18\x01 \x01(\x0E2 .pg_query.PublicationObjSpecTypeR\x0Apubobjtype\x12\x12\x0A\x04name\x18\x02 \x01(\x09R\x04name\x126\x0A\x08pubtable\x18\x03 \x01(\x0B2\x1A.pg_query.PublicationTableR\x08pubtable\x12\x1A\x0A\x08location\x18\x04 \x01(\x05R\x08location\"\xB3\x01\x0A\x15CreatePublicationStmt\x12\x18\x0A\x07pubname\x18\x01 \x01(\x09R\x07pubname\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12.\x0A\x0Apubobjects\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0Apubobjects\x12&\x0A\x0Efor_all_tables\x18\x04 \x01(\x08R\x0Efor_all_tables\"\xEC\x01\x0A\x14AlterPublicationStmt\x12\x18\x0A\x07pubname\x18\x01 \x01(\x09R\x07pubname\x12(\x0A\x07options\x18\x02 \x03(\x0B2\x0E.pg_query.NodeR\x07options\x12.\x0A\x0Apubobjects\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0Apubobjects\x12&\x0A\x0Efor_all_tables\x18\x04 \x01(\x08R\x0Efor_all_tables\x128\x0A\x06action\x18\x05 \x01(\x0E2 .pg_query.AlterPublicationActionR\x06action\"\xAA\x01\x0A\x16CreateSubscriptionStmt\x12\x18\x0A\x07subname\x18\x01 \x01(\x09R\x07subname\x12\x1A\x0A\x08conninfo\x18\x02 \x01(\x09R\x08conninfo\x120\x0A\x0Bpublication\x18\x03 \x03(\x0B2\x0E.pg_query.NodeR\x0Bpublication\x12(\x0A\x07options\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\xDE\x01\x0A\x15AlterSubscriptionStmt\x123\x0A\x04kind\x18\x01 \x01(\x0E2\x1F.pg_query.AlterSubscriptionTypeR\x04kind\x12\x18\x0A\x07subname\x18\x02 \x01(\x09R\x07subname\x12\x1A\x0A\x08conninfo\x18\x03 \x01(\x09R\x08conninfo\x120\x0A\x0Bpublication\x18\x04 \x03(\x0B2\x0E.pg_query.NodeR\x0Bpublication\x12(\x0A\x07options\x18\x05 \x03(\x0B2\x0E.pg_query.NodeR\x07options\"\x84\x01\x0A\x14DropSubscriptionStmt\x12\x18\x0A\x07subname\x18\x01 \x01(\x09R\x07subname\x12\x1E\x0A\x0Amissing_ok\x18\x02 \x01(\x08R\x0Amissing_ok\x122\x0A\x08behavior\x18\x03 \x01(\x0E2\x16.pg_query.DropBehaviorR\x08behavior\"t\x0A\x09ScanToken\x12\x0D\x0A\x05start\x18\x01 \x01(\x05\x12\x0B\x0A\x03end\x18\x02 \x01(\x05\x12\x1E\x0A\x05token\x18\x04 \x01(\x0E2\x0F.pg_query.Token\x12+\x0A\x0Ckeyword_kind\x18\x05 \x01(\x0E2\x15.pg_query.KeywordKind*\x9B\x01\x0A\x0BQuerySource\x12\x1A\x0A\x16QUERY_SOURCE_UNDEFINED\x10\x00\x12\x11\x0A\x0DQSRC_ORIGINAL\x10\x01\x12\x0F\x0A\x0BQSRC_PARSER\x10\x02\x12\x15\x0A\x11QSRC_INSTEAD_RULE\x10\x03\x12\x1A\x0A\x16QSRC_QUAL_INSTEAD_RULE\x10\x04\x12\x19\x0A\x15QSRC_NON_INSTEAD_RULE\x10\x05*m\x0A\x09SortByDir\x12\x19\x0A\x15SORT_BY_DIR_UNDEFINED\x10\x00\x12\x12\x0A\x0ESORTBY_DEFAULT\x10\x01\x12\x0E\x0A\x0ASORTBY_ASC\x10\x02\x12\x0F\x0A\x0BSORTBY_DESC\x10\x03\x12\x10\x0A\x0CSORTBY_USING\x10\x04*s\x0A\x0BSortByNulls\x12\x1B\x0A\x17SORT_BY_NULLS_UNDEFINED\x10\x00\x12\x18\x0A\x14SORTBY_NULLS_DEFAULT\x10\x01\x12\x16\x0A\x12SORTBY_NULLS_FIRST\x10\x02\x12\x15\x0A\x11SORTBY_NULLS_LAST\x10\x03*~\x0A\x0DSetQuantifier\x12\x1C\x0A\x18SET_QUANTIFIER_UNDEFINED\x10\x00\x12\x1A\x0A\x16SET_QUANTIFIER_DEFAULT\x10\x01\x12\x16\x0A\x12SET_QUANTIFIER_ALL\x10\x02\x12\x1B\x0A\x17SET_QUANTIFIER_DISTINCT\x10\x03*\xB6\x02\x0A\x0BA_Expr_Kind\x12\x19\x0A\x15A_EXPR_KIND_UNDEFINED\x10\x00\x12\x0C\x0A\x08AEXPR_OP\x10\x01\x12\x10\x0A\x0CAEXPR_OP_ANY\x10\x02\x12\x10\x0A\x0CAEXPR_OP_ALL\x10\x03\x12\x12\x0A\x0EAEXPR_DISTINCT\x10\x04\x12\x16\x0A\x12AEXPR_NOT_DISTINCT\x10\x05\x12\x10\x0A\x0CAEXPR_NULLIF\x10\x06\x12\x0C\x0A\x08AEXPR_IN\x10\x07\x12\x0E\x0A\x0AAEXPR_LIKE\x10\x08\x12\x0F\x0A\x0BAEXPR_ILIKE\x10\x09\x12\x11\x0A\x0DAEXPR_SIMILAR\x10\x0A\x12\x11\x0A\x0DAEXPR_BETWEEN\x10\x0B\x12\x15\x0A\x11AEXPR_NOT_BETWEEN\x10\x0C\x12\x15\x0A\x11AEXPR_BETWEEN_SYM\x10\x0D\x12\x19\x0A\x15AEXPR_NOT_BETWEEN_SYM\x10\x0E*\xA8\x01\x0A\x0CRoleSpecType\x12\x1C\x0A\x18ROLE_SPEC_TYPE_UNDEFINED\x10\x00\x12\x14\x0A\x10ROLESPEC_CSTRING\x10\x01\x12\x19\x0A\x15ROLESPEC_CURRENT_ROLE\x10\x02\x12\x19\x0A\x15ROLESPEC_CURRENT_USER\x10\x03\x12\x19\x0A\x15ROLESPEC_SESSION_USER\x10\x04\x12\x13\x0A\x0FROLESPEC_PUBLIC\x10\x05*\xF4\x02\x0A\x0FTableLikeOption\x12\x1F\x0A\x1BTABLE_LIKE_OPTION_UNDEFINED\x10\x00\x12\x1E\x0A\x1ACREATE_TABLE_LIKE_COMMENTS\x10\x01\x12!\x0A\x1DCREATE_TABLE_LIKE_COMPRESSION\x10\x02\x12!\x0A\x1DCREATE_TABLE_LIKE_CONSTRAINTS\x10\x03\x12\x1E\x0A\x1ACREATE_TABLE_LIKE_DEFAULTS\x10\x04\x12\x1F\x0A\x1BCREATE_TABLE_LIKE_GENERATED\x10\x05\x12\x1E\x0A\x1ACREATE_TABLE_LIKE_IDENTITY\x10\x06\x12\x1D\x0A\x19CREATE_TABLE_LIKE_INDEXES\x10\x07\x12 \x0A\x1CCREATE_TABLE_LIKE_STATISTICS\x10\x08\x12\x1D\x0A\x19CREATE_TABLE_LIKE_STORAGE\x10\x09\x12\x19\x0A\x15CREATE_TABLE_LIKE_ALL\x10\x0A*v\x0A\x0DDefElemAction\x12\x1D\x0A\x19DEF_ELEM_ACTION_UNDEFINED\x10\x00\x12\x12\x0A\x0EDEFELEM_UNSPEC\x10\x01\x12\x0F\x0A\x0BDEFELEM_SET\x10\x02\x12\x0F\x0A\x0BDEFELEM_ADD\x10\x03\x12\x10\x0A\x0CDEFELEM_DROP\x10\x04*\x8D\x01\x0A\x11PartitionStrategy\x12 \x0A\x1CPARTITION_STRATEGY_UNDEFINED\x10\x00\x12\x1B\x0A\x17PARTITION_STRATEGY_LIST\x10\x01\x12\x1C\x0A\x18PARTITION_STRATEGY_RANGE\x10\x02\x12\x1B\x0A\x17PARTITION_STRATEGY_HASH\x10\x03*\xAC\x01\x0A\x17PartitionRangeDatumKind\x12(\x0A\$PARTITION_RANGE_DATUM_KIND_UNDEFINED\x10\x00\x12\"\x0A\x1EPARTITION_RANGE_DATUM_MINVALUE\x10\x01\x12\x1F\x0A\x1BPARTITION_RANGE_DATUM_VALUE\x10\x02\x12\"\x0A\x1EPARTITION_RANGE_DATUM_MAXVALUE\x10\x03*\xBD\x01\x0A\x07RTEKind\x12\x15\x0A\x11RTEKIND_UNDEFINED\x10\x00\x12\x10\x0A\x0CRTE_RELATION\x10\x01\x12\x10\x0A\x0CRTE_SUBQUERY\x10\x02\x12\x0C\x0A\x08RTE_JOIN\x10\x03\x12\x10\x0A\x0CRTE_FUNCTION\x10\x04\x12\x11\x0A\x0DRTE_TABLEFUNC\x10\x05\x12\x0E\x0A\x0ARTE_VALUES\x10\x06\x12\x0B\x0A\x07RTE_CTE\x10\x07\x12\x17\x0A\x13RTE_NAMEDTUPLESTORE\x10\x08\x12\x0E\x0A\x0ARTE_RESULT\x10\x09*\xC4\x01\x0A\x07WCOKind\x12\x15\x0A\x11WCOKIND_UNDEFINED\x10\x00\x12\x12\x0A\x0EWCO_VIEW_CHECK\x10\x01\x12\x18\x0A\x14WCO_RLS_INSERT_CHECK\x10\x02\x12\x18\x0A\x14WCO_RLS_UPDATE_CHECK\x10\x03\x12\x1A\x0A\x16WCO_RLS_CONFLICT_CHECK\x10\x04\x12\x1E\x0A\x1AWCO_RLS_MERGE_UPDATE_CHECK\x10\x05\x12\x1E\x0A\x1AWCO_RLS_MERGE_DELETE_CHECK\x10\x06*\xAA\x01\x0A\x0FGroupingSetKind\x12\x1F\x0A\x1BGROUPING_SET_KIND_UNDEFINED\x10\x00\x12\x16\x0A\x12GROUPING_SET_EMPTY\x10\x01\x12\x17\x0A\x13GROUPING_SET_SIMPLE\x10\x02\x12\x17\x0A\x13GROUPING_SET_ROLLUP\x10\x03\x12\x15\x0A\x11GROUPING_SET_CUBE\x10\x04\x12\x15\x0A\x11GROUPING_SET_SETS\x10\x05*|\x0A\x0ECTEMaterialize\x12\x1C\x0A\x18CTEMATERIALIZE_UNDEFINED\x10\x00\x12\x19\x0A\x15CTEMaterializeDefault\x10\x01\x12\x18\x0A\x14CTEMaterializeAlways\x10\x02\x12\x17\x0A\x13CTEMaterializeNever\x10\x03*e\x0A\x0AJsonQuotes\x12\x19\x0A\x15JSON_QUOTES_UNDEFINED\x10\x00\x12\x14\x0A\x10JS_QUOTES_UNSPEC\x10\x01\x12\x12\x0A\x0EJS_QUOTES_KEEP\x10\x02\x12\x12\x0A\x0EJS_QUOTES_OMIT\x10\x03*\x97\x01\x0A\x13JsonTableColumnType\x12\$\x0A JSON_TABLE_COLUMN_TYPE_UNDEFINED\x10\x00\x12\x16\x0A\x12JTC_FOR_ORDINALITY\x10\x01\x12\x0F\x0A\x0BJTC_REGULAR\x10\x02\x12\x0E\x0A\x0AJTC_EXISTS\x10\x03\x12\x11\x0A\x0DJTC_FORMATTED\x10\x04\x12\x0E\x0A\x0AJTC_NESTED\x10\x05*s\x0A\x0CSetOperation\x12\x1B\x0A\x17SET_OPERATION_UNDEFINED\x10\x00\x12\x0E\x0A\x0ASETOP_NONE\x10\x01\x12\x0F\x0A\x0BSETOP_UNION\x10\x02\x12\x13\x0A\x0FSETOP_INTERSECT\x10\x03\x12\x10\x0A\x0CSETOP_EXCEPT\x10\x04*\x99\x09\x0A\x0AObjectType\x12\x19\x0A\x15OBJECT_TYPE_UNDEFINED\x10\x00\x12\x18\x0A\x14OBJECT_ACCESS_METHOD\x10\x01\x12\x14\x0A\x10OBJECT_AGGREGATE\x10\x02\x12\x0F\x0A\x0BOBJECT_AMOP\x10\x03\x12\x11\x0A\x0DOBJECT_AMPROC\x10\x04\x12\x14\x0A\x10OBJECT_ATTRIBUTE\x10\x05\x12\x0F\x0A\x0BOBJECT_CAST\x10\x06\x12\x11\x0A\x0DOBJECT_COLUMN\x10\x07\x12\x14\x0A\x10OBJECT_COLLATION\x10\x08\x12\x15\x0A\x11OBJECT_CONVERSION\x10\x09\x12\x13\x0A\x0FOBJECT_DATABASE\x10\x0A\x12\x12\x0A\x0EOBJECT_DEFAULT\x10\x0B\x12\x11\x0A\x0DOBJECT_DEFACL\x10\x0C\x12\x11\x0A\x0DOBJECT_DOMAIN\x10\x0D\x12\x18\x0A\x14OBJECT_DOMCONSTRAINT\x10\x0E\x12\x18\x0A\x14OBJECT_EVENT_TRIGGER\x10\x0F\x12\x14\x0A\x10OBJECT_EXTENSION\x10\x10\x12\x0E\x0A\x0AOBJECT_FDW\x10\x11\x12\x19\x0A\x15OBJECT_FOREIGN_SERVER\x10\x12\x12\x18\x0A\x14OBJECT_FOREIGN_TABLE\x10\x13\x12\x13\x0A\x0FOBJECT_FUNCTION\x10\x14\x12\x10\x0A\x0COBJECT_INDEX\x10\x15\x12\x13\x0A\x0FOBJECT_LANGUAGE\x10\x16\x12\x16\x0A\x12OBJECT_LARGEOBJECT\x10\x17\x12\x12\x0A\x0EOBJECT_MATVIEW\x10\x18\x12\x12\x0A\x0EOBJECT_OPCLASS\x10\x19\x12\x13\x0A\x0FOBJECT_OPERATOR\x10\x1A\x12\x13\x0A\x0FOBJECT_OPFAMILY\x10\x1B\x12\x18\x0A\x14OBJECT_PARAMETER_ACL\x10\x1C\x12\x11\x0A\x0DOBJECT_POLICY\x10\x1D\x12\x14\x0A\x10OBJECT_PROCEDURE\x10\x1E\x12\x16\x0A\x12OBJECT_PUBLICATION\x10\x1F\x12 \x0A\x1COBJECT_PUBLICATION_NAMESPACE\x10 \x12\x1A\x0A\x16OBJECT_PUBLICATION_REL\x10!\x12\x0F\x0A\x0BOBJECT_ROLE\x10\"\x12\x12\x0A\x0EOBJECT_ROUTINE\x10#\x12\x0F\x0A\x0BOBJECT_RULE\x10\$\x12\x11\x0A\x0DOBJECT_SCHEMA\x10%\x12\x13\x0A\x0FOBJECT_SEQUENCE\x10&\x12\x17\x0A\x13OBJECT_SUBSCRIPTION\x10'\x12\x18\x0A\x14OBJECT_STATISTIC_EXT\x10(\x12\x18\x0A\x14OBJECT_TABCONSTRAINT\x10)\x12\x10\x0A\x0COBJECT_TABLE\x10*\x12\x15\x0A\x11OBJECT_TABLESPACE\x10+\x12\x14\x0A\x10OBJECT_TRANSFORM\x10,\x12\x12\x0A\x0EOBJECT_TRIGGER\x10-\x12\x1A\x0A\x16OBJECT_TSCONFIGURATION\x10.\x12\x17\x0A\x13OBJECT_TSDICTIONARY\x10/\x12\x13\x0A\x0FOBJECT_TSPARSER\x100\x12\x15\x0A\x11OBJECT_TSTEMPLATE\x101\x12\x0F\x0A\x0BOBJECT_TYPE\x102\x12\x17\x0A\x13OBJECT_USER_MAPPING\x103\x12\x0F\x0A\x0BOBJECT_VIEW\x104*P\x0A\x0CDropBehavior\x12\x1B\x0A\x17DROP_BEHAVIOR_UNDEFINED\x10\x00\x12\x11\x0A\x0DDROP_RESTRICT\x10\x01\x12\x10\x0A\x0CDROP_CASCADE\x10\x02*\x8C\x0C\x0A\x0EAlterTableType\x12\x1E\x0A\x1AALTER_TABLE_TYPE_UNDEFINED\x10\x00\x12\x10\x0A\x0CAT_AddColumn\x10\x01\x12\x16\x0A\x12AT_AddColumnToView\x10\x02\x12\x14\x0A\x10AT_ColumnDefault\x10\x03\x12\x1A\x0A\x16AT_CookedColumnDefault\x10\x04\x12\x12\x0A\x0EAT_DropNotNull\x10\x05\x12\x11\x0A\x0DAT_SetNotNull\x10\x06\x12\x14\x0A\x10AT_SetExpression\x10\x07\x12\x15\x0A\x11AT_DropExpression\x10\x08\x12\x13\x0A\x0FAT_CheckNotNull\x10\x09\x12\x14\x0A\x10AT_SetStatistics\x10\x0A\x12\x11\x0A\x0DAT_SetOptions\x10\x0B\x12\x13\x0A\x0FAT_ResetOptions\x10\x0C\x12\x11\x0A\x0DAT_SetStorage\x10\x0D\x12\x15\x0A\x11AT_SetCompression\x10\x0E\x12\x11\x0A\x0DAT_DropColumn\x10\x0F\x12\x0F\x0A\x0BAT_AddIndex\x10\x10\x12\x11\x0A\x0DAT_ReAddIndex\x10\x11\x12\x14\x0A\x10AT_AddConstraint\x10\x12\x12\x16\x0A\x12AT_ReAddConstraint\x10\x13\x12\x1C\x0A\x18AT_ReAddDomainConstraint\x10\x14\x12\x16\x0A\x12AT_AlterConstraint\x10\x15\x12\x19\x0A\x15AT_ValidateConstraint\x10\x16\x12\x19\x0A\x15AT_AddIndexConstraint\x10\x17\x12\x15\x0A\x11AT_DropConstraint\x10\x18\x12\x13\x0A\x0FAT_ReAddComment\x10\x19\x12\x16\x0A\x12AT_AlterColumnType\x10\x1A\x12 \x0A\x1CAT_AlterColumnGenericOptions\x10\x1B\x12\x12\x0A\x0EAT_ChangeOwner\x10\x1C\x12\x10\x0A\x0CAT_ClusterOn\x10\x1D\x12\x12\x0A\x0EAT_DropCluster\x10\x1E\x12\x10\x0A\x0CAT_SetLogged\x10\x1F\x12\x12\x0A\x0EAT_SetUnLogged\x10 \x12\x0F\x0A\x0BAT_DropOids\x10!\x12\x16\x0A\x12AT_SetAccessMethod\x10\"\x12\x14\x0A\x10AT_SetTableSpace\x10#\x12\x14\x0A\x10AT_SetRelOptions\x10\$\x12\x16\x0A\x12AT_ResetRelOptions\x10%\x12\x18\x0A\x14AT_ReplaceRelOptions\x10&\x12\x11\x0A\x0DAT_EnableTrig\x10'\x12\x17\x0A\x13AT_EnableAlwaysTrig\x10(\x12\x18\x0A\x14AT_EnableReplicaTrig\x10)\x12\x12\x0A\x0EAT_DisableTrig\x10*\x12\x14\x0A\x10AT_EnableTrigAll\x10+\x12\x15\x0A\x11AT_DisableTrigAll\x10,\x12\x15\x0A\x11AT_EnableTrigUser\x10-\x12\x16\x0A\x12AT_DisableTrigUser\x10.\x12\x11\x0A\x0DAT_EnableRule\x10/\x12\x17\x0A\x13AT_EnableAlwaysRule\x100\x12\x18\x0A\x14AT_EnableReplicaRule\x101\x12\x12\x0A\x0EAT_DisableRule\x102\x12\x11\x0A\x0DAT_AddInherit\x103\x12\x12\x0A\x0EAT_DropInherit\x104\x12\x0C\x0A\x08AT_AddOf\x105\x12\x0D\x0A\x09AT_DropOf\x106\x12\x16\x0A\x12AT_ReplicaIdentity\x107\x12\x18\x0A\x14AT_EnableRowSecurity\x108\x12\x19\x0A\x15AT_DisableRowSecurity\x109\x12\x17\x0A\x13AT_ForceRowSecurity\x10:\x12\x19\x0A\x15AT_NoForceRowSecurity\x10;\x12\x15\x0A\x11AT_GenericOptions\x10<\x12\x16\x0A\x12AT_AttachPartition\x10=\x12\x16\x0A\x12AT_DetachPartition\x10>\x12\x1E\x0A\x1AAT_DetachPartitionFinalize\x10?\x12\x12\x0A\x0EAT_AddIdentity\x10@\x12\x12\x0A\x0EAT_SetIdentity\x10A\x12\x13\x0A\x0FAT_DropIdentity\x10B\x12\x16\x0A\x12AT_ReAddStatistics\x10C*\x80\x01\x0A\x0FGrantTargetType\x12\x1F\x0A\x1BGRANT_TARGET_TYPE_UNDEFINED\x10\x00\x12\x15\x0A\x11ACL_TARGET_OBJECT\x10\x01\x12\x1C\x0A\x18ACL_TARGET_ALL_IN_SCHEMA\x10\x02\x12\x17\x0A\x13ACL_TARGET_DEFAULTS\x10\x03*\xA4\x01\x0A\x0FVariableSetKind\x12\x1F\x0A\x1BVARIABLE_SET_KIND_UNDEFINED\x10\x00\x12\x11\x0A\x0DVAR_SET_VALUE\x10\x01\x12\x13\x0A\x0FVAR_SET_DEFAULT\x10\x02\x12\x13\x0A\x0FVAR_SET_CURRENT\x10\x03\x12\x11\x0A\x0DVAR_SET_MULTI\x10\x04\x12\x0D\x0A\x09VAR_RESET\x10\x05\x12\x11\x0A\x0DVAR_RESET_ALL\x10\x06*\xDF\x02\x0A\x0AConstrType\x12\x19\x0A\x15CONSTR_TYPE_UNDEFINED\x10\x00\x12\x0F\x0A\x0BCONSTR_NULL\x10\x01\x12\x12\x0A\x0ECONSTR_NOTNULL\x10\x02\x12\x12\x0A\x0ECONSTR_DEFAULT\x10\x03\x12\x13\x0A\x0FCONSTR_IDENTITY\x10\x04\x12\x14\x0A\x10CONSTR_GENERATED\x10\x05\x12\x10\x0A\x0CCONSTR_CHECK\x10\x06\x12\x12\x0A\x0ECONSTR_PRIMARY\x10\x07\x12\x11\x0A\x0DCONSTR_UNIQUE\x10\x08\x12\x14\x0A\x10CONSTR_EXCLUSION\x10\x09\x12\x12\x0A\x0ECONSTR_FOREIGN\x10\x0A\x12\x1A\x0A\x16CONSTR_ATTR_DEFERRABLE\x10\x0B\x12\x1E\x0A\x1ACONSTR_ATTR_NOT_DEFERRABLE\x10\x0C\x12\x18\x0A\x14CONSTR_ATTR_DEFERRED\x10\x0D\x12\x19\x0A\x15CONSTR_ATTR_IMMEDIATE\x10\x0E*\x9C\x01\x0A\x17ImportForeignSchemaType\x12(\x0A\$IMPORT_FOREIGN_SCHEMA_TYPE_UNDEFINED\x10\x00\x12\x19\x0A\x15FDW_IMPORT_SCHEMA_ALL\x10\x01\x12\x1E\x0A\x1AFDW_IMPORT_SCHEMA_LIMIT_TO\x10\x02\x12\x1C\x0A\x18FDW_IMPORT_SCHEMA_EXCEPT\x10\x03*f\x0A\x0CRoleStmtType\x12\x1C\x0A\x18ROLE_STMT_TYPE_UNDEFINED\x10\x00\x12\x11\x0A\x0DROLESTMT_ROLE\x10\x01\x12\x11\x0A\x0DROLESTMT_USER\x10\x02\x12\x12\x0A\x0EROLESTMT_GROUP\x10\x03*~\x0A\x0EFetchDirection\x12\x1D\x0A\x19FETCH_DIRECTION_UNDEFINED\x10\x00\x12\x11\x0A\x0DFETCH_FORWARD\x10\x01\x12\x12\x0A\x0EFETCH_BACKWARD\x10\x02\x12\x12\x0A\x0EFETCH_ABSOLUTE\x10\x03\x12\x12\x0A\x0EFETCH_RELATIVE\x10\x04*\xC2\x01\x0A\x15FunctionParameterMode\x12%\x0A!FUNCTION_PARAMETER_MODE_UNDEFINED\x10\x00\x12\x11\x0A\x0DFUNC_PARAM_IN\x10\x01\x12\x12\x0A\x0EFUNC_PARAM_OUT\x10\x02\x12\x14\x0A\x10FUNC_PARAM_INOUT\x10\x03\x12\x17\x0A\x13FUNC_PARAM_VARIADIC\x10\x04\x12\x14\x0A\x10FUNC_PARAM_TABLE\x10\x05\x12\x16\x0A\x12FUNC_PARAM_DEFAULT\x10\x06*\xBE\x02\x0A\x13TransactionStmtKind\x12#\x0A\x1FTRANSACTION_STMT_KIND_UNDEFINED\x10\x00\x12\x14\x0A\x10TRANS_STMT_BEGIN\x10\x01\x12\x14\x0A\x10TRANS_STMT_START\x10\x02\x12\x15\x0A\x11TRANS_STMT_COMMIT\x10\x03\x12\x17\x0A\x13TRANS_STMT_ROLLBACK\x10\x04\x12\x18\x0A\x14TRANS_STMT_SAVEPOINT\x10\x05\x12\x16\x0A\x12TRANS_STMT_RELEASE\x10\x06\x12\x1A\x0A\x16TRANS_STMT_ROLLBACK_TO\x10\x07\x12\x16\x0A\x12TRANS_STMT_PREPARE\x10\x08\x12\x1E\x0A\x1ATRANS_STMT_COMMIT_PREPARED\x10\x09\x12 \x0A\x1CTRANS_STMT_ROLLBACK_PREPARED\x10\x0A*z\x0A\x0FViewCheckOption\x12\x1F\x0A\x1BVIEW_CHECK_OPTION_UNDEFINED\x10\x00\x12\x13\x0A\x0FNO_CHECK_OPTION\x10\x01\x12\x16\x0A\x12LOCAL_CHECK_OPTION\x10\x02\x12\x19\x0A\x15CASCADED_CHECK_OPTION\x10\x03*v\x0A\x0BDiscardMode\x12\x1A\x0A\x16DISCARD_MODE_UNDEFINED\x10\x00\x12\x0F\x0A\x0BDISCARD_ALL\x10\x01\x12\x11\x0A\x0DDISCARD_PLANS\x10\x02\x12\x15\x0A\x11DISCARD_SEQUENCES\x10\x03\x12\x10\x0A\x0CDISCARD_TEMP\x10\x04*\xBD\x01\x0A\x11ReindexObjectType\x12!\x0A\x1DREINDEX_OBJECT_TYPE_UNDEFINED\x10\x00\x12\x18\x0A\x14REINDEX_OBJECT_INDEX\x10\x01\x12\x18\x0A\x14REINDEX_OBJECT_TABLE\x10\x02\x12\x19\x0A\x15REINDEX_OBJECT_SCHEMA\x10\x03\x12\x19\x0A\x15REINDEX_OBJECT_SYSTEM\x10\x04\x12\x1B\x0A\x17REINDEX_OBJECT_DATABASE\x10\x05*\xEF\x01\x0A\x11AlterTSConfigType\x12!\x0A\x1DALTER_TSCONFIG_TYPE_UNDEFINED\x10\x00\x12\x1E\x0A\x1AALTER_TSCONFIG_ADD_MAPPING\x10\x01\x12*\x0A&ALTER_TSCONFIG_ALTER_MAPPING_FOR_TOKEN\x10\x02\x12\x1F\x0A\x1BALTER_TSCONFIG_REPLACE_DICT\x10\x03\x12)\x0A%ALTER_TSCONFIG_REPLACE_DICT_FOR_TOKEN\x10\x04\x12\x1F\x0A\x1BALTER_TSCONFIG_DROP_MAPPING\x10\x05*\xCA\x01\x0A\x16PublicationObjSpecType\x12'\x0A#PUBLICATION_OBJ_SPEC_TYPE_UNDEFINED\x10\x00\x12\x18\x0A\x14PUBLICATIONOBJ_TABLE\x10\x01\x12#\x0A\x1FPUBLICATIONOBJ_TABLES_IN_SCHEMA\x10\x02\x12'\x0A#PUBLICATIONOBJ_TABLES_IN_CUR_SCHEMA\x10\x03\x12\x1F\x0A\x1BPUBLICATIONOBJ_CONTINUATION\x10\x04*z\x0A\x16AlterPublicationAction\x12&\x0A\"ALTER_PUBLICATION_ACTION_UNDEFINED\x10\x00\x12\x11\x0A\x0DAP_AddObjects\x10\x01\x12\x12\x0A\x0EAP_DropObjects\x10\x02\x12\x11\x0A\x0DAP_SetObjects\x10\x03*\xD7\x02\x0A\x15AlterSubscriptionType\x12%\x0A!ALTER_SUBSCRIPTION_TYPE_UNDEFINED\x10\x00\x12\x1E\x0A\x1AALTER_SUBSCRIPTION_OPTIONS\x10\x01\x12!\x0A\x1DALTER_SUBSCRIPTION_CONNECTION\x10\x02\x12&\x0A\"ALTER_SUBSCRIPTION_SET_PUBLICATION\x10\x03\x12&\x0A\"ALTER_SUBSCRIPTION_ADD_PUBLICATION\x10\x04\x12'\x0A#ALTER_SUBSCRIPTION_DROP_PUBLICATION\x10\x05\x12\x1E\x0A\x1AALTER_SUBSCRIPTION_REFRESH\x10\x06\x12\x1E\x0A\x1AALTER_SUBSCRIPTION_ENABLED\x10\x07\x12\x1B\x0A\x17ALTER_SUBSCRIPTION_SKIP\x10\x08*\x7F\x0A\x0EOverridingKind\x12\x1D\x0A\x19OVERRIDING_KIND_UNDEFINED\x10\x00\x12\x16\x0A\x12OVERRIDING_NOT_SET\x10\x01\x12\x19\x0A\x15OVERRIDING_USER_VALUE\x10\x02\x12\x1B\x0A\x17OVERRIDING_SYSTEM_VALUE\x10\x03*\x8C\x01\x0A\x0EOnCommitAction\x12\x1E\x0A\x1AON_COMMIT_ACTION_UNDEFINED\x10\x00\x12\x11\x0A\x0DONCOMMIT_NOOP\x10\x01\x12\x1A\x0A\x16ONCOMMIT_PRESERVE_ROWS\x10\x02\x12\x18\x0A\x14ONCOMMIT_DELETE_ROWS\x10\x03\x12\x11\x0A\x0DONCOMMIT_DROP\x10\x04*T\x0A\x0DTableFuncType\x12\x1D\x0A\x19TABLE_FUNC_TYPE_UNDEFINED\x10\x00\x12\x10\x0A\x0CTFT_XMLTABLE\x10\x01\x12\x12\x0A\x0ETFT_JSON_TABLE\x10\x02*o\x0A\x09ParamKind\x12\x18\x0A\x14PARAM_KIND_UNDEFINED\x10\x00\x12\x10\x0A\x0CPARAM_EXTERN\x10\x01\x12\x0E\x0A\x0APARAM_EXEC\x10\x02\x12\x11\x0A\x0DPARAM_SUBLINK\x10\x03\x12\x13\x0A\x0FPARAM_MULTIEXPR\x10\x04*\x8E\x01\x0A\x0FCoercionContext\x12\x1E\x0A\x1ACOERCION_CONTEXT_UNDEFINED\x10\x00\x12\x15\x0A\x11COERCION_IMPLICIT\x10\x01\x12\x17\x0A\x13COERCION_ASSIGNMENT\x10\x02\x12\x14\x0A\x10COERCION_PLPGSQL\x10\x03\x12\x15\x0A\x11COERCION_EXPLICIT\x10\x04*\x90\x01\x0A\x0CCoercionForm\x12\x1B\x0A\x17COERCION_FORM_UNDEFINED\x10\x00\x12\x18\x0A\x14COERCE_EXPLICIT_CALL\x10\x01\x12\x18\x0A\x14COERCE_EXPLICIT_CAST\x10\x02\x12\x18\x0A\x14COERCE_IMPLICIT_CAST\x10\x03\x12\x15\x0A\x11COERCE_SQL_SYNTAX\x10\x04*U\x0A\x0CBoolExprType\x12\x1C\x0A\x18BOOL_EXPR_TYPE_UNDEFINED\x10\x00\x12\x0C\x0A\x08AND_EXPR\x10\x01\x12\x0B\x0A\x07OR_EXPR\x10\x02\x12\x0C\x0A\x08NOT_EXPR\x10\x03*\xC5\x01\x0A\x0BSubLinkType\x12\x1B\x0A\x17SUB_LINK_TYPE_UNDEFINED\x10\x00\x12\x12\x0A\x0EEXISTS_SUBLINK\x10\x01\x12\x0F\x0A\x0BALL_SUBLINK\x10\x02\x12\x0F\x0A\x0BANY_SUBLINK\x10\x03\x12\x16\x0A\x12ROWCOMPARE_SUBLINK\x10\x04\x12\x10\x0A\x0CEXPR_SUBLINK\x10\x05\x12\x15\x0A\x11MULTIEXPR_SUBLINK\x10\x06\x12\x11\x0A\x0DARRAY_SUBLINK\x10\x07\x12\x0F\x0A\x0BCTE_SUBLINK\x10\x08*\xA2\x01\x0A\x0ERowCompareType\x12\x1E\x0A\x1AROW_COMPARE_TYPE_UNDEFINED\x10\x00\x12\x11\x0A\x0DROWCOMPARE_LT\x10\x01\x12\x11\x0A\x0DROWCOMPARE_LE\x10\x02\x12\x11\x0A\x0DROWCOMPARE_EQ\x10\x03\x12\x11\x0A\x0DROWCOMPARE_GE\x10\x04\x12\x11\x0A\x0DROWCOMPARE_GT\x10\x05\x12\x11\x0A\x0DROWCOMPARE_NE\x10\x06*C\x0A\x08MinMaxOp\x12\x18\x0A\x14MIN_MAX_OP_UNDEFINED\x10\x00\x12\x0F\x0A\x0BIS_GREATEST\x10\x01\x12\x0C\x0A\x08IS_LEAST\x10\x02*\xAD\x03\x0A\x12SQLValueFunctionOp\x12\"\x0A\x1ESQLVALUE_FUNCTION_OP_UNDEFINED\x10\x00\x12\x16\x0A\x12SVFOP_CURRENT_DATE\x10\x01\x12\x16\x0A\x12SVFOP_CURRENT_TIME\x10\x02\x12\x18\x0A\x14SVFOP_CURRENT_TIME_N\x10\x03\x12\x1B\x0A\x17SVFOP_CURRENT_TIMESTAMP\x10\x04\x12\x1D\x0A\x19SVFOP_CURRENT_TIMESTAMP_N\x10\x05\x12\x13\x0A\x0FSVFOP_LOCALTIME\x10\x06\x12\x15\x0A\x11SVFOP_LOCALTIME_N\x10\x07\x12\x18\x0A\x14SVFOP_LOCALTIMESTAMP\x10\x08\x12\x1A\x0A\x16SVFOP_LOCALTIMESTAMP_N\x10\x09\x12\x16\x0A\x12SVFOP_CURRENT_ROLE\x10\x0A\x12\x16\x0A\x12SVFOP_CURRENT_USER\x10\x0B\x12\x0E\x0A\x0ASVFOP_USER\x10\x0C\x12\x16\x0A\x12SVFOP_SESSION_USER\x10\x0D\x12\x19\x0A\x15SVFOP_CURRENT_CATALOG\x10\x0E\x12\x18\x0A\x14SVFOP_CURRENT_SCHEMA\x10\x0F*\xB2\x01\x0A\x09XmlExprOp\x12\x19\x0A\x15XML_EXPR_OP_UNDEFINED\x10\x00\x12\x10\x0A\x0CIS_XMLCONCAT\x10\x01\x12\x11\x0A\x0DIS_XMLELEMENT\x10\x02\x12\x10\x0A\x0CIS_XMLFOREST\x10\x03\x12\x0F\x0A\x0BIS_XMLPARSE\x10\x04\x12\x0C\x0A\x08IS_XMLPI\x10\x05\x12\x0E\x0A\x0AIS_XMLROOT\x10\x06\x12\x13\x0A\x0FIS_XMLSERIALIZE\x10\x07\x12\x0F\x0A\x0BIS_DOCUMENT\x10\x08*]\x0A\x0DXmlOptionType\x12\x1D\x0A\x19XML_OPTION_TYPE_UNDEFINED\x10\x00\x12\x16\x0A\x12XMLOPTION_DOCUMENT\x10\x01\x12\x15\x0A\x11XMLOPTION_CONTENT\x10\x02*t\x0A\x0CJsonEncoding\x12\x1B\x0A\x17JSON_ENCODING_UNDEFINED\x10\x00\x12\x12\x0A\x0EJS_ENC_DEFAULT\x10\x01\x12\x0F\x0A\x0BJS_ENC_UTF8\x10\x02\x12\x10\x0A\x0CJS_ENC_UTF16\x10\x03\x12\x10\x0A\x0CJS_ENC_UTF32\x10\x04*p\x0A\x0EJsonFormatType\x12\x1E\x0A\x1AJSON_FORMAT_TYPE_UNDEFINED\x10\x00\x12\x15\x0A\x11JS_FORMAT_DEFAULT\x10\x01\x12\x12\x0A\x0EJS_FORMAT_JSON\x10\x02\x12\x13\x0A\x0FJS_FORMAT_JSONB\x10\x03*\xE8\x01\x0A\x13JsonConstructorType\x12#\x0A\x1FJSON_CONSTRUCTOR_TYPE_UNDEFINED\x10\x00\x12\x16\x0A\x12JSCTOR_JSON_OBJECT\x10\x01\x12\x15\x0A\x11JSCTOR_JSON_ARRAY\x10\x02\x12\x19\x0A\x15JSCTOR_JSON_OBJECTAGG\x10\x03\x12\x18\x0A\x14JSCTOR_JSON_ARRAYAGG\x10\x04\x12\x15\x0A\x11JSCTOR_JSON_PARSE\x10\x05\x12\x16\x0A\x12JSCTOR_JSON_SCALAR\x10\x06\x12\x19\x0A\x15JSCTOR_JSON_SERIALIZE\x10\x07*z\x0A\x0DJsonValueType\x12\x1D\x0A\x19JSON_VALUE_TYPE_UNDEFINED\x10\x00\x12\x0F\x0A\x0BJS_TYPE_ANY\x10\x01\x12\x12\x0A\x0EJS_TYPE_OBJECT\x10\x02\x12\x11\x0A\x0DJS_TYPE_ARRAY\x10\x03\x12\x12\x0A\x0EJS_TYPE_SCALAR\x10\x04*s\x0A\x0BJsonWrapper\x12\x1A\x0A\x16JSON_WRAPPER_UNDEFINED\x10\x00\x12\x0E\x0A\x0AJSW_UNSPEC\x10\x01\x12\x0C\x0A\x08JSW_NONE\x10\x02\x12\x13\x0A\x0FJSW_CONDITIONAL\x10\x03\x12\x15\x0A\x11JSW_UNCONDITIONAL\x10\x04*\xA4\x02\x0A\x10JsonBehaviorType\x12 \x0A\x1CJSON_BEHAVIOR_TYPE_UNDEFINED\x10\x00\x12\x16\x0A\x12JSON_BEHAVIOR_NULL\x10\x01\x12\x17\x0A\x13JSON_BEHAVIOR_ERROR\x10\x02\x12\x17\x0A\x13JSON_BEHAVIOR_EMPTY\x10\x03\x12\x16\x0A\x12JSON_BEHAVIOR_TRUE\x10\x04\x12\x17\x0A\x13JSON_BEHAVIOR_FALSE\x10\x05\x12\x19\x0A\x15JSON_BEHAVIOR_UNKNOWN\x10\x06\x12\x1D\x0A\x19JSON_BEHAVIOR_EMPTY_ARRAY\x10\x07\x12\x1E\x0A\x1AJSON_BEHAVIOR_EMPTY_OBJECT\x10\x08\x12\x19\x0A\x15JSON_BEHAVIOR_DEFAULT\x10\x09*u\x0A\x0AJsonExprOp\x12\x1A\x0A\x16JSON_EXPR_OP_UNDEFINED\x10\x00\x12\x12\x0A\x0EJSON_EXISTS_OP\x10\x01\x12\x11\x0A\x0DJSON_QUERY_OP\x10\x02\x12\x11\x0A\x0DJSON_VALUE_OP\x10\x03\x12\x11\x0A\x0DJSON_TABLE_OP\x10\x04*J\x0A\x0CNullTestType\x12\x1C\x0A\x18NULL_TEST_TYPE_UNDEFINED\x10\x00\x12\x0B\x0A\x07IS_NULL\x10\x01\x12\x0F\x0A\x0BIS_NOT_NULL\x10\x02*\x8E\x01\x0A\x0CBoolTestType\x12\x1C\x0A\x18BOOL_TEST_TYPE_UNDEFINED\x10\x00\x12\x0B\x0A\x07IS_TRUE\x10\x01\x12\x0F\x0A\x0BIS_NOT_TRUE\x10\x02\x12\x0C\x0A\x08IS_FALSE\x10\x03\x12\x10\x0A\x0CIS_NOT_FALSE\x10\x04\x12\x0E\x0A\x0AIS_UNKNOWN\x10\x05\x12\x12\x0A\x0EIS_NOT_UNKNOWN\x10\x06*\x94\x01\x0A\x0EMergeMatchKind\x12\x1E\x0A\x1AMERGE_MATCH_KIND_UNDEFINED\x10\x00\x12\x16\x0A\x12MERGE_WHEN_MATCHED\x10\x01\x12\$\x0A MERGE_WHEN_NOT_MATCHED_BY_SOURCE\x10\x02\x12\$\x0A MERGE_WHEN_NOT_MATCHED_BY_TARGET\x10\x03*\xA3\x01\x0A\x07CmdType\x12\x16\x0A\x12CMD_TYPE_UNDEFINED\x10\x00\x12\x0F\x0A\x0BCMD_UNKNOWN\x10\x01\x12\x0E\x0A\x0ACMD_SELECT\x10\x02\x12\x0E\x0A\x0ACMD_UPDATE\x10\x03\x12\x0E\x0A\x0ACMD_INSERT\x10\x04\x12\x0E\x0A\x0ACMD_DELETE\x10\x05\x12\x0D\x0A\x09CMD_MERGE\x10\x06\x12\x0F\x0A\x0BCMD_UTILITY\x10\x07\x12\x0F\x0A\x0BCMD_NOTHING\x10\x08*\xC2\x01\x0A\x08JoinType\x12\x17\x0A\x13JOIN_TYPE_UNDEFINED\x10\x00\x12\x0E\x0A\x0AJOIN_INNER\x10\x01\x12\x0D\x0A\x09JOIN_LEFT\x10\x02\x12\x0D\x0A\x09JOIN_FULL\x10\x03\x12\x0E\x0A\x0AJOIN_RIGHT\x10\x04\x12\x0D\x0A\x09JOIN_SEMI\x10\x05\x12\x0D\x0A\x09JOIN_ANTI\x10\x06\x12\x13\x0A\x0FJOIN_RIGHT_ANTI\x10\x07\x12\x15\x0A\x11JOIN_UNIQUE_OUTER\x10\x08\x12\x15\x0A\x11JOIN_UNIQUE_INNER\x10\x09*g\x0A\x0BAggStrategy\x12\x1A\x0A\x16AGG_STRATEGY_UNDEFINED\x10\x00\x12\x0D\x0A\x09AGG_PLAIN\x10\x01\x12\x0E\x0A\x0AAGG_SORTED\x10\x02\x12\x0E\x0A\x0AAGG_HASHED\x10\x03\x12\x0D\x0A\x09AGG_MIXED\x10\x04*r\x0A\x08AggSplit\x12\x17\x0A\x13AGG_SPLIT_UNDEFINED\x10\x00\x12\x13\x0A\x0FAGGSPLIT_SIMPLE\x10\x01\x12\x1B\x0A\x17AGGSPLIT_INITIAL_SERIAL\x10\x02\x12\x1B\x0A\x17AGGSPLIT_FINAL_DESERIAL\x10\x03*\x86\x01\x0A\x08SetOpCmd\x12\x18\x0A\x14SET_OP_CMD_UNDEFINED\x10\x00\x12\x16\x0A\x12SETOPCMD_INTERSECT\x10\x01\x12\x1A\x0A\x16SETOPCMD_INTERSECT_ALL\x10\x02\x12\x13\x0A\x0FSETOPCMD_EXCEPT\x10\x03\x12\x17\x0A\x13SETOPCMD_EXCEPT_ALL\x10\x04*R\x0A\x0DSetOpStrategy\x12\x1D\x0A\x19SET_OP_STRATEGY_UNDEFINED\x10\x00\x12\x10\x0A\x0CSETOP_SORTED\x10\x01\x12\x10\x0A\x0CSETOP_HASHED\x10\x02*x\x0A\x10OnConflictAction\x12 \x0A\x1CON_CONFLICT_ACTION_UNDEFINED\x10\x00\x12\x13\x0A\x0FONCONFLICT_NONE\x10\x01\x12\x16\x0A\x12ONCONFLICT_NOTHING\x10\x02\x12\x15\x0A\x11ONCONFLICT_UPDATE\x10\x03*w\x0A\x0BLimitOption\x12\x1A\x0A\x16LIMIT_OPTION_UNDEFINED\x10\x00\x12\x18\x0A\x14LIMIT_OPTION_DEFAULT\x10\x01\x12\x16\x0A\x12LIMIT_OPTION_COUNT\x10\x02\x12\x1A\x0A\x16LIMIT_OPTION_WITH_TIES\x10\x03*\x98\x01\x0A\x12LockClauseStrength\x12\"\x0A\x1ELOCK_CLAUSE_STRENGTH_UNDEFINED\x10\x00\x12\x0C\x0A\x08LCS_NONE\x10\x01\x12\x13\x0A\x0FLCS_FORKEYSHARE\x10\x02\x12\x10\x0A\x0CLCS_FORSHARE\x10\x03\x12\x16\x0A\x12LCS_FORNOKEYUPDATE\x10\x04\x12\x11\x0A\x0DLCS_FORUPDATE\x10\x05*h\x0A\x0ELockWaitPolicy\x12\x1E\x0A\x1ALOCK_WAIT_POLICY_UNDEFINED\x10\x00\x12\x11\x0A\x0DLockWaitBlock\x10\x01\x12\x10\x0A\x0CLockWaitSkip\x10\x02\x12\x11\x0A\x0DLockWaitError\x10\x03*\x8E\x01\x0A\x0DLockTupleMode\x12\x1D\x0A\x19LOCK_TUPLE_MODE_UNDEFINED\x10\x00\x12\x15\x0A\x11LockTupleKeyShare\x10\x01\x12\x12\x0A\x0ELockTupleShare\x10\x02\x12\x1B\x0A\x17LockTupleNoKeyExclusive\x10\x03\x12\x16\x0A\x12LockTupleExclusive\x10\x04*}\x0A\x0BKeywordKind\x12\x0E\x0A\x0ANO_KEYWORD\x10\x00\x12\x16\x0A\x12UNRESERVED_KEYWORD\x10\x01\x12\x14\x0A\x10COL_NAME_KEYWORD\x10\x02\x12\x1A\x0A\x16TYPE_FUNC_NAME_KEYWORD\x10\x03\x12\x14\x0A\x10RESERVED_KEYWORD\x10\x04*\xE8;\x0A\x05Token\x12\x07\x0A\x03NUL\x10\x00\x12\x0C\x0A\x08ASCII_36\x10\$\x12\x0C\x0A\x08ASCII_37\x10%\x12\x0C\x0A\x08ASCII_40\x10(\x12\x0C\x0A\x08ASCII_41\x10)\x12\x0C\x0A\x08ASCII_42\x10*\x12\x0C\x0A\x08ASCII_43\x10+\x12\x0C\x0A\x08ASCII_44\x10,\x12\x0C\x0A\x08ASCII_45\x10-\x12\x0C\x0A\x08ASCII_46\x10.\x12\x0C\x0A\x08ASCII_47\x10/\x12\x0C\x0A\x08ASCII_58\x10:\x12\x0C\x0A\x08ASCII_59\x10;\x12\x0C\x0A\x08ASCII_60\x10<\x12\x0C\x0A\x08ASCII_61\x10=\x12\x0C\x0A\x08ASCII_62\x10>\x12\x0C\x0A\x08ASCII_63\x10?\x12\x0C\x0A\x08ASCII_91\x10[\x12\x0C\x0A\x08ASCII_92\x10\\\x12\x0C\x0A\x08ASCII_93\x10]\x12\x0C\x0A\x08ASCII_94\x10^\x12\x0A\x0A\x05IDENT\x10\x82\x02\x12\x0B\x0A\x06UIDENT\x10\x83\x02\x12\x0B\x0A\x06FCONST\x10\x84\x02\x12\x0B\x0A\x06SCONST\x10\x85\x02\x12\x0C\x0A\x07USCONST\x10\x86\x02\x12\x0B\x0A\x06BCONST\x10\x87\x02\x12\x0B\x0A\x06XCONST\x10\x88\x02\x12\x07\x0A\x02Op\x10\x89\x02\x12\x0B\x0A\x06ICONST\x10\x8A\x02\x12\x0A\x0A\x05PARAM\x10\x8B\x02\x12\x0D\x0A\x08TYPECAST\x10\x8C\x02\x12\x0C\x0A\x07DOT_DOT\x10\x8D\x02\x12\x11\x0A\x0CCOLON_EQUALS\x10\x8E\x02\x12\x13\x0A\x0EEQUALS_GREATER\x10\x8F\x02\x12\x10\x0A\x0BLESS_EQUALS\x10\x90\x02\x12\x13\x0A\x0EGREATER_EQUALS\x10\x91\x02\x12\x0F\x0A\x0ANOT_EQUALS\x10\x92\x02\x12\x10\x0A\x0BSQL_COMMENT\x10\x93\x02\x12\x0E\x0A\x09C_COMMENT\x10\x94\x02\x12\x0C\x0A\x07ABORT_P\x10\x95\x02\x12\x0B\x0A\x06ABSENT\x10\x96\x02\x12\x0F\x0A\x0AABSOLUTE_P\x10\x97\x02\x12\x0B\x0A\x06ACCESS\x10\x98\x02\x12\x0B\x0A\x06ACTION\x10\x99\x02\x12\x0A\x0A\x05ADD_P\x10\x9A\x02\x12\x0A\x0A\x05ADMIN\x10\x9B\x02\x12\x0A\x0A\x05AFTER\x10\x9C\x02\x12\x0E\x0A\x09AGGREGATE\x10\x9D\x02\x12\x08\x0A\x03ALL\x10\x9E\x02\x12\x09\x0A\x04ALSO\x10\x9F\x02\x12\x0A\x0A\x05ALTER\x10\xA0\x02\x12\x0B\x0A\x06ALWAYS\x10\xA1\x02\x12\x0C\x0A\x07ANALYSE\x10\xA2\x02\x12\x0C\x0A\x07ANALYZE\x10\xA3\x02\x12\x08\x0A\x03AND\x10\xA4\x02\x12\x08\x0A\x03ANY\x10\xA5\x02\x12\x0A\x0A\x05ARRAY\x10\xA6\x02\x12\x07\x0A\x02AS\x10\xA7\x02\x12\x08\x0A\x03ASC\x10\xA8\x02\x12\x0F\x0A\x0AASENSITIVE\x10\xA9\x02\x12\x0E\x0A\x09ASSERTION\x10\xAA\x02\x12\x0F\x0A\x0AASSIGNMENT\x10\xAB\x02\x12\x0F\x0A\x0AASYMMETRIC\x10\xAC\x02\x12\x0B\x0A\x06ATOMIC\x10\xAD\x02\x12\x07\x0A\x02AT\x10\xAE\x02\x12\x0B\x0A\x06ATTACH\x10\xAF\x02\x12\x0E\x0A\x09ATTRIBUTE\x10\xB0\x02\x12\x12\x0A\x0DAUTHORIZATION\x10\xB1\x02\x12\x0D\x0A\x08BACKWARD\x10\xB2\x02\x12\x0B\x0A\x06BEFORE\x10\xB3\x02\x12\x0C\x0A\x07BEGIN_P\x10\xB4\x02\x12\x0C\x0A\x07BETWEEN\x10\xB5\x02\x12\x0B\x0A\x06BIGINT\x10\xB6\x02\x12\x0B\x0A\x06BINARY\x10\xB7\x02\x12\x08\x0A\x03BIT\x10\xB8\x02\x12\x0E\x0A\x09BOOLEAN_P\x10\xB9\x02\x12\x09\x0A\x04BOTH\x10\xBA\x02\x12\x0C\x0A\x07BREADTH\x10\xBB\x02\x12\x07\x0A\x02BY\x10\xBC\x02\x12\x0A\x0A\x05CACHE\x10\xBD\x02\x12\x09\x0A\x04CALL\x10\xBE\x02\x12\x0B\x0A\x06CALLED\x10\xBF\x02\x12\x0C\x0A\x07CASCADE\x10\xC0\x02\x12\x0D\x0A\x08CASCADED\x10\xC1\x02\x12\x09\x0A\x04CASE\x10\xC2\x02\x12\x09\x0A\x04CAST\x10\xC3\x02\x12\x0E\x0A\x09CATALOG_P\x10\xC4\x02\x12\x0A\x0A\x05CHAIN\x10\xC5\x02\x12\x0B\x0A\x06CHAR_P\x10\xC6\x02\x12\x0E\x0A\x09CHARACTER\x10\xC7\x02\x12\x14\x0A\x0FCHARACTERISTICS\x10\xC8\x02\x12\x0A\x0A\x05CHECK\x10\xC9\x02\x12\x0F\x0A\x0ACHECKPOINT\x10\xCA\x02\x12\x0A\x0A\x05CLASS\x10\xCB\x02\x12\x0A\x0A\x05CLOSE\x10\xCC\x02\x12\x0C\x0A\x07CLUSTER\x10\xCD\x02\x12\x0D\x0A\x08COALESCE\x10\xCE\x02\x12\x0C\x0A\x07COLLATE\x10\xCF\x02\x12\x0E\x0A\x09COLLATION\x10\xD0\x02\x12\x0B\x0A\x06COLUMN\x10\xD1\x02\x12\x0C\x0A\x07COLUMNS\x10\xD2\x02\x12\x0C\x0A\x07COMMENT\x10\xD3\x02\x12\x0D\x0A\x08COMMENTS\x10\xD4\x02\x12\x0B\x0A\x06COMMIT\x10\xD5\x02\x12\x0E\x0A\x09COMMITTED\x10\xD6\x02\x12\x10\x0A\x0BCOMPRESSION\x10\xD7\x02\x12\x11\x0A\x0CCONCURRENTLY\x10\xD8\x02\x12\x10\x0A\x0BCONDITIONAL\x10\xD9\x02\x12\x12\x0A\x0DCONFIGURATION\x10\xDA\x02\x12\x0D\x0A\x08CONFLICT\x10\xDB\x02\x12\x0F\x0A\x0ACONNECTION\x10\xDC\x02\x12\x0F\x0A\x0ACONSTRAINT\x10\xDD\x02\x12\x10\x0A\x0BCONSTRAINTS\x10\xDE\x02\x12\x0E\x0A\x09CONTENT_P\x10\xDF\x02\x12\x0F\x0A\x0ACONTINUE_P\x10\xE0\x02\x12\x11\x0A\x0CCONVERSION_P\x10\xE1\x02\x12\x09\x0A\x04COPY\x10\xE2\x02\x12\x09\x0A\x04COST\x10\xE3\x02\x12\x0B\x0A\x06CREATE\x10\xE4\x02\x12\x0A\x0A\x05CROSS\x10\xE5\x02\x12\x08\x0A\x03CSV\x10\xE6\x02\x12\x09\x0A\x04CUBE\x10\xE7\x02\x12\x0E\x0A\x09CURRENT_P\x10\xE8\x02\x12\x14\x0A\x0FCURRENT_CATALOG\x10\xE9\x02\x12\x11\x0A\x0CCURRENT_DATE\x10\xEA\x02\x12\x11\x0A\x0CCURRENT_ROLE\x10\xEB\x02\x12\x13\x0A\x0ECURRENT_SCHEMA\x10\xEC\x02\x12\x11\x0A\x0CCURRENT_TIME\x10\xED\x02\x12\x16\x0A\x11CURRENT_TIMESTAMP\x10\xEE\x02\x12\x11\x0A\x0CCURRENT_USER\x10\xEF\x02\x12\x0B\x0A\x06CURSOR\x10\xF0\x02\x12\x0A\x0A\x05CYCLE\x10\xF1\x02\x12\x0B\x0A\x06DATA_P\x10\xF2\x02\x12\x0D\x0A\x08DATABASE\x10\xF3\x02\x12\x0A\x0A\x05DAY_P\x10\xF4\x02\x12\x0F\x0A\x0ADEALLOCATE\x10\xF5\x02\x12\x08\x0A\x03DEC\x10\xF6\x02\x12\x0E\x0A\x09DECIMAL_P\x10\xF7\x02\x12\x0C\x0A\x07DECLARE\x10\xF8\x02\x12\x0C\x0A\x07DEFAULT\x10\xF9\x02\x12\x0D\x0A\x08DEFAULTS\x10\xFA\x02\x12\x0F\x0A\x0ADEFERRABLE\x10\xFB\x02\x12\x0D\x0A\x08DEFERRED\x10\xFC\x02\x12\x0C\x0A\x07DEFINER\x10\xFD\x02\x12\x0D\x0A\x08DELETE_P\x10\xFE\x02\x12\x0E\x0A\x09DELIMITER\x10\xFF\x02\x12\x0F\x0A\x0ADELIMITERS\x10\x80\x03\x12\x0C\x0A\x07DEPENDS\x10\x81\x03\x12\x0A\x0A\x05DEPTH\x10\x82\x03\x12\x09\x0A\x04DESC\x10\x83\x03\x12\x0B\x0A\x06DETACH\x10\x84\x03\x12\x0F\x0A\x0ADICTIONARY\x10\x85\x03\x12\x0E\x0A\x09DISABLE_P\x10\x86\x03\x12\x0C\x0A\x07DISCARD\x10\x87\x03\x12\x0D\x0A\x08DISTINCT\x10\x88\x03\x12\x07\x0A\x02DO\x10\x89\x03\x12\x0F\x0A\x0ADOCUMENT_P\x10\x8A\x03\x12\x0D\x0A\x08DOMAIN_P\x10\x8B\x03\x12\x0D\x0A\x08DOUBLE_P\x10\x8C\x03\x12\x09\x0A\x04DROP\x10\x8D\x03\x12\x09\x0A\x04EACH\x10\x8E\x03\x12\x09\x0A\x04ELSE\x10\x8F\x03\x12\x0C\x0A\x07EMPTY_P\x10\x90\x03\x12\x0D\x0A\x08ENABLE_P\x10\x91\x03\x12\x0D\x0A\x08ENCODING\x10\x92\x03\x12\x0E\x0A\x09ENCRYPTED\x10\x93\x03\x12\x0A\x0A\x05END_P\x10\x94\x03\x12\x0B\x0A\x06ENUM_P\x10\x95\x03\x12\x0C\x0A\x07ERROR_P\x10\x96\x03\x12\x0B\x0A\x06ESCAPE\x10\x97\x03\x12\x0A\x0A\x05EVENT\x10\x98\x03\x12\x0B\x0A\x06EXCEPT\x10\x99\x03\x12\x0C\x0A\x07EXCLUDE\x10\x9A\x03\x12\x0E\x0A\x09EXCLUDING\x10\x9B\x03\x12\x0E\x0A\x09EXCLUSIVE\x10\x9C\x03\x12\x0C\x0A\x07EXECUTE\x10\x9D\x03\x12\x0B\x0A\x06EXISTS\x10\x9E\x03\x12\x0C\x0A\x07EXPLAIN\x10\x9F\x03\x12\x0F\x0A\x0AEXPRESSION\x10\xA0\x03\x12\x0E\x0A\x09EXTENSION\x10\xA1\x03\x12\x0D\x0A\x08EXTERNAL\x10\xA2\x03\x12\x0C\x0A\x07EXTRACT\x10\xA3\x03\x12\x0C\x0A\x07FALSE_P\x10\xA4\x03\x12\x0B\x0A\x06FAMILY\x10\xA5\x03\x12\x0A\x0A\x05FETCH\x10\xA6\x03\x12\x0B\x0A\x06FILTER\x10\xA7\x03\x12\x0D\x0A\x08FINALIZE\x10\xA8\x03\x12\x0C\x0A\x07FIRST_P\x10\xA9\x03\x12\x0C\x0A\x07FLOAT_P\x10\xAA\x03\x12\x0E\x0A\x09FOLLOWING\x10\xAB\x03\x12\x08\x0A\x03FOR\x10\xAC\x03\x12\x0A\x0A\x05FORCE\x10\xAD\x03\x12\x0C\x0A\x07FOREIGN\x10\xAE\x03\x12\x0B\x0A\x06FORMAT\x10\xAF\x03\x12\x0C\x0A\x07FORWARD\x10\xB0\x03\x12\x0B\x0A\x06FREEZE\x10\xB1\x03\x12\x09\x0A\x04FROM\x10\xB2\x03\x12\x09\x0A\x04FULL\x10\xB3\x03\x12\x0D\x0A\x08FUNCTION\x10\xB4\x03\x12\x0E\x0A\x09FUNCTIONS\x10\xB5\x03\x12\x0E\x0A\x09GENERATED\x10\xB6\x03\x12\x0B\x0A\x06GLOBAL\x10\xB7\x03\x12\x0A\x0A\x05GRANT\x10\xB8\x03\x12\x0C\x0A\x07GRANTED\x10\xB9\x03\x12\x0D\x0A\x08GREATEST\x10\xBA\x03\x12\x0C\x0A\x07GROUP_P\x10\xBB\x03\x12\x0D\x0A\x08GROUPING\x10\xBC\x03\x12\x0B\x0A\x06GROUPS\x10\xBD\x03\x12\x0C\x0A\x07HANDLER\x10\xBE\x03\x12\x0B\x0A\x06HAVING\x10\xBF\x03\x12\x0D\x0A\x08HEADER_P\x10\xC0\x03\x12\x09\x0A\x04HOLD\x10\xC1\x03\x12\x0B\x0A\x06HOUR_P\x10\xC2\x03\x12\x0F\x0A\x0AIDENTITY_P\x10\xC3\x03\x12\x09\x0A\x04IF_P\x10\xC4\x03\x12\x0A\x0A\x05ILIKE\x10\xC5\x03\x12\x0E\x0A\x09IMMEDIATE\x10\xC6\x03\x12\x0E\x0A\x09IMMUTABLE\x10\xC7\x03\x12\x0F\x0A\x0AIMPLICIT_P\x10\xC8\x03\x12\x0D\x0A\x08IMPORT_P\x10\xC9\x03\x12\x09\x0A\x04IN_P\x10\xCA\x03\x12\x0C\x0A\x07INCLUDE\x10\xCB\x03\x12\x0E\x0A\x09INCLUDING\x10\xCC\x03\x12\x0E\x0A\x09INCREMENT\x10\xCD\x03\x12\x0B\x0A\x06INDENT\x10\xCE\x03\x12\x0A\x0A\x05INDEX\x10\xCF\x03\x12\x0C\x0A\x07INDEXES\x10\xD0\x03\x12\x0C\x0A\x07INHERIT\x10\xD1\x03\x12\x0D\x0A\x08INHERITS\x10\xD2\x03\x12\x0E\x0A\x09INITIALLY\x10\xD3\x03\x12\x0D\x0A\x08INLINE_P\x10\xD4\x03\x12\x0C\x0A\x07INNER_P\x10\xD5\x03\x12\x0A\x0A\x05INOUT\x10\xD6\x03\x12\x0C\x0A\x07INPUT_P\x10\xD7\x03\x12\x10\x0A\x0BINSENSITIVE\x10\xD8\x03\x12\x0B\x0A\x06INSERT\x10\xD9\x03\x12\x0C\x0A\x07INSTEAD\x10\xDA\x03\x12\x0A\x0A\x05INT_P\x10\xDB\x03\x12\x0C\x0A\x07INTEGER\x10\xDC\x03\x12\x0E\x0A\x09INTERSECT\x10\xDD\x03\x12\x0D\x0A\x08INTERVAL\x10\xDE\x03\x12\x09\x0A\x04INTO\x10\xDF\x03\x12\x0C\x0A\x07INVOKER\x10\xE0\x03\x12\x07\x0A\x02IS\x10\xE1\x03\x12\x0B\x0A\x06ISNULL\x10\xE2\x03\x12\x0E\x0A\x09ISOLATION\x10\xE3\x03\x12\x09\x0A\x04JOIN\x10\xE4\x03\x12\x09\x0A\x04JSON\x10\xE5\x03\x12\x0F\x0A\x0AJSON_ARRAY\x10\xE6\x03\x12\x12\x0A\x0DJSON_ARRAYAGG\x10\xE7\x03\x12\x10\x0A\x0BJSON_EXISTS\x10\xE8\x03\x12\x10\x0A\x0BJSON_OBJECT\x10\xE9\x03\x12\x13\x0A\x0EJSON_OBJECTAGG\x10\xEA\x03\x12\x0F\x0A\x0AJSON_QUERY\x10\xEB\x03\x12\x10\x0A\x0BJSON_SCALAR\x10\xEC\x03\x12\x13\x0A\x0EJSON_SERIALIZE\x10\xED\x03\x12\x0F\x0A\x0AJSON_TABLE\x10\xEE\x03\x12\x0F\x0A\x0AJSON_VALUE\x10\xEF\x03\x12\x09\x0A\x04KEEP\x10\xF0\x03\x12\x08\x0A\x03KEY\x10\xF1\x03\x12\x09\x0A\x04KEYS\x10\xF2\x03\x12\x0A\x0A\x05LABEL\x10\xF3\x03\x12\x0D\x0A\x08LANGUAGE\x10\xF4\x03\x12\x0C\x0A\x07LARGE_P\x10\xF5\x03\x12\x0B\x0A\x06LAST_P\x10\xF6\x03\x12\x0E\x0A\x09LATERAL_P\x10\xF7\x03\x12\x0C\x0A\x07LEADING\x10\xF8\x03\x12\x0E\x0A\x09LEAKPROOF\x10\xF9\x03\x12\x0A\x0A\x05LEAST\x10\xFA\x03\x12\x09\x0A\x04LEFT\x10\xFB\x03\x12\x0A\x0A\x05LEVEL\x10\xFC\x03\x12\x09\x0A\x04LIKE\x10\xFD\x03\x12\x0A\x0A\x05LIMIT\x10\xFE\x03\x12\x0B\x0A\x06LISTEN\x10\xFF\x03\x12\x09\x0A\x04LOAD\x10\x80\x04\x12\x0A\x0A\x05LOCAL\x10\x81\x04\x12\x0E\x0A\x09LOCALTIME\x10\x82\x04\x12\x13\x0A\x0ELOCALTIMESTAMP\x10\x83\x04\x12\x0D\x0A\x08LOCATION\x10\x84\x04\x12\x0B\x0A\x06LOCK_P\x10\x85\x04\x12\x0B\x0A\x06LOCKED\x10\x86\x04\x12\x0B\x0A\x06LOGGED\x10\x87\x04\x12\x0C\x0A\x07MAPPING\x10\x88\x04\x12\x0A\x0A\x05MATCH\x10\x89\x04\x12\x0C\x0A\x07MATCHED\x10\x8A\x04\x12\x11\x0A\x0CMATERIALIZED\x10\x8B\x04\x12\x0D\x0A\x08MAXVALUE\x10\x8C\x04\x12\x0A\x0A\x05MERGE\x10\x8D\x04\x12\x11\x0A\x0CMERGE_ACTION\x10\x8E\x04\x12\x0B\x0A\x06METHOD\x10\x8F\x04\x12\x0D\x0A\x08MINUTE_P\x10\x90\x04\x12\x0D\x0A\x08MINVALUE\x10\x91\x04\x12\x09\x0A\x04MODE\x10\x92\x04\x12\x0C\x0A\x07MONTH_P\x10\x93\x04\x12\x09\x0A\x04MOVE\x10\x94\x04\x12\x0B\x0A\x06NAME_P\x10\x95\x04\x12\x0A\x0A\x05NAMES\x10\x96\x04\x12\x0D\x0A\x08NATIONAL\x10\x97\x04\x12\x0C\x0A\x07NATURAL\x10\x98\x04\x12\x0A\x0A\x05NCHAR\x10\x99\x04\x12\x0B\x0A\x06NESTED\x10\x9A\x04\x12\x08\x0A\x03NEW\x10\x9B\x04\x12\x09\x0A\x04NEXT\x10\x9C\x04\x12\x08\x0A\x03NFC\x10\x9D\x04\x12\x08\x0A\x03NFD\x10\x9E\x04\x12\x09\x0A\x04NFKC\x10\x9F\x04\x12\x09\x0A\x04NFKD\x10\xA0\x04\x12\x07\x0A\x02NO\x10\xA1\x04\x12\x09\x0A\x04NONE\x10\xA2\x04\x12\x0E\x0A\x09NORMALIZE\x10\xA3\x04\x12\x0F\x0A\x0ANORMALIZED\x10\xA4\x04\x12\x08\x0A\x03NOT\x10\xA5\x04\x12\x0C\x0A\x07NOTHING\x10\xA6\x04\x12\x0B\x0A\x06NOTIFY\x10\xA7\x04\x12\x0C\x0A\x07NOTNULL\x10\xA8\x04\x12\x0B\x0A\x06NOWAIT\x10\xA9\x04\x12\x0B\x0A\x06NULL_P\x10\xAA\x04\x12\x0B\x0A\x06NULLIF\x10\xAB\x04\x12\x0C\x0A\x07NULLS_P\x10\xAC\x04\x12\x0C\x0A\x07NUMERIC\x10\xAD\x04\x12\x0D\x0A\x08OBJECT_P\x10\xAE\x04\x12\x07\x0A\x02OF\x10\xAF\x04\x12\x08\x0A\x03OFF\x10\xB0\x04\x12\x0B\x0A\x06OFFSET\x10\xB1\x04\x12\x09\x0A\x04OIDS\x10\xB2\x04\x12\x08\x0A\x03OLD\x10\xB3\x04\x12\x09\x0A\x04OMIT\x10\xB4\x04\x12\x07\x0A\x02ON\x10\xB5\x04\x12\x09\x0A\x04ONLY\x10\xB6\x04\x12\x0D\x0A\x08OPERATOR\x10\xB7\x04\x12\x0B\x0A\x06OPTION\x10\xB8\x04\x12\x0C\x0A\x07OPTIONS\x10\xB9\x04\x12\x07\x0A\x02OR\x10\xBA\x04\x12\x0A\x0A\x05ORDER\x10\xBB\x04\x12\x0F\x0A\x0AORDINALITY\x10\xBC\x04\x12\x0B\x0A\x06OTHERS\x10\xBD\x04\x12\x0A\x0A\x05OUT_P\x10\xBE\x04\x12\x0C\x0A\x07OUTER_P\x10\xBF\x04\x12\x09\x0A\x04OVER\x10\xC0\x04\x12\x0D\x0A\x08OVERLAPS\x10\xC1\x04\x12\x0C\x0A\x07OVERLAY\x10\xC2\x04\x12\x0F\x0A\x0AOVERRIDING\x10\xC3\x04\x12\x0A\x0A\x05OWNED\x10\xC4\x04\x12\x0A\x0A\x05OWNER\x10\xC5\x04\x12\x0D\x0A\x08PARALLEL\x10\xC6\x04\x12\x0E\x0A\x09PARAMETER\x10\xC7\x04\x12\x0B\x0A\x06PARSER\x10\xC8\x04\x12\x0C\x0A\x07PARTIAL\x10\xC9\x04\x12\x0E\x0A\x09PARTITION\x10\xCA\x04\x12\x0C\x0A\x07PASSING\x10\xCB\x04\x12\x0D\x0A\x08PASSWORD\x10\xCC\x04\x12\x09\x0A\x04PATH\x10\xCD\x04\x12\x0C\x0A\x07PLACING\x10\xCE\x04\x12\x09\x0A\x04PLAN\x10\xCF\x04\x12\x0A\x0A\x05PLANS\x10\xD0\x04\x12\x0B\x0A\x06POLICY\x10\xD1\x04\x12\x0D\x0A\x08POSITION\x10\xD2\x04\x12\x0E\x0A\x09PRECEDING\x10\xD3\x04\x12\x0E\x0A\x09PRECISION\x10\xD4\x04\x12\x0D\x0A\x08PRESERVE\x10\xD5\x04\x12\x0C\x0A\x07PREPARE\x10\xD6\x04\x12\x0D\x0A\x08PREPARED\x10\xD7\x04\x12\x0C\x0A\x07PRIMARY\x10\xD8\x04\x12\x0A\x0A\x05PRIOR\x10\xD9\x04\x12\x0F\x0A\x0APRIVILEGES\x10\xDA\x04\x12\x0F\x0A\x0APROCEDURAL\x10\xDB\x04\x12\x0E\x0A\x09PROCEDURE\x10\xDC\x04\x12\x0F\x0A\x0APROCEDURES\x10\xDD\x04\x12\x0C\x0A\x07PROGRAM\x10\xDE\x04\x12\x10\x0A\x0BPUBLICATION\x10\xDF\x04\x12\x0A\x0A\x05QUOTE\x10\xE0\x04\x12\x0B\x0A\x06QUOTES\x10\xE1\x04\x12\x0A\x0A\x05RANGE\x10\xE2\x04\x12\x09\x0A\x04READ\x10\xE3\x04\x12\x09\x0A\x04REAL\x10\xE4\x04\x12\x0D\x0A\x08REASSIGN\x10\xE5\x04\x12\x0C\x0A\x07RECHECK\x10\xE6\x04\x12\x0E\x0A\x09RECURSIVE\x10\xE7\x04\x12\x0A\x0A\x05REF_P\x10\xE8\x04\x12\x0F\x0A\x0AREFERENCES\x10\xE9\x04\x12\x10\x0A\x0BREFERENCING\x10\xEA\x04\x12\x0C\x0A\x07REFRESH\x10\xEB\x04\x12\x0C\x0A\x07REINDEX\x10\xEC\x04\x12\x0F\x0A\x0ARELATIVE_P\x10\xED\x04\x12\x0C\x0A\x07RELEASE\x10\xEE\x04\x12\x0B\x0A\x06RENAME\x10\xEF\x04\x12\x0F\x0A\x0AREPEATABLE\x10\xF0\x04\x12\x0C\x0A\x07REPLACE\x10\xF1\x04\x12\x0C\x0A\x07REPLICA\x10\xF2\x04\x12\x0A\x0A\x05RESET\x10\xF3\x04\x12\x0C\x0A\x07RESTART\x10\xF4\x04\x12\x0D\x0A\x08RESTRICT\x10\xF5\x04\x12\x0B\x0A\x06RETURN\x10\xF6\x04\x12\x0E\x0A\x09RETURNING\x10\xF7\x04\x12\x0C\x0A\x07RETURNS\x10\xF8\x04\x12\x0B\x0A\x06REVOKE\x10\xF9\x04\x12\x0A\x0A\x05RIGHT\x10\xFA\x04\x12\x09\x0A\x04ROLE\x10\xFB\x04\x12\x0D\x0A\x08ROLLBACK\x10\xFC\x04\x12\x0B\x0A\x06ROLLUP\x10\xFD\x04\x12\x0C\x0A\x07ROUTINE\x10\xFE\x04\x12\x0D\x0A\x08ROUTINES\x10\xFF\x04\x12\x08\x0A\x03ROW\x10\x80\x05\x12\x09\x0A\x04ROWS\x10\x81\x05\x12\x09\x0A\x04RULE\x10\x82\x05\x12\x0E\x0A\x09SAVEPOINT\x10\x83\x05\x12\x0B\x0A\x06SCALAR\x10\x84\x05\x12\x0B\x0A\x06SCHEMA\x10\x85\x05\x12\x0C\x0A\x07SCHEMAS\x10\x86\x05\x12\x0B\x0A\x06SCROLL\x10\x87\x05\x12\x0B\x0A\x06SEARCH\x10\x88\x05\x12\x0D\x0A\x08SECOND_P\x10\x89\x05\x12\x0D\x0A\x08SECURITY\x10\x8A\x05\x12\x0B\x0A\x06SELECT\x10\x8B\x05\x12\x0D\x0A\x08SEQUENCE\x10\x8C\x05\x12\x0E\x0A\x09SEQUENCES\x10\x8D\x05\x12\x11\x0A\x0CSERIALIZABLE\x10\x8E\x05\x12\x0B\x0A\x06SERVER\x10\x8F\x05\x12\x0C\x0A\x07SESSION\x10\x90\x05\x12\x11\x0A\x0CSESSION_USER\x10\x91\x05\x12\x08\x0A\x03SET\x10\x92\x05\x12\x09\x0A\x04SETS\x10\x93\x05\x12\x0A\x0A\x05SETOF\x10\x94\x05\x12\x0A\x0A\x05SHARE\x10\x95\x05\x12\x09\x0A\x04SHOW\x10\x96\x05\x12\x0C\x0A\x07SIMILAR\x10\x97\x05\x12\x0B\x0A\x06SIMPLE\x10\x98\x05\x12\x09\x0A\x04SKIP\x10\x99\x05\x12\x0D\x0A\x08SMALLINT\x10\x9A\x05\x12\x0D\x0A\x08SNAPSHOT\x10\x9B\x05\x12\x09\x0A\x04SOME\x10\x9C\x05\x12\x0B\x0A\x06SOURCE\x10\x9D\x05\x12\x0A\x0A\x05SQL_P\x10\x9E\x05\x12\x0B\x0A\x06STABLE\x10\x9F\x05\x12\x11\x0A\x0CSTANDALONE_P\x10\xA0\x05\x12\x0A\x0A\x05START\x10\xA1\x05\x12\x0E\x0A\x09STATEMENT\x10\xA2\x05\x12\x0F\x0A\x0ASTATISTICS\x10\xA3\x05\x12\x0A\x0A\x05STDIN\x10\xA4\x05\x12\x0B\x0A\x06STDOUT\x10\xA5\x05\x12\x0C\x0A\x07STORAGE\x10\xA6\x05\x12\x0B\x0A\x06STORED\x10\xA7\x05\x12\x0D\x0A\x08STRICT_P\x10\xA8\x05\x12\x0D\x0A\x08STRING_P\x10\xA9\x05\x12\x0C\x0A\x07STRIP_P\x10\xAA\x05\x12\x11\x0A\x0CSUBSCRIPTION\x10\xAB\x05\x12\x0E\x0A\x09SUBSTRING\x10\xAC\x05\x12\x0C\x0A\x07SUPPORT\x10\xAD\x05\x12\x0E\x0A\x09SYMMETRIC\x10\xAE\x05\x12\x0A\x0A\x05SYSID\x10\xAF\x05\x12\x0D\x0A\x08SYSTEM_P\x10\xB0\x05\x12\x10\x0A\x0BSYSTEM_USER\x10\xB1\x05\x12\x0A\x0A\x05TABLE\x10\xB2\x05\x12\x0B\x0A\x06TABLES\x10\xB3\x05\x12\x10\x0A\x0BTABLESAMPLE\x10\xB4\x05\x12\x0F\x0A\x0ATABLESPACE\x10\xB5\x05\x12\x0B\x0A\x06TARGET\x10\xB6\x05\x12\x09\x0A\x04TEMP\x10\xB7\x05\x12\x0D\x0A\x08TEMPLATE\x10\xB8\x05\x12\x0E\x0A\x09TEMPORARY\x10\xB9\x05\x12\x0B\x0A\x06TEXT_P\x10\xBA\x05\x12\x09\x0A\x04THEN\x10\xBB\x05\x12\x09\x0A\x04TIES\x10\xBC\x05\x12\x09\x0A\x04TIME\x10\xBD\x05\x12\x0E\x0A\x09TIMESTAMP\x10\xBE\x05\x12\x07\x0A\x02TO\x10\xBF\x05\x12\x0D\x0A\x08TRAILING\x10\xC0\x05\x12\x10\x0A\x0BTRANSACTION\x10\xC1\x05\x12\x0E\x0A\x09TRANSFORM\x10\xC2\x05\x12\x0A\x0A\x05TREAT\x10\xC3\x05\x12\x0C\x0A\x07TRIGGER\x10\xC4\x05\x12\x09\x0A\x04TRIM\x10\xC5\x05\x12\x0B\x0A\x06TRUE_P\x10\xC6\x05\x12\x0D\x0A\x08TRUNCATE\x10\xC7\x05\x12\x0C\x0A\x07TRUSTED\x10\xC8\x05\x12\x0B\x0A\x06TYPE_P\x10\xC9\x05\x12\x0C\x0A\x07TYPES_P\x10\xCA\x05\x12\x0C\x0A\x07UESCAPE\x10\xCB\x05\x12\x0E\x0A\x09UNBOUNDED\x10\xCC\x05\x12\x12\x0A\x0DUNCONDITIONAL\x10\xCD\x05\x12\x10\x0A\x0BUNCOMMITTED\x10\xCE\x05\x12\x10\x0A\x0BUNENCRYPTED\x10\xCF\x05\x12\x0A\x0A\x05UNION\x10\xD0\x05\x12\x0B\x0A\x06UNIQUE\x10\xD1\x05\x12\x0C\x0A\x07UNKNOWN\x10\xD2\x05\x12\x0D\x0A\x08UNLISTEN\x10\xD3\x05\x12\x0D\x0A\x08UNLOGGED\x10\xD4\x05\x12\x0A\x0A\x05UNTIL\x10\xD5\x05\x12\x0B\x0A\x06UPDATE\x10\xD6\x05\x12\x09\x0A\x04USER\x10\xD7\x05\x12\x0A\x0A\x05USING\x10\xD8\x05\x12\x0B\x0A\x06VACUUM\x10\xD9\x05\x12\x0A\x0A\x05VALID\x10\xDA\x05\x12\x0D\x0A\x08VALIDATE\x10\xDB\x05\x12\x0E\x0A\x09VALIDATOR\x10\xDC\x05\x12\x0C\x0A\x07VALUE_P\x10\xDD\x05\x12\x0B\x0A\x06VALUES\x10\xDE\x05\x12\x0C\x0A\x07VARCHAR\x10\xDF\x05\x12\x0D\x0A\x08VARIADIC\x10\xE0\x05\x12\x0C\x0A\x07VARYING\x10\xE1\x05\x12\x0C\x0A\x07VERBOSE\x10\xE2\x05\x12\x0E\x0A\x09VERSION_P\x10\xE3\x05\x12\x09\x0A\x04VIEW\x10\xE4\x05\x12\x0A\x0A\x05VIEWS\x10\xE5\x05\x12\x0D\x0A\x08VOLATILE\x10\xE6\x05\x12\x09\x0A\x04WHEN\x10\xE7\x05\x12\x0A\x0A\x05WHERE\x10\xE8\x05\x12\x11\x0A\x0CWHITESPACE_P\x10\xE9\x05\x12\x0B\x0A\x06WINDOW\x10\xEA\x05\x12\x09\x0A\x04WITH\x10\xEB\x05\x12\x0B\x0A\x06WITHIN\x10\xEC\x05\x12\x0C\x0A\x07WITHOUT\x10\xED\x05\x12\x09\x0A\x04WORK\x10\xEE\x05\x12\x0C\x0A\x07WRAPPER\x10\xEF\x05\x12\x0A\x0A\x05WRITE\x10\xF0\x05\x12\x0A\x0A\x05XML_P\x10\xF1\x05\x12\x12\x0A\x0DXMLATTRIBUTES\x10\xF2\x05\x12\x0E\x0A\x09XMLCONCAT\x10\xF3\x05\x12\x0F\x0A\x0AXMLELEMENT\x10\xF4\x05\x12\x0E\x0A\x09XMLEXISTS\x10\xF5\x05\x12\x0E\x0A\x09XMLFOREST\x10\xF6\x05\x12\x12\x0A\x0DXMLNAMESPACES\x10\xF7\x05\x12\x0D\x0A\x08XMLPARSE\x10\xF8\x05\x12\x0A\x0A\x05XMLPI\x10\xF9\x05\x12\x0C\x0A\x07XMLROOT\x10\xFA\x05\x12\x11\x0A\x0CXMLSERIALIZE\x10\xFB\x05\x12\x0D\x0A\x08XMLTABLE\x10\xFC\x05\x12\x0B\x0A\x06YEAR_P\x10\xFD\x05\x12\x0A\x0A\x05YES_P\x10\xFE\x05\x12\x09\x0A\x04ZONE\x10\xFF\x05\x12\x0E\x0A\x09FORMAT_LA\x10\x80\x06\x12\x0B\x0A\x06NOT_LA\x10\x81\x06\x12\x0D\x0A\x08NULLS_LA\x10\x82\x06\x12\x0C\x0A\x07WITH_LA\x10\x83\x06\x12\x0F\x0A\x0AWITHOUT_LA\x10\x84\x06\x12\x13\x0A\x0EMODE_TYPE_NAME\x10\x85\x06\x12\x16\x0A\x11MODE_PLPGSQL_EXPR\x10\x86\x06\x12\x19\x0A\x14MODE_PLPGSQL_ASSIGN1\x10\x87\x06\x12\x19\x0A\x14MODE_PLPGSQL_ASSIGN2\x10\x88\x06\x12\x19\x0A\x14MODE_PLPGSQL_ASSIGN3\x10\x89\x06\x12\x0B\x0A\x06UMINUS\x10\x8A\x06B=\xCA\x02\x19Flow\\PgQuery\\Protobuf\\AST\xE2\x02\x1EFlow\\PgQuery\\Protobuf\\Metadatab\x06proto3", + true + ); + + static::$is_initialized = true; + } +} diff --git a/src/lib/pg-query/src/stubs.php b/src/lib/pg-query/src/stubs.php new file mode 100644 index 000000000..bf11cfa41 --- /dev/null +++ b/src/lib/pg-query/src/stubs.php @@ -0,0 +1,75 @@ + Array of individual SQL statements + */ + function pg_query_split(string $sql) : array + { + throw new \RuntimeException('pg_query extension is not loaded'); + } + + /** + * Scan SQL into tokens (returns protobuf-encoded data). + * + * @throws \RuntimeException on scan error + * + * @return string Protobuf-encoded scan result + */ + function pg_query_scan(string $sql) : string + { + throw new \RuntimeException('pg_query extension is not loaded'); + } +} diff --git a/src/lib/pg-query/tests/Flow/PgQuery/Tests/Unit/ParserTest.php b/src/lib/pg-query/tests/Flow/PgQuery/Tests/Unit/ParserTest.php new file mode 100644 index 000000000..be0b637f6 --- /dev/null +++ b/src/lib/pg-query/tests/Flow/PgQuery/Tests/Unit/ParserTest.php @@ -0,0 +1,122 @@ +fingerprint('SELECT 1'); + + self::assertIsString($fingerprint); + self::assertNotEmpty($fingerprint); + } + + public function test_fingerprint_same_for_equivalent_queries() : void + { + $parser = new Parser(); + + $fingerprint1 = $parser->fingerprint('SELECT id FROM users WHERE id = 1'); + $fingerprint2 = $parser->fingerprint('SELECT id FROM users WHERE id = 2'); + + self::assertSame($fingerprint1, $fingerprint2); + } + + public function test_normalize() : void + { + $parser = new Parser(); + $normalized = $parser->normalize('SELECT * FROM users WHERE id = 1'); + + self::assertIsString($normalized); + self::assertStringContainsString('$1', $normalized); + } + + public function test_normalize_multiple_values() : void + { + $parser = new Parser(); + $normalized = $parser->normalize("SELECT * FROM users WHERE id = 1 AND name = 'john'"); + + self::assertIsString($normalized); + self::assertStringContainsString('$1', $normalized); + self::assertStringContainsString('$2', $normalized); + } + + public function test_parse_invalid_sql_throws_exception() : void + { + $parser = new Parser(); + + $this->expectException(\Flow\PgQuery\Exception\ParserException::class); + $this->expectExceptionMessage('syntax error'); + + $parser->parse('SELECT FROM WHERE'); + } + + public function test_parse_multiple_statements() : void + { + $parser = new Parser(); + $result = $parser->parse('SELECT 1; SELECT 2'); + + self::assertInstanceOf(ParseResult::class, $result); + self::assertCount(2, $result->getStmts()); + } + + public function test_parse_select_with_columns() : void + { + $parser = new Parser(); + $result = $parser->parse('SELECT id, name FROM users'); + + self::assertInstanceOf(ParseResult::class, $result); + self::assertCount(1, $result->getStmts()); + } + + public function test_parse_select_with_where() : void + { + $parser = new Parser(); + $result = $parser->parse('SELECT * FROM users WHERE active = true'); + + self::assertInstanceOf(ParseResult::class, $result); + self::assertCount(1, $result->getStmts()); + } + + public function test_parse_simple_select() : void + { + $parser = new Parser(); + $result = $parser->parse('SELECT 1'); + + self::assertInstanceOf(ParseResult::class, $result); + self::assertCount(1, $result->getStmts()); + } + + public function test_split() : void + { + $parser = new Parser(); + $statements = $parser->split('SELECT 1; SELECT 2;'); + + self::assertCount(2, $statements); + self::assertSame('SELECT 1', $statements[0]); + self::assertSame(' SELECT 2', $statements[1]); + } + + public function test_split_single_statement() : void + { + $parser = new Parser(); + $statements = $parser->split('SELECT 1'); + + self::assertCount(1, $statements); + self::assertSame('SELECT 1', $statements[0]); + } +} diff --git a/tools/box/composer.lock b/tools/box/composer.lock index f77e039bf..0d1568426 100644 --- a/tools/box/composer.lock +++ b/tools/box/composer.lock @@ -2143,16 +2143,16 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "1.11.1", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "f626740b38009078de0dc8b2b9dc4e7f749c6eba" + "reference": "92a98ada2b93d9b201a613cb5a33584dde25f195" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/f626740b38009078de0dc8b2b9dc4e7f749c6eba", - "reference": "f626740b38009078de0dc8b2b9dc4e7f749c6eba", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/92a98ada2b93d9b201a613cb5a33584dde25f195", + "reference": "92a98ada2b93d9b201a613cb5a33584dde25f195", "shasum": "" }, "require": { @@ -2195,9 +2195,9 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.11.1" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.12.0" }, - "time": "2025-11-21T11:31:57+00:00" + "time": "2025-11-21T15:09:14+00:00" }, { "name": "phpstan/phpdoc-parser", diff --git a/tools/phpdocumentor/composer.lock b/tools/phpdocumentor/composer.lock index 50e5d972f..acead67f2 100644 --- a/tools/phpdocumentor/composer.lock +++ b/tools/phpdocumentor/composer.lock @@ -223,16 +223,16 @@ }, { "name": "phpdocumentor/shim", - "version": "v3.9.0", + "version": "v3.9.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/shim.git", - "reference": "07f773768fcbaa69ffe7cab99d6133f1c9ad1011" + "reference": "f34a43193996194a2b22d243b650f1fbf5746257" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/shim/zipball/07f773768fcbaa69ffe7cab99d6133f1c9ad1011", - "reference": "07f773768fcbaa69ffe7cab99d6133f1c9ad1011", + "url": "https://api.github.com/repos/phpDocumentor/shim/zipball/f34a43193996194a2b22d243b650f1fbf5746257", + "reference": "f34a43193996194a2b22d243b650f1fbf5746257", "shasum": "" }, "require": { @@ -253,9 +253,9 @@ "MIT" ], "support": { - "source": "https://github.com/phpDocumentor/shim/tree/v3.9.0" + "source": "https://github.com/phpDocumentor/shim/tree/v3.9.1" }, - "time": "2025-11-21T16:15:04+00:00" + "time": "2025-11-25T21:55:20+00:00" } ], "aliases": [], diff --git a/web/landing/templates/documentation/navigation_right.html.twig b/web/landing/templates/documentation/navigation_right.html.twig index 691df6baf..580699d89 100644 --- a/web/landing/templates/documentation/navigation_right.html.twig +++ b/web/landing/templates/documentation/navigation_right.html.twig @@ -88,8 +88,28 @@
  • Snappy
  • +
  • + PostgreSQL Query +
  • + +
    + +
    +
    + +