This file is a merged representation of the entire codebase, combined into a single document by Repomix. The content has been processed where content has been compressed (code blocks are separated by ⋮---- delimiter). # File Summary ## Purpose This file contains a packed representation of the entire repository's contents. It is designed to be easily consumable by AI systems for analysis, code review, or other automated processes. ## File Format The content is organized as follows: 1. This summary section 2. Repository information 3. Directory structure 4. Repository files (if enabled) 5. Multiple file entries, each consisting of: a. A header with the file path (## File: path/to/file) b. The full contents of the file in a code block ## Usage Guidelines - This file should be treated as read-only. Any changes should be made to the original repository files, not this packed version. - When processing this file, use the file path to distinguish between different files in the repository. - Be aware that this file may contain sensitive information. Handle it with the same level of security as you would the original repository. ## Notes - Some files may have been excluded based on .gitignore rules and Repomix's configuration - Binary files are not included in this packed representation. Please refer to the Repository Structure section for a complete list of file paths, including binary files - Files matching patterns in .gitignore are excluded - Files matching default ignore patterns are excluded - Content has been compressed - code blocks are separated by ⋮---- delimiter - Files are sorted by Git change count (files with more changes are at the bottom) # Directory Structure ``` .github/ workflows/ ci.yml generate.yml release.yml examples/ basic-usage.ts package.json README.md tsconfig.json scripts/ update-proto.sh src/ gen/ api/ proto/ v1/ api_pb.ts google/ api/ expr/ v1alpha1/ checked_pb.ts eval_pb.ts explain_pb.ts syntax_pb.ts value_pb.ts v1beta1/ decl_pb.ts eval_pb.ts expr_pb.ts source_pb.ts value_pb.ts annotations_pb.ts client_pb.ts field_behavior_pb.ts field_info_pb.ts http_pb.ts httpbody_pb.ts launch_stage_pb.ts resource_pb.ts visibility_pb.ts bytestream/ bytestream_pb.ts geo/ type/ viewport_pb.ts longrunning/ operations_pb.ts protobuf/ compiler/ plugin_pb.ts any_pb.ts api_pb.ts cpp_features_pb.ts descriptor_pb.ts duration_pb.ts empty_pb.ts field_mask_pb.ts go_features_pb.ts java_features_pb.ts source_context_pb.ts struct_pb.ts timestamp_pb.ts type_pb.ts wrappers_pb.ts rpc/ context/ attribute_context_pb.ts code_pb.ts error_details_pb.ts status_pb.ts type/ calendar_period_pb.ts color_pb.ts date_pb.ts datetime_pb.ts dayofweek_pb.ts decimal_pb.ts expr_pb.ts fraction_pb.ts interval_pb.ts latlng_pb.ts localized_text_pb.ts money_pb.ts month_pb.ts phone_number_pb.ts postal_address_pb.ts quaternion_pb.ts timeofday_pb.ts index.ts .gitignore .npmignore .npmrc buf.gen.yaml buf.lock buf.yaml eslint.config.js LICENSE package.json README.md tsconfig.json ``` # Files ## File: .github/workflows/ci.yml ````yaml name: CI on: pull_request: branches: - main push: branches: - main jobs: ci: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' cache: 'npm' - name: Install buf uses: bufbuild/buf-setup-action@v1 - name: Install dependencies run: npm ci - name: Run lint run: npm run lint - name: Run build run: npm run build - name: Check generated files are up to date run: | # Generate protobuf files chmod +x ./scripts/update-proto.sh ./scripts/update-proto.sh # Check if any files changed if [ -n "$(git status --porcelain)" ]; then echo "❌ Generated files are out of date. Please run 'npm run update:proto' and commit the changes." echo "Changed files:" git status --porcelain git diff exit 1 else echo "✅ Generated files are up to date" fi ```` ## File: .github/workflows/generate.yml ````yaml name: Generate TS Client on: schedule: - cron: "0 3 * * *" # daily at 03:00 UTC workflow_dispatch: {} jobs: generate: runs-on: ubuntu-latest outputs: changed: ${{ steps.verify-changed-files.outputs.changed }} steps: - name: Checkout uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v4 with: node-version: 20 - name: Install buf uses: bufbuild/buf-setup-action@v1 - name: Install deps run: | npm ci - name: Generate run: | chmod +x ./scripts/update-proto.sh ./scripts/update-proto.sh - name: Build run: npm run build - name: Check for changes id: verify-changed-files run: | if [ -n "$(git status --porcelain)" ]; then echo "changed=true" >> $GITHUB_OUTPUT echo "Files have changed:" git status --porcelain else echo "changed=false" >> $GITHUB_OUTPUT echo "No changes detected" fi - name: Commit changes if: steps.verify-changed-files.outputs.changed == 'true' uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: "chore: update client from upstream proto" trigger-nightly-release: needs: generate if: needs.generate.outputs.changed == 'true' uses: ./.github/workflows/release.yml secrets: inherit ```` ## File: .github/workflows/release.yml ````yaml name: Release on: # Trigger for official releases push: tags: - 'v*.*.*' # Manual trigger with release type selection workflow_dispatch: inputs: release_type: description: 'Release type' required: true default: 'nightly' type: choice options: - nightly - official version: description: 'Version (only for official releases, e.g., 1.2.3)' required: false type: string # Allow this workflow to be called by other workflows workflow_call: jobs: release: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 # Needed for version bumping ref: ${{ github.event_name == 'workflow_call' && 'main' || github.ref }} - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20' registry-url: 'https://registry.npmjs.org' - name: Install dependencies run: npm ci - name: Build project run: npm run build - name: Determine release type id: release_info run: | if [[ "${{ github.event_name }}" == "schedule" ]]; then echo "type=nightly" >> $GITHUB_OUTPUT elif [[ "${{ github.event_name }}" == "push" && "${{ github.ref }}" == refs/tags/* ]]; then echo "type=official" >> $GITHUB_OUTPUT # Extract version from tag (remove 'v' prefix) echo "version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT elif [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then echo "type=${{ github.event.inputs.release_type }}" >> $GITHUB_OUTPUT if [[ "${{ github.event.inputs.release_type }}" == "official" ]]; then echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT fi elif [[ "${{ github.event_name }}" == "workflow_call" ]]; then echo "type=nightly" >> $GITHUB_OUTPUT fi - name: Check for changes (nightly only) id: changes if: steps.release_info.outputs.type == 'nightly' run: | # Check if there are any commits since yesterday YESTERDAY=$(date -d "yesterday" +%Y-%m-%d) COMMITS_SINCE=$(git rev-list --count --since="$YESTERDAY 00:00:00" HEAD) if [[ "$COMMITS_SINCE" == "0" ]]; then echo "has_changes=false" >> $GITHUB_OUTPUT echo "No changes since yesterday, skipping nightly build..." else echo "has_changes=true" >> $GITHUB_OUTPUT echo "Found $COMMITS_SINCE commits since yesterday" fi - name: Skip nightly if no changes if: steps.release_info.outputs.type == 'nightly' && steps.changes.outputs.has_changes == 'false' run: | echo "Skipping nightly release - no changes detected" exit 0 - name: Create nightly version if: steps.release_info.outputs.type == 'nightly' && steps.changes.outputs.has_changes == 'true' id: nightly_version run: | # Get current package version CURRENT_VERSION=$(node -p "require('./package.json').version") # Remove any existing pre-release suffix BASE_VERSION=$(echo $CURRENT_VERSION | sed 's/-.*$//') # Parse semantic version and increment patch IFS='.' read -r major minor patch <<< "$BASE_VERSION" INCREMENTED_PATCH=$((patch + 1)) INCREMENTED_VERSION="${major}.${minor}.${INCREMENTED_PATCH}" # Create nightly version with date DATE=$(date +%Y%m%d) NIGHTLY_VERSION="${INCREMENTED_VERSION}-nightly.${DATE}" echo "version=$NIGHTLY_VERSION" >> $GITHUB_OUTPUT echo "Created nightly version: $NIGHTLY_VERSION" - name: Create official version if: steps.release_info.outputs.type == 'official' id: official_version run: | VERSION="${{ steps.release_info.outputs.version }}" echo "version=$VERSION" >> $GITHUB_OUTPUT echo "Official version: $VERSION" - name: Update package.json version run: | if [[ "${{ steps.release_info.outputs.type }}" == "nightly" ]]; then VERSION="${{ steps.nightly_version.outputs.version }}" else VERSION="${{ steps.official_version.outputs.version }}" fi # Update package.json npm version $VERSION --no-git-tag-version echo "Updated package.json to version: $VERSION" - name: Publish to npm (nightly) if: steps.release_info.outputs.type == 'nightly' && steps.changes.outputs.has_changes == 'true' run: | npm publish --tag nightly --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish to npm (official) if: steps.release_info.outputs.type == 'official' run: | npm publish --tag latest --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} ```` ## File: examples/basic-usage.ts ````typescript /** * Basic usage example for the Symbiotic Relay TypeScript client. * * This example demonstrates how to: * 1. Connect to a Symbiotic Relay server * 2. Get the current epoch * 3. Calculate last committed epoch * 4. Get validator set information * 5. Sign a message * 6. Retrieve aggregation proofs * 7. Get individual signatures * 8. Get aggregation proofs by epoch * 9. Get signatures by epoch * 10. Get signature request IDs by epoch * 11. Get signature requests by epoch * 12. Get validator by key * 13. Get local validator * 14. Listen to signatures via streaming * 15. Listen to proofs via streaming * 16. Listen to validator set changes via streaming */ ⋮---- import { createClient } from "@connectrpc/connect"; import { createGrpcTransport } from "@connectrpc/connect-node"; import { SymbioticAPIService } from "@symbioticfi/relay-client-ts"; import { GetCurrentEpochRequestSchema, GetLastAllCommittedRequestSchema, SignMessageRequestSchema, GetAggregationProofRequestSchema, GetAggregationProofsByEpochRequestSchema, GetSignaturesRequestSchema, GetSignaturesByEpochRequestSchema, GetSignatureRequestIDsByEpochRequestSchema, GetSignatureRequestsByEpochRequestSchema, GetValidatorSetRequestSchema, GetValidatorByKeyRequestSchema, GetLocalValidatorRequestSchema, ListenSignaturesRequestSchema, ListenProofsRequestSchema, ListenValidatorSetRequestSchema, Signature, ChainEpochInfo, } from "@symbioticfi/relay-client-ts"; import { create } from "@bufbuild/protobuf"; ⋮---- /** * Simple wrapper around the generated Connect client. */ export class RelayClient ⋮---- constructor(serverUrl: string = "http://localhost:8080") ⋮---- /** * Get the current epoch information. */ async getCurrentEpoch() ⋮---- /** * Get the last all committed epochs for all chains. */ async getLastAllCommitted() ⋮---- /** * Sign a message using the specified key tag. */ async signMessage(keyTag: number, message: Uint8Array, requiredEpoch?: bigint) ⋮---- /** * Get aggregation proof for a specific request. */ async getAggregationProof(requestId: string) ⋮---- /** * Get individual signatures for a request. */ async getSignatures(requestId: string) ⋮---- /** * Get validator set information. */ async getValidatorSet(epoch?: bigint) ⋮---- /** * Get aggregation proofs by epoch. */ async getAggregationProofsByEpoch(epoch: bigint) ⋮---- /** * Get signatures by epoch. */ async getSignaturesByEpoch(epoch: bigint) ⋮---- /** * Get signature request IDs by epoch. */ async getSignatureRequestIDsByEpoch(epoch: bigint) ⋮---- /** * Get signature requests by epoch. */ async getSignatureRequestsByEpoch(epoch: bigint) ⋮---- /** * Get validator by key. */ async getValidatorByKey(keyTag: number, onChainKey: Uint8Array, epoch?: bigint) ⋮---- /** * Get local validator. */ async getLocalValidator(epoch?: bigint) ⋮---- /** * Listen to signatures in real-time via streaming response. */ async *listenSignatures(startEpoch?: bigint) ⋮---- /** * Listen to aggregation proofs in real-time via streaming response. */ async *listenProofs(startEpoch?: bigint) ⋮---- /** * Listen to validator set changes in real-time via streaming response. */ async *listenValidatorSet(startEpoch?: bigint) ⋮---- /** * Main example function demonstrating client usage. */ async function main() ⋮---- // Initialize client ⋮---- // Example 1: Get current epoch ⋮---- // Example 2: Get suggested epoch ⋮---- // Example 3: Get validator set ⋮---- // Display some validator details ⋮---- // Example 4: Sign a message ⋮---- // Example 5: Get aggregation proof (this might fail if signing is not complete) ⋮---- // Example 6: Get individual signatures ⋮---- // Example 7: Get aggregation proofs by epoch ⋮---- // Example 8: Get signatures by epoch ⋮---- // Example 9: Get signature request IDs by epoch ⋮---- // Example 10: Get signature requests by epoch ⋮---- // Example 12: Get validator by key ⋮---- // Example 13: Get local validator ⋮---- // Example 14: Listen to signatures (streaming) ⋮---- // Example 15: Listen to proofs (streaming) ⋮---- // Example 16: Listen to validator set changes (streaming) ⋮---- // Run the example if this file is executed directly ```` ## File: examples/package.json ````json { "name": "@symbioticfi/relay-client-ts-examples", "version": "0.1.0", "description": "Examples for the Symbiotic Relay TypeScript client", "type": "module", "private": true, "scripts": { "preinstall": "cd .. && npm install", "postinstall": "npm run build:client", "build:client": "cd .. && npm run build", "basic-usage": "tsx basic-usage.ts", "build": "tsc", "dev": "tsx --watch basic-usage.ts", "check": "tsc --noEmit", "setup": "npm install && npm run build:client" }, "dependencies": { "@bufbuild/protobuf": "^2.0.0", "@connectrpc/connect": "^2.0.0", "@connectrpc/connect-node": "^2.0.0", "@symbioticfi/relay-client-ts": "file:.." }, "devDependencies": { "@types/node": "^20.12.0", "tsx": "^4.0.0", "typescript": "^5.5.0" } } ```` ## File: examples/README.md ````markdown # Symbiotic Relay TypeScript Client Examples This directory contains examples demonstrating how to use the Symbiotic Relay TypeScript client library. ## Prerequisites 1. Install dependencies and build the client library: ```bash cd relay-client-ts-ts/examples npm install ``` This will automatically: - Install dependencies for the root relay-client-ts library - Build the TypeScript client library - Install example dependencies 2. Make sure you have a Symbiotic Relay server running (default: `localhost:8080`) ## Examples ### `basic-usage.ts` A comprehensive example showing how to: - Connect to a Symbiotic Relay server using Connect-RPC - Get current and suggested epoch information - Retrieve validator set data - Sign messages and get aggregation proofs - Use streaming sign-and-wait functionality **Run the example:** ```bash npm run basic-usage ``` **Environment variables:** - `RELAY_SERVER_URL`: Override the default server URL (default: `localhost:8080`) NOTE: for the signature/proof generation to work you need to run the script for all active relay servers to get the majority consensus to generate proof. ## Key Concepts ### Connect-RPC This client uses [Connect-RPC](https://connectrpc.com/), a modern RPC framework that works over HTTP/1.1, HTTP/2, and HTTP/3. It provides: - Type-safe client generation from protobuf definitions - Streaming support - Better error handling - Web and Node.js compatibility ### Client Setup ```typescript import { createClient } from "@connectrpc/connect"; import { createGrpcTransport } from "@connectrpc/connect-node"; import { SymbioticAPIService } from "@symbioticfi/relay-client-ts"; const transport = createGrpcTransport({ baseUrl: "localhost:8080", }); const client = createClient(SymbioticAPIService, transport); ``` ### Error Handling Connect-RPC provides structured error handling: ```typescript try { const response = await client.getCurrentEpoch(request); } catch (error) { if (error.code) { console.error(`RPC error: ${error.code} - ${error.message}`); } } ``` ### Message Signing Workflow 1. **Get suggested epoch**: Use `getSuggestedEpoch` to get the recommended epoch for signing 2. **Sign message**: Call `signMessage` with your key tag, message, and optional epoch. Use `signMessageWait` for live streaming proof data. 3. **Wait for aggregation**: Either poll with `getAggregationProof` or use `signMessageWait` for real-time updates 4. **Retrieve proof**: Get the final aggregation proof for verification ### Streaming Responses The `signMessageWait` method returns an async iterator: ```typescript for await (const response of client.signMessageWait(request)) { switch (response.status) { case SigningStatus.SIGNING_STATUS_COMPLETED: console.log("Signing completed!"); return; case SigningStatus.SIGNING_STATUS_FAILED: console.error("Signing failed:", response.error?.errorMessage); return; } } ``` ### Type Safety All message types are fully typed with TypeScript: ```typescript import { create } from "@bufbuild/protobuf"; import { SignMessageRequestSchema, SigningStatus, ValidatorSetStatus, } from "@symbioticfi/relay-client-ts"; const request = create(SignMessageRequestSchema, { keyTag: 1, message: new TextEncoder().encode("Hello"), requiredEpoch: 123n, // BigInt for uint64 }); ``` ### Data Types #### BigInt Handling Protobuf `uint64` fields are represented as `bigint` in TypeScript: ```typescript const epoch: bigint = 123n; const request = new SignMessageRequest({ requiredEpoch: epoch }); ``` #### Bytes Handling Protobuf `bytes` fields use `Uint8Array`: ```typescript const message = new TextEncoder().encode("Hello, world!"); const signature: Uint8Array = response.aggregationProof.proof; ``` #### Timestamps Protobuf timestamps are converted to JavaScript `Date` objects: ```typescript const startTime: Date = epochResponse.startTime.toDate(); ``` ```` ## File: examples/tsconfig.json ````json { "extends": "../tsconfig.json", "compilerOptions": { "outDir": "./dist", "rootDir": "..", "moduleResolution": "bundler", "allowImportingTsExtensions": true, "noEmit": true }, "include": [ "*.ts", "../src/**/*" ], "exclude": [ "node_modules", "dist" ] } ```` ## File: scripts/update-proto.sh ````bash #!/usr/bin/env bash set -euo pipefail ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)" PROTO_DIR="$ROOT_DIR/api/proto/v1" rm -rf "$ROOT_DIR/api" "$ROOT_DIR/src/gen" mkdir -p "$PROTO_DIR" curl -sfL https://raw.githubusercontent.com/symbioticfi/relay/dev/api/proto/v1/api.proto -o "$PROTO_DIR/api.proto" cd "$ROOT_DIR" buf format -w buf lint buf generate # TypeScript specific: ensure index file exists for consumers if [ ! -f src/index.ts ]; then mkdir -p src cat > src/index.ts <<'EOF' export * from "./gen/api/proto/v1/api_pb"; EOF fi ```` ## File: src/gen/api/proto/v1/api_pb.ts ````typescript // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file api/proto/v1/api.proto (package api.proto.v1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_google_api_annotations } from "../../../google/api/annotations_pb"; import type { Timestamp } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file api/proto/v1/api.proto. */ export const file_api_proto_v1_api: GenFile = /*@__PURE__*/ ⋮---- /** * Request message for signing a message * * @generated from message api.proto.v1.SignMessageRequest */ export type SignMessageRequest = Message<"api.proto.v1.SignMessageRequest"> & { /** * Key tag identifier (0-127) * * @generated from field: uint32 key_tag = 1; */ keyTag: number; /** * Message to be signed * * @generated from field: bytes message = 2; */ message: Uint8Array; /** * Required epoch (optional, if not provided latest committed epoch will be used) * * @generated from field: optional uint64 required_epoch = 3; */ requiredEpoch?: bigint; }; ⋮---- /** * Key tag identifier (0-127) * * @generated from field: uint32 key_tag = 1; */ ⋮---- /** * Message to be signed * * @generated from field: bytes message = 2; */ ⋮---- /** * Required epoch (optional, if not provided latest committed epoch will be used) * * @generated from field: optional uint64 required_epoch = 3; */ ⋮---- /** * Describes the message api.proto.v1.SignMessageRequest. * Use `create(SignMessageRequestSchema)` to create a new message. */ export const SignMessageRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for sign message request * * @generated from message api.proto.v1.SignMessageResponse */ export type SignMessageResponse = Message<"api.proto.v1.SignMessageResponse"> & { /** * Hash of the signature request * * @generated from field: string request_id = 1; */ requestId: string; /** * Epoch number * * @generated from field: uint64 epoch = 2; */ epoch: bigint; }; ⋮---- /** * Hash of the signature request * * @generated from field: string request_id = 1; */ ⋮---- /** * Epoch number * * @generated from field: uint64 epoch = 2; */ ⋮---- /** * Describes the message api.proto.v1.SignMessageResponse. * Use `create(SignMessageResponseSchema)` to create a new message. */ export const SignMessageResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for listening to signatures stream * * @generated from message api.proto.v1.ListenSignaturesRequest */ export type ListenSignaturesRequest = Message<"api.proto.v1.ListenSignaturesRequest"> & { /** * Optional: start epoch. If provided, stream will first send all historical signatures starting from this epoch, then continue with real-time updates * If not provided, only signatures generated after stream creation will be sent * * @generated from field: optional uint64 start_epoch = 1; */ startEpoch?: bigint; }; ⋮---- /** * Optional: start epoch. If provided, stream will first send all historical signatures starting from this epoch, then continue with real-time updates * If not provided, only signatures generated after stream creation will be sent * * @generated from field: optional uint64 start_epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.ListenSignaturesRequest. * Use `create(ListenSignaturesRequestSchema)` to create a new message. */ export const ListenSignaturesRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for signatures stream * * @generated from message api.proto.v1.ListenSignaturesResponse */ export type ListenSignaturesResponse = Message<"api.proto.v1.ListenSignaturesResponse"> & { /** * Id of the signature request * * @generated from field: string request_id = 1; */ requestId: string; /** * Epoch number * * @generated from field: uint64 epoch = 2; */ epoch: bigint; /** * Signature data * * @generated from field: api.proto.v1.Signature signature = 3; */ signature?: Signature; }; ⋮---- /** * Id of the signature request * * @generated from field: string request_id = 1; */ ⋮---- /** * Epoch number * * @generated from field: uint64 epoch = 2; */ ⋮---- /** * Signature data * * @generated from field: api.proto.v1.Signature signature = 3; */ ⋮---- /** * Describes the message api.proto.v1.ListenSignaturesResponse. * Use `create(ListenSignaturesResponseSchema)` to create a new message. */ export const ListenSignaturesResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for listening to aggregation proofs stream * * @generated from message api.proto.v1.ListenProofsRequest */ export type ListenProofsRequest = Message<"api.proto.v1.ListenProofsRequest"> & { /** * Optional: start epoch. If provided, stream will first send all historical proofs starting from this epoch, then continue with real-time updates * If not provided, only proofs generated after stream creation will be sent * * @generated from field: optional uint64 start_epoch = 1; */ startEpoch?: bigint; }; ⋮---- /** * Optional: start epoch. If provided, stream will first send all historical proofs starting from this epoch, then continue with real-time updates * If not provided, only proofs generated after stream creation will be sent * * @generated from field: optional uint64 start_epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.ListenProofsRequest. * Use `create(ListenProofsRequestSchema)` to create a new message. */ export const ListenProofsRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for aggregation proofs stream * * @generated from message api.proto.v1.ListenProofsResponse */ export type ListenProofsResponse = Message<"api.proto.v1.ListenProofsResponse"> & { /** * Id of the request * * @generated from field: string request_id = 1; */ requestId: string; /** * Epoch number * * @generated from field: uint64 epoch = 2; */ epoch: bigint; /** * Final aggregation proof * * @generated from field: api.proto.v1.AggregationProof aggregation_proof = 3; */ aggregationProof?: AggregationProof; }; ⋮---- /** * Id of the request * * @generated from field: string request_id = 1; */ ⋮---- /** * Epoch number * * @generated from field: uint64 epoch = 2; */ ⋮---- /** * Final aggregation proof * * @generated from field: api.proto.v1.AggregationProof aggregation_proof = 3; */ ⋮---- /** * Describes the message api.proto.v1.ListenProofsResponse. * Use `create(ListenProofsResponseSchema)` to create a new message. */ export const ListenProofsResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for listening to validator set changes stream * * @generated from message api.proto.v1.ListenValidatorSetRequest */ export type ListenValidatorSetRequest = Message<"api.proto.v1.ListenValidatorSetRequest"> & { /** * Optional: start epoch. If provided, stream will first send all historical validator sets starting from this epoch, then continue with real-time updates * If not provided, only validator sets generated after stream creation will be sent * * @generated from field: optional uint64 start_epoch = 1; */ startEpoch?: bigint; }; ⋮---- /** * Optional: start epoch. If provided, stream will first send all historical validator sets starting from this epoch, then continue with real-time updates * If not provided, only validator sets generated after stream creation will be sent * * @generated from field: optional uint64 start_epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.ListenValidatorSetRequest. * Use `create(ListenValidatorSetRequestSchema)` to create a new message. */ export const ListenValidatorSetRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for validator set changes stream * * @generated from message api.proto.v1.ListenValidatorSetResponse */ export type ListenValidatorSetResponse = Message<"api.proto.v1.ListenValidatorSetResponse"> & { /** * The validator set * * @generated from field: api.proto.v1.ValidatorSet validator_set = 1; */ validatorSet?: ValidatorSet; }; ⋮---- /** * The validator set * * @generated from field: api.proto.v1.ValidatorSet validator_set = 1; */ ⋮---- /** * Describes the message api.proto.v1.ListenValidatorSetResponse. * Use `create(ListenValidatorSetResponseSchema)` to create a new message. */ export const ListenValidatorSetResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting aggregation proof * * @generated from message api.proto.v1.GetAggregationProofRequest */ export type GetAggregationProofRequest = Message<"api.proto.v1.GetAggregationProofRequest"> & { /** * @generated from field: string request_id = 1; */ requestId: string; }; ⋮---- /** * @generated from field: string request_id = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetAggregationProofRequest. * Use `create(GetAggregationProofRequestSchema)` to create a new message. */ export const GetAggregationProofRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting aggregation proof * * @generated from message api.proto.v1.GetAggregationProofsByEpochRequest */ export type GetAggregationProofsByEpochRequest = Message<"api.proto.v1.GetAggregationProofsByEpochRequest"> & { /** * Epoch number * * @generated from field: uint64 epoch = 1; */ epoch: bigint; }; ⋮---- /** * Epoch number * * @generated from field: uint64 epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetAggregationProofsByEpochRequest. * Use `create(GetAggregationProofsByEpochRequestSchema)` to create a new message. */ export const GetAggregationProofsByEpochRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting current epoch * * @generated from message api.proto.v1.GetCurrentEpochRequest */ export type GetCurrentEpochRequest = Message<"api.proto.v1.GetCurrentEpochRequest"> & { }; ⋮---- /** * Describes the message api.proto.v1.GetCurrentEpochRequest. * Use `create(GetCurrentEpochRequestSchema)` to create a new message. */ export const GetCurrentEpochRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting signatures * * @generated from message api.proto.v1.GetSignaturesRequest */ export type GetSignaturesRequest = Message<"api.proto.v1.GetSignaturesRequest"> & { /** * @generated from field: string request_id = 1; */ requestId: string; }; ⋮---- /** * @generated from field: string request_id = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignaturesRequest. * Use `create(GetSignaturesRequestSchema)` to create a new message. */ export const GetSignaturesRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting signatures by epoch * * @generated from message api.proto.v1.GetSignaturesByEpochRequest */ export type GetSignaturesByEpochRequest = Message<"api.proto.v1.GetSignaturesByEpochRequest"> & { /** * Epoch number * * @generated from field: uint64 epoch = 1; */ epoch: bigint; }; ⋮---- /** * Epoch number * * @generated from field: uint64 epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignaturesByEpochRequest. * Use `create(GetSignaturesByEpochRequestSchema)` to create a new message. */ export const GetSignaturesByEpochRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting signatures * * @generated from message api.proto.v1.GetSignaturesResponse */ export type GetSignaturesResponse = Message<"api.proto.v1.GetSignaturesResponse"> & { /** * List of signatures * * @generated from field: repeated api.proto.v1.Signature signatures = 1; */ signatures: Signature[]; }; ⋮---- /** * List of signatures * * @generated from field: repeated api.proto.v1.Signature signatures = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignaturesResponse. * Use `create(GetSignaturesResponseSchema)` to create a new message. */ export const GetSignaturesResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting signatures by epoch * * @generated from message api.proto.v1.GetSignaturesByEpochResponse */ export type GetSignaturesByEpochResponse = Message<"api.proto.v1.GetSignaturesByEpochResponse"> & { /** * List of signatures * * @generated from field: repeated api.proto.v1.Signature signatures = 1; */ signatures: Signature[]; }; ⋮---- /** * List of signatures * * @generated from field: repeated api.proto.v1.Signature signatures = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignaturesByEpochResponse. * Use `create(GetSignaturesByEpochResponseSchema)` to create a new message. */ export const GetSignaturesByEpochResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting all signature request IDs by epoch * * @generated from message api.proto.v1.GetSignatureRequestIDsByEpochRequest */ export type GetSignatureRequestIDsByEpochRequest = Message<"api.proto.v1.GetSignatureRequestIDsByEpochRequest"> & { /** * Epoch number * * @generated from field: uint64 epoch = 1; */ epoch: bigint; }; ⋮---- /** * Epoch number * * @generated from field: uint64 epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignatureRequestIDsByEpochRequest. * Use `create(GetSignatureRequestIDsByEpochRequestSchema)` to create a new message. */ export const GetSignatureRequestIDsByEpochRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting all signature request IDs by epoch * * @generated from message api.proto.v1.GetSignatureRequestIDsByEpochResponse */ export type GetSignatureRequestIDsByEpochResponse = Message<"api.proto.v1.GetSignatureRequestIDsByEpochResponse"> & { /** * List of all signature request IDs for the epoch * * @generated from field: repeated string request_ids = 1; */ requestIds: string[]; }; ⋮---- /** * List of all signature request IDs for the epoch * * @generated from field: repeated string request_ids = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignatureRequestIDsByEpochResponse. * Use `create(GetSignatureRequestIDsByEpochResponseSchema)` to create a new message. */ export const GetSignatureRequestIDsByEpochResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting all signature requests by epoch * * @generated from message api.proto.v1.GetSignatureRequestsByEpochRequest */ export type GetSignatureRequestsByEpochRequest = Message<"api.proto.v1.GetSignatureRequestsByEpochRequest"> & { /** * Epoch number * * @generated from field: uint64 epoch = 1; */ epoch: bigint; }; ⋮---- /** * Epoch number * * @generated from field: uint64 epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignatureRequestsByEpochRequest. * Use `create(GetSignatureRequestsByEpochRequestSchema)` to create a new message. */ export const GetSignatureRequestsByEpochRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting all signature requests by epoch * * @generated from message api.proto.v1.GetSignatureRequestsByEpochResponse */ export type GetSignatureRequestsByEpochResponse = Message<"api.proto.v1.GetSignatureRequestsByEpochResponse"> & { /** * List of all signature requests for the epoch * * @generated from field: repeated api.proto.v1.SignatureRequest signature_requests = 1; */ signatureRequests: SignatureRequest[]; }; ⋮---- /** * List of all signature requests for the epoch * * @generated from field: repeated api.proto.v1.SignatureRequest signature_requests = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignatureRequestsByEpochResponse. * Use `create(GetSignatureRequestsByEpochResponseSchema)` to create a new message. */ export const GetSignatureRequestsByEpochResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting signature request * * @generated from message api.proto.v1.GetSignatureRequestRequest */ export type GetSignatureRequestRequest = Message<"api.proto.v1.GetSignatureRequestRequest"> & { /** * @generated from field: string request_id = 1; */ requestId: string; }; ⋮---- /** * @generated from field: string request_id = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignatureRequestRequest. * Use `create(GetSignatureRequestRequestSchema)` to create a new message. */ export const GetSignatureRequestRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting aggregation status * * @generated from message api.proto.v1.GetAggregationStatusRequest */ export type GetAggregationStatusRequest = Message<"api.proto.v1.GetAggregationStatusRequest"> & { /** * @generated from field: string request_id = 1; */ requestId: string; }; ⋮---- /** * @generated from field: string request_id = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetAggregationStatusRequest. * Use `create(GetAggregationStatusRequestSchema)` to create a new message. */ export const GetAggregationStatusRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting validator set * * @generated from message api.proto.v1.GetValidatorSetRequest */ export type GetValidatorSetRequest = Message<"api.proto.v1.GetValidatorSetRequest"> & { /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ epoch?: bigint; }; ⋮---- /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorSetRequest. * Use `create(GetValidatorSetRequestSchema)` to create a new message. */ export const GetValidatorSetRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting validator by address * * @generated from message api.proto.v1.GetValidatorByAddressRequest */ export type GetValidatorByAddressRequest = Message<"api.proto.v1.GetValidatorByAddressRequest"> & { /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ epoch?: bigint; /** * Validator address (required) * * @generated from field: string address = 2; */ address: string; }; ⋮---- /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ ⋮---- /** * Validator address (required) * * @generated from field: string address = 2; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorByAddressRequest. * Use `create(GetValidatorByAddressRequestSchema)` to create a new message. */ export const GetValidatorByAddressRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting validator by key * * @generated from message api.proto.v1.GetValidatorByKeyRequest */ export type GetValidatorByKeyRequest = Message<"api.proto.v1.GetValidatorByKeyRequest"> & { /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ epoch?: bigint; /** * Validator key tag (required) * * @generated from field: uint32 key_tag = 2; */ keyTag: number; /** * Validator on chain (public) key (required) * * @generated from field: bytes on_chain_key = 3; */ onChainKey: Uint8Array; }; ⋮---- /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ ⋮---- /** * Validator key tag (required) * * @generated from field: uint32 key_tag = 2; */ ⋮---- /** * Validator on chain (public) key (required) * * @generated from field: bytes on_chain_key = 3; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorByKeyRequest. * Use `create(GetValidatorByKeyRequestSchema)` to create a new message. */ export const GetValidatorByKeyRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting local validator * * @generated from message api.proto.v1.GetLocalValidatorRequest */ export type GetLocalValidatorRequest = Message<"api.proto.v1.GetLocalValidatorRequest"> & { /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ epoch?: bigint; }; ⋮---- /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetLocalValidatorRequest. * Use `create(GetLocalValidatorRequestSchema)` to create a new message. */ export const GetLocalValidatorRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting validator set header * * @generated from message api.proto.v1.GetValidatorSetHeaderRequest */ export type GetValidatorSetHeaderRequest = Message<"api.proto.v1.GetValidatorSetHeaderRequest"> & { /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ epoch?: bigint; }; ⋮---- /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorSetHeaderRequest. * Use `create(GetValidatorSetHeaderRequestSchema)` to create a new message. */ export const GetValidatorSetHeaderRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting validator set metadata * * @generated from message api.proto.v1.GetValidatorSetMetadataRequest */ export type GetValidatorSetMetadataRequest = Message<"api.proto.v1.GetValidatorSetMetadataRequest"> & { /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ epoch?: bigint; }; ⋮---- /** * Epoch number (optional, if not provided current epoch will be used) * * @generated from field: optional uint64 epoch = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorSetMetadataRequest. * Use `create(GetValidatorSetMetadataRequestSchema)` to create a new message. */ export const GetValidatorSetMetadataRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting current epoch * * @generated from message api.proto.v1.GetCurrentEpochResponse */ export type GetCurrentEpochResponse = Message<"api.proto.v1.GetCurrentEpochResponse"> & { /** * Epoch number * * @generated from field: uint64 epoch = 1; */ epoch: bigint; /** * Epoch start time * * @generated from field: google.protobuf.Timestamp start_time = 2; */ startTime?: Timestamp; }; ⋮---- /** * Epoch number * * @generated from field: uint64 epoch = 1; */ ⋮---- /** * Epoch start time * * @generated from field: google.protobuf.Timestamp start_time = 2; */ ⋮---- /** * Describes the message api.proto.v1.GetCurrentEpochResponse. * Use `create(GetCurrentEpochResponseSchema)` to create a new message. */ export const GetCurrentEpochResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * SignatureRequest represents a signature request * * @generated from message api.proto.v1.SignatureRequest */ export type SignatureRequest = Message<"api.proto.v1.SignatureRequest"> & { /** * Request ID * * @generated from field: string request_id = 1; */ requestId: string; /** * Key tag identifier (0-127) * * @generated from field: uint32 key_tag = 2; */ keyTag: number; /** * Message to be signed * * @generated from field: bytes message = 3; */ message: Uint8Array; /** * Required epoch * * @generated from field: uint64 required_epoch = 4; */ requiredEpoch: bigint; }; ⋮---- /** * Request ID * * @generated from field: string request_id = 1; */ ⋮---- /** * Key tag identifier (0-127) * * @generated from field: uint32 key_tag = 2; */ ⋮---- /** * Message to be signed * * @generated from field: bytes message = 3; */ ⋮---- /** * Required epoch * * @generated from field: uint64 required_epoch = 4; */ ⋮---- /** * Describes the message api.proto.v1.SignatureRequest. * Use `create(SignatureRequestSchema)` to create a new message. */ export const SignatureRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting signature request * * @generated from message api.proto.v1.GetSignatureRequestResponse */ export type GetSignatureRequestResponse = Message<"api.proto.v1.GetSignatureRequestResponse"> & { /** * @generated from field: api.proto.v1.SignatureRequest signature_request = 1; */ signatureRequest?: SignatureRequest; }; ⋮---- /** * @generated from field: api.proto.v1.SignatureRequest signature_request = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetSignatureRequestResponse. * Use `create(GetSignatureRequestResponseSchema)` to create a new message. */ export const GetSignatureRequestResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting aggregation proof * * @generated from message api.proto.v1.GetAggregationProofResponse */ export type GetAggregationProofResponse = Message<"api.proto.v1.GetAggregationProofResponse"> & { /** * @generated from field: api.proto.v1.AggregationProof aggregation_proof = 1; */ aggregationProof?: AggregationProof; }; ⋮---- /** * @generated from field: api.proto.v1.AggregationProof aggregation_proof = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetAggregationProofResponse. * Use `create(GetAggregationProofResponseSchema)` to create a new message. */ export const GetAggregationProofResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting aggregation proof * * @generated from message api.proto.v1.GetAggregationProofsByEpochResponse */ export type GetAggregationProofsByEpochResponse = Message<"api.proto.v1.GetAggregationProofsByEpochResponse"> & { /** * @generated from field: repeated api.proto.v1.AggregationProof aggregation_proofs = 1; */ aggregationProofs: AggregationProof[]; }; ⋮---- /** * @generated from field: repeated api.proto.v1.AggregationProof aggregation_proofs = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetAggregationProofsByEpochResponse. * Use `create(GetAggregationProofsByEpochResponseSchema)` to create a new message. */ export const GetAggregationProofsByEpochResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting aggregation proof * * @generated from message api.proto.v1.AggregationProof */ export type AggregationProof = Message<"api.proto.v1.AggregationProof"> & { /** * Message hash * * @generated from field: bytes message_hash = 2; */ messageHash: Uint8Array; /** * Proof data * * @generated from field: bytes proof = 3; */ proof: Uint8Array; /** * Request ID * * @generated from field: string request_id = 4; */ requestId: string; }; ⋮---- /** * Message hash * * @generated from field: bytes message_hash = 2; */ ⋮---- /** * Proof data * * @generated from field: bytes proof = 3; */ ⋮---- /** * Request ID * * @generated from field: string request_id = 4; */ ⋮---- /** * Describes the message api.proto.v1.AggregationProof. * Use `create(AggregationProofSchema)` to create a new message. */ export const AggregationProofSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting aggregation status * * @generated from message api.proto.v1.GetAggregationStatusResponse */ export type GetAggregationStatusResponse = Message<"api.proto.v1.GetAggregationStatusResponse"> & { /** * Current voting power of the aggregator (big integer as string) * * @generated from field: string current_voting_power = 1; */ currentVotingPower: string; /** * List of operator addresses that signed the request * * @generated from field: repeated string signer_operators = 2; */ signerOperators: string[]; }; ⋮---- /** * Current voting power of the aggregator (big integer as string) * * @generated from field: string current_voting_power = 1; */ ⋮---- /** * List of operator addresses that signed the request * * @generated from field: repeated string signer_operators = 2; */ ⋮---- /** * Describes the message api.proto.v1.GetAggregationStatusResponse. * Use `create(GetAggregationStatusResponseSchema)` to create a new message. */ export const GetAggregationStatusResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Digital signature * * @generated from message api.proto.v1.Signature */ export type Signature = Message<"api.proto.v1.Signature"> & { /** * Signature data * * @generated from field: bytes signature = 1; */ signature: Uint8Array; /** * Message hash * * @generated from field: bytes message_hash = 2; */ messageHash: Uint8Array; /** * Public key * * @generated from field: bytes public_key = 3; */ publicKey: Uint8Array; /** * Request ID * * @generated from field: string request_id = 4; */ requestId: string; }; ⋮---- /** * Signature data * * @generated from field: bytes signature = 1; */ ⋮---- /** * Message hash * * @generated from field: bytes message_hash = 2; */ ⋮---- /** * Public key * * @generated from field: bytes public_key = 3; */ ⋮---- /** * Request ID * * @generated from field: string request_id = 4; */ ⋮---- /** * Describes the message api.proto.v1.Signature. * Use `create(SignatureSchema)` to create a new message. */ export const SignatureSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting validator set * * @generated from message api.proto.v1.GetValidatorSetResponse */ export type GetValidatorSetResponse = Message<"api.proto.v1.GetValidatorSetResponse"> & { /** * The validator set * * @generated from field: api.proto.v1.ValidatorSet validator_set = 1; */ validatorSet?: ValidatorSet; }; ⋮---- /** * The validator set * * @generated from field: api.proto.v1.ValidatorSet validator_set = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorSetResponse. * Use `create(GetValidatorSetResponseSchema)` to create a new message. */ export const GetValidatorSetResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting validator by address * * @generated from message api.proto.v1.GetValidatorByAddressResponse */ export type GetValidatorByAddressResponse = Message<"api.proto.v1.GetValidatorByAddressResponse"> & { /** * The validator * * @generated from field: api.proto.v1.Validator validator = 1; */ validator?: Validator; }; ⋮---- /** * The validator * * @generated from field: api.proto.v1.Validator validator = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorByAddressResponse. * Use `create(GetValidatorByAddressResponseSchema)` to create a new message. */ export const GetValidatorByAddressResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting validator by key * * @generated from message api.proto.v1.GetValidatorByKeyResponse */ export type GetValidatorByKeyResponse = Message<"api.proto.v1.GetValidatorByKeyResponse"> & { /** * The validator * * @generated from field: api.proto.v1.Validator validator = 1; */ validator?: Validator; }; ⋮---- /** * The validator * * @generated from field: api.proto.v1.Validator validator = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorByKeyResponse. * Use `create(GetValidatorByKeyResponseSchema)` to create a new message. */ export const GetValidatorByKeyResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting local validator * * @generated from message api.proto.v1.GetLocalValidatorResponse */ export type GetLocalValidatorResponse = Message<"api.proto.v1.GetLocalValidatorResponse"> & { /** * The validator * * @generated from field: api.proto.v1.Validator validator = 1; */ validator?: Validator; }; ⋮---- /** * The validator * * @generated from field: api.proto.v1.Validator validator = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetLocalValidatorResponse. * Use `create(GetLocalValidatorResponseSchema)` to create a new message. */ export const GetLocalValidatorResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message api.proto.v1.ExtraData */ export type ExtraData = Message<"api.proto.v1.ExtraData"> & { /** * @generated from field: bytes key = 1; */ key: Uint8Array; /** * @generated from field: bytes value = 2; */ value: Uint8Array; }; ⋮---- /** * @generated from field: bytes key = 1; */ ⋮---- /** * @generated from field: bytes value = 2; */ ⋮---- /** * Describes the message api.proto.v1.ExtraData. * Use `create(ExtraDataSchema)` to create a new message. */ export const ExtraDataSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting validator set header * * @generated from message api.proto.v1.GetValidatorSetMetadataResponse */ export type GetValidatorSetMetadataResponse = Message<"api.proto.v1.GetValidatorSetMetadataResponse"> & { /** * @generated from field: repeated api.proto.v1.ExtraData extra_data = 1; */ extraData: ExtraData[]; /** * @generated from field: bytes commitment_data = 2; */ commitmentData: Uint8Array; /** * @generated from field: string request_id = 3; */ requestId: string; }; ⋮---- /** * @generated from field: repeated api.proto.v1.ExtraData extra_data = 1; */ ⋮---- /** * @generated from field: bytes commitment_data = 2; */ ⋮---- /** * @generated from field: string request_id = 3; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorSetMetadataResponse. * Use `create(GetValidatorSetMetadataResponseSchema)` to create a new message. */ export const GetValidatorSetMetadataResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting validator set header * * @generated from message api.proto.v1.GetValidatorSetHeaderResponse */ export type GetValidatorSetHeaderResponse = Message<"api.proto.v1.GetValidatorSetHeaderResponse"> & { /** * Version of the validator set * * @generated from field: uint32 version = 1; */ version: number; /** * Key tag required to commit next validator set * * @generated from field: uint32 required_key_tag = 2; */ requiredKeyTag: number; /** * Validator set epoch * * @generated from field: uint64 epoch = 3; */ epoch: bigint; /** * Epoch capture timestamp * * @generated from field: google.protobuf.Timestamp capture_timestamp = 4; */ captureTimestamp?: Timestamp; /** * Quorum threshold (big integer as string) * * @generated from field: string quorum_threshold = 5; */ quorumThreshold: string; /** * Total voting power (big integer as string) * * @generated from field: string total_voting_power = 6; */ totalVotingPower: string; /** * Validators SSZ Merkle root (hex string) * * @generated from field: string validators_ssz_mroot = 7; */ validatorsSszMroot: string; }; ⋮---- /** * Version of the validator set * * @generated from field: uint32 version = 1; */ ⋮---- /** * Key tag required to commit next validator set * * @generated from field: uint32 required_key_tag = 2; */ ⋮---- /** * Validator set epoch * * @generated from field: uint64 epoch = 3; */ ⋮---- /** * Epoch capture timestamp * * @generated from field: google.protobuf.Timestamp capture_timestamp = 4; */ ⋮---- /** * Quorum threshold (big integer as string) * * @generated from field: string quorum_threshold = 5; */ ⋮---- /** * Total voting power (big integer as string) * * @generated from field: string total_voting_power = 6; */ ⋮---- /** * Validators SSZ Merkle root (hex string) * * @generated from field: string validators_ssz_mroot = 7; */ ⋮---- /** * Describes the message api.proto.v1.GetValidatorSetHeaderResponse. * Use `create(GetValidatorSetHeaderResponseSchema)` to create a new message. */ export const GetValidatorSetHeaderResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Validator information * * @generated from message api.proto.v1.Validator */ export type Validator = Message<"api.proto.v1.Validator"> & { /** * Operator address (hex string) * * @generated from field: string operator = 1; */ operator: string; /** * Voting power of the validator (big integer as string) * * @generated from field: string voting_power = 2; */ votingPower: string; /** * Indicates if the validator is active * * @generated from field: bool is_active = 3; */ isActive: boolean; /** * List of cryptographic keys * * @generated from field: repeated api.proto.v1.Key keys = 4; */ keys: Key[]; /** * List of validator vaults * * @generated from field: repeated api.proto.v1.ValidatorVault vaults = 5; */ vaults: ValidatorVault[]; }; ⋮---- /** * Operator address (hex string) * * @generated from field: string operator = 1; */ ⋮---- /** * Voting power of the validator (big integer as string) * * @generated from field: string voting_power = 2; */ ⋮---- /** * Indicates if the validator is active * * @generated from field: bool is_active = 3; */ ⋮---- /** * List of cryptographic keys * * @generated from field: repeated api.proto.v1.Key keys = 4; */ ⋮---- /** * List of validator vaults * * @generated from field: repeated api.proto.v1.ValidatorVault vaults = 5; */ ⋮---- /** * Describes the message api.proto.v1.Validator. * Use `create(ValidatorSchema)` to create a new message. */ export const ValidatorSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Cryptographic key * * @generated from message api.proto.v1.Key */ export type Key = Message<"api.proto.v1.Key"> & { /** * Key tag identifier (0-127) * * @generated from field: uint32 tag = 1; */ tag: number; /** * Key payload * * @generated from field: bytes payload = 2; */ payload: Uint8Array; }; ⋮---- /** * Key tag identifier (0-127) * * @generated from field: uint32 tag = 1; */ ⋮---- /** * Key payload * * @generated from field: bytes payload = 2; */ ⋮---- /** * Describes the message api.proto.v1.Key. * Use `create(KeySchema)` to create a new message. */ export const KeySchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Validator vault information * * @generated from message api.proto.v1.ValidatorVault */ export type ValidatorVault = Message<"api.proto.v1.ValidatorVault"> & { /** * Chain identifier * * @generated from field: uint64 chain_id = 1; */ chainId: bigint; /** * Vault address * * @generated from field: string vault = 2; */ vault: string; /** * Voting power for this vault (big integer as string) * * @generated from field: string voting_power = 3; */ votingPower: string; }; ⋮---- /** * Chain identifier * * @generated from field: uint64 chain_id = 1; */ ⋮---- /** * Vault address * * @generated from field: string vault = 2; */ ⋮---- /** * Voting power for this vault (big integer as string) * * @generated from field: string voting_power = 3; */ ⋮---- /** * Describes the message api.proto.v1.ValidatorVault. * Use `create(ValidatorVaultSchema)` to create a new message. */ export const ValidatorVaultSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting last committed epoch for a specific settlement chain * * @generated from message api.proto.v1.GetLastCommittedRequest */ export type GetLastCommittedRequest = Message<"api.proto.v1.GetLastCommittedRequest"> & { /** * Settlement chain ID * * @generated from field: uint64 settlement_chain_id = 1; */ settlementChainId: bigint; }; ⋮---- /** * Settlement chain ID * * @generated from field: uint64 settlement_chain_id = 1; */ ⋮---- /** * Describes the message api.proto.v1.GetLastCommittedRequest. * Use `create(GetLastCommittedRequestSchema)` to create a new message. */ export const GetLastCommittedRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting last committed epoch * * @generated from message api.proto.v1.GetLastCommittedResponse */ export type GetLastCommittedResponse = Message<"api.proto.v1.GetLastCommittedResponse"> & { /** * Settlement chain ID * * @generated from field: uint64 settlement_chain_id = 1; */ settlementChainId: bigint; /** * @generated from field: api.proto.v1.ChainEpochInfo epoch_info = 2; */ epochInfo?: ChainEpochInfo; }; ⋮---- /** * Settlement chain ID * * @generated from field: uint64 settlement_chain_id = 1; */ ⋮---- /** * @generated from field: api.proto.v1.ChainEpochInfo epoch_info = 2; */ ⋮---- /** * Describes the message api.proto.v1.GetLastCommittedResponse. * Use `create(GetLastCommittedResponseSchema)` to create a new message. */ export const GetLastCommittedResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request message for getting last committed epochs for all chains * * No parameters needed * * @generated from message api.proto.v1.GetLastAllCommittedRequest */ export type GetLastAllCommittedRequest = Message<"api.proto.v1.GetLastAllCommittedRequest"> & { }; ⋮---- /** * Describes the message api.proto.v1.GetLastAllCommittedRequest. * Use `create(GetLastAllCommittedRequestSchema)` to create a new message. */ export const GetLastAllCommittedRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response message for getting all last committed epochs * * @generated from message api.proto.v1.GetLastAllCommittedResponse */ export type GetLastAllCommittedResponse = Message<"api.proto.v1.GetLastAllCommittedResponse"> & { /** * List of settlement chains with their last committed epochs * * @generated from field: map epoch_infos = 1; */ epochInfos: { [key: string]: ChainEpochInfo }; /** * Suggested epoch info for signatures, it is the minimum commited epoch among all chains * * @generated from field: api.proto.v1.ChainEpochInfo suggested_epoch_info = 2; */ suggestedEpochInfo?: ChainEpochInfo; }; ⋮---- /** * List of settlement chains with their last committed epochs * * @generated from field: map epoch_infos = 1; */ ⋮---- /** * Suggested epoch info for signatures, it is the minimum commited epoch among all chains * * @generated from field: api.proto.v1.ChainEpochInfo suggested_epoch_info = 2; */ ⋮---- /** * Describes the message api.proto.v1.GetLastAllCommittedResponse. * Use `create(GetLastAllCommittedResponseSchema)` to create a new message. */ export const GetLastAllCommittedResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settlement chain with its last committed epoch * * @generated from message api.proto.v1.ChainEpochInfo */ export type ChainEpochInfo = Message<"api.proto.v1.ChainEpochInfo"> & { /** * Last committed epoch for this chain * * @generated from field: uint64 last_committed_epoch = 1; */ lastCommittedEpoch: bigint; /** * Epoch start time * * @generated from field: google.protobuf.Timestamp start_time = 2; */ startTime?: Timestamp; }; ⋮---- /** * Last committed epoch for this chain * * @generated from field: uint64 last_committed_epoch = 1; */ ⋮---- /** * Epoch start time * * @generated from field: google.protobuf.Timestamp start_time = 2; */ ⋮---- /** * Describes the message api.proto.v1.ChainEpochInfo. * Use `create(ChainEpochInfoSchema)` to create a new message. */ export const ChainEpochInfoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message api.proto.v1.ValidatorSet */ export type ValidatorSet = Message<"api.proto.v1.ValidatorSet"> & { /** * Version of the validator set * * @generated from field: uint32 version = 1; */ version: number; /** * Key tag required to commit next validator set * * @generated from field: uint32 required_key_tag = 2; */ requiredKeyTag: number; /** * Validator set epoch * * @generated from field: uint64 epoch = 3; */ epoch: bigint; /** * Epoch capture timestamp * * @generated from field: google.protobuf.Timestamp capture_timestamp = 4; */ captureTimestamp?: Timestamp; /** * Quorum threshold (big integer as string) * * @generated from field: string quorum_threshold = 5; */ quorumThreshold: string; /** * Status of validator set header * * @generated from field: api.proto.v1.ValidatorSetStatus status = 6; */ status: ValidatorSetStatus; /** * List of validators * * @generated from field: repeated api.proto.v1.Validator validators = 7; */ validators: Validator[]; }; ⋮---- /** * Version of the validator set * * @generated from field: uint32 version = 1; */ ⋮---- /** * Key tag required to commit next validator set * * @generated from field: uint32 required_key_tag = 2; */ ⋮---- /** * Validator set epoch * * @generated from field: uint64 epoch = 3; */ ⋮---- /** * Epoch capture timestamp * * @generated from field: google.protobuf.Timestamp capture_timestamp = 4; */ ⋮---- /** * Quorum threshold (big integer as string) * * @generated from field: string quorum_threshold = 5; */ ⋮---- /** * Status of validator set header * * @generated from field: api.proto.v1.ValidatorSetStatus status = 6; */ ⋮---- /** * List of validators * * @generated from field: repeated api.proto.v1.Validator validators = 7; */ ⋮---- /** * Describes the message api.proto.v1.ValidatorSet. * Use `create(ValidatorSetSchema)` to create a new message. */ export const ValidatorSetSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Validator set status enumeration * * @generated from enum api.proto.v1.ValidatorSetStatus */ export enum ValidatorSetStatus { /** * Default/unknown status * * @generated from enum value: VALIDATOR_SET_STATUS_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Derived status * * @generated from enum value: VALIDATOR_SET_STATUS_DERIVED = 1; */ DERIVED = 1, /** * Aggregated status * * @generated from enum value: VALIDATOR_SET_STATUS_AGGREGATED = 2; */ AGGREGATED = 2, /** * Committed status * * @generated from enum value: VALIDATOR_SET_STATUS_COMMITTED = 3; */ COMMITTED = 3, /** * Missed status * * @generated from enum value: VALIDATOR_SET_STATUS_MISSED = 4; */ MISSED = 4, } ⋮---- /** * Default/unknown status * * @generated from enum value: VALIDATOR_SET_STATUS_UNSPECIFIED = 0; */ ⋮---- /** * Derived status * * @generated from enum value: VALIDATOR_SET_STATUS_DERIVED = 1; */ ⋮---- /** * Aggregated status * * @generated from enum value: VALIDATOR_SET_STATUS_AGGREGATED = 2; */ ⋮---- /** * Committed status * * @generated from enum value: VALIDATOR_SET_STATUS_COMMITTED = 3; */ ⋮---- /** * Missed status * * @generated from enum value: VALIDATOR_SET_STATUS_MISSED = 4; */ ⋮---- /** * Describes the enum api.proto.v1.ValidatorSetStatus. */ export const ValidatorSetStatusSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Signing process status enumeration * * @generated from enum api.proto.v1.SigningStatus */ export enum SigningStatus { /** * Default/unknown status * * @generated from enum value: SIGNING_STATUS_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Request has been created and is waiting for signatures * * @generated from enum value: SIGNING_STATUS_PENDING = 1; */ PENDING = 1, /** * Signing process completed successfully with proof * * @generated from enum value: SIGNING_STATUS_COMPLETED = 2; */ COMPLETED = 2, /** * Signing process failed * * @generated from enum value: SIGNING_STATUS_FAILED = 3; */ FAILED = 3, /** * Signing request timed out * * @generated from enum value: SIGNING_STATUS_TIMEOUT = 4; */ TIMEOUT = 4, } ⋮---- /** * Default/unknown status * * @generated from enum value: SIGNING_STATUS_UNSPECIFIED = 0; */ ⋮---- /** * Request has been created and is waiting for signatures * * @generated from enum value: SIGNING_STATUS_PENDING = 1; */ ⋮---- /** * Signing process completed successfully with proof * * @generated from enum value: SIGNING_STATUS_COMPLETED = 2; */ ⋮---- /** * Signing process failed * * @generated from enum value: SIGNING_STATUS_FAILED = 3; */ ⋮---- /** * Signing request timed out * * @generated from enum value: SIGNING_STATUS_TIMEOUT = 4; */ ⋮---- /** * Describes the enum api.proto.v1.SigningStatus. */ export const SigningStatusSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Error code enumeration * * @generated from enum api.proto.v1.ErrorCode */ export enum ErrorCode { /** * Default/unknown error * * @generated from enum value: ERROR_CODE_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * No data found * * @generated from enum value: ERROR_CODE_NO_DATA = 1; */ NO_DATA = 1, /** * Internal server error * * @generated from enum value: ERROR_CODE_INTERNAL = 2; */ INTERNAL = 2, /** * Not an aggregator node * * @generated from enum value: ERROR_CODE_NOT_AGGREGATOR = 3; */ NOT_AGGREGATOR = 3, } ⋮---- /** * Default/unknown error * * @generated from enum value: ERROR_CODE_UNSPECIFIED = 0; */ ⋮---- /** * No data found * * @generated from enum value: ERROR_CODE_NO_DATA = 1; */ ⋮---- /** * Internal server error * * @generated from enum value: ERROR_CODE_INTERNAL = 2; */ ⋮---- /** * Not an aggregator node * * @generated from enum value: ERROR_CODE_NOT_AGGREGATOR = 3; */ ⋮---- /** * Describes the enum api.proto.v1.ErrorCode. */ export const ErrorCodeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * SymbioticAPI provides access to the Symbiotic relay functions * * @generated from service api.proto.v1.SymbioticAPIService */ ⋮---- /** * Sign a message * * @generated from rpc api.proto.v1.SymbioticAPIService.SignMessage */ ⋮---- /** * Get aggregation proof * * @generated from rpc api.proto.v1.SymbioticAPIService.GetAggregationProof */ ⋮---- /** * Get aggregation proofs by epoch * * @generated from rpc api.proto.v1.SymbioticAPIService.GetAggregationProofsByEpoch */ ⋮---- /** * Get current epoch * * @generated from rpc api.proto.v1.SymbioticAPIService.GetCurrentEpoch */ ⋮---- /** * Get signature by request id * * @generated from rpc api.proto.v1.SymbioticAPIService.GetSignatures */ ⋮---- /** * Get signature by epoch * * @generated from rpc api.proto.v1.SymbioticAPIService.GetSignaturesByEpoch */ ⋮---- /** * Get all signature request IDs by epoch * * @generated from rpc api.proto.v1.SymbioticAPIService.GetSignatureRequestIDsByEpoch */ ⋮---- /** * Get all signature requests by epoch * * @generated from rpc api.proto.v1.SymbioticAPIService.GetSignatureRequestsByEpoch */ ⋮---- /** * Get signature request by request id * * @generated from rpc api.proto.v1.SymbioticAPIService.GetSignatureRequest */ ⋮---- /** * Get aggregation status, can be sent only to aggregator nodes * * @generated from rpc api.proto.v1.SymbioticAPIService.GetAggregationStatus */ ⋮---- /** * Get current validator set * * @generated from rpc api.proto.v1.SymbioticAPIService.GetValidatorSet */ ⋮---- /** * Get validator by address * * @generated from rpc api.proto.v1.SymbioticAPIService.GetValidatorByAddress */ ⋮---- /** * Get validator by key * * @generated from rpc api.proto.v1.SymbioticAPIService.GetValidatorByKey */ ⋮---- /** * Get local validator * * @generated from rpc api.proto.v1.SymbioticAPIService.GetLocalValidator */ ⋮---- /** * Get validator set header * * @generated from rpc api.proto.v1.SymbioticAPIService.GetValidatorSetHeader */ ⋮---- /** * Get last committed epoch for a specific settlement chain * * @generated from rpc api.proto.v1.SymbioticAPIService.GetLastCommitted */ ⋮---- /** * Get last committed epochs for all settlement chains * * @generated from rpc api.proto.v1.SymbioticAPIService.GetLastAllCommitted */ ⋮---- /** * Get validator set metadata like extra data and request id to fetch aggregation and signature requests * * @generated from rpc api.proto.v1.SymbioticAPIService.GetValidatorSetMetadata */ ⋮---- /** * Stream signatures in real-time. If start_epoch is provided, sends historical data first * * @generated from rpc api.proto.v1.SymbioticAPIService.ListenSignatures */ ⋮---- /** * Stream aggregation proofs in real-time. If start_epoch is provided, sends historical data first * * @generated from rpc api.proto.v1.SymbioticAPIService.ListenProofs */ ⋮---- /** * Stream validator set changes in real-time. If start_epoch is provided, sends historical data first * * @generated from rpc api.proto.v1.SymbioticAPIService.ListenValidatorSet */ ⋮---- }> = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1alpha1/checked_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1alpha1/checked.proto (package google.api.expr.v1alpha1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Constant, Expr, SourceInfo } from "./syntax_pb"; import { file_google_api_expr_v1alpha1_syntax } from "./syntax_pb"; import type { Empty, NullValue } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_empty, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1alpha1/checked.proto. */ export const file_google_api_expr_v1alpha1_checked: GenFile = /*@__PURE__*/ ⋮---- /** * A CEL expression which has been successfully type checked. * * @generated from message google.api.expr.v1alpha1.CheckedExpr */ export type CheckedExpr = Message<"google.api.expr.v1alpha1.CheckedExpr"> & { /** * A map from expression ids to resolved references. * * The following entries are in this table: * * - An Ident or Select expression is represented here if it resolves to a * declaration. For instance, if `a.b.c` is represented by * `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, * while `c` is a field selection, then the reference is attached to the * nested select expression (but not to the id or or the outer select). * In turn, if `a` resolves to a declaration and `b.c` are field selections, * the reference is attached to the ident expression. * - Every Call expression has an entry here, identifying the function being * called. * - Every CreateStruct expression for a message has an entry, identifying * the message. * * @generated from field: map reference_map = 2; */ referenceMap: { [key: string]: Reference }; /** * A map from expression ids to types. * * Every expression node which has a type different than DYN has a mapping * here. If an expression has type DYN, it is omitted from this map to save * space. * * @generated from field: map type_map = 3; */ typeMap: { [key: string]: Type }; /** * The source info derived from input that generated the parsed `expr` and * any optimizations made during the type-checking pass. * * @generated from field: google.api.expr.v1alpha1.SourceInfo source_info = 5; */ sourceInfo?: SourceInfo; /** * The expr version indicates the major / minor version number of the `expr` * representation. * * The most common reason for a version change will be to indicate to the CEL * runtimes that transformations have been performed on the expr during static * analysis. In some cases, this will save the runtime the work of applying * the same or similar transformations prior to evaluation. * * @generated from field: string expr_version = 6; */ exprVersion: string; /** * The checked expression. Semantically equivalent to the parsed `expr`, but * may have structural differences. * * @generated from field: google.api.expr.v1alpha1.Expr expr = 4; */ expr?: Expr; }; ⋮---- /** * A map from expression ids to resolved references. * * The following entries are in this table: * * - An Ident or Select expression is represented here if it resolves to a * declaration. For instance, if `a.b.c` is represented by * `select(select(id(a), b), c)`, and `a.b` resolves to a declaration, * while `c` is a field selection, then the reference is attached to the * nested select expression (but not to the id or or the outer select). * In turn, if `a` resolves to a declaration and `b.c` are field selections, * the reference is attached to the ident expression. * - Every Call expression has an entry here, identifying the function being * called. * - Every CreateStruct expression for a message has an entry, identifying * the message. * * @generated from field: map reference_map = 2; */ ⋮---- /** * A map from expression ids to types. * * Every expression node which has a type different than DYN has a mapping * here. If an expression has type DYN, it is omitted from this map to save * space. * * @generated from field: map type_map = 3; */ ⋮---- /** * The source info derived from input that generated the parsed `expr` and * any optimizations made during the type-checking pass. * * @generated from field: google.api.expr.v1alpha1.SourceInfo source_info = 5; */ ⋮---- /** * The expr version indicates the major / minor version number of the `expr` * representation. * * The most common reason for a version change will be to indicate to the CEL * runtimes that transformations have been performed on the expr during static * analysis. In some cases, this will save the runtime the work of applying * the same or similar transformations prior to evaluation. * * @generated from field: string expr_version = 6; */ ⋮---- /** * The checked expression. Semantically equivalent to the parsed `expr`, but * may have structural differences. * * @generated from field: google.api.expr.v1alpha1.Expr expr = 4; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.CheckedExpr. * Use `create(CheckedExprSchema)` to create a new message. */ export const CheckedExprSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Represents a CEL type. * * @generated from message google.api.expr.v1alpha1.Type */ export type Type = Message<"google.api.expr.v1alpha1.Type"> & { /** * The kind of type. * * @generated from oneof google.api.expr.v1alpha1.Type.type_kind */ typeKind: { /** * Dynamic type. * * @generated from field: google.protobuf.Empty dyn = 1; */ value: Empty; case: "dyn"; } | { /** * Null value. * * @generated from field: google.protobuf.NullValue null = 2; */ value: NullValue; case: "null"; } | { /** * Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. * * @generated from field: google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3; */ value: Type_PrimitiveType; case: "primitive"; } | { /** * Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. * * @generated from field: google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4; */ value: Type_PrimitiveType; case: "wrapper"; } | { /** * Well-known protobuf type such as `google.protobuf.Timestamp`. * * @generated from field: google.api.expr.v1alpha1.Type.WellKnownType well_known = 5; */ value: Type_WellKnownType; case: "wellKnown"; } | { /** * Parameterized list with elements of `list_type`, e.g. `list`. * * @generated from field: google.api.expr.v1alpha1.Type.ListType list_type = 6; */ value: Type_ListType; case: "listType"; } | { /** * Parameterized map with typed keys and values. * * @generated from field: google.api.expr.v1alpha1.Type.MapType map_type = 7; */ value: Type_MapType; case: "mapType"; } | { /** * Function type. * * @generated from field: google.api.expr.v1alpha1.Type.FunctionType function = 8; */ value: Type_FunctionType; case: "function"; } | { /** * Protocol buffer message type. * * The `message_type` string specifies the qualified message type name. For * example, `google.plus.Profile`. * * @generated from field: string message_type = 9; */ value: string; case: "messageType"; } | { /** * Type param type. * * The `type_param` string specifies the type parameter name, e.g. `list` * would be a `list_type` whose element type was a `type_param` type * named `E`. * * @generated from field: string type_param = 10; */ value: string; case: "typeParam"; } | { /** * Type type. * * The `type` value specifies the target type. e.g. int is type with a * target type of `Primitive.INT`. * * @generated from field: google.api.expr.v1alpha1.Type type = 11; */ value: Type; case: "type"; } | { /** * Error type. * * During type-checking if an expression is an error, its type is propagated * as the `ERROR` type. This permits the type-checker to discover other * errors present in the expression. * * @generated from field: google.protobuf.Empty error = 12; */ value: Empty; case: "error"; } | { /** * Abstract, application defined type. * * @generated from field: google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14; */ value: Type_AbstractType; case: "abstractType"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * The kind of type. * * @generated from oneof google.api.expr.v1alpha1.Type.type_kind */ ⋮---- /** * Dynamic type. * * @generated from field: google.protobuf.Empty dyn = 1; */ ⋮---- /** * Null value. * * @generated from field: google.protobuf.NullValue null = 2; */ ⋮---- /** * Primitive types: `true`, `1u`, `-2.0`, `'string'`, `b'bytes'`. * * @generated from field: google.api.expr.v1alpha1.Type.PrimitiveType primitive = 3; */ ⋮---- /** * Wrapper of a primitive type, e.g. `google.protobuf.Int64Value`. * * @generated from field: google.api.expr.v1alpha1.Type.PrimitiveType wrapper = 4; */ ⋮---- /** * Well-known protobuf type such as `google.protobuf.Timestamp`. * * @generated from field: google.api.expr.v1alpha1.Type.WellKnownType well_known = 5; */ ⋮---- /** * Parameterized list with elements of `list_type`, e.g. `list`. * * @generated from field: google.api.expr.v1alpha1.Type.ListType list_type = 6; */ ⋮---- /** * Parameterized map with typed keys and values. * * @generated from field: google.api.expr.v1alpha1.Type.MapType map_type = 7; */ ⋮---- /** * Function type. * * @generated from field: google.api.expr.v1alpha1.Type.FunctionType function = 8; */ ⋮---- /** * Protocol buffer message type. * * The `message_type` string specifies the qualified message type name. For * example, `google.plus.Profile`. * * @generated from field: string message_type = 9; */ ⋮---- /** * Type param type. * * The `type_param` string specifies the type parameter name, e.g. `list` * would be a `list_type` whose element type was a `type_param` type * named `E`. * * @generated from field: string type_param = 10; */ ⋮---- /** * Type type. * * The `type` value specifies the target type. e.g. int is type with a * target type of `Primitive.INT`. * * @generated from field: google.api.expr.v1alpha1.Type type = 11; */ ⋮---- /** * Error type. * * During type-checking if an expression is an error, its type is propagated * as the `ERROR` type. This permits the type-checker to discover other * errors present in the expression. * * @generated from field: google.protobuf.Empty error = 12; */ ⋮---- /** * Abstract, application defined type. * * @generated from field: google.api.expr.v1alpha1.Type.AbstractType abstract_type = 14; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Type. * Use `create(TypeSchema)` to create a new message. */ export const TypeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * List type with typed elements, e.g. `list`. * * @generated from message google.api.expr.v1alpha1.Type.ListType */ export type Type_ListType = Message<"google.api.expr.v1alpha1.Type.ListType"> & { /** * The element type. * * @generated from field: google.api.expr.v1alpha1.Type elem_type = 1; */ elemType?: Type; }; ⋮---- /** * The element type. * * @generated from field: google.api.expr.v1alpha1.Type elem_type = 1; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Type.ListType. * Use `create(Type_ListTypeSchema)` to create a new message. */ export const Type_ListTypeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Map type with parameterized key and value types, e.g. `map`. * * @generated from message google.api.expr.v1alpha1.Type.MapType */ export type Type_MapType = Message<"google.api.expr.v1alpha1.Type.MapType"> & { /** * The type of the key. * * @generated from field: google.api.expr.v1alpha1.Type key_type = 1; */ keyType?: Type; /** * The type of the value. * * @generated from field: google.api.expr.v1alpha1.Type value_type = 2; */ valueType?: Type; }; ⋮---- /** * The type of the key. * * @generated from field: google.api.expr.v1alpha1.Type key_type = 1; */ ⋮---- /** * The type of the value. * * @generated from field: google.api.expr.v1alpha1.Type value_type = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Type.MapType. * Use `create(Type_MapTypeSchema)` to create a new message. */ export const Type_MapTypeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Function type with result and arg types. * * @generated from message google.api.expr.v1alpha1.Type.FunctionType */ export type Type_FunctionType = Message<"google.api.expr.v1alpha1.Type.FunctionType"> & { /** * Result type of the function. * * @generated from field: google.api.expr.v1alpha1.Type result_type = 1; */ resultType?: Type; /** * Argument types of the function. * * @generated from field: repeated google.api.expr.v1alpha1.Type arg_types = 2; */ argTypes: Type[]; }; ⋮---- /** * Result type of the function. * * @generated from field: google.api.expr.v1alpha1.Type result_type = 1; */ ⋮---- /** * Argument types of the function. * * @generated from field: repeated google.api.expr.v1alpha1.Type arg_types = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Type.FunctionType. * Use `create(Type_FunctionTypeSchema)` to create a new message. */ export const Type_FunctionTypeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Application defined abstract type. * * @generated from message google.api.expr.v1alpha1.Type.AbstractType */ export type Type_AbstractType = Message<"google.api.expr.v1alpha1.Type.AbstractType"> & { /** * The fully qualified name of this abstract type. * * @generated from field: string name = 1; */ name: string; /** * Parameter types for this abstract type. * * @generated from field: repeated google.api.expr.v1alpha1.Type parameter_types = 2; */ parameterTypes: Type[]; }; ⋮---- /** * The fully qualified name of this abstract type. * * @generated from field: string name = 1; */ ⋮---- /** * Parameter types for this abstract type. * * @generated from field: repeated google.api.expr.v1alpha1.Type parameter_types = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Type.AbstractType. * Use `create(Type_AbstractTypeSchema)` to create a new message. */ export const Type_AbstractTypeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * CEL primitive types. * * @generated from enum google.api.expr.v1alpha1.Type.PrimitiveType */ export enum Type_PrimitiveType { /** * Unspecified type. * * @generated from enum value: PRIMITIVE_TYPE_UNSPECIFIED = 0; */ PRIMITIVE_TYPE_UNSPECIFIED = 0, /** * Boolean type. * * @generated from enum value: BOOL = 1; */ BOOL = 1, /** * Int64 type. * * Proto-based integer values are widened to int64. * * @generated from enum value: INT64 = 2; */ INT64 = 2, /** * Uint64 type. * * Proto-based unsigned integer values are widened to uint64. * * @generated from enum value: UINT64 = 3; */ UINT64 = 3, /** * Double type. * * Proto-based float values are widened to double values. * * @generated from enum value: DOUBLE = 4; */ DOUBLE = 4, /** * String type. * * @generated from enum value: STRING = 5; */ STRING = 5, /** * Bytes type. * * @generated from enum value: BYTES = 6; */ BYTES = 6, } ⋮---- /** * Unspecified type. * * @generated from enum value: PRIMITIVE_TYPE_UNSPECIFIED = 0; */ ⋮---- /** * Boolean type. * * @generated from enum value: BOOL = 1; */ ⋮---- /** * Int64 type. * * Proto-based integer values are widened to int64. * * @generated from enum value: INT64 = 2; */ ⋮---- /** * Uint64 type. * * Proto-based unsigned integer values are widened to uint64. * * @generated from enum value: UINT64 = 3; */ ⋮---- /** * Double type. * * Proto-based float values are widened to double values. * * @generated from enum value: DOUBLE = 4; */ ⋮---- /** * String type. * * @generated from enum value: STRING = 5; */ ⋮---- /** * Bytes type. * * @generated from enum value: BYTES = 6; */ ⋮---- /** * Describes the enum google.api.expr.v1alpha1.Type.PrimitiveType. */ export const Type_PrimitiveTypeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Well-known protobuf types treated with first-class support in CEL. * * @generated from enum google.api.expr.v1alpha1.Type.WellKnownType */ export enum Type_WellKnownType { /** * Unspecified type. * * @generated from enum value: WELL_KNOWN_TYPE_UNSPECIFIED = 0; */ WELL_KNOWN_TYPE_UNSPECIFIED = 0, /** * Well-known protobuf.Any type. * * Any types are a polymorphic message type. During type-checking they are * treated like `DYN` types, but at runtime they are resolved to a specific * message type specified at evaluation time. * * @generated from enum value: ANY = 1; */ ANY = 1, /** * Well-known protobuf.Timestamp type, internally referenced as `timestamp`. * * @generated from enum value: TIMESTAMP = 2; */ TIMESTAMP = 2, /** * Well-known protobuf.Duration type, internally referenced as `duration`. * * @generated from enum value: DURATION = 3; */ DURATION = 3, } ⋮---- /** * Unspecified type. * * @generated from enum value: WELL_KNOWN_TYPE_UNSPECIFIED = 0; */ ⋮---- /** * Well-known protobuf.Any type. * * Any types are a polymorphic message type. During type-checking they are * treated like `DYN` types, but at runtime they are resolved to a specific * message type specified at evaluation time. * * @generated from enum value: ANY = 1; */ ⋮---- /** * Well-known protobuf.Timestamp type, internally referenced as `timestamp`. * * @generated from enum value: TIMESTAMP = 2; */ ⋮---- /** * Well-known protobuf.Duration type, internally referenced as `duration`. * * @generated from enum value: DURATION = 3; */ ⋮---- /** * Describes the enum google.api.expr.v1alpha1.Type.WellKnownType. */ export const Type_WellKnownTypeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Represents a declaration of a named value or function. * * A declaration is part of the contract between the expression, the agent * evaluating that expression, and the caller requesting evaluation. * * @generated from message google.api.expr.v1alpha1.Decl */ export type Decl = Message<"google.api.expr.v1alpha1.Decl"> & { /** * The fully qualified name of the declaration. * * Declarations are organized in containers and this represents the full path * to the declaration in its container, as in `google.api.expr.Decl`. * * Declarations used as * [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] * parameters may or may not have a name depending on whether the overload is * function declaration or a function definition containing a result * [Expr][google.api.expr.v1alpha1.Expr]. * * @generated from field: string name = 1; */ name: string; /** * Required. The declaration kind. * * @generated from oneof google.api.expr.v1alpha1.Decl.decl_kind */ declKind: { /** * Identifier declaration. * * @generated from field: google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; */ value: Decl_IdentDecl; case: "ident"; } | { /** * Function declaration. * * @generated from field: google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; */ value: Decl_FunctionDecl; case: "function"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * The fully qualified name of the declaration. * * Declarations are organized in containers and this represents the full path * to the declaration in its container, as in `google.api.expr.Decl`. * * Declarations used as * [FunctionDecl.Overload][google.api.expr.v1alpha1.Decl.FunctionDecl.Overload] * parameters may or may not have a name depending on whether the overload is * function declaration or a function definition containing a result * [Expr][google.api.expr.v1alpha1.Expr]. * * @generated from field: string name = 1; */ ⋮---- /** * Required. The declaration kind. * * @generated from oneof google.api.expr.v1alpha1.Decl.decl_kind */ ⋮---- /** * Identifier declaration. * * @generated from field: google.api.expr.v1alpha1.Decl.IdentDecl ident = 2; */ ⋮---- /** * Function declaration. * * @generated from field: google.api.expr.v1alpha1.Decl.FunctionDecl function = 3; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Decl. * Use `create(DeclSchema)` to create a new message. */ export const DeclSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Identifier declaration which specifies its type and optional `Expr` value. * * An identifier without a value is a declaration that must be provided at * evaluation time. An identifier with a value should resolve to a constant, * but may be used in conjunction with other identifiers bound at evaluation * time. * * @generated from message google.api.expr.v1alpha1.Decl.IdentDecl */ export type Decl_IdentDecl = Message<"google.api.expr.v1alpha1.Decl.IdentDecl"> & { /** * Required. The type of the identifier. * * @generated from field: google.api.expr.v1alpha1.Type type = 1; */ type?: Type; /** * The constant value of the identifier. If not specified, the identifier * must be supplied at evaluation time. * * @generated from field: google.api.expr.v1alpha1.Constant value = 2; */ value?: Constant; /** * Documentation string for the identifier. * * @generated from field: string doc = 3; */ doc: string; }; ⋮---- /** * Required. The type of the identifier. * * @generated from field: google.api.expr.v1alpha1.Type type = 1; */ ⋮---- /** * The constant value of the identifier. If not specified, the identifier * must be supplied at evaluation time. * * @generated from field: google.api.expr.v1alpha1.Constant value = 2; */ ⋮---- /** * Documentation string for the identifier. * * @generated from field: string doc = 3; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Decl.IdentDecl. * Use `create(Decl_IdentDeclSchema)` to create a new message. */ export const Decl_IdentDeclSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Function declaration specifies one or more overloads which indicate the * function's parameter types and return type. * * Functions have no observable side-effects (there may be side-effects like * logging which are not observable from CEL). * * @generated from message google.api.expr.v1alpha1.Decl.FunctionDecl */ export type Decl_FunctionDecl = Message<"google.api.expr.v1alpha1.Decl.FunctionDecl"> & { /** * Required. List of function overloads, must contain at least one overload. * * @generated from field: repeated google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1; */ overloads: Decl_FunctionDecl_Overload[]; }; ⋮---- /** * Required. List of function overloads, must contain at least one overload. * * @generated from field: repeated google.api.expr.v1alpha1.Decl.FunctionDecl.Overload overloads = 1; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Decl.FunctionDecl. * Use `create(Decl_FunctionDeclSchema)` to create a new message. */ export const Decl_FunctionDeclSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An overload indicates a function's parameter types and return type, and * may optionally include a function body described in terms of * [Expr][google.api.expr.v1alpha1.Expr] values. * * Functions overloads are declared in either a function or method * call-style. For methods, the `params[0]` is the expected type of the * target receiver. * * Overloads must have non-overlapping argument types after erasure of all * parameterized type variables (similar as type erasure in Java). * * @generated from message google.api.expr.v1alpha1.Decl.FunctionDecl.Overload */ export type Decl_FunctionDecl_Overload = Message<"google.api.expr.v1alpha1.Decl.FunctionDecl.Overload"> & { /** * Required. Globally unique overload name of the function which reflects * the function name and argument types. * * This will be used by a [Reference][google.api.expr.v1alpha1.Reference] * to indicate the `overload_id` that was resolved for the function * `name`. * * @generated from field: string overload_id = 1; */ overloadId: string; /** * List of function parameter [Type][google.api.expr.v1alpha1.Type] * values. * * Param types are disjoint after generic type parameters have been * replaced with the type `DYN`. Since the `DYN` type is compatible with * any other type, this means that if `A` is a type parameter, the * function types `int` and `int` are not disjoint. Likewise, * `map` is not disjoint from `map`. * * When the `result_type` of a function is a generic type param, the * type param name also appears as the `type` of on at least one params. * * @generated from field: repeated google.api.expr.v1alpha1.Type params = 2; */ params: Type[]; /** * The type param names associated with the function declaration. * * For example, `function ex(K key, map map) : V` would yield * the type params of `K, V`. * * @generated from field: repeated string type_params = 3; */ typeParams: string[]; /** * Required. The result type of the function. For example, the operator * `string.isEmpty()` would have `result_type` of `kind: BOOL`. * * @generated from field: google.api.expr.v1alpha1.Type result_type = 4; */ resultType?: Type; /** * Whether the function is to be used in a method call-style `x.f(...)` * or a function call-style `f(x, ...)`. * * For methods, the first parameter declaration, `params[0]` is the * expected type of the target receiver. * * @generated from field: bool is_instance_function = 5; */ isInstanceFunction: boolean; /** * Documentation string for the overload. * * @generated from field: string doc = 6; */ doc: string; }; ⋮---- /** * Required. Globally unique overload name of the function which reflects * the function name and argument types. * * This will be used by a [Reference][google.api.expr.v1alpha1.Reference] * to indicate the `overload_id` that was resolved for the function * `name`. * * @generated from field: string overload_id = 1; */ ⋮---- /** * List of function parameter [Type][google.api.expr.v1alpha1.Type] * values. * * Param types are disjoint after generic type parameters have been * replaced with the type `DYN`. Since the `DYN` type is compatible with * any other type, this means that if `A` is a type parameter, the * function types `int` and `int` are not disjoint. Likewise, * `map` is not disjoint from `map`. * * When the `result_type` of a function is a generic type param, the * type param name also appears as the `type` of on at least one params. * * @generated from field: repeated google.api.expr.v1alpha1.Type params = 2; */ ⋮---- /** * The type param names associated with the function declaration. * * For example, `function ex(K key, map map) : V` would yield * the type params of `K, V`. * * @generated from field: repeated string type_params = 3; */ ⋮---- /** * Required. The result type of the function. For example, the operator * `string.isEmpty()` would have `result_type` of `kind: BOOL`. * * @generated from field: google.api.expr.v1alpha1.Type result_type = 4; */ ⋮---- /** * Whether the function is to be used in a method call-style `x.f(...)` * or a function call-style `f(x, ...)`. * * For methods, the first parameter declaration, `params[0]` is the * expected type of the target receiver. * * @generated from field: bool is_instance_function = 5; */ ⋮---- /** * Documentation string for the overload. * * @generated from field: string doc = 6; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Decl.FunctionDecl.Overload. * Use `create(Decl_FunctionDecl_OverloadSchema)` to create a new message. */ export const Decl_FunctionDecl_OverloadSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes a resolved reference to a declaration. * * @generated from message google.api.expr.v1alpha1.Reference */ export type Reference = Message<"google.api.expr.v1alpha1.Reference"> & { /** * The fully qualified name of the declaration. * * @generated from field: string name = 1; */ name: string; /** * For references to functions, this is a list of `Overload.overload_id` * values which match according to typing rules. * * If the list has more than one element, overload resolution among the * presented candidates must happen at runtime because of dynamic types. The * type checker attempts to narrow down this list as much as possible. * * Empty if this is not a reference to a * [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. * * @generated from field: repeated string overload_id = 3; */ overloadId: string[]; /** * For references to constants, this may contain the value of the * constant if known at compile time. * * @generated from field: google.api.expr.v1alpha1.Constant value = 4; */ value?: Constant; }; ⋮---- /** * The fully qualified name of the declaration. * * @generated from field: string name = 1; */ ⋮---- /** * For references to functions, this is a list of `Overload.overload_id` * values which match according to typing rules. * * If the list has more than one element, overload resolution among the * presented candidates must happen at runtime because of dynamic types. The * type checker attempts to narrow down this list as much as possible. * * Empty if this is not a reference to a * [Decl.FunctionDecl][google.api.expr.v1alpha1.Decl.FunctionDecl]. * * @generated from field: repeated string overload_id = 3; */ ⋮---- /** * For references to constants, this may contain the value of the * constant if known at compile time. * * @generated from field: google.api.expr.v1alpha1.Constant value = 4; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Reference. * Use `create(ReferenceSchema)` to create a new message. */ export const ReferenceSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1alpha1/eval_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1alpha1/eval.proto (package google.api.expr.v1alpha1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Value } from "./value_pb"; import { file_google_api_expr_v1alpha1_value } from "./value_pb"; import type { Status } from "../../../rpc/status_pb"; import { file_google_rpc_status } from "../../../rpc/status_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1alpha1/eval.proto. */ export const file_google_api_expr_v1alpha1_eval: GenFile = /*@__PURE__*/ ⋮---- /** * The state of an evaluation. * * Can represent an inital, partial, or completed state of evaluation. * * @generated from message google.api.expr.v1alpha1.EvalState */ export type EvalState = Message<"google.api.expr.v1alpha1.EvalState"> & { /** * The unique values referenced in this message. * * @generated from field: repeated google.api.expr.v1alpha1.ExprValue values = 1; */ values: ExprValue[]; /** * An ordered list of results. * * Tracks the flow of evaluation through the expression. * May be sparse. * * @generated from field: repeated google.api.expr.v1alpha1.EvalState.Result results = 3; */ results: EvalState_Result[]; }; ⋮---- /** * The unique values referenced in this message. * * @generated from field: repeated google.api.expr.v1alpha1.ExprValue values = 1; */ ⋮---- /** * An ordered list of results. * * Tracks the flow of evaluation through the expression. * May be sparse. * * @generated from field: repeated google.api.expr.v1alpha1.EvalState.Result results = 3; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.EvalState. * Use `create(EvalStateSchema)` to create a new message. */ export const EvalStateSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A single evalution result. * * @generated from message google.api.expr.v1alpha1.EvalState.Result */ export type EvalState_Result = Message<"google.api.expr.v1alpha1.EvalState.Result"> & { /** * The id of the expression this result if for. * * @generated from field: int64 expr = 1; */ expr: bigint; /** * The index in `values` of the resulting value. * * @generated from field: int64 value = 2; */ value: bigint; }; ⋮---- /** * The id of the expression this result if for. * * @generated from field: int64 expr = 1; */ ⋮---- /** * The index in `values` of the resulting value. * * @generated from field: int64 value = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.EvalState.Result. * Use `create(EvalState_ResultSchema)` to create a new message. */ export const EvalState_ResultSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The value of an evaluated expression. * * @generated from message google.api.expr.v1alpha1.ExprValue */ export type ExprValue = Message<"google.api.expr.v1alpha1.ExprValue"> & { /** * An expression can resolve to a value, error or unknown. * * @generated from oneof google.api.expr.v1alpha1.ExprValue.kind */ kind: { /** * A concrete value. * * @generated from field: google.api.expr.v1alpha1.Value value = 1; */ value: Value; case: "value"; } | { /** * The set of errors in the critical path of evalution. * * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * @generated from field: google.api.expr.v1alpha1.ErrorSet error = 2; */ value: ErrorSet; case: "error"; } | { /** * The set of unknowns in the critical path of evaluation. * * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * * || -> * && -> * * Errors take precidence in all other cases: * * + -> * foo(, ) -> * * @generated from field: google.api.expr.v1alpha1.UnknownSet unknown = 3; */ value: UnknownSet; case: "unknown"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * An expression can resolve to a value, error or unknown. * * @generated from oneof google.api.expr.v1alpha1.ExprValue.kind */ ⋮---- /** * A concrete value. * * @generated from field: google.api.expr.v1alpha1.Value value = 1; */ ⋮---- /** * The set of errors in the critical path of evalution. * * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * @generated from field: google.api.expr.v1alpha1.ErrorSet error = 2; */ ⋮---- /** * The set of unknowns in the critical path of evaluation. * * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * * || -> * && -> * * Errors take precidence in all other cases: * * + -> * foo(, ) -> * * @generated from field: google.api.expr.v1alpha1.UnknownSet unknown = 3; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.ExprValue. * Use `create(ExprValueSchema)` to create a new message. */ export const ExprValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A set of errors. * * The errors included depend on the context. See `ExprValue.error`. * * @generated from message google.api.expr.v1alpha1.ErrorSet */ export type ErrorSet = Message<"google.api.expr.v1alpha1.ErrorSet"> & { /** * The errors in the set. * * @generated from field: repeated google.rpc.Status errors = 1; */ errors: Status[]; }; ⋮---- /** * The errors in the set. * * @generated from field: repeated google.rpc.Status errors = 1; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.ErrorSet. * Use `create(ErrorSetSchema)` to create a new message. */ export const ErrorSetSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A set of expressions for which the value is unknown. * * The unknowns included depend on the context. See `ExprValue.unknown`. * * @generated from message google.api.expr.v1alpha1.UnknownSet */ export type UnknownSet = Message<"google.api.expr.v1alpha1.UnknownSet"> & { /** * The ids of the expressions with unknown values. * * @generated from field: repeated int64 exprs = 1; */ exprs: bigint[]; }; ⋮---- /** * The ids of the expressions with unknown values. * * @generated from field: repeated int64 exprs = 1; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.UnknownSet. * Use `create(UnknownSetSchema)` to create a new message. */ export const UnknownSetSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1alpha1/explain_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1alpha1/explain.proto (package google.api.expr.v1alpha1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Value } from "./value_pb"; import { file_google_api_expr_v1alpha1_value } from "./value_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1alpha1/explain.proto. */ export const file_google_api_expr_v1alpha1_explain: GenFile = /*@__PURE__*/ ⋮---- /** * Values of intermediate expressions produced when evaluating expression. * Deprecated, use `EvalState` instead. * * @generated from message google.api.expr.v1alpha1.Explain * @deprecated */ export type Explain = Message<"google.api.expr.v1alpha1.Explain"> & { /** * All of the observed values. * * The field value_index is an index in the values list. * Separating values from steps is needed to remove redundant values. * * @generated from field: repeated google.api.expr.v1alpha1.Value values = 1; */ values: Value[]; /** * List of steps. * * Repeated evaluations of the same expression generate new ExprStep * instances. The order of such ExprStep instances matches the order of * elements returned by Comprehension.iter_range. * * @generated from field: repeated google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2; */ exprSteps: Explain_ExprStep[]; }; ⋮---- /** * All of the observed values. * * The field value_index is an index in the values list. * Separating values from steps is needed to remove redundant values. * * @generated from field: repeated google.api.expr.v1alpha1.Value values = 1; */ ⋮---- /** * List of steps. * * Repeated evaluations of the same expression generate new ExprStep * instances. The order of such ExprStep instances matches the order of * elements returned by Comprehension.iter_range. * * @generated from field: repeated google.api.expr.v1alpha1.Explain.ExprStep expr_steps = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Explain. * Use `create(ExplainSchema)` to create a new message. * @deprecated */ export const ExplainSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * ID and value index of one step. * * @generated from message google.api.expr.v1alpha1.Explain.ExprStep * @deprecated */ export type Explain_ExprStep = Message<"google.api.expr.v1alpha1.Explain.ExprStep"> & { /** * ID of corresponding Expr node. * * @generated from field: int64 id = 1; */ id: bigint; /** * Index of the value in the values list. * * @generated from field: int32 value_index = 2; */ valueIndex: number; }; ⋮---- /** * ID of corresponding Expr node. * * @generated from field: int64 id = 1; */ ⋮---- /** * Index of the value in the values list. * * @generated from field: int32 value_index = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Explain.ExprStep. * Use `create(Explain_ExprStepSchema)` to create a new message. * @deprecated */ export const Explain_ExprStepSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1alpha1/syntax_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1alpha1/syntax.proto (package google.api.expr.v1alpha1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Duration, NullValue, Timestamp } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_duration, file_google_protobuf_struct, file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1alpha1/syntax.proto. */ export const file_google_api_expr_v1alpha1_syntax: GenFile = /*@__PURE__*/ ⋮---- /** * An expression together with source information as returned by the parser. * * @generated from message google.api.expr.v1alpha1.ParsedExpr */ export type ParsedExpr = Message<"google.api.expr.v1alpha1.ParsedExpr"> & { /** * The parsed expression. * * @generated from field: google.api.expr.v1alpha1.Expr expr = 2; */ expr?: Expr; /** * The source info derived from input that generated the parsed `expr`. * * @generated from field: google.api.expr.v1alpha1.SourceInfo source_info = 3; */ sourceInfo?: SourceInfo; }; ⋮---- /** * The parsed expression. * * @generated from field: google.api.expr.v1alpha1.Expr expr = 2; */ ⋮---- /** * The source info derived from input that generated the parsed `expr`. * * @generated from field: google.api.expr.v1alpha1.SourceInfo source_info = 3; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.ParsedExpr. * Use `create(ParsedExprSchema)` to create a new message. */ export const ParsedExprSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An abstract representation of a common expression. * * Expressions are abstractly represented as a collection of identifiers, * select statements, function calls, literals, and comprehensions. All * operators with the exception of the '.' operator are modelled as function * calls. This makes it easy to represent new operators into the existing AST. * * All references within expressions must resolve to a * [Decl][google.api.expr.v1alpha1.Decl] provided at type-check for an * expression to be valid. A reference may either be a bare identifier `name` or * a qualified identifier `google.api.name`. References may either refer to a * value or a function declaration. * * For example, the expression `google.api.name.startsWith('expr')` references * the declaration `google.api.name` within a * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression, and the * function declaration `startsWith`. * * @generated from message google.api.expr.v1alpha1.Expr */ export type Expr = Message<"google.api.expr.v1alpha1.Expr"> & { /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * @generated from field: int64 id = 2; */ id: bigint; /** * Required. Variants of expressions. * * @generated from oneof google.api.expr.v1alpha1.Expr.expr_kind */ exprKind: { /** * A literal expression. * * @generated from field: google.api.expr.v1alpha1.Constant const_expr = 3; */ value: Constant; case: "constExpr"; } | { /** * An identifier expression. * * @generated from field: google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ value: Expr_Ident; case: "identExpr"; } | { /** * A field selection expression, e.g. `request.auth`. * * @generated from field: google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ value: Expr_Select; case: "selectExpr"; } | { /** * A call expression, including calls to predefined functions and operators. * * @generated from field: google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ value: Expr_Call; case: "callExpr"; } | { /** * A list creation expression. * * @generated from field: google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ value: Expr_CreateList; case: "listExpr"; } | { /** * A map or message creation expression. * * @generated from field: google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ value: Expr_CreateStruct; case: "structExpr"; } | { /** * A comprehension expression. * * @generated from field: google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ value: Expr_Comprehension; case: "comprehensionExpr"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * @generated from field: int64 id = 2; */ ⋮---- /** * Required. Variants of expressions. * * @generated from oneof google.api.expr.v1alpha1.Expr.expr_kind */ ⋮---- /** * A literal expression. * * @generated from field: google.api.expr.v1alpha1.Constant const_expr = 3; */ ⋮---- /** * An identifier expression. * * @generated from field: google.api.expr.v1alpha1.Expr.Ident ident_expr = 4; */ ⋮---- /** * A field selection expression, e.g. `request.auth`. * * @generated from field: google.api.expr.v1alpha1.Expr.Select select_expr = 5; */ ⋮---- /** * A call expression, including calls to predefined functions and operators. * * @generated from field: google.api.expr.v1alpha1.Expr.Call call_expr = 6; */ ⋮---- /** * A list creation expression. * * @generated from field: google.api.expr.v1alpha1.Expr.CreateList list_expr = 7; */ ⋮---- /** * A map or message creation expression. * * @generated from field: google.api.expr.v1alpha1.Expr.CreateStruct struct_expr = 8; */ ⋮---- /** * A comprehension expression. * * @generated from field: google.api.expr.v1alpha1.Expr.Comprehension comprehension_expr = 9; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Expr. * Use `create(ExprSchema)` to create a new message. */ export const ExprSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An identifier expression. e.g. `request`. * * @generated from message google.api.expr.v1alpha1.Expr.Ident */ export type Expr_Ident = Message<"google.api.expr.v1alpha1.Expr.Ident"> & { /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * * Qualified names are represented by the * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. * * @generated from field: string name = 1; */ name: string; }; ⋮---- /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * * Qualified names are represented by the * [Expr.Select][google.api.expr.v1alpha1.Expr.Select] expression. * * @generated from field: string name = 1; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Expr.Ident. * Use `create(Expr_IdentSchema)` to create a new message. */ export const Expr_IdentSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A field selection expression. e.g. `request.auth`. * * @generated from message google.api.expr.v1alpha1.Expr.Select */ export type Expr_Select = Message<"google.api.expr.v1alpha1.Expr.Select"> & { /** * Required. The target of the selection expression. * * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * @generated from field: google.api.expr.v1alpha1.Expr operand = 1; */ operand?: Expr; /** * Required. The name of the field to select. * * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * @generated from field: string field = 2; */ field: string; /** * Whether the select is to be interpreted as a field presence test. * * This results from the macro `has(request.auth)`. * * @generated from field: bool test_only = 3; */ testOnly: boolean; }; ⋮---- /** * Required. The target of the selection expression. * * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * @generated from field: google.api.expr.v1alpha1.Expr operand = 1; */ ⋮---- /** * Required. The name of the field to select. * * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * @generated from field: string field = 2; */ ⋮---- /** * Whether the select is to be interpreted as a field presence test. * * This results from the macro `has(request.auth)`. * * @generated from field: bool test_only = 3; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Expr.Select. * Use `create(Expr_SelectSchema)` to create a new message. */ export const Expr_SelectSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A call expression, including calls to predefined functions and operators. * * For example, `value == 10`, `size(map_value)`. * * @generated from message google.api.expr.v1alpha1.Expr.Call */ export type Expr_Call = Message<"google.api.expr.v1alpha1.Expr.Call"> & { /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * @generated from field: google.api.expr.v1alpha1.Expr target = 1; */ target?: Expr; /** * Required. The name of the function or method being called. * * @generated from field: string function = 2; */ function: string; /** * The arguments. * * @generated from field: repeated google.api.expr.v1alpha1.Expr args = 3; */ args: Expr[]; }; ⋮---- /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * @generated from field: google.api.expr.v1alpha1.Expr target = 1; */ ⋮---- /** * Required. The name of the function or method being called. * * @generated from field: string function = 2; */ ⋮---- /** * The arguments. * * @generated from field: repeated google.api.expr.v1alpha1.Expr args = 3; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Expr.Call. * Use `create(Expr_CallSchema)` to create a new message. */ export const Expr_CallSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A list creation expression. * * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g. * `dyn([1, 'hello', 2.0])` * * @generated from message google.api.expr.v1alpha1.Expr.CreateList */ export type Expr_CreateList = Message<"google.api.expr.v1alpha1.Expr.CreateList"> & { /** * The elements part of the list. * * @generated from field: repeated google.api.expr.v1alpha1.Expr elements = 1; */ elements: Expr[]; /** * The indices within the elements list which are marked as optional * elements. * * When an optional-typed value is present, the value it contains * is included in the list. If the optional-typed value is absent, the list * element is omitted from the CreateList result. * * @generated from field: repeated int32 optional_indices = 2; */ optionalIndices: number[]; }; ⋮---- /** * The elements part of the list. * * @generated from field: repeated google.api.expr.v1alpha1.Expr elements = 1; */ ⋮---- /** * The indices within the elements list which are marked as optional * elements. * * When an optional-typed value is present, the value it contains * is included in the list. If the optional-typed value is absent, the list * element is omitted from the CreateList result. * * @generated from field: repeated int32 optional_indices = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Expr.CreateList. * Use `create(Expr_CreateListSchema)` to create a new message. */ export const Expr_CreateListSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A map or message creation expression. * * Maps are constructed as `{'key_name': 'value'}`. Message construction is * similar, but prefixed with a type name and composed of field ids: * `types.MyType{field_id: 'value'}`. * * @generated from message google.api.expr.v1alpha1.Expr.CreateStruct */ export type Expr_CreateStruct = Message<"google.api.expr.v1alpha1.Expr.CreateStruct"> & { /** * The type name of the message to be created, empty when creating map * literals. * * @generated from field: string message_name = 1; */ messageName: string; /** * The entries in the creation expression. * * @generated from field: repeated google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ entries: Expr_CreateStruct_Entry[]; }; ⋮---- /** * The type name of the message to be created, empty when creating map * literals. * * @generated from field: string message_name = 1; */ ⋮---- /** * The entries in the creation expression. * * @generated from field: repeated google.api.expr.v1alpha1.Expr.CreateStruct.Entry entries = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Expr.CreateStruct. * Use `create(Expr_CreateStructSchema)` to create a new message. */ export const Expr_CreateStructSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Represents an entry. * * @generated from message google.api.expr.v1alpha1.Expr.CreateStruct.Entry */ export type Expr_CreateStruct_Entry = Message<"google.api.expr.v1alpha1.Expr.CreateStruct.Entry"> & { /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * @generated from field: int64 id = 1; */ id: bigint; /** * The `Entry` key kinds. * * @generated from oneof google.api.expr.v1alpha1.Expr.CreateStruct.Entry.key_kind */ keyKind: { /** * The field key for a message creator statement. * * @generated from field: string field_key = 2; */ value: string; case: "fieldKey"; } | { /** * The key expression for a map creation statement. * * @generated from field: google.api.expr.v1alpha1.Expr map_key = 3; */ value: Expr; case: "mapKey"; } | { case: undefined; value?: undefined }; /** * Required. The value assigned to the key. * * If the optional_entry field is true, the expression must resolve to an * optional-typed value. If the optional value is present, the key will be * set; however, if the optional value is absent, the key will be unset. * * @generated from field: google.api.expr.v1alpha1.Expr value = 4; */ value?: Expr; /** * Whether the key-value pair is optional. * * @generated from field: bool optional_entry = 5; */ optionalEntry: boolean; }; ⋮---- /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * @generated from field: int64 id = 1; */ ⋮---- /** * The `Entry` key kinds. * * @generated from oneof google.api.expr.v1alpha1.Expr.CreateStruct.Entry.key_kind */ ⋮---- /** * The field key for a message creator statement. * * @generated from field: string field_key = 2; */ ⋮---- /** * The key expression for a map creation statement. * * @generated from field: google.api.expr.v1alpha1.Expr map_key = 3; */ ⋮---- /** * Required. The value assigned to the key. * * If the optional_entry field is true, the expression must resolve to an * optional-typed value. If the optional value is present, the key will be * set; however, if the optional value is absent, the key will be unset. * * @generated from field: google.api.expr.v1alpha1.Expr value = 4; */ ⋮---- /** * Whether the key-value pair is optional. * * @generated from field: bool optional_entry = 5; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Expr.CreateStruct.Entry. * Use `create(Expr_CreateStruct_EntrySchema)` to create a new message. */ export const Expr_CreateStruct_EntrySchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A comprehension expression applied to a list or map. * * Comprehensions are not part of the core syntax, but enabled with macros. * A macro matches a specific call signature within a parsed AST and replaces * the call with an alternate AST block. Macro expansion happens at parse * time. * * The following macros are supported within CEL: * * Aggregate type macros may be applied to all elements in a list or all keys * in a map: * * * `all`, `exists`, `exists_one` - test a predicate expression against * the inputs and return `true` if the predicate is satisfied for all, * any, or only one value `list.all(x, x < 10)`. * * `filter` - test a predicate expression against the inputs and return * the subset of elements which satisfy the predicate: * `payments.filter(p, p > 1000)`. * * `map` - apply an expression to all elements in the input and return the * output aggregate type: `[1, 2, 3].map(i, i * i)`. * * The `has(m.x)` macro tests whether the property `x` is present in struct * `m`. The semantics of this macro depend on the type of `m`. For proto2 * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the * macro tests whether the property is set to its default. For map and struct * types, the macro tests whether the property `x` is defined on `m`. * * Comprehensions for the standard environment macros evaluation can be best * visualized as the following pseudocode: * * ``` * let `accu_var` = `accu_init` * for (let `iter_var` in `iter_range`) { * if (!`loop_condition`) { * break * } * `accu_var` = `loop_step` * } * return `result` * ``` * * Comprehensions for the optional V2 macros which support map-to-map * translation differ slightly from the standard environment macros in that * they expose both the key or index in addition to the value for each list * or map entry: * * ``` * let `accu_var` = `accu_init` * for (let `iter_var`, `iter_var2` in `iter_range`) { * if (!`loop_condition`) { * break * } * `accu_var` = `loop_step` * } * return `result` * ``` * * @generated from message google.api.expr.v1alpha1.Expr.Comprehension */ export type Expr_Comprehension = Message<"google.api.expr.v1alpha1.Expr.Comprehension"> & { /** * The name of the first iteration variable. * When the iter_range is a list, this variable is the list element. * When the iter_range is a map, this variable is the map entry key. * * @generated from field: string iter_var = 1; */ iterVar: string; /** * The name of the second iteration variable, empty if not set. * When the iter_range is a list, this variable is the integer index. * When the iter_range is a map, this variable is the map entry value. * This field is only set for comprehension v2 macros. * * @generated from field: string iter_var2 = 8; */ iterVar2: string; /** * The range over which the comprehension iterates. * * @generated from field: google.api.expr.v1alpha1.Expr iter_range = 2; */ iterRange?: Expr; /** * The name of the variable used for accumulation of the result. * * @generated from field: string accu_var = 3; */ accuVar: string; /** * The initial value of the accumulator. * * @generated from field: google.api.expr.v1alpha1.Expr accu_init = 4; */ accuInit?: Expr; /** * An expression which can contain iter_var, iter_var2, and accu_var. * * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * @generated from field: google.api.expr.v1alpha1.Expr loop_condition = 5; */ loopCondition?: Expr; /** * An expression which can contain iter_var, iter_var2, and accu_var. * * Computes the next value of accu_var. * * @generated from field: google.api.expr.v1alpha1.Expr loop_step = 6; */ loopStep?: Expr; /** * An expression which can contain accu_var. * * Computes the result. * * @generated from field: google.api.expr.v1alpha1.Expr result = 7; */ result?: Expr; }; ⋮---- /** * The name of the first iteration variable. * When the iter_range is a list, this variable is the list element. * When the iter_range is a map, this variable is the map entry key. * * @generated from field: string iter_var = 1; */ ⋮---- /** * The name of the second iteration variable, empty if not set. * When the iter_range is a list, this variable is the integer index. * When the iter_range is a map, this variable is the map entry value. * This field is only set for comprehension v2 macros. * * @generated from field: string iter_var2 = 8; */ ⋮---- /** * The range over which the comprehension iterates. * * @generated from field: google.api.expr.v1alpha1.Expr iter_range = 2; */ ⋮---- /** * The name of the variable used for accumulation of the result. * * @generated from field: string accu_var = 3; */ ⋮---- /** * The initial value of the accumulator. * * @generated from field: google.api.expr.v1alpha1.Expr accu_init = 4; */ ⋮---- /** * An expression which can contain iter_var, iter_var2, and accu_var. * * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * @generated from field: google.api.expr.v1alpha1.Expr loop_condition = 5; */ ⋮---- /** * An expression which can contain iter_var, iter_var2, and accu_var. * * Computes the next value of accu_var. * * @generated from field: google.api.expr.v1alpha1.Expr loop_step = 6; */ ⋮---- /** * An expression which can contain accu_var. * * Computes the result. * * @generated from field: google.api.expr.v1alpha1.Expr result = 7; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Expr.Comprehension. * Use `create(Expr_ComprehensionSchema)` to create a new message. */ export const Expr_ComprehensionSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Represents a primitive literal. * * Named 'Constant' here for backwards compatibility. * * This is similar as the primitives supported in the well-known type * `google.protobuf.Value`, but richer so it can represent CEL's full range of * primitives. * * Lists and structs are not included as constants as these aggregate types may * contain [Expr][google.api.expr.v1alpha1.Expr] elements which require * evaluation and are thus not constant. * * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`, * `true`, `null`. * * @generated from message google.api.expr.v1alpha1.Constant */ export type Constant = Message<"google.api.expr.v1alpha1.Constant"> & { /** * Required. The valid constant kinds. * * @generated from oneof google.api.expr.v1alpha1.Constant.constant_kind */ constantKind: { /** * null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ value: NullValue; case: "nullValue"; } | { /** * boolean value. * * @generated from field: bool bool_value = 2; */ value: boolean; case: "boolValue"; } | { /** * int64 value. * * @generated from field: int64 int64_value = 3; */ value: bigint; case: "int64Value"; } | { /** * uint64 value. * * @generated from field: uint64 uint64_value = 4; */ value: bigint; case: "uint64Value"; } | { /** * double value. * * @generated from field: double double_value = 5; */ value: number; case: "doubleValue"; } | { /** * string value. * * @generated from field: string string_value = 6; */ value: string; case: "stringValue"; } | { /** * bytes value. * * @generated from field: bytes bytes_value = 7; */ value: Uint8Array; case: "bytesValue"; } | { /** * protobuf.Duration value. * * Deprecated: duration is no longer considered a builtin cel type. * * @generated from field: google.protobuf.Duration duration_value = 8 [deprecated = true]; * @deprecated */ value: Duration; case: "durationValue"; } | { /** * protobuf.Timestamp value. * * Deprecated: timestamp is no longer considered a builtin cel type. * * @generated from field: google.protobuf.Timestamp timestamp_value = 9 [deprecated = true]; * @deprecated */ value: Timestamp; case: "timestampValue"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * Required. The valid constant kinds. * * @generated from oneof google.api.expr.v1alpha1.Constant.constant_kind */ ⋮---- /** * null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ ⋮---- /** * boolean value. * * @generated from field: bool bool_value = 2; */ ⋮---- /** * int64 value. * * @generated from field: int64 int64_value = 3; */ ⋮---- /** * uint64 value. * * @generated from field: uint64 uint64_value = 4; */ ⋮---- /** * double value. * * @generated from field: double double_value = 5; */ ⋮---- /** * string value. * * @generated from field: string string_value = 6; */ ⋮---- /** * bytes value. * * @generated from field: bytes bytes_value = 7; */ ⋮---- /** * protobuf.Duration value. * * Deprecated: duration is no longer considered a builtin cel type. * * @generated from field: google.protobuf.Duration duration_value = 8 [deprecated = true]; * @deprecated */ ⋮---- /** * protobuf.Timestamp value. * * Deprecated: timestamp is no longer considered a builtin cel type. * * @generated from field: google.protobuf.Timestamp timestamp_value = 9 [deprecated = true]; * @deprecated */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Constant. * Use `create(ConstantSchema)` to create a new message. */ export const ConstantSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Source information collected at parse time. * * @generated from message google.api.expr.v1alpha1.SourceInfo */ export type SourceInfo = Message<"google.api.expr.v1alpha1.SourceInfo"> & { /** * The syntax version of the source, e.g. `cel1`. * * @generated from field: string syntax_version = 1; */ syntaxVersion: string; /** * The location name. All position information attached to an expression is * relative to this location. * * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * @generated from field: string location = 2; */ location: string; /** * Monotonically increasing list of code point offsets where newlines * `\n` appear. * * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * @generated from field: repeated int32 line_offsets = 3; */ lineOffsets: number[]; /** * A map from the parse node id (e.g. `Expr.id`) to the code point offset * within the source. * * @generated from field: map positions = 4; */ positions: { [key: string]: number }; /** * A map from the parse node id where a macro replacement was made to the * call `Expr` that resulted in a macro expansion. * * For example, `has(value.field)` is a function call that is replaced by a * `test_only` field selection in the AST. Likewise, the call * `list.exists(e, e > 10)` translates to a comprehension expression. The key * in the map corresponds to the expression id of the expanded macro, and the * value is the call `Expr` that was replaced. * * @generated from field: map macro_calls = 5; */ macroCalls: { [key: string]: Expr }; /** * A list of tags for extensions that were used while parsing or type checking * the source expression. For example, optimizations that require special * runtime support may be specified. * * These are used to check feature support between components in separate * implementations. This can be used to either skip redundant work or * report an error if the extension is unsupported. * * @generated from field: repeated google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6; */ extensions: SourceInfo_Extension[]; }; ⋮---- /** * The syntax version of the source, e.g. `cel1`. * * @generated from field: string syntax_version = 1; */ ⋮---- /** * The location name. All position information attached to an expression is * relative to this location. * * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * @generated from field: string location = 2; */ ⋮---- /** * Monotonically increasing list of code point offsets where newlines * `\n` appear. * * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * @generated from field: repeated int32 line_offsets = 3; */ ⋮---- /** * A map from the parse node id (e.g. `Expr.id`) to the code point offset * within the source. * * @generated from field: map positions = 4; */ ⋮---- /** * A map from the parse node id where a macro replacement was made to the * call `Expr` that resulted in a macro expansion. * * For example, `has(value.field)` is a function call that is replaced by a * `test_only` field selection in the AST. Likewise, the call * `list.exists(e, e > 10)` translates to a comprehension expression. The key * in the map corresponds to the expression id of the expanded macro, and the * value is the call `Expr` that was replaced. * * @generated from field: map macro_calls = 5; */ ⋮---- /** * A list of tags for extensions that were used while parsing or type checking * the source expression. For example, optimizations that require special * runtime support may be specified. * * These are used to check feature support between components in separate * implementations. This can be used to either skip redundant work or * report an error if the extension is unsupported. * * @generated from field: repeated google.api.expr.v1alpha1.SourceInfo.Extension extensions = 6; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.SourceInfo. * Use `create(SourceInfoSchema)` to create a new message. */ export const SourceInfoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An extension that was requested for the source expression. * * @generated from message google.api.expr.v1alpha1.SourceInfo.Extension */ export type SourceInfo_Extension = Message<"google.api.expr.v1alpha1.SourceInfo.Extension"> & { /** * Identifier for the extension. Example: constant_folding * * @generated from field: string id = 1; */ id: string; /** * If set, the listed components must understand the extension for the * expression to evaluate correctly. * * This field has set semantics, repeated values should be deduplicated. * * @generated from field: repeated google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2; */ affectedComponents: SourceInfo_Extension_Component[]; /** * Version info. May be skipped if it isn't meaningful for the extension. * (for example constant_folding might always be v0.0). * * @generated from field: google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3; */ version?: SourceInfo_Extension_Version; }; ⋮---- /** * Identifier for the extension. Example: constant_folding * * @generated from field: string id = 1; */ ⋮---- /** * If set, the listed components must understand the extension for the * expression to evaluate correctly. * * This field has set semantics, repeated values should be deduplicated. * * @generated from field: repeated google.api.expr.v1alpha1.SourceInfo.Extension.Component affected_components = 2; */ ⋮---- /** * Version info. May be skipped if it isn't meaningful for the extension. * (for example constant_folding might always be v0.0). * * @generated from field: google.api.expr.v1alpha1.SourceInfo.Extension.Version version = 3; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.SourceInfo.Extension. * Use `create(SourceInfo_ExtensionSchema)` to create a new message. */ export const SourceInfo_ExtensionSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Version * * @generated from message google.api.expr.v1alpha1.SourceInfo.Extension.Version */ export type SourceInfo_Extension_Version = Message<"google.api.expr.v1alpha1.SourceInfo.Extension.Version"> & { /** * Major version changes indicate different required support level from * the required components. * * @generated from field: int64 major = 1; */ major: bigint; /** * Minor version changes must not change the observed behavior from * existing implementations, but may be provided informationally. * * @generated from field: int64 minor = 2; */ minor: bigint; }; ⋮---- /** * Major version changes indicate different required support level from * the required components. * * @generated from field: int64 major = 1; */ ⋮---- /** * Minor version changes must not change the observed behavior from * existing implementations, but may be provided informationally. * * @generated from field: int64 minor = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.SourceInfo.Extension.Version. * Use `create(SourceInfo_Extension_VersionSchema)` to create a new message. */ export const SourceInfo_Extension_VersionSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * CEL component specifier. * * @generated from enum google.api.expr.v1alpha1.SourceInfo.Extension.Component */ export enum SourceInfo_Extension_Component { /** * Unspecified, default. * * @generated from enum value: COMPONENT_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * Parser. Converts a CEL string to an AST. * * @generated from enum value: COMPONENT_PARSER = 1; */ PARSER = 1, /** * Type checker. Checks that references in an AST are defined and types * agree. * * @generated from enum value: COMPONENT_TYPE_CHECKER = 2; */ TYPE_CHECKER = 2, /** * Runtime. Evaluates a parsed and optionally checked CEL AST against a * context. * * @generated from enum value: COMPONENT_RUNTIME = 3; */ RUNTIME = 3, } ⋮---- /** * Unspecified, default. * * @generated from enum value: COMPONENT_UNSPECIFIED = 0; */ ⋮---- /** * Parser. Converts a CEL string to an AST. * * @generated from enum value: COMPONENT_PARSER = 1; */ ⋮---- /** * Type checker. Checks that references in an AST are defined and types * agree. * * @generated from enum value: COMPONENT_TYPE_CHECKER = 2; */ ⋮---- /** * Runtime. Evaluates a parsed and optionally checked CEL AST against a * context. * * @generated from enum value: COMPONENT_RUNTIME = 3; */ ⋮---- /** * Describes the enum google.api.expr.v1alpha1.SourceInfo.Extension.Component. */ export const SourceInfo_Extension_ComponentSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * A specific position in source. * * @generated from message google.api.expr.v1alpha1.SourcePosition */ export type SourcePosition = Message<"google.api.expr.v1alpha1.SourcePosition"> & { /** * The soucre location name (e.g. file name). * * @generated from field: string location = 1; */ location: string; /** * The UTF-8 code unit offset. * * @generated from field: int32 offset = 2; */ offset: number; /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * @generated from field: int32 line = 3; */ line: number; /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzero. * * @generated from field: int32 column = 4; */ column: number; }; ⋮---- /** * The soucre location name (e.g. file name). * * @generated from field: string location = 1; */ ⋮---- /** * The UTF-8 code unit offset. * * @generated from field: int32 offset = 2; */ ⋮---- /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * @generated from field: int32 line = 3; */ ⋮---- /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzero. * * @generated from field: int32 column = 4; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.SourcePosition. * Use `create(SourcePositionSchema)` to create a new message. */ export const SourcePositionSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1alpha1/value_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1alpha1/value.proto (package google.api.expr.v1alpha1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Any, NullValue } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_any, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1alpha1/value.proto. */ export const file_google_api_expr_v1alpha1_value: GenFile = /*@__PURE__*/ ⋮---- /** * Represents a CEL value. * * This is similar to `google.protobuf.Value`, but can represent CEL's full * range of values. * * @generated from message google.api.expr.v1alpha1.Value */ export type Value = Message<"google.api.expr.v1alpha1.Value"> & { /** * Required. The valid kinds of values. * * @generated from oneof google.api.expr.v1alpha1.Value.kind */ kind: { /** * Null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ value: NullValue; case: "nullValue"; } | { /** * Boolean value. * * @generated from field: bool bool_value = 2; */ value: boolean; case: "boolValue"; } | { /** * Signed integer value. * * @generated from field: int64 int64_value = 3; */ value: bigint; case: "int64Value"; } | { /** * Unsigned integer value. * * @generated from field: uint64 uint64_value = 4; */ value: bigint; case: "uint64Value"; } | { /** * Floating point value. * * @generated from field: double double_value = 5; */ value: number; case: "doubleValue"; } | { /** * UTF-8 string value. * * @generated from field: string string_value = 6; */ value: string; case: "stringValue"; } | { /** * Byte string value. * * @generated from field: bytes bytes_value = 7; */ value: Uint8Array; case: "bytesValue"; } | { /** * An enum value. * * @generated from field: google.api.expr.v1alpha1.EnumValue enum_value = 9; */ value: EnumValue; case: "enumValue"; } | { /** * The proto message backing an object value. * * @generated from field: google.protobuf.Any object_value = 10; */ value: Any; case: "objectValue"; } | { /** * Map value. * * @generated from field: google.api.expr.v1alpha1.MapValue map_value = 11; */ value: MapValue; case: "mapValue"; } | { /** * List value. * * @generated from field: google.api.expr.v1alpha1.ListValue list_value = 12; */ value: ListValue; case: "listValue"; } | { /** * Type value. * * @generated from field: string type_value = 15; */ value: string; case: "typeValue"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * Required. The valid kinds of values. * * @generated from oneof google.api.expr.v1alpha1.Value.kind */ ⋮---- /** * Null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ ⋮---- /** * Boolean value. * * @generated from field: bool bool_value = 2; */ ⋮---- /** * Signed integer value. * * @generated from field: int64 int64_value = 3; */ ⋮---- /** * Unsigned integer value. * * @generated from field: uint64 uint64_value = 4; */ ⋮---- /** * Floating point value. * * @generated from field: double double_value = 5; */ ⋮---- /** * UTF-8 string value. * * @generated from field: string string_value = 6; */ ⋮---- /** * Byte string value. * * @generated from field: bytes bytes_value = 7; */ ⋮---- /** * An enum value. * * @generated from field: google.api.expr.v1alpha1.EnumValue enum_value = 9; */ ⋮---- /** * The proto message backing an object value. * * @generated from field: google.protobuf.Any object_value = 10; */ ⋮---- /** * Map value. * * @generated from field: google.api.expr.v1alpha1.MapValue map_value = 11; */ ⋮---- /** * List value. * * @generated from field: google.api.expr.v1alpha1.ListValue list_value = 12; */ ⋮---- /** * Type value. * * @generated from field: string type_value = 15; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.Value. * Use `create(ValueSchema)` to create a new message. */ export const ValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An enum value. * * @generated from message google.api.expr.v1alpha1.EnumValue */ export type EnumValue = Message<"google.api.expr.v1alpha1.EnumValue"> & { /** * The fully qualified name of the enum type. * * @generated from field: string type = 1; */ type: string; /** * The value of the enum. * * @generated from field: int32 value = 2; */ value: number; }; ⋮---- /** * The fully qualified name of the enum type. * * @generated from field: string type = 1; */ ⋮---- /** * The value of the enum. * * @generated from field: int32 value = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.EnumValue. * Use `create(EnumValueSchema)` to create a new message. */ export const EnumValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A list. * * Wrapped in a message so 'not set' and empty can be differentiated, which is * required for use in a 'oneof'. * * @generated from message google.api.expr.v1alpha1.ListValue */ export type ListValue = Message<"google.api.expr.v1alpha1.ListValue"> & { /** * The ordered values in the list. * * @generated from field: repeated google.api.expr.v1alpha1.Value values = 1; */ values: Value[]; }; ⋮---- /** * The ordered values in the list. * * @generated from field: repeated google.api.expr.v1alpha1.Value values = 1; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.ListValue. * Use `create(ListValueSchema)` to create a new message. */ export const ListValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A map. * * Wrapped in a message so 'not set' and empty can be differentiated, which is * required for use in a 'oneof'. * * @generated from message google.api.expr.v1alpha1.MapValue */ export type MapValue = Message<"google.api.expr.v1alpha1.MapValue"> & { /** * The set of map entries. * * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * @generated from field: repeated google.api.expr.v1alpha1.MapValue.Entry entries = 1; */ entries: MapValue_Entry[]; }; ⋮---- /** * The set of map entries. * * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * @generated from field: repeated google.api.expr.v1alpha1.MapValue.Entry entries = 1; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.MapValue. * Use `create(MapValueSchema)` to create a new message. */ export const MapValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An entry in the map. * * @generated from message google.api.expr.v1alpha1.MapValue.Entry */ export type MapValue_Entry = Message<"google.api.expr.v1alpha1.MapValue.Entry"> & { /** * The key. * * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * @generated from field: google.api.expr.v1alpha1.Value key = 1; */ key?: Value; /** * The value. * * @generated from field: google.api.expr.v1alpha1.Value value = 2; */ value?: Value; }; ⋮---- /** * The key. * * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * @generated from field: google.api.expr.v1alpha1.Value key = 1; */ ⋮---- /** * The value. * * @generated from field: google.api.expr.v1alpha1.Value value = 2; */ ⋮---- /** * Describes the message google.api.expr.v1alpha1.MapValue.Entry. * Use `create(MapValue_EntrySchema)` to create a new message. */ export const MapValue_EntrySchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1beta1/decl_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1beta1/decl.proto (package google.api.expr.v1beta1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Expr } from "./expr_pb"; import { file_google_api_expr_v1beta1_expr } from "./expr_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1beta1/decl.proto. */ export const file_google_api_expr_v1beta1_decl: GenFile = /*@__PURE__*/ ⋮---- /** * A declaration. * * @generated from message google.api.expr.v1beta1.Decl */ export type Decl = Message<"google.api.expr.v1beta1.Decl"> & { /** * The id of the declaration. * * @generated from field: int32 id = 1; */ id: number; /** * The name of the declaration. * * @generated from field: string name = 2; */ name: string; /** * The documentation string for the declaration. * * @generated from field: string doc = 3; */ doc: string; /** * The kind of declaration. * * @generated from oneof google.api.expr.v1beta1.Decl.kind */ kind: { /** * An identifier declaration. * * @generated from field: google.api.expr.v1beta1.IdentDecl ident = 4; */ value: IdentDecl; case: "ident"; } | { /** * A function declaration. * * @generated from field: google.api.expr.v1beta1.FunctionDecl function = 5; */ value: FunctionDecl; case: "function"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * The id of the declaration. * * @generated from field: int32 id = 1; */ ⋮---- /** * The name of the declaration. * * @generated from field: string name = 2; */ ⋮---- /** * The documentation string for the declaration. * * @generated from field: string doc = 3; */ ⋮---- /** * The kind of declaration. * * @generated from oneof google.api.expr.v1beta1.Decl.kind */ ⋮---- /** * An identifier declaration. * * @generated from field: google.api.expr.v1beta1.IdentDecl ident = 4; */ ⋮---- /** * A function declaration. * * @generated from field: google.api.expr.v1beta1.FunctionDecl function = 5; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Decl. * Use `create(DeclSchema)` to create a new message. */ export const DeclSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The declared type of a variable. * * Extends runtime type values with extra information used for type checking * and dispatching. * * @generated from message google.api.expr.v1beta1.DeclType */ export type DeclType = Message<"google.api.expr.v1beta1.DeclType"> & { /** * The expression id of the declared type, if applicable. * * @generated from field: int32 id = 1; */ id: number; /** * The type name, e.g. 'int', 'my.type.Type' or 'T' * * @generated from field: string type = 2; */ type: string; /** * An ordered list of type parameters, e.g. ``. * Only applies to a subset of types, e.g. `map`, `list`. * * @generated from field: repeated google.api.expr.v1beta1.DeclType type_params = 4; */ typeParams: DeclType[]; }; ⋮---- /** * The expression id of the declared type, if applicable. * * @generated from field: int32 id = 1; */ ⋮---- /** * The type name, e.g. 'int', 'my.type.Type' or 'T' * * @generated from field: string type = 2; */ ⋮---- /** * An ordered list of type parameters, e.g. ``. * Only applies to a subset of types, e.g. `map`, `list`. * * @generated from field: repeated google.api.expr.v1beta1.DeclType type_params = 4; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.DeclType. * Use `create(DeclTypeSchema)` to create a new message. */ export const DeclTypeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An identifier declaration. * * @generated from message google.api.expr.v1beta1.IdentDecl */ export type IdentDecl = Message<"google.api.expr.v1beta1.IdentDecl"> & { /** * Optional type of the identifier. * * @generated from field: google.api.expr.v1beta1.DeclType type = 3; */ type?: DeclType; /** * Optional value of the identifier. * * @generated from field: google.api.expr.v1beta1.Expr value = 4; */ value?: Expr; }; ⋮---- /** * Optional type of the identifier. * * @generated from field: google.api.expr.v1beta1.DeclType type = 3; */ ⋮---- /** * Optional value of the identifier. * * @generated from field: google.api.expr.v1beta1.Expr value = 4; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.IdentDecl. * Use `create(IdentDeclSchema)` to create a new message. */ export const IdentDeclSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A function declaration. * * @generated from message google.api.expr.v1beta1.FunctionDecl */ export type FunctionDecl = Message<"google.api.expr.v1beta1.FunctionDecl"> & { /** * The function arguments. * * @generated from field: repeated google.api.expr.v1beta1.IdentDecl args = 1; */ args: IdentDecl[]; /** * Optional declared return type. * * @generated from field: google.api.expr.v1beta1.DeclType return_type = 2; */ returnType?: DeclType; /** * If the first argument of the function is the receiver. * * @generated from field: bool receiver_function = 3; */ receiverFunction: boolean; }; ⋮---- /** * The function arguments. * * @generated from field: repeated google.api.expr.v1beta1.IdentDecl args = 1; */ ⋮---- /** * Optional declared return type. * * @generated from field: google.api.expr.v1beta1.DeclType return_type = 2; */ ⋮---- /** * If the first argument of the function is the receiver. * * @generated from field: bool receiver_function = 3; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.FunctionDecl. * Use `create(FunctionDeclSchema)` to create a new message. */ export const FunctionDeclSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1beta1/eval_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1beta1/eval.proto (package google.api.expr.v1beta1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Value } from "./value_pb"; import { file_google_api_expr_v1beta1_value } from "./value_pb"; import type { Status } from "../../../rpc/status_pb"; import { file_google_rpc_status } from "../../../rpc/status_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1beta1/eval.proto. */ export const file_google_api_expr_v1beta1_eval: GenFile = /*@__PURE__*/ ⋮---- /** * The state of an evaluation. * * Can represent an initial, partial, or completed state of evaluation. * * @generated from message google.api.expr.v1beta1.EvalState */ export type EvalState = Message<"google.api.expr.v1beta1.EvalState"> & { /** * The unique values referenced in this message. * * @generated from field: repeated google.api.expr.v1beta1.ExprValue values = 1; */ values: ExprValue[]; /** * An ordered list of results. * * Tracks the flow of evaluation through the expression. * May be sparse. * * @generated from field: repeated google.api.expr.v1beta1.EvalState.Result results = 3; */ results: EvalState_Result[]; }; ⋮---- /** * The unique values referenced in this message. * * @generated from field: repeated google.api.expr.v1beta1.ExprValue values = 1; */ ⋮---- /** * An ordered list of results. * * Tracks the flow of evaluation through the expression. * May be sparse. * * @generated from field: repeated google.api.expr.v1beta1.EvalState.Result results = 3; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.EvalState. * Use `create(EvalStateSchema)` to create a new message. */ export const EvalStateSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A single evaluation result. * * @generated from message google.api.expr.v1beta1.EvalState.Result */ export type EvalState_Result = Message<"google.api.expr.v1beta1.EvalState.Result"> & { /** * The expression this result is for. * * @generated from field: google.api.expr.v1beta1.IdRef expr = 1; */ expr?: IdRef; /** * The index in `values` of the resulting value. * * @generated from field: int32 value = 2; */ value: number; }; ⋮---- /** * The expression this result is for. * * @generated from field: google.api.expr.v1beta1.IdRef expr = 1; */ ⋮---- /** * The index in `values` of the resulting value. * * @generated from field: int32 value = 2; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.EvalState.Result. * Use `create(EvalState_ResultSchema)` to create a new message. */ export const EvalState_ResultSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The value of an evaluated expression. * * @generated from message google.api.expr.v1beta1.ExprValue */ export type ExprValue = Message<"google.api.expr.v1beta1.ExprValue"> & { /** * An expression can resolve to a value, error or unknown. * * @generated from oneof google.api.expr.v1beta1.ExprValue.kind */ kind: { /** * A concrete value. * * @generated from field: google.api.expr.v1beta1.Value value = 1; */ value: Value; case: "value"; } | { /** * The set of errors in the critical path of evalution. * * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * @generated from field: google.api.expr.v1beta1.ErrorSet error = 2; */ value: ErrorSet; case: "error"; } | { /** * The set of unknowns in the critical path of evaluation. * * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * * || -> * && -> * * Errors take precidence in all other cases: * * + -> * foo(, ) -> * * @generated from field: google.api.expr.v1beta1.UnknownSet unknown = 3; */ value: UnknownSet; case: "unknown"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * An expression can resolve to a value, error or unknown. * * @generated from oneof google.api.expr.v1beta1.ExprValue.kind */ ⋮---- /** * A concrete value. * * @generated from field: google.api.expr.v1beta1.Value value = 1; */ ⋮---- /** * The set of errors in the critical path of evalution. * * Only errors in the critical path are included. For example, * `( || true) && ` will only result in ``, * while ` || ` will result in both `` and * ``. * * Errors cause by the presence of other errors are not included in the * set. For example `.foo`, `foo()`, and ` + 1` will * only result in ``. * * Multiple errors *might* be included when evaluation could result * in different errors. For example ` + ` and * `foo(, )` may result in ``, `` or both. * The exact subset of errors included for this case is unspecified and * depends on the implementation details of the evaluator. * * @generated from field: google.api.expr.v1beta1.ErrorSet error = 2; */ ⋮---- /** * The set of unknowns in the critical path of evaluation. * * Unknown behaves identically to Error with regards to propagation. * Specifically, only unknowns in the critical path are included, unknowns * caused by the presence of other unknowns are not included, and multiple * unknowns *might* be included included when evaluation could result in * different unknowns. For example: * * ( || true) && -> * || -> * .foo -> * foo() -> * + -> or * * Unknown takes precidence over Error in cases where a `Value` can short * circuit the result: * * || -> * && -> * * Errors take precidence in all other cases: * * + -> * foo(, ) -> * * @generated from field: google.api.expr.v1beta1.UnknownSet unknown = 3; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.ExprValue. * Use `create(ExprValueSchema)` to create a new message. */ export const ExprValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A set of errors. * * The errors included depend on the context. See `ExprValue.error`. * * @generated from message google.api.expr.v1beta1.ErrorSet */ export type ErrorSet = Message<"google.api.expr.v1beta1.ErrorSet"> & { /** * The errors in the set. * * @generated from field: repeated google.rpc.Status errors = 1; */ errors: Status[]; }; ⋮---- /** * The errors in the set. * * @generated from field: repeated google.rpc.Status errors = 1; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.ErrorSet. * Use `create(ErrorSetSchema)` to create a new message. */ export const ErrorSetSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A set of expressions for which the value is unknown. * * The unknowns included depend on the context. See `ExprValue.unknown`. * * @generated from message google.api.expr.v1beta1.UnknownSet */ export type UnknownSet = Message<"google.api.expr.v1beta1.UnknownSet"> & { /** * The ids of the expressions with unknown values. * * @generated from field: repeated google.api.expr.v1beta1.IdRef exprs = 1; */ exprs: IdRef[]; }; ⋮---- /** * The ids of the expressions with unknown values. * * @generated from field: repeated google.api.expr.v1beta1.IdRef exprs = 1; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.UnknownSet. * Use `create(UnknownSetSchema)` to create a new message. */ export const UnknownSetSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A reference to an expression id. * * @generated from message google.api.expr.v1beta1.IdRef */ export type IdRef = Message<"google.api.expr.v1beta1.IdRef"> & { /** * The expression id. * * @generated from field: int32 id = 1; */ id: number; }; ⋮---- /** * The expression id. * * @generated from field: int32 id = 1; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.IdRef. * Use `create(IdRefSchema)` to create a new message. */ export const IdRefSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1beta1/expr_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1beta1/expr.proto (package google.api.expr.v1beta1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { SourceInfo } from "./source_pb"; import { file_google_api_expr_v1beta1_source } from "./source_pb"; import type { NullValue } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_struct } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1beta1/expr.proto. */ export const file_google_api_expr_v1beta1_expr: GenFile = /*@__PURE__*/ ⋮---- /** * An expression together with source information as returned by the parser. * * @generated from message google.api.expr.v1beta1.ParsedExpr */ export type ParsedExpr = Message<"google.api.expr.v1beta1.ParsedExpr"> & { /** * The parsed expression. * * @generated from field: google.api.expr.v1beta1.Expr expr = 2; */ expr?: Expr; /** * The source info derived from input that generated the parsed `expr`. * * @generated from field: google.api.expr.v1beta1.SourceInfo source_info = 3; */ sourceInfo?: SourceInfo; /** * The syntax version of the source, e.g. `cel1`. * * @generated from field: string syntax_version = 4; */ syntaxVersion: string; }; ⋮---- /** * The parsed expression. * * @generated from field: google.api.expr.v1beta1.Expr expr = 2; */ ⋮---- /** * The source info derived from input that generated the parsed `expr`. * * @generated from field: google.api.expr.v1beta1.SourceInfo source_info = 3; */ ⋮---- /** * The syntax version of the source, e.g. `cel1`. * * @generated from field: string syntax_version = 4; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.ParsedExpr. * Use `create(ParsedExprSchema)` to create a new message. */ export const ParsedExprSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An abstract representation of a common expression. * * Expressions are abstractly represented as a collection of identifiers, * select statements, function calls, literals, and comprehensions. All * operators with the exception of the '.' operator are modelled as function * calls. This makes it easy to represent new operators into the existing AST. * * All references within expressions must resolve to a [Decl][google.api.expr.v1beta1.Decl] provided at * type-check for an expression to be valid. A reference may either be a bare * identifier `name` or a qualified identifier `google.api.name`. References * may either refer to a value or a function declaration. * * For example, the expression `google.api.name.startsWith('expr')` references * the declaration `google.api.name` within a [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression, and * the function declaration `startsWith`. * * @generated from message google.api.expr.v1beta1.Expr */ export type Expr = Message<"google.api.expr.v1beta1.Expr"> & { /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * @generated from field: int32 id = 2; */ id: number; /** * Required. Variants of expressions. * * @generated from oneof google.api.expr.v1beta1.Expr.expr_kind */ exprKind: { /** * A literal expression. * * @generated from field: google.api.expr.v1beta1.Literal literal_expr = 3; */ value: Literal; case: "literalExpr"; } | { /** * An identifier expression. * * @generated from field: google.api.expr.v1beta1.Expr.Ident ident_expr = 4; */ value: Expr_Ident; case: "identExpr"; } | { /** * A field selection expression, e.g. `request.auth`. * * @generated from field: google.api.expr.v1beta1.Expr.Select select_expr = 5; */ value: Expr_Select; case: "selectExpr"; } | { /** * A call expression, including calls to predefined functions and operators. * * @generated from field: google.api.expr.v1beta1.Expr.Call call_expr = 6; */ value: Expr_Call; case: "callExpr"; } | { /** * A list creation expression. * * @generated from field: google.api.expr.v1beta1.Expr.CreateList list_expr = 7; */ value: Expr_CreateList; case: "listExpr"; } | { /** * A map or object creation expression. * * @generated from field: google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8; */ value: Expr_CreateStruct; case: "structExpr"; } | { /** * A comprehension expression. * * @generated from field: google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9; */ value: Expr_Comprehension; case: "comprehensionExpr"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * Required. An id assigned to this node by the parser which is unique in a * given expression tree. This is used to associate type information and other * attributes to a node in the parse tree. * * @generated from field: int32 id = 2; */ ⋮---- /** * Required. Variants of expressions. * * @generated from oneof google.api.expr.v1beta1.Expr.expr_kind */ ⋮---- /** * A literal expression. * * @generated from field: google.api.expr.v1beta1.Literal literal_expr = 3; */ ⋮---- /** * An identifier expression. * * @generated from field: google.api.expr.v1beta1.Expr.Ident ident_expr = 4; */ ⋮---- /** * A field selection expression, e.g. `request.auth`. * * @generated from field: google.api.expr.v1beta1.Expr.Select select_expr = 5; */ ⋮---- /** * A call expression, including calls to predefined functions and operators. * * @generated from field: google.api.expr.v1beta1.Expr.Call call_expr = 6; */ ⋮---- /** * A list creation expression. * * @generated from field: google.api.expr.v1beta1.Expr.CreateList list_expr = 7; */ ⋮---- /** * A map or object creation expression. * * @generated from field: google.api.expr.v1beta1.Expr.CreateStruct struct_expr = 8; */ ⋮---- /** * A comprehension expression. * * @generated from field: google.api.expr.v1beta1.Expr.Comprehension comprehension_expr = 9; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Expr. * Use `create(ExprSchema)` to create a new message. */ export const ExprSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An identifier expression. e.g. `request`. * * @generated from message google.api.expr.v1beta1.Expr.Ident */ export type Expr_Ident = Message<"google.api.expr.v1beta1.Expr.Ident"> & { /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * * Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression. * * @generated from field: string name = 1; */ name: string; }; ⋮---- /** * Required. Holds a single, unqualified identifier, possibly preceded by a * '.'. * * Qualified names are represented by the [Expr.Select][google.api.expr.v1beta1.Expr.Select] expression. * * @generated from field: string name = 1; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Expr.Ident. * Use `create(Expr_IdentSchema)` to create a new message. */ export const Expr_IdentSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A field selection expression. e.g. `request.auth`. * * @generated from message google.api.expr.v1beta1.Expr.Select */ export type Expr_Select = Message<"google.api.expr.v1beta1.Expr.Select"> & { /** * Required. The target of the selection expression. * * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * @generated from field: google.api.expr.v1beta1.Expr operand = 1; */ operand?: Expr; /** * Required. The name of the field to select. * * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * @generated from field: string field = 2; */ field: string; /** * Whether the select is to be interpreted as a field presence test. * * This results from the macro `has(request.auth)`. * * @generated from field: bool test_only = 3; */ testOnly: boolean; }; ⋮---- /** * Required. The target of the selection expression. * * For example, in the select expression `request.auth`, the `request` * portion of the expression is the `operand`. * * @generated from field: google.api.expr.v1beta1.Expr operand = 1; */ ⋮---- /** * Required. The name of the field to select. * * For example, in the select expression `request.auth`, the `auth` portion * of the expression would be the `field`. * * @generated from field: string field = 2; */ ⋮---- /** * Whether the select is to be interpreted as a field presence test. * * This results from the macro `has(request.auth)`. * * @generated from field: bool test_only = 3; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Expr.Select. * Use `create(Expr_SelectSchema)` to create a new message. */ export const Expr_SelectSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A call expression, including calls to predefined functions and operators. * * For example, `value == 10`, `size(map_value)`. * * @generated from message google.api.expr.v1beta1.Expr.Call */ export type Expr_Call = Message<"google.api.expr.v1beta1.Expr.Call"> & { /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * @generated from field: google.api.expr.v1beta1.Expr target = 1; */ target?: Expr; /** * Required. The name of the function or method being called. * * @generated from field: string function = 2; */ function: string; /** * The arguments. * * @generated from field: repeated google.api.expr.v1beta1.Expr args = 3; */ args: Expr[]; }; ⋮---- /** * The target of an method call-style expression. For example, `x` in * `x.f()`. * * @generated from field: google.api.expr.v1beta1.Expr target = 1; */ ⋮---- /** * Required. The name of the function or method being called. * * @generated from field: string function = 2; */ ⋮---- /** * The arguments. * * @generated from field: repeated google.api.expr.v1beta1.Expr args = 3; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Expr.Call. * Use `create(Expr_CallSchema)` to create a new message. */ export const Expr_CallSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A list creation expression. * * Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogenous, e.g. * `dyn([1, 'hello', 2.0])` * * @generated from message google.api.expr.v1beta1.Expr.CreateList */ export type Expr_CreateList = Message<"google.api.expr.v1beta1.Expr.CreateList"> & { /** * The elements part of the list. * * @generated from field: repeated google.api.expr.v1beta1.Expr elements = 1; */ elements: Expr[]; }; ⋮---- /** * The elements part of the list. * * @generated from field: repeated google.api.expr.v1beta1.Expr elements = 1; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Expr.CreateList. * Use `create(Expr_CreateListSchema)` to create a new message. */ export const Expr_CreateListSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A map or message creation expression. * * Maps are constructed as `{'key_name': 'value'}`. Message construction is * similar, but prefixed with a type name and composed of field ids: * `types.MyType{field_id: 'value'}`. * * @generated from message google.api.expr.v1beta1.Expr.CreateStruct */ export type Expr_CreateStruct = Message<"google.api.expr.v1beta1.Expr.CreateStruct"> & { /** * The type name of the message to be created, empty when creating map * literals. * * @generated from field: string type = 1; */ type: string; /** * The entries in the creation expression. * * @generated from field: repeated google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2; */ entries: Expr_CreateStruct_Entry[]; }; ⋮---- /** * The type name of the message to be created, empty when creating map * literals. * * @generated from field: string type = 1; */ ⋮---- /** * The entries in the creation expression. * * @generated from field: repeated google.api.expr.v1beta1.Expr.CreateStruct.Entry entries = 2; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Expr.CreateStruct. * Use `create(Expr_CreateStructSchema)` to create a new message. */ export const Expr_CreateStructSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Represents an entry. * * @generated from message google.api.expr.v1beta1.Expr.CreateStruct.Entry */ export type Expr_CreateStruct_Entry = Message<"google.api.expr.v1beta1.Expr.CreateStruct.Entry"> & { /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * @generated from field: int32 id = 1; */ id: number; /** * The `Entry` key kinds. * * @generated from oneof google.api.expr.v1beta1.Expr.CreateStruct.Entry.key_kind */ keyKind: { /** * The field key for a message creator statement. * * @generated from field: string field_key = 2; */ value: string; case: "fieldKey"; } | { /** * The key expression for a map creation statement. * * @generated from field: google.api.expr.v1beta1.Expr map_key = 3; */ value: Expr; case: "mapKey"; } | { case: undefined; value?: undefined }; /** * Required. The value assigned to the key. * * @generated from field: google.api.expr.v1beta1.Expr value = 4; */ value?: Expr; }; ⋮---- /** * Required. An id assigned to this node by the parser which is unique * in a given expression tree. This is used to associate type * information and other attributes to the node. * * @generated from field: int32 id = 1; */ ⋮---- /** * The `Entry` key kinds. * * @generated from oneof google.api.expr.v1beta1.Expr.CreateStruct.Entry.key_kind */ ⋮---- /** * The field key for a message creator statement. * * @generated from field: string field_key = 2; */ ⋮---- /** * The key expression for a map creation statement. * * @generated from field: google.api.expr.v1beta1.Expr map_key = 3; */ ⋮---- /** * Required. The value assigned to the key. * * @generated from field: google.api.expr.v1beta1.Expr value = 4; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Expr.CreateStruct.Entry. * Use `create(Expr_CreateStruct_EntrySchema)` to create a new message. */ export const Expr_CreateStruct_EntrySchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A comprehension expression applied to a list or map. * * Comprehensions are not part of the core syntax, but enabled with macros. * A macro matches a specific call signature within a parsed AST and replaces * the call with an alternate AST block. Macro expansion happens at parse * time. * * The following macros are supported within CEL: * * Aggregate type macros may be applied to all elements in a list or all keys * in a map: * * * `all`, `exists`, `exists_one` - test a predicate expression against * the inputs and return `true` if the predicate is satisfied for all, * any, or only one value `list.all(x, x < 10)`. * * `filter` - test a predicate expression against the inputs and return * the subset of elements which satisfy the predicate: * `payments.filter(p, p > 1000)`. * * `map` - apply an expression to all elements in the input and return the * output aggregate type: `[1, 2, 3].map(i, i * i)`. * * The `has(m.x)` macro tests whether the property `x` is present in struct * `m`. The semantics of this macro depend on the type of `m`. For proto2 * messages `has(m.x)` is defined as 'defined, but not set`. For proto3, the * macro tests whether the property is set to its default. For map and struct * types, the macro tests whether the property `x` is defined on `m`. * * @generated from message google.api.expr.v1beta1.Expr.Comprehension */ export type Expr_Comprehension = Message<"google.api.expr.v1beta1.Expr.Comprehension"> & { /** * The name of the iteration variable. * * @generated from field: string iter_var = 1; */ iterVar: string; /** * The range over which var iterates. * * @generated from field: google.api.expr.v1beta1.Expr iter_range = 2; */ iterRange?: Expr; /** * The name of the variable used for accumulation of the result. * * @generated from field: string accu_var = 3; */ accuVar: string; /** * The initial value of the accumulator. * * @generated from field: google.api.expr.v1beta1.Expr accu_init = 4; */ accuInit?: Expr; /** * An expression which can contain iter_var and accu_var. * * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * @generated from field: google.api.expr.v1beta1.Expr loop_condition = 5; */ loopCondition?: Expr; /** * An expression which can contain iter_var and accu_var. * * Computes the next value of accu_var. * * @generated from field: google.api.expr.v1beta1.Expr loop_step = 6; */ loopStep?: Expr; /** * An expression which can contain accu_var. * * Computes the result. * * @generated from field: google.api.expr.v1beta1.Expr result = 7; */ result?: Expr; }; ⋮---- /** * The name of the iteration variable. * * @generated from field: string iter_var = 1; */ ⋮---- /** * The range over which var iterates. * * @generated from field: google.api.expr.v1beta1.Expr iter_range = 2; */ ⋮---- /** * The name of the variable used for accumulation of the result. * * @generated from field: string accu_var = 3; */ ⋮---- /** * The initial value of the accumulator. * * @generated from field: google.api.expr.v1beta1.Expr accu_init = 4; */ ⋮---- /** * An expression which can contain iter_var and accu_var. * * Returns false when the result has been computed and may be used as * a hint to short-circuit the remainder of the comprehension. * * @generated from field: google.api.expr.v1beta1.Expr loop_condition = 5; */ ⋮---- /** * An expression which can contain iter_var and accu_var. * * Computes the next value of accu_var. * * @generated from field: google.api.expr.v1beta1.Expr loop_step = 6; */ ⋮---- /** * An expression which can contain accu_var. * * Computes the result. * * @generated from field: google.api.expr.v1beta1.Expr result = 7; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Expr.Comprehension. * Use `create(Expr_ComprehensionSchema)` to create a new message. */ export const Expr_ComprehensionSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Represents a primitive literal. * * This is similar to the primitives supported in the well-known type * `google.protobuf.Value`, but richer so it can represent CEL's full range of * primitives. * * Lists and structs are not included as constants as these aggregate types may * contain [Expr][google.api.expr.v1beta1.Expr] elements which require evaluation and are thus not constant. * * Examples of literals include: `"hello"`, `b'bytes'`, `1u`, `4.2`, `-2`, * `true`, `null`. * * @generated from message google.api.expr.v1beta1.Literal */ export type Literal = Message<"google.api.expr.v1beta1.Literal"> & { /** * Required. The valid constant kinds. * * @generated from oneof google.api.expr.v1beta1.Literal.constant_kind */ constantKind: { /** * null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ value: NullValue; case: "nullValue"; } | { /** * boolean value. * * @generated from field: bool bool_value = 2; */ value: boolean; case: "boolValue"; } | { /** * int64 value. * * @generated from field: int64 int64_value = 3; */ value: bigint; case: "int64Value"; } | { /** * uint64 value. * * @generated from field: uint64 uint64_value = 4; */ value: bigint; case: "uint64Value"; } | { /** * double value. * * @generated from field: double double_value = 5; */ value: number; case: "doubleValue"; } | { /** * string value. * * @generated from field: string string_value = 6; */ value: string; case: "stringValue"; } | { /** * bytes value. * * @generated from field: bytes bytes_value = 7; */ value: Uint8Array; case: "bytesValue"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * Required. The valid constant kinds. * * @generated from oneof google.api.expr.v1beta1.Literal.constant_kind */ ⋮---- /** * null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ ⋮---- /** * boolean value. * * @generated from field: bool bool_value = 2; */ ⋮---- /** * int64 value. * * @generated from field: int64 int64_value = 3; */ ⋮---- /** * uint64 value. * * @generated from field: uint64 uint64_value = 4; */ ⋮---- /** * double value. * * @generated from field: double double_value = 5; */ ⋮---- /** * string value. * * @generated from field: string string_value = 6; */ ⋮---- /** * bytes value. * * @generated from field: bytes bytes_value = 7; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Literal. * Use `create(LiteralSchema)` to create a new message. */ export const LiteralSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1beta1/source_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1beta1/source.proto (package google.api.expr.v1beta1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1beta1/source.proto. */ export const file_google_api_expr_v1beta1_source: GenFile = /*@__PURE__*/ ⋮---- /** * Source information collected at parse time. * * @generated from message google.api.expr.v1beta1.SourceInfo */ export type SourceInfo = Message<"google.api.expr.v1beta1.SourceInfo"> & { /** * The location name. All position information attached to an expression is * relative to this location. * * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * @generated from field: string location = 2; */ location: string; /** * Monotonically increasing list of character offsets where newlines appear. * * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * @generated from field: repeated int32 line_offsets = 3; */ lineOffsets: number[]; /** * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * * @generated from field: map positions = 4; */ positions: { [key: number]: number }; }; ⋮---- /** * The location name. All position information attached to an expression is * relative to this location. * * The location could be a file, UI element, or similar. For example, * `acme/app/AnvilPolicy.cel`. * * @generated from field: string location = 2; */ ⋮---- /** * Monotonically increasing list of character offsets where newlines appear. * * The line number of a given position is the index `i` where for a given * `id` the `line_offsets[i] < id_positions[id] < line_offsets[i+1]`. The * column may be derivd from `id_positions[id] - line_offsets[i]`. * * @generated from field: repeated int32 line_offsets = 3; */ ⋮---- /** * A map from the parse node id (e.g. `Expr.id`) to the character offset * within source. * * @generated from field: map positions = 4; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.SourceInfo. * Use `create(SourceInfoSchema)` to create a new message. */ export const SourceInfoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A specific position in source. * * @generated from message google.api.expr.v1beta1.SourcePosition */ export type SourcePosition = Message<"google.api.expr.v1beta1.SourcePosition"> & { /** * The soucre location name (e.g. file name). * * @generated from field: string location = 1; */ location: string; /** * The character offset. * * @generated from field: int32 offset = 2; */ offset: number; /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * @generated from field: int32 line = 3; */ line: number; /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzer.. * * @generated from field: int32 column = 4; */ column: number; }; ⋮---- /** * The soucre location name (e.g. file name). * * @generated from field: string location = 1; */ ⋮---- /** * The character offset. * * @generated from field: int32 offset = 2; */ ⋮---- /** * The 1-based index of the starting line in the source text * where the issue occurs, or 0 if unknown. * * @generated from field: int32 line = 3; */ ⋮---- /** * The 0-based index of the starting position within the line of source text * where the issue occurs. Only meaningful if line is nonzer.. * * @generated from field: int32 column = 4; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.SourcePosition. * Use `create(SourcePositionSchema)` to create a new message. */ export const SourcePositionSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/expr/v1beta1/value_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/expr/v1beta1/value.proto (package google.api.expr.v1beta1, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Any, NullValue } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_any, file_google_protobuf_struct } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/expr/v1beta1/value.proto. */ export const file_google_api_expr_v1beta1_value: GenFile = /*@__PURE__*/ ⋮---- /** * Represents a CEL value. * * This is similar to `google.protobuf.Value`, but can represent CEL's full * range of values. * * @generated from message google.api.expr.v1beta1.Value */ export type Value = Message<"google.api.expr.v1beta1.Value"> & { /** * Required. The valid kinds of values. * * @generated from oneof google.api.expr.v1beta1.Value.kind */ kind: { /** * Null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ value: NullValue; case: "nullValue"; } | { /** * Boolean value. * * @generated from field: bool bool_value = 2; */ value: boolean; case: "boolValue"; } | { /** * Signed integer value. * * @generated from field: int64 int64_value = 3; */ value: bigint; case: "int64Value"; } | { /** * Unsigned integer value. * * @generated from field: uint64 uint64_value = 4; */ value: bigint; case: "uint64Value"; } | { /** * Floating point value. * * @generated from field: double double_value = 5; */ value: number; case: "doubleValue"; } | { /** * UTF-8 string value. * * @generated from field: string string_value = 6; */ value: string; case: "stringValue"; } | { /** * Byte string value. * * @generated from field: bytes bytes_value = 7; */ value: Uint8Array; case: "bytesValue"; } | { /** * An enum value. * * @generated from field: google.api.expr.v1beta1.EnumValue enum_value = 9; */ value: EnumValue; case: "enumValue"; } | { /** * The proto message backing an object value. * * @generated from field: google.protobuf.Any object_value = 10; */ value: Any; case: "objectValue"; } | { /** * Map value. * * @generated from field: google.api.expr.v1beta1.MapValue map_value = 11; */ value: MapValue; case: "mapValue"; } | { /** * List value. * * @generated from field: google.api.expr.v1beta1.ListValue list_value = 12; */ value: ListValue; case: "listValue"; } | { /** * A Type value represented by the fully qualified name of the type. * * @generated from field: string type_value = 15; */ value: string; case: "typeValue"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * Required. The valid kinds of values. * * @generated from oneof google.api.expr.v1beta1.Value.kind */ ⋮---- /** * Null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ ⋮---- /** * Boolean value. * * @generated from field: bool bool_value = 2; */ ⋮---- /** * Signed integer value. * * @generated from field: int64 int64_value = 3; */ ⋮---- /** * Unsigned integer value. * * @generated from field: uint64 uint64_value = 4; */ ⋮---- /** * Floating point value. * * @generated from field: double double_value = 5; */ ⋮---- /** * UTF-8 string value. * * @generated from field: string string_value = 6; */ ⋮---- /** * Byte string value. * * @generated from field: bytes bytes_value = 7; */ ⋮---- /** * An enum value. * * @generated from field: google.api.expr.v1beta1.EnumValue enum_value = 9; */ ⋮---- /** * The proto message backing an object value. * * @generated from field: google.protobuf.Any object_value = 10; */ ⋮---- /** * Map value. * * @generated from field: google.api.expr.v1beta1.MapValue map_value = 11; */ ⋮---- /** * List value. * * @generated from field: google.api.expr.v1beta1.ListValue list_value = 12; */ ⋮---- /** * A Type value represented by the fully qualified name of the type. * * @generated from field: string type_value = 15; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.Value. * Use `create(ValueSchema)` to create a new message. */ export const ValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An enum value. * * @generated from message google.api.expr.v1beta1.EnumValue */ export type EnumValue = Message<"google.api.expr.v1beta1.EnumValue"> & { /** * The fully qualified name of the enum type. * * @generated from field: string type = 1; */ type: string; /** * The value of the enum. * * @generated from field: int32 value = 2; */ value: number; }; ⋮---- /** * The fully qualified name of the enum type. * * @generated from field: string type = 1; */ ⋮---- /** * The value of the enum. * * @generated from field: int32 value = 2; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.EnumValue. * Use `create(EnumValueSchema)` to create a new message. */ export const EnumValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A list. * * Wrapped in a message so 'not set' and empty can be differentiated, which is * required for use in a 'oneof'. * * @generated from message google.api.expr.v1beta1.ListValue */ export type ListValue = Message<"google.api.expr.v1beta1.ListValue"> & { /** * The ordered values in the list. * * @generated from field: repeated google.api.expr.v1beta1.Value values = 1; */ values: Value[]; }; ⋮---- /** * The ordered values in the list. * * @generated from field: repeated google.api.expr.v1beta1.Value values = 1; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.ListValue. * Use `create(ListValueSchema)` to create a new message. */ export const ListValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A map. * * Wrapped in a message so 'not set' and empty can be differentiated, which is * required for use in a 'oneof'. * * @generated from message google.api.expr.v1beta1.MapValue */ export type MapValue = Message<"google.api.expr.v1beta1.MapValue"> & { /** * The set of map entries. * * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * @generated from field: repeated google.api.expr.v1beta1.MapValue.Entry entries = 1; */ entries: MapValue_Entry[]; }; ⋮---- /** * The set of map entries. * * CEL has fewer restrictions on keys, so a protobuf map represenation * cannot be used. * * @generated from field: repeated google.api.expr.v1beta1.MapValue.Entry entries = 1; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.MapValue. * Use `create(MapValueSchema)` to create a new message. */ export const MapValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An entry in the map. * * @generated from message google.api.expr.v1beta1.MapValue.Entry */ export type MapValue_Entry = Message<"google.api.expr.v1beta1.MapValue.Entry"> & { /** * The key. * * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * @generated from field: google.api.expr.v1beta1.Value key = 1; */ key?: Value; /** * The value. * * @generated from field: google.api.expr.v1beta1.Value value = 2; */ value?: Value; }; ⋮---- /** * The key. * * Must be unique with in the map. * Currently only boolean, int, uint, and string values can be keys. * * @generated from field: google.api.expr.v1beta1.Value key = 1; */ ⋮---- /** * The value. * * @generated from field: google.api.expr.v1beta1.Value value = 2; */ ⋮---- /** * Describes the message google.api.expr.v1beta1.MapValue.Entry. * Use `create(MapValue_EntrySchema)` to create a new message. */ export const MapValue_EntrySchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/annotations_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/annotations.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2"; import { extDesc, fileDesc } from "@bufbuild/protobuf/codegenv2"; import type { HttpRule } from "./http_pb"; import { file_google_api_http } from "./http_pb"; import type { MethodOptions } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt"; ⋮---- /** * Describes the file google/api/annotations.proto. */ export const file_google_api_annotations: GenFile = /*@__PURE__*/ ⋮---- /** * See `HttpRule`. * * @generated from extension: google.api.HttpRule http = 72295728; */ export const http: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/api/client_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/client.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { LaunchStage } from "./launch_stage_pb"; import { file_google_api_launch_stage } from "./launch_stage_pb"; import type { Duration, MethodOptions, ServiceOptions } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_descriptor, file_google_protobuf_duration } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/client.proto. */ export const file_google_api_client: GenFile = /*@__PURE__*/ ⋮---- /** * Required information for every language. * * @generated from message google.api.CommonLanguageSettings */ export type CommonLanguageSettings = Message<"google.api.CommonLanguageSettings"> & { /** * Link to automatically generated reference documentation. Example: * https://cloud.google.com/nodejs/docs/reference/asset/latest * * @generated from field: string reference_docs_uri = 1 [deprecated = true]; * @deprecated */ referenceDocsUri: string; /** * The destination where API teams want this client library to be published. * * @generated from field: repeated google.api.ClientLibraryDestination destinations = 2; */ destinations: ClientLibraryDestination[]; /** * Configuration for which RPCs should be generated in the GAPIC client. * * @generated from field: google.api.SelectiveGapicGeneration selective_gapic_generation = 3; */ selectiveGapicGeneration?: SelectiveGapicGeneration; }; ⋮---- /** * Link to automatically generated reference documentation. Example: * https://cloud.google.com/nodejs/docs/reference/asset/latest * * @generated from field: string reference_docs_uri = 1 [deprecated = true]; * @deprecated */ ⋮---- /** * The destination where API teams want this client library to be published. * * @generated from field: repeated google.api.ClientLibraryDestination destinations = 2; */ ⋮---- /** * Configuration for which RPCs should be generated in the GAPIC client. * * @generated from field: google.api.SelectiveGapicGeneration selective_gapic_generation = 3; */ ⋮---- /** * Describes the message google.api.CommonLanguageSettings. * Use `create(CommonLanguageSettingsSchema)` to create a new message. */ export const CommonLanguageSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Details about how and where to publish client libraries. * * @generated from message google.api.ClientLibrarySettings */ export type ClientLibrarySettings = Message<"google.api.ClientLibrarySettings"> & { /** * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * * @generated from field: string version = 1; */ version: string; /** * Launch stage of this version of the API. * * @generated from field: google.api.LaunchStage launch_stage = 2; */ launchStage: LaunchStage; /** * When using transport=rest, the client request will encode enums as * numbers rather than strings. * * @generated from field: bool rest_numeric_enums = 3; */ restNumericEnums: boolean; /** * Settings for legacy Java features, supported in the Service YAML. * * @generated from field: google.api.JavaSettings java_settings = 21; */ javaSettings?: JavaSettings; /** * Settings for C++ client libraries. * * @generated from field: google.api.CppSettings cpp_settings = 22; */ cppSettings?: CppSettings; /** * Settings for PHP client libraries. * * @generated from field: google.api.PhpSettings php_settings = 23; */ phpSettings?: PhpSettings; /** * Settings for Python client libraries. * * @generated from field: google.api.PythonSettings python_settings = 24; */ pythonSettings?: PythonSettings; /** * Settings for Node client libraries. * * @generated from field: google.api.NodeSettings node_settings = 25; */ nodeSettings?: NodeSettings; /** * Settings for .NET client libraries. * * @generated from field: google.api.DotnetSettings dotnet_settings = 26; */ dotnetSettings?: DotnetSettings; /** * Settings for Ruby client libraries. * * @generated from field: google.api.RubySettings ruby_settings = 27; */ rubySettings?: RubySettings; /** * Settings for Go client libraries. * * @generated from field: google.api.GoSettings go_settings = 28; */ goSettings?: GoSettings; }; ⋮---- /** * Version of the API to apply these settings to. This is the full protobuf * package for the API, ending in the version element. * Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1". * * @generated from field: string version = 1; */ ⋮---- /** * Launch stage of this version of the API. * * @generated from field: google.api.LaunchStage launch_stage = 2; */ ⋮---- /** * When using transport=rest, the client request will encode enums as * numbers rather than strings. * * @generated from field: bool rest_numeric_enums = 3; */ ⋮---- /** * Settings for legacy Java features, supported in the Service YAML. * * @generated from field: google.api.JavaSettings java_settings = 21; */ ⋮---- /** * Settings for C++ client libraries. * * @generated from field: google.api.CppSettings cpp_settings = 22; */ ⋮---- /** * Settings for PHP client libraries. * * @generated from field: google.api.PhpSettings php_settings = 23; */ ⋮---- /** * Settings for Python client libraries. * * @generated from field: google.api.PythonSettings python_settings = 24; */ ⋮---- /** * Settings for Node client libraries. * * @generated from field: google.api.NodeSettings node_settings = 25; */ ⋮---- /** * Settings for .NET client libraries. * * @generated from field: google.api.DotnetSettings dotnet_settings = 26; */ ⋮---- /** * Settings for Ruby client libraries. * * @generated from field: google.api.RubySettings ruby_settings = 27; */ ⋮---- /** * Settings for Go client libraries. * * @generated from field: google.api.GoSettings go_settings = 28; */ ⋮---- /** * Describes the message google.api.ClientLibrarySettings. * Use `create(ClientLibrarySettingsSchema)` to create a new message. */ export const ClientLibrarySettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * This message configures the settings for publishing [Google Cloud Client * libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) * generated from the service config. * * @generated from message google.api.Publishing */ export type Publishing = Message<"google.api.Publishing"> & { /** * A list of API method settings, e.g. the behavior for methods that use the * long-running operation pattern. * * @generated from field: repeated google.api.MethodSettings method_settings = 2; */ methodSettings: MethodSettings[]; /** * Link to a *public* URI where users can report issues. Example: * https://issuetracker.google.com/issues/new?component=190865&template=1161103 * * @generated from field: string new_issue_uri = 101; */ newIssueUri: string; /** * Link to product home page. Example: * https://cloud.google.com/asset-inventory/docs/overview * * @generated from field: string documentation_uri = 102; */ documentationUri: string; /** * Used as a tracking tag when collecting data about the APIs developer * relations artifacts like docs, packages delivered to package managers, * etc. Example: "speech". * * @generated from field: string api_short_name = 103; */ apiShortName: string; /** * GitHub label to apply to issues and pull requests opened for this API. * * @generated from field: string github_label = 104; */ githubLabel: string; /** * GitHub teams to be added to CODEOWNERS in the directory in GitHub * containing source code for the client libraries for this API. * * @generated from field: repeated string codeowner_github_teams = 105; */ codeownerGithubTeams: string[]; /** * A prefix used in sample code when demarking regions to be included in * documentation. * * @generated from field: string doc_tag_prefix = 106; */ docTagPrefix: string; /** * For whom the client library is being published. * * @generated from field: google.api.ClientLibraryOrganization organization = 107; */ organization: ClientLibraryOrganization; /** * Client library settings. If the same version string appears multiple * times in this list, then the last one wins. Settings from earlier * settings with the same version string are discarded. * * @generated from field: repeated google.api.ClientLibrarySettings library_settings = 109; */ librarySettings: ClientLibrarySettings[]; /** * Optional link to proto reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rpc * * @generated from field: string proto_reference_documentation_uri = 110; */ protoReferenceDocumentationUri: string; /** * Optional link to REST reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rest * * @generated from field: string rest_reference_documentation_uri = 111; */ restReferenceDocumentationUri: string; }; ⋮---- /** * A list of API method settings, e.g. the behavior for methods that use the * long-running operation pattern. * * @generated from field: repeated google.api.MethodSettings method_settings = 2; */ ⋮---- /** * Link to a *public* URI where users can report issues. Example: * https://issuetracker.google.com/issues/new?component=190865&template=1161103 * * @generated from field: string new_issue_uri = 101; */ ⋮---- /** * Link to product home page. Example: * https://cloud.google.com/asset-inventory/docs/overview * * @generated from field: string documentation_uri = 102; */ ⋮---- /** * Used as a tracking tag when collecting data about the APIs developer * relations artifacts like docs, packages delivered to package managers, * etc. Example: "speech". * * @generated from field: string api_short_name = 103; */ ⋮---- /** * GitHub label to apply to issues and pull requests opened for this API. * * @generated from field: string github_label = 104; */ ⋮---- /** * GitHub teams to be added to CODEOWNERS in the directory in GitHub * containing source code for the client libraries for this API. * * @generated from field: repeated string codeowner_github_teams = 105; */ ⋮---- /** * A prefix used in sample code when demarking regions to be included in * documentation. * * @generated from field: string doc_tag_prefix = 106; */ ⋮---- /** * For whom the client library is being published. * * @generated from field: google.api.ClientLibraryOrganization organization = 107; */ ⋮---- /** * Client library settings. If the same version string appears multiple * times in this list, then the last one wins. Settings from earlier * settings with the same version string are discarded. * * @generated from field: repeated google.api.ClientLibrarySettings library_settings = 109; */ ⋮---- /** * Optional link to proto reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rpc * * @generated from field: string proto_reference_documentation_uri = 110; */ ⋮---- /** * Optional link to REST reference documentation. Example: * https://cloud.google.com/pubsub/lite/docs/reference/rest * * @generated from field: string rest_reference_documentation_uri = 111; */ ⋮---- /** * Describes the message google.api.Publishing. * Use `create(PublishingSchema)` to create a new message. */ export const PublishingSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settings for Java client libraries. * * @generated from message google.api.JavaSettings */ export type JavaSettings = Message<"google.api.JavaSettings"> & { /** * The package name to use in Java. Clobbers the java_package option * set in the protobuf. This should be used **only** by APIs * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * * Example of a YAML configuration:: * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 * * @generated from field: string library_package = 1; */ libraryPackage: string; /** * Configure the Java class name to use instead of the service's for its * corresponding generated GAPIC client. Keys are fully-qualified * service names as they appear in the protobuf (including the full * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. * * Example of a YAML configuration:: * * publishing: * java_settings: * service_class_names: * - google.pubsub.v1.Publisher: TopicAdmin * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * @generated from field: map service_class_names = 2; */ serviceClassNames: { [key: string]: string }; /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 3; */ common?: CommonLanguageSettings; }; ⋮---- /** * The package name to use in Java. Clobbers the java_package option * set in the protobuf. This should be used **only** by APIs * who have already set the language_settings.java.package_name" field * in gapic.yaml. API teams should use the protobuf java_package option * where possible. * * Example of a YAML configuration:: * * publishing: * java_settings: * library_package: com.google.cloud.pubsub.v1 * * @generated from field: string library_package = 1; */ ⋮---- /** * Configure the Java class name to use instead of the service's for its * corresponding generated GAPIC client. Keys are fully-qualified * service names as they appear in the protobuf (including the full * the language_settings.java.interface_names" field in gapic.yaml. API * teams should otherwise use the service name as it appears in the * protobuf. * * Example of a YAML configuration:: * * publishing: * java_settings: * service_class_names: * - google.pubsub.v1.Publisher: TopicAdmin * - google.pubsub.v1.Subscriber: SubscriptionAdmin * * @generated from field: map service_class_names = 2; */ ⋮---- /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 3; */ ⋮---- /** * Describes the message google.api.JavaSettings. * Use `create(JavaSettingsSchema)` to create a new message. */ export const JavaSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settings for C++ client libraries. * * @generated from message google.api.CppSettings */ export type CppSettings = Message<"google.api.CppSettings"> & { /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ common?: CommonLanguageSettings; }; ⋮---- /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ ⋮---- /** * Describes the message google.api.CppSettings. * Use `create(CppSettingsSchema)` to create a new message. */ export const CppSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settings for Php client libraries. * * @generated from message google.api.PhpSettings */ export type PhpSettings = Message<"google.api.PhpSettings"> & { /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ common?: CommonLanguageSettings; }; ⋮---- /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ ⋮---- /** * Describes the message google.api.PhpSettings. * Use `create(PhpSettingsSchema)` to create a new message. */ export const PhpSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settings for Python client libraries. * * @generated from message google.api.PythonSettings */ export type PythonSettings = Message<"google.api.PythonSettings"> & { /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ common?: CommonLanguageSettings; /** * Experimental features to be included during client library generation. * * @generated from field: google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; */ experimentalFeatures?: PythonSettings_ExperimentalFeatures; }; ⋮---- /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ ⋮---- /** * Experimental features to be included during client library generation. * * @generated from field: google.api.PythonSettings.ExperimentalFeatures experimental_features = 2; */ ⋮---- /** * Describes the message google.api.PythonSettings. * Use `create(PythonSettingsSchema)` to create a new message. */ export const PythonSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Experimental features to be included during client library generation. * These fields will be deprecated once the feature graduates and is enabled * by default. * * @generated from message google.api.PythonSettings.ExperimentalFeatures */ export type PythonSettings_ExperimentalFeatures = Message<"google.api.PythonSettings.ExperimentalFeatures"> & { /** * Enables generation of asynchronous REST clients if `rest` transport is * enabled. By default, asynchronous REST clients will not be generated. * This feature will be enabled by default 1 month after launching the * feature in preview packages. * * @generated from field: bool rest_async_io_enabled = 1; */ restAsyncIoEnabled: boolean; /** * Enables generation of protobuf code using new types that are more * Pythonic which are included in `protobuf>=5.29.x`. This feature will be * enabled by default 1 month after launching the feature in preview * packages. * * @generated from field: bool protobuf_pythonic_types_enabled = 2; */ protobufPythonicTypesEnabled: boolean; /** * Disables generation of an unversioned Python package for this client * library. This means that the module names will need to be versioned in * import statements. For example `import google.cloud.library_v2` instead * of `import google.cloud.library`. * * @generated from field: bool unversioned_package_disabled = 3; */ unversionedPackageDisabled: boolean; }; ⋮---- /** * Enables generation of asynchronous REST clients if `rest` transport is * enabled. By default, asynchronous REST clients will not be generated. * This feature will be enabled by default 1 month after launching the * feature in preview packages. * * @generated from field: bool rest_async_io_enabled = 1; */ ⋮---- /** * Enables generation of protobuf code using new types that are more * Pythonic which are included in `protobuf>=5.29.x`. This feature will be * enabled by default 1 month after launching the feature in preview * packages. * * @generated from field: bool protobuf_pythonic_types_enabled = 2; */ ⋮---- /** * Disables generation of an unversioned Python package for this client * library. This means that the module names will need to be versioned in * import statements. For example `import google.cloud.library_v2` instead * of `import google.cloud.library`. * * @generated from field: bool unversioned_package_disabled = 3; */ ⋮---- /** * Describes the message google.api.PythonSettings.ExperimentalFeatures. * Use `create(PythonSettings_ExperimentalFeaturesSchema)` to create a new message. */ export const PythonSettings_ExperimentalFeaturesSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settings for Node client libraries. * * @generated from message google.api.NodeSettings */ export type NodeSettings = Message<"google.api.NodeSettings"> & { /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ common?: CommonLanguageSettings; }; ⋮---- /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ ⋮---- /** * Describes the message google.api.NodeSettings. * Use `create(NodeSettingsSchema)` to create a new message. */ export const NodeSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settings for Dotnet client libraries. * * @generated from message google.api.DotnetSettings */ export type DotnetSettings = Message<"google.api.DotnetSettings"> & { /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ common?: CommonLanguageSettings; /** * Map from original service names to renamed versions. * This is used when the default generated types * would cause a naming conflict. (Neither name is * fully-qualified.) * Example: Subscriber to SubscriberServiceApi. * * @generated from field: map renamed_services = 2; */ renamedServices: { [key: string]: string }; /** * Map from full resource types to the effective short name * for the resource. This is used when otherwise resource * named from different services would cause naming collisions. * Example entry: * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" * * @generated from field: map renamed_resources = 3; */ renamedResources: { [key: string]: string }; /** * List of full resource types to ignore during generation. * This is typically used for API-specific Location resources, * which should be handled by the generator as if they were actually * the common Location resources. * Example entry: "documentai.googleapis.com/Location" * * @generated from field: repeated string ignored_resources = 4; */ ignoredResources: string[]; /** * Namespaces which must be aliased in snippets due to * a known (but non-generator-predictable) naming collision * * @generated from field: repeated string forced_namespace_aliases = 5; */ forcedNamespaceAliases: string[]; /** * Method signatures (in the form "service.method(signature)") * which are provided separately, so shouldn't be generated. * Snippets *calling* these methods are still generated, however. * * @generated from field: repeated string handwritten_signatures = 6; */ handwrittenSignatures: string[]; }; ⋮---- /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ ⋮---- /** * Map from original service names to renamed versions. * This is used when the default generated types * would cause a naming conflict. (Neither name is * fully-qualified.) * Example: Subscriber to SubscriberServiceApi. * * @generated from field: map renamed_services = 2; */ ⋮---- /** * Map from full resource types to the effective short name * for the resource. This is used when otherwise resource * named from different services would cause naming collisions. * Example entry: * "datalabeling.googleapis.com/Dataset": "DataLabelingDataset" * * @generated from field: map renamed_resources = 3; */ ⋮---- /** * List of full resource types to ignore during generation. * This is typically used for API-specific Location resources, * which should be handled by the generator as if they were actually * the common Location resources. * Example entry: "documentai.googleapis.com/Location" * * @generated from field: repeated string ignored_resources = 4; */ ⋮---- /** * Namespaces which must be aliased in snippets due to * a known (but non-generator-predictable) naming collision * * @generated from field: repeated string forced_namespace_aliases = 5; */ ⋮---- /** * Method signatures (in the form "service.method(signature)") * which are provided separately, so shouldn't be generated. * Snippets *calling* these methods are still generated, however. * * @generated from field: repeated string handwritten_signatures = 6; */ ⋮---- /** * Describes the message google.api.DotnetSettings. * Use `create(DotnetSettingsSchema)` to create a new message. */ export const DotnetSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settings for Ruby client libraries. * * @generated from message google.api.RubySettings */ export type RubySettings = Message<"google.api.RubySettings"> & { /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ common?: CommonLanguageSettings; }; ⋮---- /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ ⋮---- /** * Describes the message google.api.RubySettings. * Use `create(RubySettingsSchema)` to create a new message. */ export const RubySettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Settings for Go client libraries. * * @generated from message google.api.GoSettings */ export type GoSettings = Message<"google.api.GoSettings"> & { /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ common?: CommonLanguageSettings; /** * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. * * publishing: * go_settings: * renamed_services: * Publisher: TopicAdmin * * @generated from field: map renamed_services = 2; */ renamedServices: { [key: string]: string }; }; ⋮---- /** * Some settings. * * @generated from field: google.api.CommonLanguageSettings common = 1; */ ⋮---- /** * Map of service names to renamed services. Keys are the package relative * service names and values are the name to be used for the service client * and call options. * * publishing: * go_settings: * renamed_services: * Publisher: TopicAdmin * * @generated from field: map renamed_services = 2; */ ⋮---- /** * Describes the message google.api.GoSettings. * Use `create(GoSettingsSchema)` to create a new message. */ export const GoSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes the generator configuration for a method. * * @generated from message google.api.MethodSettings */ export type MethodSettings = Message<"google.api.MethodSettings"> & { /** * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * * Example: * * publishing: * method_settings: * - selector: google.storage.control.v2.StorageControl.CreateFolder * # method settings for CreateFolder... * * @generated from field: string selector = 1; */ selector: string; /** * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * * Example of a YAML configuration:: * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize * long_running: * initial_poll_delay: 60s # 1 minute * poll_delay_multiplier: 1.5 * max_poll_delay: 360s # 6 minutes * total_poll_timeout: 54000s # 90 minutes * * @generated from field: google.api.MethodSettings.LongRunning long_running = 2; */ longRunning?: MethodSettings_LongRunning; /** * List of top-level fields of the request message, that should be * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * * Example of a YAML configuration: * * publishing: * method_settings: * - selector: google.example.v1.ExampleService.CreateExample * auto_populated_fields: * - request_id * * @generated from field: repeated string auto_populated_fields = 3; */ autoPopulatedFields: string[]; }; ⋮---- /** * The fully qualified name of the method, for which the options below apply. * This is used to find the method to apply the options. * * Example: * * publishing: * method_settings: * - selector: google.storage.control.v2.StorageControl.CreateFolder * # method settings for CreateFolder... * * @generated from field: string selector = 1; */ ⋮---- /** * Describes settings to use for long-running operations when generating * API methods for RPCs. Complements RPCs that use the annotations in * google/longrunning/operations.proto. * * Example of a YAML configuration:: * * publishing: * method_settings: * - selector: google.cloud.speech.v2.Speech.BatchRecognize * long_running: * initial_poll_delay: 60s # 1 minute * poll_delay_multiplier: 1.5 * max_poll_delay: 360s # 6 minutes * total_poll_timeout: 54000s # 90 minutes * * @generated from field: google.api.MethodSettings.LongRunning long_running = 2; */ ⋮---- /** * List of top-level fields of the request message, that should be * automatically populated by the client libraries based on their * (google.api.field_info).format. Currently supported format: UUID4. * * Example of a YAML configuration: * * publishing: * method_settings: * - selector: google.example.v1.ExampleService.CreateExample * auto_populated_fields: * - request_id * * @generated from field: repeated string auto_populated_fields = 3; */ ⋮---- /** * Describes the message google.api.MethodSettings. * Use `create(MethodSettingsSchema)` to create a new message. */ export const MethodSettingsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes settings to use when generating API methods that use the * long-running operation pattern. * All default values below are from those used in the client library * generators (e.g. * [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)). * * @generated from message google.api.MethodSettings.LongRunning */ export type MethodSettings_LongRunning = Message<"google.api.MethodSettings.LongRunning"> & { /** * Initial delay after which the first poll request will be made. * Default value: 5 seconds. * * @generated from field: google.protobuf.Duration initial_poll_delay = 1; */ initialPollDelay?: Duration; /** * Multiplier to gradually increase delay between subsequent polls until it * reaches max_poll_delay. * Default value: 1.5. * * @generated from field: float poll_delay_multiplier = 2; */ pollDelayMultiplier: number; /** * Maximum time between two subsequent poll requests. * Default value: 45 seconds. * * @generated from field: google.protobuf.Duration max_poll_delay = 3; */ maxPollDelay?: Duration; /** * Total polling timeout. * Default value: 5 minutes. * * @generated from field: google.protobuf.Duration total_poll_timeout = 4; */ totalPollTimeout?: Duration; }; ⋮---- /** * Initial delay after which the first poll request will be made. * Default value: 5 seconds. * * @generated from field: google.protobuf.Duration initial_poll_delay = 1; */ ⋮---- /** * Multiplier to gradually increase delay between subsequent polls until it * reaches max_poll_delay. * Default value: 1.5. * * @generated from field: float poll_delay_multiplier = 2; */ ⋮---- /** * Maximum time between two subsequent poll requests. * Default value: 45 seconds. * * @generated from field: google.protobuf.Duration max_poll_delay = 3; */ ⋮---- /** * Total polling timeout. * Default value: 5 minutes. * * @generated from field: google.protobuf.Duration total_poll_timeout = 4; */ ⋮---- /** * Describes the message google.api.MethodSettings.LongRunning. * Use `create(MethodSettings_LongRunningSchema)` to create a new message. */ export const MethodSettings_LongRunningSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * This message is used to configure the generation of a subset of the RPCs in * a service for client libraries. * * @generated from message google.api.SelectiveGapicGeneration */ export type SelectiveGapicGeneration = Message<"google.api.SelectiveGapicGeneration"> & { /** * An allowlist of the fully qualified names of RPCs that should be included * on public client surfaces. * * @generated from field: repeated string methods = 1; */ methods: string[]; /** * Setting this to true indicates to the client generators that methods * that would be excluded from the generation should instead be generated * in a way that indicates these methods should not be consumed by * end users. How this is expressed is up to individual language * implementations to decide. Some examples may be: added annotations, * obfuscated identifiers, or other language idiomatic patterns. * * @generated from field: bool generate_omitted_as_internal = 2; */ generateOmittedAsInternal: boolean; }; ⋮---- /** * An allowlist of the fully qualified names of RPCs that should be included * on public client surfaces. * * @generated from field: repeated string methods = 1; */ ⋮---- /** * Setting this to true indicates to the client generators that methods * that would be excluded from the generation should instead be generated * in a way that indicates these methods should not be consumed by * end users. How this is expressed is up to individual language * implementations to decide. Some examples may be: added annotations, * obfuscated identifiers, or other language idiomatic patterns. * * @generated from field: bool generate_omitted_as_internal = 2; */ ⋮---- /** * Describes the message google.api.SelectiveGapicGeneration. * Use `create(SelectiveGapicGenerationSchema)` to create a new message. */ export const SelectiveGapicGenerationSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The organization for which the client libraries are being published. * Affects the url where generated docs are published, etc. * * @generated from enum google.api.ClientLibraryOrganization */ export enum ClientLibraryOrganization { /** * Not useful. * * @generated from enum value: CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; */ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0, /** * Google Cloud Platform Org. * * @generated from enum value: CLOUD = 1; */ CLOUD = 1, /** * Ads (Advertising) Org. * * @generated from enum value: ADS = 2; */ ADS = 2, /** * Photos Org. * * @generated from enum value: PHOTOS = 3; */ PHOTOS = 3, /** * Street View Org. * * @generated from enum value: STREET_VIEW = 4; */ STREET_VIEW = 4, /** * Shopping Org. * * @generated from enum value: SHOPPING = 5; */ SHOPPING = 5, /** * Geo Org. * * @generated from enum value: GEO = 6; */ GEO = 6, /** * Generative AI - https://developers.generativeai.google * * @generated from enum value: GENERATIVE_AI = 7; */ GENERATIVE_AI = 7, } ⋮---- /** * Not useful. * * @generated from enum value: CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0; */ ⋮---- /** * Google Cloud Platform Org. * * @generated from enum value: CLOUD = 1; */ ⋮---- /** * Ads (Advertising) Org. * * @generated from enum value: ADS = 2; */ ⋮---- /** * Photos Org. * * @generated from enum value: PHOTOS = 3; */ ⋮---- /** * Street View Org. * * @generated from enum value: STREET_VIEW = 4; */ ⋮---- /** * Shopping Org. * * @generated from enum value: SHOPPING = 5; */ ⋮---- /** * Geo Org. * * @generated from enum value: GEO = 6; */ ⋮---- /** * Generative AI - https://developers.generativeai.google * * @generated from enum value: GENERATIVE_AI = 7; */ ⋮---- /** * Describes the enum google.api.ClientLibraryOrganization. */ export const ClientLibraryOrganizationSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * To where should client libraries be published? * * @generated from enum google.api.ClientLibraryDestination */ export enum ClientLibraryDestination { /** * Client libraries will neither be generated nor published to package * managers. * * @generated from enum value: CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; */ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0, /** * Generate the client library in a repo under github.com/googleapis, * but don't publish it to package managers. * * @generated from enum value: GITHUB = 10; */ GITHUB = 10, /** * Publish the library to package managers like nuget.org and npmjs.com. * * @generated from enum value: PACKAGE_MANAGER = 20; */ PACKAGE_MANAGER = 20, } ⋮---- /** * Client libraries will neither be generated nor published to package * managers. * * @generated from enum value: CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0; */ ⋮---- /** * Generate the client library in a repo under github.com/googleapis, * but don't publish it to package managers. * * @generated from enum value: GITHUB = 10; */ ⋮---- /** * Publish the library to package managers like nuget.org and npmjs.com. * * @generated from enum value: PACKAGE_MANAGER = 20; */ ⋮---- /** * Describes the enum google.api.ClientLibraryDestination. */ export const ClientLibraryDestinationSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * A definition of a client library method signature. * * In client libraries, each proto RPC corresponds to one or more methods * which the end user is able to call, and calls the underlying RPC. * Normally, this method receives a single argument (a struct or instance * corresponding to the RPC request object). Defining this field will * add one or more overloads providing flattened or simpler method signatures * in some languages. * * The fields on the method signature are provided as a comma-separated * string. * * For example, the proto RPC and annotation: * * rpc CreateSubscription(CreateSubscriptionRequest) * returns (Subscription) { * option (google.api.method_signature) = "name,topic"; * } * * Would add the following Java overload (in addition to the method accepting * the request object): * * public final Subscription createSubscription(String name, String topic) * * The following backwards-compatibility guidelines apply: * * * Adding this annotation to an unannotated method is backwards * compatible. * * Adding this annotation to a method which already has existing * method signature annotations is backwards compatible if and only if * the new method signature annotation is last in the sequence. * * Modifying or removing an existing method signature annotation is * a breaking change. * * Re-ordering existing method signature annotations is a breaking * change. * * @generated from extension: repeated string method_signature = 1051; */ export const method_signature: GenExtension = /*@__PURE__*/ ⋮---- /** * The hostname for this service. * This should be specified with no prefix or protocol. * * Example: * * service Foo { * option (google.api.default_host) = "foo.googleapi.com"; * ... * } * * @generated from extension: string default_host = 1049; */ export const default_host: GenExtension = /*@__PURE__*/ ⋮---- /** * OAuth scopes needed for the client. * * Example: * * service Foo { * option (google.api.oauth_scopes) = \ * "https://www.googleapis.com/auth/cloud-platform"; * ... * } * * If there is more than one scope, use a comma-separated string: * * Example: * * service Foo { * option (google.api.oauth_scopes) = \ * "https://www.googleapis.com/auth/cloud-platform," * "https://www.googleapis.com/auth/monitoring"; * ... * } * * @generated from extension: string oauth_scopes = 1050; */ export const oauth_scopes: GenExtension = /*@__PURE__*/ ⋮---- /** * The API version of this service, which should be sent by version-aware * clients to the service. This allows services to abide by the schema and * behavior of the service at the time this API version was deployed. * The format of the API version must be treated as opaque by clients. * Services may use a format with an apparent structure, but clients must * not rely on this to determine components within an API version, or attempt * to construct other valid API versions. Note that this is for upcoming * functionality and may not be implemented for all services. * * Example: * * service Foo { * option (google.api.api_version) = "v1_20230821_preview"; * } * * @generated from extension: string api_version = 525000001; */ export const api_version: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/api/field_behavior_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/field_behavior.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenExtension, GenFile } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, extDesc, fileDesc } from "@bufbuild/protobuf/codegenv2"; import type { FieldOptions } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt"; ⋮---- /** * Describes the file google/api/field_behavior.proto. */ export const file_google_api_field_behavior: GenFile = /*@__PURE__*/ ⋮---- /** * An indicator of the behavior of a given field (for example, that a field * is required in requests, or given as output but ignored as input). * This **does not** change the behavior in protocol buffers itself; it only * denotes the behavior and may affect how API tooling handles the field. * * Note: This enum **may** receive new values in the future. * * @generated from enum google.api.FieldBehavior */ export enum FieldBehavior { /** * Conventional default for enums. Do not use this. * * @generated from enum value: FIELD_BEHAVIOR_UNSPECIFIED = 0; */ FIELD_BEHAVIOR_UNSPECIFIED = 0, /** * Specifically denotes a field as optional. * While all fields in protocol buffers are optional, this may be specified * for emphasis if appropriate. * * @generated from enum value: OPTIONAL = 1; */ OPTIONAL = 1, /** * Denotes a field as required. * This indicates that the field **must** be provided as part of the request, * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). * * @generated from enum value: REQUIRED = 2; */ REQUIRED = 2, /** * Denotes a field as output only. * This indicates that the field is provided in responses, but including the * field in a request does nothing (the server *must* ignore it and * *must not* throw an error as a result of the field's presence). * * @generated from enum value: OUTPUT_ONLY = 3; */ OUTPUT_ONLY = 3, /** * Denotes a field as input only. * This indicates that the field is provided in requests, and the * corresponding field is not included in output. * * @generated from enum value: INPUT_ONLY = 4; */ INPUT_ONLY = 4, /** * Denotes a field as immutable. * This indicates that the field may be set once in a request to create a * resource, but may not be changed thereafter. * * @generated from enum value: IMMUTABLE = 5; */ IMMUTABLE = 5, /** * Denotes that a (repeated) field is an unordered list. * This indicates that the service may provide the elements of the list * in any arbitrary order, rather than the order the user originally * provided. Additionally, the list's order may or may not be stable. * * @generated from enum value: UNORDERED_LIST = 6; */ UNORDERED_LIST = 6, /** * Denotes that this field returns a non-empty default value if not set. * This indicates that if the user provides the empty value in a request, * a non-empty value will be returned. The user will not be aware of what * non-empty value to expect. * * @generated from enum value: NON_EMPTY_DEFAULT = 7; */ NON_EMPTY_DEFAULT = 7, /** * Denotes that the field in a resource (a message annotated with * google.api.resource) is used in the resource name to uniquely identify the * resource. For AIP-compliant APIs, this should only be applied to the * `name` field on the resource. * * This behavior should not be applied to references to other resources within * the message. * * The identifier field of resources often have different field behavior * depending on the request it is embedded in (e.g. for Create methods name * is optional and unused, while for Update methods it is required). Instead * of method-specific annotations, only `IDENTIFIER` is required. * * @generated from enum value: IDENTIFIER = 8; */ IDENTIFIER = 8, } ⋮---- /** * Conventional default for enums. Do not use this. * * @generated from enum value: FIELD_BEHAVIOR_UNSPECIFIED = 0; */ ⋮---- /** * Specifically denotes a field as optional. * While all fields in protocol buffers are optional, this may be specified * for emphasis if appropriate. * * @generated from enum value: OPTIONAL = 1; */ ⋮---- /** * Denotes a field as required. * This indicates that the field **must** be provided as part of the request, * and failure to do so will cause an error (usually `INVALID_ARGUMENT`). * * @generated from enum value: REQUIRED = 2; */ ⋮---- /** * Denotes a field as output only. * This indicates that the field is provided in responses, but including the * field in a request does nothing (the server *must* ignore it and * *must not* throw an error as a result of the field's presence). * * @generated from enum value: OUTPUT_ONLY = 3; */ ⋮---- /** * Denotes a field as input only. * This indicates that the field is provided in requests, and the * corresponding field is not included in output. * * @generated from enum value: INPUT_ONLY = 4; */ ⋮---- /** * Denotes a field as immutable. * This indicates that the field may be set once in a request to create a * resource, but may not be changed thereafter. * * @generated from enum value: IMMUTABLE = 5; */ ⋮---- /** * Denotes that a (repeated) field is an unordered list. * This indicates that the service may provide the elements of the list * in any arbitrary order, rather than the order the user originally * provided. Additionally, the list's order may or may not be stable. * * @generated from enum value: UNORDERED_LIST = 6; */ ⋮---- /** * Denotes that this field returns a non-empty default value if not set. * This indicates that if the user provides the empty value in a request, * a non-empty value will be returned. The user will not be aware of what * non-empty value to expect. * * @generated from enum value: NON_EMPTY_DEFAULT = 7; */ ⋮---- /** * Denotes that the field in a resource (a message annotated with * google.api.resource) is used in the resource name to uniquely identify the * resource. For AIP-compliant APIs, this should only be applied to the * `name` field on the resource. * * This behavior should not be applied to references to other resources within * the message. * * The identifier field of resources often have different field behavior * depending on the request it is embedded in (e.g. for Create methods name * is optional and unused, while for Update methods it is required). Instead * of method-specific annotations, only `IDENTIFIER` is required. * * @generated from enum value: IDENTIFIER = 8; */ ⋮---- /** * Describes the enum google.api.FieldBehavior. */ export const FieldBehaviorSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * A designation of a specific field behavior (required, output only, etc.) * in protobuf messages. * * Examples: * * string name = 1 [(google.api.field_behavior) = REQUIRED]; * State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; * google.protobuf.Duration ttl = 1 * [(google.api.field_behavior) = INPUT_ONLY]; * google.protobuf.Timestamp expire_time = 1 * [(google.api.field_behavior) = OUTPUT_ONLY, * (google.api.field_behavior) = IMMUTABLE]; * * @generated from extension: repeated google.api.FieldBehavior field_behavior = 1052 [packed = false]; */ export const field_behavior: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/api/field_info_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/field_info.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { FieldOptions } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/field_info.proto. */ export const file_google_api_field_info: GenFile = /*@__PURE__*/ ⋮---- /** * Rich semantic information of an API field beyond basic typing. * * @generated from message google.api.FieldInfo */ export type FieldInfo = Message<"google.api.FieldInfo"> & { /** * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * * @generated from field: google.api.FieldInfo.Format format = 1; */ format: FieldInfo_Format; /** * The type(s) that the annotated, generic field may represent. * * Currently, this must only be used on fields of type `google.protobuf.Any`. * Supporting other generic types may be considered in the future. * * @generated from field: repeated google.api.TypeReference referenced_types = 2; */ referencedTypes: TypeReference[]; }; ⋮---- /** * The standard format of a field value. This does not explicitly configure * any API consumer, just documents the API's format for the field it is * applied to. * * @generated from field: google.api.FieldInfo.Format format = 1; */ ⋮---- /** * The type(s) that the annotated, generic field may represent. * * Currently, this must only be used on fields of type `google.protobuf.Any`. * Supporting other generic types may be considered in the future. * * @generated from field: repeated google.api.TypeReference referenced_types = 2; */ ⋮---- /** * Describes the message google.api.FieldInfo. * Use `create(FieldInfoSchema)` to create a new message. */ export const FieldInfoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The standard format of a field value. The supported formats are all backed * by either an RFC defined by the IETF or a Google-defined AIP. * * @generated from enum google.api.FieldInfo.Format */ export enum FieldInfo_Format { /** * Default, unspecified value. * * @generated from enum value: FORMAT_UNSPECIFIED = 0; */ FORMAT_UNSPECIFIED = 0, /** * Universally Unique Identifier, version 4, value as defined by * https://datatracker.ietf.org/doc/html/rfc4122. The value may be * normalized to entirely lowercase letters. For example, the value * `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to * `f47ac10b-58cc-0372-8567-0e02b2c3d479`. * * @generated from enum value: UUID4 = 1; */ UUID4 = 1, /** * Internet Protocol v4 value as defined by [RFC * 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be * condensed, with leading zeros in each octet stripped. For example, * `001.022.233.040` would be condensed to `1.22.233.40`. * * @generated from enum value: IPV4 = 2; */ IPV4 = 2, /** * Internet Protocol v6 value as defined by [RFC * 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be * normalized to entirely lowercase letters with zeros compressed, following * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, * the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. * * @generated from enum value: IPV6 = 3; */ IPV6 = 3, /** * An IP address in either v4 or v6 format as described by the individual * values defined herein. See the comments on the IPV4 and IPV6 types for * allowed normalizations of each. * * @generated from enum value: IPV4_OR_IPV6 = 4; */ IPV4_OR_IPV6 = 4, } ⋮---- /** * Default, unspecified value. * * @generated from enum value: FORMAT_UNSPECIFIED = 0; */ ⋮---- /** * Universally Unique Identifier, version 4, value as defined by * https://datatracker.ietf.org/doc/html/rfc4122. The value may be * normalized to entirely lowercase letters. For example, the value * `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to * `f47ac10b-58cc-0372-8567-0e02b2c3d479`. * * @generated from enum value: UUID4 = 1; */ ⋮---- /** * Internet Protocol v4 value as defined by [RFC * 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be * condensed, with leading zeros in each octet stripped. For example, * `001.022.233.040` would be condensed to `1.22.233.40`. * * @generated from enum value: IPV4 = 2; */ ⋮---- /** * Internet Protocol v6 value as defined by [RFC * 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be * normalized to entirely lowercase letters with zeros compressed, following * [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example, * the value `2001:0DB8:0::0` would be normalized to `2001:db8::`. * * @generated from enum value: IPV6 = 3; */ ⋮---- /** * An IP address in either v4 or v6 format as described by the individual * values defined herein. See the comments on the IPV4 and IPV6 types for * allowed normalizations of each. * * @generated from enum value: IPV4_OR_IPV6 = 4; */ ⋮---- /** * Describes the enum google.api.FieldInfo.Format. */ export const FieldInfo_FormatSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * A reference to a message type, for use in [FieldInfo][google.api.FieldInfo]. * * @generated from message google.api.TypeReference */ export type TypeReference = Message<"google.api.TypeReference"> & { /** * The name of the type that the annotated, generic field may represent. * If the type is in the same protobuf package, the value can be the simple * message name e.g., `"MyMessage"`. Otherwise, the value must be the * fully-qualified message name e.g., `"google.library.v1.Book"`. * * If the type(s) are unknown to the service (e.g. the field accepts generic * user input), use the wildcard `"*"` to denote this behavior. * * See [AIP-202](https://google.aip.dev/202#type-references) for more details. * * @generated from field: string type_name = 1; */ typeName: string; }; ⋮---- /** * The name of the type that the annotated, generic field may represent. * If the type is in the same protobuf package, the value can be the simple * message name e.g., `"MyMessage"`. Otherwise, the value must be the * fully-qualified message name e.g., `"google.library.v1.Book"`. * * If the type(s) are unknown to the service (e.g. the field accepts generic * user input), use the wildcard `"*"` to denote this behavior. * * See [AIP-202](https://google.aip.dev/202#type-references) for more details. * * @generated from field: string type_name = 1; */ ⋮---- /** * Describes the message google.api.TypeReference. * Use `create(TypeReferenceSchema)` to create a new message. */ export const TypeReferenceSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Rich semantic descriptor of an API field beyond the basic typing. * * Examples: * * string request_id = 1 [(google.api.field_info).format = UUID4]; * string old_ip_address = 2 [(google.api.field_info).format = IPV4]; * string new_ip_address = 3 [(google.api.field_info).format = IPV6]; * string actual_ip_address = 4 [ * (google.api.field_info).format = IPV4_OR_IPV6 * ]; * google.protobuf.Any generic_field = 5 [ * (google.api.field_info).referenced_types = {type_name: "ActualType"}, * (google.api.field_info).referenced_types = {type_name: "OtherType"}, * ]; * google.protobuf.Any generic_user_input = 5 [ * (google.api.field_info).referenced_types = {type_name: "*"}, * ]; * * @generated from extension: google.api.FieldInfo field_info = 291403980; */ export const field_info: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/api/http_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/http.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/http.proto. */ export const file_google_api_http: GenFile = /*@__PURE__*/ ⋮---- /** * Defines the HTTP configuration for an API service. It contains a list of * [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method * to one or more HTTP REST API methods. * * @generated from message google.api.Http */ export type Http = Message<"google.api.Http"> & { /** * A list of HTTP configuration rules that apply to individual API methods. * * **NOTE:** All service configuration rules follow "last one wins" order. * * @generated from field: repeated google.api.HttpRule rules = 1; */ rules: HttpRule[]; /** * When set to true, URL path parameters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. * * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. * * @generated from field: bool fully_decode_reserved_expansion = 2; */ fullyDecodeReservedExpansion: boolean; }; ⋮---- /** * A list of HTTP configuration rules that apply to individual API methods. * * **NOTE:** All service configuration rules follow "last one wins" order. * * @generated from field: repeated google.api.HttpRule rules = 1; */ ⋮---- /** * When set to true, URL path parameters will be fully URI-decoded except in * cases of single segment matches in reserved expansion, where "%2F" will be * left encoded. * * The default behavior is to not decode RFC 6570 reserved characters in multi * segment matches. * * @generated from field: bool fully_decode_reserved_expansion = 2; */ ⋮---- /** * Describes the message google.api.Http. * Use `create(HttpSchema)` to create a new message. */ export const HttpSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * gRPC Transcoding * * gRPC Transcoding is a feature for mapping between a gRPC method and one or * more HTTP REST endpoints. It allows developers to build a single API service * that supports both gRPC APIs and REST APIs. Many systems, including [Google * APIs](https://github.com/googleapis/googleapis), * [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC * Gateway](https://github.com/grpc-ecosystem/grpc-gateway), * and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature * and use it for large scale production services. * * `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies * how different portions of the gRPC request message are mapped to the URL * path, URL query parameters, and HTTP request body. It also controls how the * gRPC response message is mapped to the HTTP response body. `HttpRule` is * typically specified as an `google.api.http` annotation on the gRPC method. * * Each mapping specifies a URL path template and an HTTP method. The path * template may refer to one or more fields in the gRPC request message, as long * as each field is a non-repeated field with a primitive (non-message) type. * The path template controls how fields of the request message are mapped to * the URL path. * * Example: * * service Messaging { * rpc GetMessage(GetMessageRequest) returns (Message) { * option (google.api.http) = { * get: "/v1/{name=messages/*}" * }; * } * } * message GetMessageRequest { * string name = 1; // Mapped to URL path. * } * message Message { * string text = 1; // The resource content. * } * * This enables an HTTP REST to gRPC mapping as below: * * - HTTP: `GET /v1/messages/123456` * - gRPC: `GetMessage(name: "messages/123456")` * * Any fields in the request message which are not bound by the path template * automatically become HTTP query parameters if there is no HTTP request body. * For example: * * service Messaging { * rpc GetMessage(GetMessageRequest) returns (Message) { * option (google.api.http) = { * get:"/v1/messages/{message_id}" * }; * } * } * message GetMessageRequest { * message SubMessage { * string subfield = 1; * } * string message_id = 1; // Mapped to URL path. * int64 revision = 2; // Mapped to URL query parameter `revision`. * SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`. * } * * This enables a HTTP JSON to RPC mapping as below: * * - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo` * - gRPC: `GetMessage(message_id: "123456" revision: 2 sub: * SubMessage(subfield: "foo"))` * * Note that fields which are mapped to URL query parameters must have a * primitive type or a repeated primitive type or a non-repeated message type. * In the case of a repeated type, the parameter can be repeated in the URL * as `...?param=A¶m=B`. In the case of a message type, each field of the * message is mapped to a separate parameter, such as * `...?foo.a=A&foo.b=B&foo.c=C`. * * For HTTP methods that allow a request body, the `body` field * specifies the mapping. Consider a REST update method on the * message resource collection: * * service Messaging { * rpc UpdateMessage(UpdateMessageRequest) returns (Message) { * option (google.api.http) = { * patch: "/v1/messages/{message_id}" * body: "message" * }; * } * } * message UpdateMessageRequest { * string message_id = 1; // mapped to the URL * Message message = 2; // mapped to the body * } * * The following HTTP JSON to RPC mapping is enabled, where the * representation of the JSON in the request body is determined by * protos JSON encoding: * * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }` * - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })` * * The special name `*` can be used in the body mapping to define that * every field not bound by the path template should be mapped to the * request body. This enables the following alternative definition of * the update method: * * service Messaging { * rpc UpdateMessage(Message) returns (Message) { * option (google.api.http) = { * patch: "/v1/messages/{message_id}" * body: "*" * }; * } * } * message Message { * string message_id = 1; * string text = 2; * } * * * The following HTTP JSON to RPC mapping is enabled: * * - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }` * - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")` * * Note that when using `*` in the body mapping, it is not possible to * have HTTP parameters, as all fields not bound by the path end in * the body. This makes this option more rarely used in practice when * defining REST APIs. The common usage of `*` is in custom methods * which don't use the URL at all for transferring data. * * It is possible to define multiple HTTP methods for one RPC by using * the `additional_bindings` option. Example: * * service Messaging { * rpc GetMessage(GetMessageRequest) returns (Message) { * option (google.api.http) = { * get: "/v1/messages/{message_id}" * additional_bindings { * get: "/v1/users/{user_id}/messages/{message_id}" * } * }; * } * } * message GetMessageRequest { * string message_id = 1; * string user_id = 2; * } * * This enables the following two alternative HTTP JSON to RPC mappings: * * - HTTP: `GET /v1/messages/123456` * - gRPC: `GetMessage(message_id: "123456")` * * - HTTP: `GET /v1/users/me/messages/123456` * - gRPC: `GetMessage(user_id: "me" message_id: "123456")` * * Rules for HTTP mapping * * 1. Leaf request fields (recursive expansion nested messages in the request * message) are classified into three categories: * - Fields referred by the path template. They are passed via the URL path. * - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They * are passed via the HTTP * request body. * - All other fields are passed via the URL query parameters, and the * parameter name is the field path in the request message. A repeated * field can be represented as multiple query parameters under the same * name. * 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL * query parameter, all fields * are passed via URL path and HTTP request body. * 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP * request body, all * fields are passed via URL path and URL query parameters. * * Path template syntax * * Template = "/" Segments [ Verb ] ; * Segments = Segment { "/" Segment } ; * Segment = "*" | "**" | LITERAL | Variable ; * Variable = "{" FieldPath [ "=" Segments ] "}" ; * FieldPath = IDENT { "." IDENT } ; * Verb = ":" LITERAL ; * * The syntax `*` matches a single URL path segment. The syntax `**` matches * zero or more URL path segments, which must be the last part of the URL path * except the `Verb`. * * The syntax `Variable` matches part of the URL path as specified by its * template. A variable template must not contain other variables. If a variable * matches a single path segment, its template may be omitted, e.g. `{var}` * is equivalent to `{var=*}`. * * The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL` * contains any reserved character, such characters should be percent-encoded * before the matching. * * If a variable contains exactly one path segment, such as `"{var}"` or * `"{var=*}"`, when such a variable is expanded into a URL path on the client * side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The * server side does the reverse decoding. Such variables show up in the * [Discovery * Document](https://developers.google.com/discovery/v1/reference/apis) as * `{var}`. * * If a variable contains multiple path segments, such as `"{var=foo/*}"` * or `"{var=**}"`, when such a variable is expanded into a URL path on the * client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. * The server side does the reverse decoding, except "%2F" and "%2f" are left * unchanged. Such variables show up in the * [Discovery * Document](https://developers.google.com/discovery/v1/reference/apis) as * `{+var}`. * * Using gRPC API Service Configuration * * gRPC API Service Configuration (service config) is a configuration language * for configuring a gRPC service to become a user-facing product. The * service config is simply the YAML representation of the `google.api.Service` * proto message. * * As an alternative to annotating your proto file, you can configure gRPC * transcoding in your service config YAML files. You do this by specifying a * `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same * effect as the proto annotation. This can be particularly useful if you * have a proto that is reused in multiple services. Note that any transcoding * specified in the service config will override any matching transcoding * configuration in the proto. * * The following example selects a gRPC method and applies an `HttpRule` to it: * * http: * rules: * - selector: example.v1.Messaging.GetMessage * get: /v1/messages/{message_id}/{sub.subfield} * * Special notes * * When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the * proto to JSON conversion must follow the [proto3 * specification](https://developers.google.com/protocol-buffers/docs/proto3#json). * * While the single segment variable follows the semantics of * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String * Expansion, the multi segment variable **does not** follow RFC 6570 Section * 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion * does not expand special characters like `?` and `#`, which would lead * to invalid URLs. As the result, gRPC Transcoding uses a custom encoding * for multi segment variables. * * The path variables **must not** refer to any repeated or mapped field, * because client libraries are not capable of handling such variable expansion. * * The path variables **must not** capture the leading "/" character. The reason * is that the most common use case "{var}" does not capture the leading "/" * character. For consistency, all path variables must share the same behavior. * * Repeated message fields must not be mapped to URL query parameters, because * no client library can support such complicated mapping. * * If an API needs to use a JSON array for request or response body, it can map * the request or response body to a repeated field. However, some gRPC * Transcoding implementations may not support this feature. * * @generated from message google.api.HttpRule */ export type HttpRule = Message<"google.api.HttpRule"> & { /** * Selects a method to which this rule applies. * * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * * @generated from field: string selector = 1; */ selector: string; /** * Determines the URL pattern is matched by this rules. This pattern can be * used with any of the {get|put|post|delete|patch} methods. A custom method * can be defined using the 'custom' field. * * @generated from oneof google.api.HttpRule.pattern */ pattern: { /** * Maps to HTTP GET. Used for listing and getting information about * resources. * * @generated from field: string get = 2; */ value: string; case: "get"; } | { /** * Maps to HTTP PUT. Used for replacing a resource. * * @generated from field: string put = 3; */ value: string; case: "put"; } | { /** * Maps to HTTP POST. Used for creating a resource or performing an action. * * @generated from field: string post = 4; */ value: string; case: "post"; } | { /** * Maps to HTTP DELETE. Used for deleting a resource. * * @generated from field: string delete = 5; */ value: string; case: "delete"; } | { /** * Maps to HTTP PATCH. Used for updating a resource. * * @generated from field: string patch = 6; */ value: string; case: "patch"; } | { /** * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave the * HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. * * @generated from field: google.api.CustomHttpPattern custom = 8; */ value: CustomHttpPattern; case: "custom"; } | { case: undefined; value?: undefined }; /** * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. * * NOTE: the referred field must be present at the top-level of the request * message type. * * @generated from field: string body = 7; */ body: string; /** * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. * * NOTE: The referred field must be present at the top-level of the response * message type. * * @generated from field: string response_body = 12; */ responseBody: string; /** * Additional HTTP bindings for the selector. Nested bindings must * not contain an `additional_bindings` field themselves (that is, * the nesting may only be one level deep). * * @generated from field: repeated google.api.HttpRule additional_bindings = 11; */ additionalBindings: HttpRule[]; }; ⋮---- /** * Selects a method to which this rule applies. * * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * * @generated from field: string selector = 1; */ ⋮---- /** * Determines the URL pattern is matched by this rules. This pattern can be * used with any of the {get|put|post|delete|patch} methods. A custom method * can be defined using the 'custom' field. * * @generated from oneof google.api.HttpRule.pattern */ ⋮---- /** * Maps to HTTP GET. Used for listing and getting information about * resources. * * @generated from field: string get = 2; */ ⋮---- /** * Maps to HTTP PUT. Used for replacing a resource. * * @generated from field: string put = 3; */ ⋮---- /** * Maps to HTTP POST. Used for creating a resource or performing an action. * * @generated from field: string post = 4; */ ⋮---- /** * Maps to HTTP DELETE. Used for deleting a resource. * * @generated from field: string delete = 5; */ ⋮---- /** * Maps to HTTP PATCH. Used for updating a resource. * * @generated from field: string patch = 6; */ ⋮---- /** * The custom pattern is used for specifying an HTTP method that is not * included in the `pattern` field, such as HEAD, or "*" to leave the * HTTP method unspecified for this rule. The wild-card rule is useful * for services that provide content to Web (HTML) clients. * * @generated from field: google.api.CustomHttpPattern custom = 8; */ ⋮---- /** * The name of the request field whose value is mapped to the HTTP request * body, or `*` for mapping all request fields not captured by the path * pattern to the HTTP body, or omitted for not having any HTTP request body. * * NOTE: the referred field must be present at the top-level of the request * message type. * * @generated from field: string body = 7; */ ⋮---- /** * Optional. The name of the response field whose value is mapped to the HTTP * response body. When omitted, the entire response message will be used * as the HTTP response body. * * NOTE: The referred field must be present at the top-level of the response * message type. * * @generated from field: string response_body = 12; */ ⋮---- /** * Additional HTTP bindings for the selector. Nested bindings must * not contain an `additional_bindings` field themselves (that is, * the nesting may only be one level deep). * * @generated from field: repeated google.api.HttpRule additional_bindings = 11; */ ⋮---- /** * Describes the message google.api.HttpRule. * Use `create(HttpRuleSchema)` to create a new message. */ export const HttpRuleSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A custom pattern is used for defining custom HTTP verb. * * @generated from message google.api.CustomHttpPattern */ export type CustomHttpPattern = Message<"google.api.CustomHttpPattern"> & { /** * The name of this custom HTTP verb. * * @generated from field: string kind = 1; */ kind: string; /** * The path matched by this custom verb. * * @generated from field: string path = 2; */ path: string; }; ⋮---- /** * The name of this custom HTTP verb. * * @generated from field: string kind = 1; */ ⋮---- /** * The path matched by this custom verb. * * @generated from field: string path = 2; */ ⋮---- /** * Describes the message google.api.CustomHttpPattern. * Use `create(CustomHttpPatternSchema)` to create a new message. */ export const CustomHttpPatternSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/httpbody_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/httpbody.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Any } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_any } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/httpbody.proto. */ export const file_google_api_httpbody: GenFile = /*@__PURE__*/ ⋮---- /** * Message that represents an arbitrary HTTP body. It should only be used for * payload formats that can't be represented as JSON, such as raw binary or * an HTML page. * * * This message can be used both in streaming and non-streaming API methods in * the request as well as the response. * * It can be used as a top-level request field, which is convenient if one * wants to extract parameters from either the URL or HTTP template into the * request fields and also want access to the raw HTTP body. * * Example: * * message GetResourceRequest { * // A unique request id. * string request_id = 1; * * // The raw HTTP body is bound to this field. * google.api.HttpBody http_body = 2; * * } * * service ResourceService { * rpc GetResource(GetResourceRequest) * returns (google.api.HttpBody); * rpc UpdateResource(google.api.HttpBody) * returns (google.protobuf.Empty); * * } * * Example with streaming methods: * * service CaldavService { * rpc GetCalendar(stream google.api.HttpBody) * returns (stream google.api.HttpBody); * rpc UpdateCalendar(stream google.api.HttpBody) * returns (stream google.api.HttpBody); * * } * * Use of this type only changes how the request and response bodies are * handled, all other features will continue to work unchanged. * * @generated from message google.api.HttpBody */ export type HttpBody = Message<"google.api.HttpBody"> & { /** * The HTTP Content-Type header value specifying the content type of the body. * * @generated from field: string content_type = 1; */ contentType: string; /** * The HTTP request/response body as raw binary. * * @generated from field: bytes data = 2; */ data: Uint8Array; /** * Application specific response metadata. Must be set in the first response * for streaming APIs. * * @generated from field: repeated google.protobuf.Any extensions = 3; */ extensions: Any[]; }; ⋮---- /** * The HTTP Content-Type header value specifying the content type of the body. * * @generated from field: string content_type = 1; */ ⋮---- /** * The HTTP request/response body as raw binary. * * @generated from field: bytes data = 2; */ ⋮---- /** * Application specific response metadata. Must be set in the first response * for streaming APIs. * * @generated from field: repeated google.protobuf.Any extensions = 3; */ ⋮---- /** * Describes the message google.api.HttpBody. * Use `create(HttpBodySchema)` to create a new message. */ export const HttpBodySchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/api/launch_stage_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/launch_stage.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv2"; ⋮---- /** * Describes the file google/api/launch_stage.proto. */ export const file_google_api_launch_stage: GenFile = /*@__PURE__*/ ⋮---- /** * The launch stage as defined by [Google Cloud Platform * Launch Stages](https://cloud.google.com/terms/launch-stages). * * @generated from enum google.api.LaunchStage */ export enum LaunchStage { /** * Do not use this default value. * * @generated from enum value: LAUNCH_STAGE_UNSPECIFIED = 0; */ LAUNCH_STAGE_UNSPECIFIED = 0, /** * The feature is not yet implemented. Users can not use it. * * @generated from enum value: UNIMPLEMENTED = 6; */ UNIMPLEMENTED = 6, /** * Prelaunch features are hidden from users and are only visible internally. * * @generated from enum value: PRELAUNCH = 7; */ PRELAUNCH = 7, /** * Early Access features are limited to a closed group of testers. To use * these features, you must sign up in advance and sign a Trusted Tester * agreement (which includes confidentiality provisions). These features may * be unstable, changed in backward-incompatible ways, and are not * guaranteed to be released. * * @generated from enum value: EARLY_ACCESS = 1; */ EARLY_ACCESS = 1, /** * Alpha is a limited availability test for releases before they are cleared * for widespread use. By Alpha, all significant design issues are resolved * and we are in the process of verifying functionality. Alpha customers * need to apply for access, agree to applicable terms, and have their * projects allowlisted. Alpha releases don't have to be feature complete, * no SLAs are provided, and there are no technical support obligations, but * they will be far enough along that customers can actually use them in * test environments or for limited-use tests -- just like they would in * normal production cases. * * @generated from enum value: ALPHA = 2; */ ALPHA = 2, /** * Beta is the point at which we are ready to open a release for any * customer to use. There are no SLA or technical support obligations in a * Beta release. Products will be complete from a feature perspective, but * may have some open outstanding issues. Beta releases are suitable for * limited production use cases. * * @generated from enum value: BETA = 3; */ BETA = 3, /** * GA features are open to all developers and are considered stable and * fully qualified for production use. * * @generated from enum value: GA = 4; */ GA = 4, /** * Deprecated features are scheduled to be shut down and removed. For more * information, see the "Deprecation Policy" section of our [Terms of * Service](https://cloud.google.com/terms/) * and the [Google Cloud Platform Subject to the Deprecation * Policy](https://cloud.google.com/terms/deprecation) documentation. * * @generated from enum value: DEPRECATED = 5; */ DEPRECATED = 5, } ⋮---- /** * Do not use this default value. * * @generated from enum value: LAUNCH_STAGE_UNSPECIFIED = 0; */ ⋮---- /** * The feature is not yet implemented. Users can not use it. * * @generated from enum value: UNIMPLEMENTED = 6; */ ⋮---- /** * Prelaunch features are hidden from users and are only visible internally. * * @generated from enum value: PRELAUNCH = 7; */ ⋮---- /** * Early Access features are limited to a closed group of testers. To use * these features, you must sign up in advance and sign a Trusted Tester * agreement (which includes confidentiality provisions). These features may * be unstable, changed in backward-incompatible ways, and are not * guaranteed to be released. * * @generated from enum value: EARLY_ACCESS = 1; */ ⋮---- /** * Alpha is a limited availability test for releases before they are cleared * for widespread use. By Alpha, all significant design issues are resolved * and we are in the process of verifying functionality. Alpha customers * need to apply for access, agree to applicable terms, and have their * projects allowlisted. Alpha releases don't have to be feature complete, * no SLAs are provided, and there are no technical support obligations, but * they will be far enough along that customers can actually use them in * test environments or for limited-use tests -- just like they would in * normal production cases. * * @generated from enum value: ALPHA = 2; */ ⋮---- /** * Beta is the point at which we are ready to open a release for any * customer to use. There are no SLA or technical support obligations in a * Beta release. Products will be complete from a feature perspective, but * may have some open outstanding issues. Beta releases are suitable for * limited production use cases. * * @generated from enum value: BETA = 3; */ ⋮---- /** * GA features are open to all developers and are considered stable and * fully qualified for production use. * * @generated from enum value: GA = 4; */ ⋮---- /** * Deprecated features are scheduled to be shut down and removed. For more * information, see the "Deprecation Policy" section of our [Terms of * Service](https://cloud.google.com/terms/) * and the [Google Cloud Platform Subject to the Deprecation * Policy](https://cloud.google.com/terms/deprecation) documentation. * * @generated from enum value: DEPRECATED = 5; */ ⋮---- /** * Describes the enum google.api.LaunchStage. */ export const LaunchStageSchema: GenEnum = /*@__PURE__*/ ```` ## File: src/gen/google/api/resource_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/resource.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { FieldOptions, FileOptions, MessageOptions } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/resource.proto. */ export const file_google_api_resource: GenFile = /*@__PURE__*/ ⋮---- /** * A simple descriptor of a resource type. * * ResourceDescriptor annotates a resource message (either by means of a * protobuf annotation or use in the service config), and associates the * resource's schema, the resource type, and the pattern of the resource name. * * Example: * * message Topic { * // Indicates this message defines a resource schema. * // Declares the resource type in the format of {service}/{kind}. * // For Kubernetes resources, the format is {api group}/{kind}. * option (google.api.resource) = { * type: "pubsub.googleapis.com/Topic" * pattern: "projects/{project}/topics/{topic}" * }; * } * * The ResourceDescriptor Yaml config will look like: * * resources: * - type: "pubsub.googleapis.com/Topic" * pattern: "projects/{project}/topics/{topic}" * * Sometimes, resources have multiple patterns, typically because they can * live under multiple parents. * * Example: * * message LogEntry { * option (google.api.resource) = { * type: "logging.googleapis.com/LogEntry" * pattern: "projects/{project}/logs/{log}" * pattern: "folders/{folder}/logs/{log}" * pattern: "organizations/{organization}/logs/{log}" * pattern: "billingAccounts/{billing_account}/logs/{log}" * }; * } * * The ResourceDescriptor Yaml config will look like: * * resources: * - type: 'logging.googleapis.com/LogEntry' * pattern: "projects/{project}/logs/{log}" * pattern: "folders/{folder}/logs/{log}" * pattern: "organizations/{organization}/logs/{log}" * pattern: "billingAccounts/{billing_account}/logs/{log}" * * @generated from message google.api.ResourceDescriptor */ export type ResourceDescriptor = Message<"google.api.ResourceDescriptor"> & { /** * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. * * Example: `storage.googleapis.com/Bucket` * * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of * characters allowed for the `resource_type_kind` is 100. * * @generated from field: string type = 1; */ type: string; /** * Optional. The relative resource name pattern associated with this resource * type. The DNS prefix of the full resource name shouldn't be specified here. * * The path pattern must follow the syntax, which aligns with HTTP binding * syntax: * * Template = Segment { "/" Segment } ; * Segment = LITERAL | Variable ; * Variable = "{" LITERAL "}" ; * * Examples: * * - "projects/{project}/topics/{topic}" * - "projects/{project}/knowledgeBases/{knowledge_base}" * * The components in braces correspond to the IDs for each resource in the * hierarchy. It is expected that, if multiple patterns are provided, * the same component name (e.g. "project") refers to IDs of the same * type of resource. * * @generated from field: repeated string pattern = 2; */ pattern: string[]; /** * Optional. The field on the resource that designates the resource name * field. If omitted, this is assumed to be "name". * * @generated from field: string name_field = 3; */ nameField: string; /** * Optional. The historical or future-looking state of the resource pattern. * * Example: * * // The InspectTemplate message originally only supported resource * // names with organization, and project was added later. * message InspectTemplate { * option (google.api.resource) = { * type: "dlp.googleapis.com/InspectTemplate" * pattern: * "organizations/{organization}/inspectTemplates/{inspect_template}" * pattern: "projects/{project}/inspectTemplates/{inspect_template}" * history: ORIGINALLY_SINGLE_PATTERN * }; * } * * @generated from field: google.api.ResourceDescriptor.History history = 4; */ history: ResourceDescriptor_History; /** * The plural name used in the resource name and permission names, such as * 'projects' for the resource name of 'projects/{project}' and the permission * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception * to this is for Nested Collections that have stuttering names, as defined * in [AIP-122](https://google.aip.dev/122#nested-collections), where the * collection ID in the resource name pattern does not necessarily directly * match the `plural` value. * * It is the same concept of the `plural` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 * * @generated from field: string plural = 5; */ plural: string; /** * The same concept of the `singular` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * Such as "project" for the `resourcemanager.googleapis.com/Project` type. * * @generated from field: string singular = 6; */ singular: string; /** * Style flag(s) for this resource. * These indicate that a resource is expected to conform to a given * style. See the specific style flags for additional information. * * @generated from field: repeated google.api.ResourceDescriptor.Style style = 10; */ style: ResourceDescriptor_Style[]; }; ⋮---- /** * The resource type. It must be in the format of * {service_name}/{resource_type_kind}. The `resource_type_kind` must be * singular and must not include version numbers. * * Example: `storage.googleapis.com/Bucket` * * The value of the resource_type_kind must follow the regular expression * /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and * should use PascalCase (UpperCamelCase). The maximum number of * characters allowed for the `resource_type_kind` is 100. * * @generated from field: string type = 1; */ ⋮---- /** * Optional. The relative resource name pattern associated with this resource * type. The DNS prefix of the full resource name shouldn't be specified here. * * The path pattern must follow the syntax, which aligns with HTTP binding * syntax: * * Template = Segment { "/" Segment } ; * Segment = LITERAL | Variable ; * Variable = "{" LITERAL "}" ; * * Examples: * * - "projects/{project}/topics/{topic}" * - "projects/{project}/knowledgeBases/{knowledge_base}" * * The components in braces correspond to the IDs for each resource in the * hierarchy. It is expected that, if multiple patterns are provided, * the same component name (e.g. "project") refers to IDs of the same * type of resource. * * @generated from field: repeated string pattern = 2; */ ⋮---- /** * Optional. The field on the resource that designates the resource name * field. If omitted, this is assumed to be "name". * * @generated from field: string name_field = 3; */ ⋮---- /** * Optional. The historical or future-looking state of the resource pattern. * * Example: * * // The InspectTemplate message originally only supported resource * // names with organization, and project was added later. * message InspectTemplate { * option (google.api.resource) = { * type: "dlp.googleapis.com/InspectTemplate" * pattern: * "organizations/{organization}/inspectTemplates/{inspect_template}" * pattern: "projects/{project}/inspectTemplates/{inspect_template}" * history: ORIGINALLY_SINGLE_PATTERN * }; * } * * @generated from field: google.api.ResourceDescriptor.History history = 4; */ ⋮---- /** * The plural name used in the resource name and permission names, such as * 'projects' for the resource name of 'projects/{project}' and the permission * name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception * to this is for Nested Collections that have stuttering names, as defined * in [AIP-122](https://google.aip.dev/122#nested-collections), where the * collection ID in the resource name pattern does not necessarily directly * match the `plural` value. * * It is the same concept of the `plural` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * * Note: The plural form is required even for singleton resources. See * https://aip.dev/156 * * @generated from field: string plural = 5; */ ⋮---- /** * The same concept of the `singular` field in k8s CRD spec * https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/ * Such as "project" for the `resourcemanager.googleapis.com/Project` type. * * @generated from field: string singular = 6; */ ⋮---- /** * Style flag(s) for this resource. * These indicate that a resource is expected to conform to a given * style. See the specific style flags for additional information. * * @generated from field: repeated google.api.ResourceDescriptor.Style style = 10; */ ⋮---- /** * Describes the message google.api.ResourceDescriptor. * Use `create(ResourceDescriptorSchema)` to create a new message. */ export const ResourceDescriptorSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A description of the historical or future-looking state of the * resource pattern. * * @generated from enum google.api.ResourceDescriptor.History */ export enum ResourceDescriptor_History { /** * The "unset" value. * * @generated from enum value: HISTORY_UNSPECIFIED = 0; */ HISTORY_UNSPECIFIED = 0, /** * The resource originally had one pattern and launched as such, and * additional patterns were added later. * * @generated from enum value: ORIGINALLY_SINGLE_PATTERN = 1; */ ORIGINALLY_SINGLE_PATTERN = 1, /** * The resource has one pattern, but the API owner expects to add more * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents * that from being necessary once there are multiple patterns.) * * @generated from enum value: FUTURE_MULTI_PATTERN = 2; */ FUTURE_MULTI_PATTERN = 2, } ⋮---- /** * The "unset" value. * * @generated from enum value: HISTORY_UNSPECIFIED = 0; */ ⋮---- /** * The resource originally had one pattern and launched as such, and * additional patterns were added later. * * @generated from enum value: ORIGINALLY_SINGLE_PATTERN = 1; */ ⋮---- /** * The resource has one pattern, but the API owner expects to add more * later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents * that from being necessary once there are multiple patterns.) * * @generated from enum value: FUTURE_MULTI_PATTERN = 2; */ ⋮---- /** * Describes the enum google.api.ResourceDescriptor.History. */ export const ResourceDescriptor_HistorySchema: GenEnum = /*@__PURE__*/ ⋮---- /** * A flag representing a specific style that a resource claims to conform to. * * @generated from enum google.api.ResourceDescriptor.Style */ export enum ResourceDescriptor_Style { /** * The unspecified value. Do not use. * * @generated from enum value: STYLE_UNSPECIFIED = 0; */ STYLE_UNSPECIFIED = 0, /** * This resource is intended to be "declarative-friendly". * * Declarative-friendly resources must be more strictly consistent, and * setting this to true communicates to tools that this resource should * adhere to declarative-friendly expectations. * * Note: This is used by the API linter (linter.aip.dev) to enable * additional checks. * * @generated from enum value: DECLARATIVE_FRIENDLY = 1; */ DECLARATIVE_FRIENDLY = 1, } ⋮---- /** * The unspecified value. Do not use. * * @generated from enum value: STYLE_UNSPECIFIED = 0; */ ⋮---- /** * This resource is intended to be "declarative-friendly". * * Declarative-friendly resources must be more strictly consistent, and * setting this to true communicates to tools that this resource should * adhere to declarative-friendly expectations. * * Note: This is used by the API linter (linter.aip.dev) to enable * additional checks. * * @generated from enum value: DECLARATIVE_FRIENDLY = 1; */ ⋮---- /** * Describes the enum google.api.ResourceDescriptor.Style. */ export const ResourceDescriptor_StyleSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Defines a proto annotation that describes a string field that refers to * an API resource. * * @generated from message google.api.ResourceReference */ export type ResourceReference = Message<"google.api.ResourceReference"> & { /** * The resource type that the annotated field references. * * Example: * * message Subscription { * string topic = 2 [(google.api.resource_reference) = { * type: "pubsub.googleapis.com/Topic" * }]; * } * * Occasionally, a field may reference an arbitrary resource. In this case, * APIs use the special value * in their resource reference. * * Example: * * message GetIamPolicyRequest { * string resource = 2 [(google.api.resource_reference) = { * type: "*" * }]; * } * * @generated from field: string type = 1; */ type: string; /** * The resource type of a child collection that the annotated field * references. This is useful for annotating the `parent` field that * doesn't have a fixed resource type. * * Example: * * message ListLogEntriesRequest { * string parent = 1 [(google.api.resource_reference) = { * child_type: "logging.googleapis.com/LogEntry" * }; * } * * @generated from field: string child_type = 2; */ childType: string; }; ⋮---- /** * The resource type that the annotated field references. * * Example: * * message Subscription { * string topic = 2 [(google.api.resource_reference) = { * type: "pubsub.googleapis.com/Topic" * }]; * } * * Occasionally, a field may reference an arbitrary resource. In this case, * APIs use the special value * in their resource reference. * * Example: * * message GetIamPolicyRequest { * string resource = 2 [(google.api.resource_reference) = { * type: "*" * }]; * } * * @generated from field: string type = 1; */ ⋮---- /** * The resource type of a child collection that the annotated field * references. This is useful for annotating the `parent` field that * doesn't have a fixed resource type. * * Example: * * message ListLogEntriesRequest { * string parent = 1 [(google.api.resource_reference) = { * child_type: "logging.googleapis.com/LogEntry" * }; * } * * @generated from field: string child_type = 2; */ ⋮---- /** * Describes the message google.api.ResourceReference. * Use `create(ResourceReferenceSchema)` to create a new message. */ export const ResourceReferenceSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An annotation that describes a resource reference, see * [ResourceReference][]. * * @generated from extension: google.api.ResourceReference resource_reference = 1055; */ export const resource_reference: GenExtension = /*@__PURE__*/ ⋮---- /** * An annotation that describes a resource definition without a corresponding * message; see [ResourceDescriptor][]. * * @generated from extension: repeated google.api.ResourceDescriptor resource_definition = 1053; */ export const resource_definition: GenExtension = /*@__PURE__*/ ⋮---- /** * An annotation that describes a resource definition, see * [ResourceDescriptor][]. * * @generated from extension: google.api.ResourceDescriptor resource = 1053; */ export const resource: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/api/visibility_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/api/visibility.proto (package google.api, syntax proto3) /* eslint-disable */ ⋮---- import type { GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { EnumOptions, EnumValueOptions, FieldOptions, MessageOptions, MethodOptions, ServiceOptions } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/api/visibility.proto. */ export const file_google_api_visibility: GenFile = /*@__PURE__*/ ⋮---- /** * `Visibility` restricts service consumer's access to service elements, * such as whether an application can call a visibility-restricted method. * The restriction is expressed by applying visibility labels on service * elements. The visibility labels are elsewhere linked to service consumers. * * A service can define multiple visibility labels, but a service consumer * should be granted at most one visibility label. Multiple visibility * labels for a single service consumer are not supported. * * If an element and all its parents have no visibility label, its visibility * is unconditionally granted. * * Example: * * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: PREVIEW * - selector: google.calendar.Calendar.Delegate * restriction: INTERNAL * * Here, all methods are publicly visible except for the restricted methods * EnhancedSearch and Delegate. * * @generated from message google.api.Visibility */ export type Visibility = Message<"google.api.Visibility"> & { /** * A list of visibility rules that apply to individual API elements. * * **NOTE:** All service configuration rules follow "last one wins" order. * * @generated from field: repeated google.api.VisibilityRule rules = 1; */ rules: VisibilityRule[]; }; ⋮---- /** * A list of visibility rules that apply to individual API elements. * * **NOTE:** All service configuration rules follow "last one wins" order. * * @generated from field: repeated google.api.VisibilityRule rules = 1; */ ⋮---- /** * Describes the message google.api.Visibility. * Use `create(VisibilitySchema)` to create a new message. */ export const VisibilitySchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A visibility rule provides visibility configuration for an individual API * element. * * @generated from message google.api.VisibilityRule */ export type VisibilityRule = Message<"google.api.VisibilityRule"> & { /** * Selects methods, messages, fields, enums, etc. to which this rule applies. * * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * * @generated from field: string selector = 1; */ selector: string; /** * A comma-separated list of visibility labels that apply to the `selector`. * Any of the listed labels can be used to grant the visibility. * * If a rule has multiple labels, removing one of the labels but not all of * them can break clients. * * Example: * * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: INTERNAL, PREVIEW * * Removing INTERNAL from this restriction will break clients that rely on * this method and only had access to it through INTERNAL. * * @generated from field: string restriction = 2; */ restriction: string; }; ⋮---- /** * Selects methods, messages, fields, enums, etc. to which this rule applies. * * Refer to [selector][google.api.DocumentationRule.selector] for syntax * details. * * @generated from field: string selector = 1; */ ⋮---- /** * A comma-separated list of visibility labels that apply to the `selector`. * Any of the listed labels can be used to grant the visibility. * * If a rule has multiple labels, removing one of the labels but not all of * them can break clients. * * Example: * * visibility: * rules: * - selector: google.calendar.Calendar.EnhancedSearch * restriction: INTERNAL, PREVIEW * * Removing INTERNAL from this restriction will break clients that rely on * this method and only had access to it through INTERNAL. * * @generated from field: string restriction = 2; */ ⋮---- /** * Describes the message google.api.VisibilityRule. * Use `create(VisibilityRuleSchema)` to create a new message. */ export const VisibilityRuleSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * See `VisibilityRule`. * * @generated from extension: google.api.VisibilityRule enum_visibility = 72295727; */ export const enum_visibility: GenExtension = /*@__PURE__*/ ⋮---- /** * See `VisibilityRule`. * * @generated from extension: google.api.VisibilityRule value_visibility = 72295727; */ export const value_visibility: GenExtension = /*@__PURE__*/ ⋮---- /** * See `VisibilityRule`. * * @generated from extension: google.api.VisibilityRule field_visibility = 72295727; */ export const field_visibility: GenExtension = /*@__PURE__*/ ⋮---- /** * See `VisibilityRule`. * * @generated from extension: google.api.VisibilityRule message_visibility = 72295727; */ export const message_visibility: GenExtension = /*@__PURE__*/ ⋮---- /** * See `VisibilityRule`. * * @generated from extension: google.api.VisibilityRule method_visibility = 72295727; */ export const method_visibility: GenExtension = /*@__PURE__*/ ⋮---- /** * See `VisibilityRule`. * * @generated from extension: google.api.VisibilityRule api_visibility = 72295727; */ export const api_visibility: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/bytestream/bytestream_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/bytestream/bytestream.proto (package google.bytestream, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/bytestream/bytestream.proto. */ export const file_google_bytestream_bytestream: GenFile = /*@__PURE__*/ ⋮---- /** * Request object for ByteStream.Read. * * @generated from message google.bytestream.ReadRequest */ export type ReadRequest = Message<"google.bytestream.ReadRequest"> & { /** * The name of the resource to read. * * @generated from field: string resource_name = 1; */ resourceName: string; /** * The offset for the first byte to return in the read, relative to the start * of the resource. * * A `read_offset` that is negative or greater than the size of the resource * will cause an `OUT_OF_RANGE` error. * * @generated from field: int64 read_offset = 2; */ readOffset: bigint; /** * The maximum number of `data` bytes the server is allowed to return in the * sum of all `ReadResponse` messages. A `read_limit` of zero indicates that * there is no limit, and a negative `read_limit` will cause an error. * * If the stream returns fewer bytes than allowed by the `read_limit` and no * error occurred, the stream includes all data from the `read_offset` to the * end of the resource. * * @generated from field: int64 read_limit = 3; */ readLimit: bigint; }; ⋮---- /** * The name of the resource to read. * * @generated from field: string resource_name = 1; */ ⋮---- /** * The offset for the first byte to return in the read, relative to the start * of the resource. * * A `read_offset` that is negative or greater than the size of the resource * will cause an `OUT_OF_RANGE` error. * * @generated from field: int64 read_offset = 2; */ ⋮---- /** * The maximum number of `data` bytes the server is allowed to return in the * sum of all `ReadResponse` messages. A `read_limit` of zero indicates that * there is no limit, and a negative `read_limit` will cause an error. * * If the stream returns fewer bytes than allowed by the `read_limit` and no * error occurred, the stream includes all data from the `read_offset` to the * end of the resource. * * @generated from field: int64 read_limit = 3; */ ⋮---- /** * Describes the message google.bytestream.ReadRequest. * Use `create(ReadRequestSchema)` to create a new message. */ export const ReadRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response object for ByteStream.Read. * * @generated from message google.bytestream.ReadResponse */ export type ReadResponse = Message<"google.bytestream.ReadResponse"> & { /** * A portion of the data for the resource. The service **may** leave `data` * empty for any given `ReadResponse`. This enables the service to inform the * client that the request is still live while it is running an operation to * generate more data. * * @generated from field: bytes data = 10; */ data: Uint8Array; }; ⋮---- /** * A portion of the data for the resource. The service **may** leave `data` * empty for any given `ReadResponse`. This enables the service to inform the * client that the request is still live while it is running an operation to * generate more data. * * @generated from field: bytes data = 10; */ ⋮---- /** * Describes the message google.bytestream.ReadResponse. * Use `create(ReadResponseSchema)` to create a new message. */ export const ReadResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request object for ByteStream.Write. * * @generated from message google.bytestream.WriteRequest */ export type WriteRequest = Message<"google.bytestream.WriteRequest"> & { /** * The name of the resource to write. This **must** be set on the first * `WriteRequest` of each `Write()` action. If it is set on subsequent calls, * it **must** match the value of the first request. * * @generated from field: string resource_name = 1; */ resourceName: string; /** * The offset from the beginning of the resource at which the data should be * written. It is required on all `WriteRequest`s. * * In the first `WriteRequest` of a `Write()` action, it indicates * the initial offset for the `Write()` call. The value **must** be equal to * the `committed_size` that a call to `QueryWriteStatus()` would return. * * On subsequent calls, this value **must** be set and **must** be equal to * the sum of the first `write_offset` and the sizes of all `data` bundles * sent previously on this stream. * * An incorrect value will cause an error. * * @generated from field: int64 write_offset = 2; */ writeOffset: bigint; /** * If `true`, this indicates that the write is complete. Sending any * `WriteRequest`s subsequent to one in which `finish_write` is `true` will * cause an error. * * @generated from field: bool finish_write = 3; */ finishWrite: boolean; /** * A portion of the data for the resource. The client **may** leave `data` * empty for any given `WriteRequest`. This enables the client to inform the * service that the request is still live while it is running an operation to * generate more data. * * @generated from field: bytes data = 10; */ data: Uint8Array; }; ⋮---- /** * The name of the resource to write. This **must** be set on the first * `WriteRequest` of each `Write()` action. If it is set on subsequent calls, * it **must** match the value of the first request. * * @generated from field: string resource_name = 1; */ ⋮---- /** * The offset from the beginning of the resource at which the data should be * written. It is required on all `WriteRequest`s. * * In the first `WriteRequest` of a `Write()` action, it indicates * the initial offset for the `Write()` call. The value **must** be equal to * the `committed_size` that a call to `QueryWriteStatus()` would return. * * On subsequent calls, this value **must** be set and **must** be equal to * the sum of the first `write_offset` and the sizes of all `data` bundles * sent previously on this stream. * * An incorrect value will cause an error. * * @generated from field: int64 write_offset = 2; */ ⋮---- /** * If `true`, this indicates that the write is complete. Sending any * `WriteRequest`s subsequent to one in which `finish_write` is `true` will * cause an error. * * @generated from field: bool finish_write = 3; */ ⋮---- /** * A portion of the data for the resource. The client **may** leave `data` * empty for any given `WriteRequest`. This enables the client to inform the * service that the request is still live while it is running an operation to * generate more data. * * @generated from field: bytes data = 10; */ ⋮---- /** * Describes the message google.bytestream.WriteRequest. * Use `create(WriteRequestSchema)` to create a new message. */ export const WriteRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response object for ByteStream.Write. * * @generated from message google.bytestream.WriteResponse */ export type WriteResponse = Message<"google.bytestream.WriteResponse"> & { /** * The number of bytes that have been processed for the given resource. * * @generated from field: int64 committed_size = 1; */ committedSize: bigint; }; ⋮---- /** * The number of bytes that have been processed for the given resource. * * @generated from field: int64 committed_size = 1; */ ⋮---- /** * Describes the message google.bytestream.WriteResponse. * Use `create(WriteResponseSchema)` to create a new message. */ export const WriteResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Request object for ByteStream.QueryWriteStatus. * * @generated from message google.bytestream.QueryWriteStatusRequest */ export type QueryWriteStatusRequest = Message<"google.bytestream.QueryWriteStatusRequest"> & { /** * The name of the resource whose write status is being requested. * * @generated from field: string resource_name = 1; */ resourceName: string; }; ⋮---- /** * The name of the resource whose write status is being requested. * * @generated from field: string resource_name = 1; */ ⋮---- /** * Describes the message google.bytestream.QueryWriteStatusRequest. * Use `create(QueryWriteStatusRequestSchema)` to create a new message. */ export const QueryWriteStatusRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Response object for ByteStream.QueryWriteStatus. * * @generated from message google.bytestream.QueryWriteStatusResponse */ export type QueryWriteStatusResponse = Message<"google.bytestream.QueryWriteStatusResponse"> & { /** * The number of bytes that have been processed for the given resource. * * @generated from field: int64 committed_size = 1; */ committedSize: bigint; /** * `complete` is `true` only if the client has sent a `WriteRequest` with * `finish_write` set to true, and the server has processed that request. * * @generated from field: bool complete = 2; */ complete: boolean; }; ⋮---- /** * The number of bytes that have been processed for the given resource. * * @generated from field: int64 committed_size = 1; */ ⋮---- /** * `complete` is `true` only if the client has sent a `WriteRequest` with * `finish_write` set to true, and the server has processed that request. * * @generated from field: bool complete = 2; */ ⋮---- /** * Describes the message google.bytestream.QueryWriteStatusResponse. * Use `create(QueryWriteStatusResponseSchema)` to create a new message. */ export const QueryWriteStatusResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * #### Introduction * * The Byte Stream API enables a client to read and write a stream of bytes to * and from a resource. Resources have names, and these names are supplied in * the API calls below to identify the resource that is being read from or * written to. * * All implementations of the Byte Stream API export the interface defined here: * * * `Read()`: Reads the contents of a resource. * * * `Write()`: Writes the contents of a resource. The client can call `Write()` * multiple times with the same resource and can check the status of the write * by calling `QueryWriteStatus()`. * * #### Service parameters and metadata * * The ByteStream API provides no direct way to access/modify any metadata * associated with the resource. * * #### Errors * * The errors returned by the service are in the Google canonical error space. * * @generated from service google.bytestream.ByteStream */ ⋮---- /** * `Read()` is used to retrieve the contents of a resource as a sequence * of bytes. The bytes are returned in a sequence of responses, and the * responses are delivered as the results of a server-side streaming RPC. * * @generated from rpc google.bytestream.ByteStream.Read */ ⋮---- /** * `Write()` is used to send the contents of a resource as a sequence of * bytes. The bytes are sent in a sequence of request protos of a client-side * streaming RPC. * * A `Write()` action is resumable. If there is an error or the connection is * broken during the `Write()`, the client should check the status of the * `Write()` by calling `QueryWriteStatus()` and continue writing from the * returned `committed_size`. This may be less than the amount of data the * client previously sent. * * Calling `Write()` on a resource name that was previously written and * finalized could cause an error, depending on whether the underlying service * allows over-writing of previously written resources. * * When the client closes the request channel, the service will respond with * a `WriteResponse`. The service will not view the resource as `complete` * until the client has sent a `WriteRequest` with `finish_write` set to * `true`. Sending any requests on a stream after sending a request with * `finish_write` set to `true` will cause an error. The client **should** * check the `WriteResponse` it receives to determine how much data the * service was able to commit and whether the service views the resource as * `complete` or not. * * @generated from rpc google.bytestream.ByteStream.Write */ ⋮---- /** * `QueryWriteStatus()` is used to find the `committed_size` for a resource * that is being written, which can then be used as the `write_offset` for * the next `Write()` call. * * If the resource does not exist (i.e., the resource has been deleted, or the * first `Write()` has not yet reached the service), this method returns the * error `NOT_FOUND`. * * The client **may** call `QueryWriteStatus()` at any time to determine how * much data has been processed for this resource. This is useful if the * client is buffering data and needs to know which data can be safely * evicted. For any sequence of `QueryWriteStatus()` calls for a given * resource name, the sequence of returned `committed_size` values will be * non-decreasing. * * @generated from rpc google.bytestream.ByteStream.QueryWriteStatus */ ⋮---- }> = /*@__PURE__*/ ```` ## File: src/gen/google/geo/type/viewport_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/geo/type/viewport.proto (package google.geo.type, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { LatLng } from "../../type/latlng_pb"; import { file_google_type_latlng } from "../../type/latlng_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/geo/type/viewport.proto. */ export const file_google_geo_type_viewport: GenFile = /*@__PURE__*/ ⋮---- /** * A latitude-longitude viewport, represented as two diagonally opposite `low` * and `high` points. A viewport is considered a closed region, i.e. it includes * its boundary. The latitude bounds must range between -90 to 90 degrees * inclusive, and the longitude bounds must range between -180 to 180 degrees * inclusive. Various cases include: * * - If `low` = `high`, the viewport consists of that single point. * * - If `low.longitude` > `high.longitude`, the longitude range is inverted * (the viewport crosses the 180 degree longitude line). * * - If `low.longitude` = -180 degrees and `high.longitude` = 180 degrees, * the viewport includes all longitudes. * * - If `low.longitude` = 180 degrees and `high.longitude` = -180 degrees, * the longitude range is empty. * * - If `low.latitude` > `high.latitude`, the latitude range is empty. * * Both `low` and `high` must be populated, and the represented box cannot be * empty (as specified by the definitions above). An empty viewport will result * in an error. * * For example, this viewport fully encloses New York City: * * { * "low": { * "latitude": 40.477398, * "longitude": -74.259087 * }, * "high": { * "latitude": 40.91618, * "longitude": -73.70018 * } * } * * @generated from message google.geo.type.Viewport */ export type Viewport = Message<"google.geo.type.Viewport"> & { /** * Required. The low point of the viewport. * * @generated from field: google.type.LatLng low = 1; */ low?: LatLng; /** * Required. The high point of the viewport. * * @generated from field: google.type.LatLng high = 2; */ high?: LatLng; }; ⋮---- /** * Required. The low point of the viewport. * * @generated from field: google.type.LatLng low = 1; */ ⋮---- /** * Required. The high point of the viewport. * * @generated from field: google.type.LatLng high = 2; */ ⋮---- /** * Describes the message google.geo.type.Viewport. * Use `create(ViewportSchema)` to create a new message. */ export const ViewportSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/longrunning/operations_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/longrunning/operations.proto (package google.longrunning, syntax proto3) /* eslint-disable */ ⋮---- import type { GenExtension, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { extDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import { file_google_api_annotations } from "../api/annotations_pb"; import { file_google_api_client } from "../api/client_pb"; import { file_google_api_field_behavior } from "../api/field_behavior_pb"; import type { Any, Duration, EmptySchema, MethodOptions } from "@bufbuild/protobuf/wkt"; import { file_google_protobuf_any, file_google_protobuf_descriptor, file_google_protobuf_duration, file_google_protobuf_empty } from "@bufbuild/protobuf/wkt"; import type { Status } from "../rpc/status_pb"; import { file_google_rpc_status } from "../rpc/status_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/longrunning/operations.proto. */ export const file_google_longrunning_operations: GenFile = /*@__PURE__*/ ⋮---- /** * This resource represents a long-running operation that is the result of a * network API call. * * @generated from message google.longrunning.Operation */ export type Operation = Message<"google.longrunning.Operation"> & { /** * The server-assigned name, which is only unique within the same service that * originally returns it. If you use the default HTTP mapping, the * `name` should be a resource name ending with `operations/{unique_id}`. * * @generated from field: string name = 1; */ name: string; /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. * * @generated from field: google.protobuf.Any metadata = 2; */ metadata?: Any; /** * If the value is `false`, it means the operation is still in progress. * If `true`, the operation is completed, and either `error` or `response` is * available. * * @generated from field: bool done = 3; */ done: boolean; /** * The operation result, which can be either an `error` or a valid `response`. * If `done` == `false`, neither `error` nor `response` is set. * If `done` == `true`, exactly one of `error` or `response` can be set. * Some services might not provide the result. * * @generated from oneof google.longrunning.Operation.result */ result: { /** * The error result of the operation in case of failure or cancellation. * * @generated from field: google.rpc.Status error = 4; */ value: Status; case: "error"; } | { /** * The normal, successful response of the operation. If the original * method returns no data on success, such as `Delete`, the response is * `google.protobuf.Empty`. If the original method is standard * `Get`/`Create`/`Update`, the response should be the resource. For other * methods, the response should have the type `XxxResponse`, where `Xxx` * is the original method name. For example, if the original method name * is `TakeSnapshot()`, the inferred response type is * `TakeSnapshotResponse`. * * @generated from field: google.protobuf.Any response = 5; */ value: Any; case: "response"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * The server-assigned name, which is only unique within the same service that * originally returns it. If you use the default HTTP mapping, the * `name` should be a resource name ending with `operations/{unique_id}`. * * @generated from field: string name = 1; */ ⋮---- /** * Service-specific metadata associated with the operation. It typically * contains progress information and common metadata such as create time. * Some services might not provide such metadata. Any method that returns a * long-running operation should document the metadata type, if any. * * @generated from field: google.protobuf.Any metadata = 2; */ ⋮---- /** * If the value is `false`, it means the operation is still in progress. * If `true`, the operation is completed, and either `error` or `response` is * available. * * @generated from field: bool done = 3; */ ⋮---- /** * The operation result, which can be either an `error` or a valid `response`. * If `done` == `false`, neither `error` nor `response` is set. * If `done` == `true`, exactly one of `error` or `response` can be set. * Some services might not provide the result. * * @generated from oneof google.longrunning.Operation.result */ ⋮---- /** * The error result of the operation in case of failure or cancellation. * * @generated from field: google.rpc.Status error = 4; */ ⋮---- /** * The normal, successful response of the operation. If the original * method returns no data on success, such as `Delete`, the response is * `google.protobuf.Empty`. If the original method is standard * `Get`/`Create`/`Update`, the response should be the resource. For other * methods, the response should have the type `XxxResponse`, where `Xxx` * is the original method name. For example, if the original method name * is `TakeSnapshot()`, the inferred response type is * `TakeSnapshotResponse`. * * @generated from field: google.protobuf.Any response = 5; */ ⋮---- /** * Describes the message google.longrunning.Operation. * Use `create(OperationSchema)` to create a new message. */ export const OperationSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The request message for * [Operations.GetOperation][google.longrunning.Operations.GetOperation]. * * @generated from message google.longrunning.GetOperationRequest */ export type GetOperationRequest = Message<"google.longrunning.GetOperationRequest"> & { /** * The name of the operation resource. * * @generated from field: string name = 1; */ name: string; }; ⋮---- /** * The name of the operation resource. * * @generated from field: string name = 1; */ ⋮---- /** * Describes the message google.longrunning.GetOperationRequest. * Use `create(GetOperationRequestSchema)` to create a new message. */ export const GetOperationRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The request message for * [Operations.ListOperations][google.longrunning.Operations.ListOperations]. * * @generated from message google.longrunning.ListOperationsRequest */ export type ListOperationsRequest = Message<"google.longrunning.ListOperationsRequest"> & { /** * The name of the operation's parent resource. * * @generated from field: string name = 4; */ name: string; /** * The standard list filter. * * @generated from field: string filter = 1; */ filter: string; /** * The standard list page size. * * @generated from field: int32 page_size = 2; */ pageSize: number; /** * The standard list page token. * * @generated from field: string page_token = 3; */ pageToken: string; /** * When set to `true`, operations that are reachable are returned as normal, * and those that are unreachable are returned in the * [ListOperationsResponse.unreachable] field. * * This can only be `true` when reading across collections e.g. when `parent` * is set to `"projects/example/locations/-"`. * * This field is not by default supported and will result in an * `UNIMPLEMENTED` error if set unless explicitly documented otherwise in * service or product specific documentation. * * @generated from field: bool return_partial_success = 5; */ returnPartialSuccess: boolean; }; ⋮---- /** * The name of the operation's parent resource. * * @generated from field: string name = 4; */ ⋮---- /** * The standard list filter. * * @generated from field: string filter = 1; */ ⋮---- /** * The standard list page size. * * @generated from field: int32 page_size = 2; */ ⋮---- /** * The standard list page token. * * @generated from field: string page_token = 3; */ ⋮---- /** * When set to `true`, operations that are reachable are returned as normal, * and those that are unreachable are returned in the * [ListOperationsResponse.unreachable] field. * * This can only be `true` when reading across collections e.g. when `parent` * is set to `"projects/example/locations/-"`. * * This field is not by default supported and will result in an * `UNIMPLEMENTED` error if set unless explicitly documented otherwise in * service or product specific documentation. * * @generated from field: bool return_partial_success = 5; */ ⋮---- /** * Describes the message google.longrunning.ListOperationsRequest. * Use `create(ListOperationsRequestSchema)` to create a new message. */ export const ListOperationsRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The response message for * [Operations.ListOperations][google.longrunning.Operations.ListOperations]. * * @generated from message google.longrunning.ListOperationsResponse */ export type ListOperationsResponse = Message<"google.longrunning.ListOperationsResponse"> & { /** * A list of operations that matches the specified filter in the request. * * @generated from field: repeated google.longrunning.Operation operations = 1; */ operations: Operation[]; /** * The standard List next-page token. * * @generated from field: string next_page_token = 2; */ nextPageToken: string; /** * Unordered list. Unreachable resources. Populated when the request sets * `ListOperationsRequest.return_partial_success` and reads across * collections e.g. when attempting to list all resources across all supported * locations. * * @generated from field: repeated string unreachable = 3; */ unreachable: string[]; }; ⋮---- /** * A list of operations that matches the specified filter in the request. * * @generated from field: repeated google.longrunning.Operation operations = 1; */ ⋮---- /** * The standard List next-page token. * * @generated from field: string next_page_token = 2; */ ⋮---- /** * Unordered list. Unreachable resources. Populated when the request sets * `ListOperationsRequest.return_partial_success` and reads across * collections e.g. when attempting to list all resources across all supported * locations. * * @generated from field: repeated string unreachable = 3; */ ⋮---- /** * Describes the message google.longrunning.ListOperationsResponse. * Use `create(ListOperationsResponseSchema)` to create a new message. */ export const ListOperationsResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The request message for * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]. * * @generated from message google.longrunning.CancelOperationRequest */ export type CancelOperationRequest = Message<"google.longrunning.CancelOperationRequest"> & { /** * The name of the operation resource to be cancelled. * * @generated from field: string name = 1; */ name: string; }; ⋮---- /** * The name of the operation resource to be cancelled. * * @generated from field: string name = 1; */ ⋮---- /** * Describes the message google.longrunning.CancelOperationRequest. * Use `create(CancelOperationRequestSchema)` to create a new message. */ export const CancelOperationRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The request message for * [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation]. * * @generated from message google.longrunning.DeleteOperationRequest */ export type DeleteOperationRequest = Message<"google.longrunning.DeleteOperationRequest"> & { /** * The name of the operation resource to be deleted. * * @generated from field: string name = 1; */ name: string; }; ⋮---- /** * The name of the operation resource to be deleted. * * @generated from field: string name = 1; */ ⋮---- /** * Describes the message google.longrunning.DeleteOperationRequest. * Use `create(DeleteOperationRequestSchema)` to create a new message. */ export const DeleteOperationRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The request message for * [Operations.WaitOperation][google.longrunning.Operations.WaitOperation]. * * @generated from message google.longrunning.WaitOperationRequest */ export type WaitOperationRequest = Message<"google.longrunning.WaitOperationRequest"> & { /** * The name of the operation resource to wait on. * * @generated from field: string name = 1; */ name: string; /** * The maximum duration to wait before timing out. If left blank, the wait * will be at most the time permitted by the underlying HTTP/RPC protocol. * If RPC context deadline is also specified, the shorter one will be used. * * @generated from field: google.protobuf.Duration timeout = 2; */ timeout?: Duration; }; ⋮---- /** * The name of the operation resource to wait on. * * @generated from field: string name = 1; */ ⋮---- /** * The maximum duration to wait before timing out. If left blank, the wait * will be at most the time permitted by the underlying HTTP/RPC protocol. * If RPC context deadline is also specified, the shorter one will be used. * * @generated from field: google.protobuf.Duration timeout = 2; */ ⋮---- /** * Describes the message google.longrunning.WaitOperationRequest. * Use `create(WaitOperationRequestSchema)` to create a new message. */ export const WaitOperationRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A message representing the message types used by a long-running operation. * * Example: * * rpc Export(ExportRequest) returns (google.longrunning.Operation) { * option (google.longrunning.operation_info) = { * response_type: "ExportResponse" * metadata_type: "ExportMetadata" * }; * } * * @generated from message google.longrunning.OperationInfo */ export type OperationInfo = Message<"google.longrunning.OperationInfo"> & { /** * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * * Note: Altering this value constitutes a breaking change. * * @generated from field: string response_type = 1; */ responseType: string; /** * Required. The message name of the metadata type for this long-running * operation. * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * * Note: Altering this value constitutes a breaking change. * * @generated from field: string metadata_type = 2; */ metadataType: string; }; ⋮---- /** * Required. The message name of the primary return type for this * long-running operation. * This type will be used to deserialize the LRO's response. * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * * Note: Altering this value constitutes a breaking change. * * @generated from field: string response_type = 1; */ ⋮---- /** * Required. The message name of the metadata type for this long-running * operation. * * If the response is in a different package from the rpc, a fully-qualified * message name must be used (e.g. `google.protobuf.Struct`). * * Note: Altering this value constitutes a breaking change. * * @generated from field: string metadata_type = 2; */ ⋮---- /** * Describes the message google.longrunning.OperationInfo. * Use `create(OperationInfoSchema)` to create a new message. */ export const OperationInfoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Manages long-running operations with an API service. * * When an API method normally takes long time to complete, it can be designed * to return [Operation][google.longrunning.Operation] to the client, and the * client can use this interface to receive the real response asynchronously by * polling the operation resource, or pass the operation resource to another API * (such as Pub/Sub API) to receive the response. Any API service that returns * long-running operations should implement the `Operations` interface so * developers can have a consistent client experience. * * @generated from service google.longrunning.Operations */ ⋮---- /** * Lists operations that match the specified filter in the request. If the * server doesn't support this method, it returns `UNIMPLEMENTED`. * * @generated from rpc google.longrunning.Operations.ListOperations */ ⋮---- /** * Gets the latest state of a long-running operation. Clients can use this * method to poll the operation result at intervals as recommended by the API * service. * * @generated from rpc google.longrunning.Operations.GetOperation */ ⋮---- /** * Deletes a long-running operation. This method indicates that the client is * no longer interested in the operation result. It does not cancel the * operation. If the server doesn't support this method, it returns * `google.rpc.Code.UNIMPLEMENTED`. * * @generated from rpc google.longrunning.Operations.DeleteOperation */ ⋮---- /** * Starts asynchronous cancellation on a long-running operation. The server * makes a best effort to cancel the operation, but success is not * guaranteed. If the server doesn't support this method, it returns * `google.rpc.Code.UNIMPLEMENTED`. Clients can use * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or * other methods to check whether the cancellation succeeded or whether the * operation completed despite cancellation. On successful cancellation, * the operation is not deleted; instead, it becomes an operation with * an [Operation.error][google.longrunning.Operation.error] value with a * [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to * `Code.CANCELLED`. * * @generated from rpc google.longrunning.Operations.CancelOperation */ ⋮---- /** * Waits until the specified long-running operation is done or reaches at most * a specified timeout, returning the latest state. If the operation is * already done, the latest state is immediately returned. If the timeout * specified is greater than the default HTTP/RPC timeout, the HTTP/RPC * timeout is used. If the server does not support this method, it returns * `google.rpc.Code.UNIMPLEMENTED`. * Note that this method is on a best-effort basis. It may return the latest * state before the specified timeout (including immediately), meaning even an * immediate response is no guarantee that the operation is done. * * @generated from rpc google.longrunning.Operations.WaitOperation */ ⋮---- }> = /*@__PURE__*/ ⋮---- /** * Additional information regarding long-running operations. * In particular, this specifies the types that are returned from * long-running operations. * * Required for methods that return `google.longrunning.Operation`; invalid * otherwise. * * @generated from extension: google.longrunning.OperationInfo operation_info = 1049; */ export const operation_info: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/compiler/plugin_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd ⋮---- // Author: kenton@google.com (Kenton Varda) // // protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is // just a program that reads a CodeGeneratorRequest from stdin and writes a // CodeGeneratorResponse to stdout. // // Plugins written using C++ can use google/protobuf/compiler/plugin.h instead // of dealing with the raw protocol defined here. // // A plugin executable needs only to be placed somewhere in the path. The // plugin should be named "protoc-gen-$NAME", and will then be used when the // flag "--${NAME}_out" is passed to protoc. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/compiler/plugin.proto (package google.protobuf.compiler, syntax proto2) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { FileDescriptorProto, GeneratedCodeInfo } from "../descriptor_pb"; import { file_google_protobuf_descriptor } from "../descriptor_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/compiler/plugin.proto. */ export const file_google_protobuf_compiler_plugin: GenFile = /*@__PURE__*/ ⋮---- /** * The version number of protocol compiler. * * @generated from message google.protobuf.compiler.Version */ export type Version = Message<"google.protobuf.compiler.Version"> & { /** * @generated from field: optional int32 major = 1; */ major: number; /** * @generated from field: optional int32 minor = 2; */ minor: number; /** * @generated from field: optional int32 patch = 3; */ patch: number; /** * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should * be empty for mainline stable releases. * * @generated from field: optional string suffix = 4; */ suffix: string; }; ⋮---- /** * @generated from field: optional int32 major = 1; */ ⋮---- /** * @generated from field: optional int32 minor = 2; */ ⋮---- /** * @generated from field: optional int32 patch = 3; */ ⋮---- /** * A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should * be empty for mainline stable releases. * * @generated from field: optional string suffix = 4; */ ⋮---- /** * Describes the message google.protobuf.compiler.Version. * Use `create(VersionSchema)` to create a new message. */ export const VersionSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An encoded CodeGeneratorRequest is written to the plugin's stdin. * * @generated from message google.protobuf.compiler.CodeGeneratorRequest */ export type CodeGeneratorRequest = Message<"google.protobuf.compiler.CodeGeneratorRequest"> & { /** * The .proto files that were explicitly listed on the command-line. The * code generator should generate code only for these files. Each file's * descriptor will be included in proto_file, below. * * @generated from field: repeated string file_to_generate = 1; */ fileToGenerate: string[]; /** * The generator parameter passed on the command-line. * * @generated from field: optional string parameter = 2; */ parameter: string; /** * FileDescriptorProtos for all files in files_to_generate and everything * they import. The files will appear in topological order, so each file * appears before any file that imports it. * * Note: the files listed in files_to_generate will include runtime-retention * options only, but all other files will include source-retention options. * The source_file_descriptors field below is available in case you need * source-retention options for files_to_generate. * * protoc guarantees that all proto_files will be written after * the fields above, even though this is not technically guaranteed by the * protobuf wire format. This theoretically could allow a plugin to stream * in the FileDescriptorProtos and handle them one by one rather than read * the entire set into memory at once. However, as of this writing, this * is not similarly optimized on protoc's end -- it will store all fields in * memory at once before sending them to the plugin. * * Type names of fields and extensions in the FileDescriptorProto are always * fully qualified. * * @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15; */ protoFile: FileDescriptorProto[]; /** * File descriptors with all options, including source-retention options. * These descriptors are only provided for the files listed in * files_to_generate. * * @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; */ sourceFileDescriptors: FileDescriptorProto[]; /** * The version number of protocol compiler. * * @generated from field: optional google.protobuf.compiler.Version compiler_version = 3; */ compilerVersion?: Version; }; ⋮---- /** * The .proto files that were explicitly listed on the command-line. The * code generator should generate code only for these files. Each file's * descriptor will be included in proto_file, below. * * @generated from field: repeated string file_to_generate = 1; */ ⋮---- /** * The generator parameter passed on the command-line. * * @generated from field: optional string parameter = 2; */ ⋮---- /** * FileDescriptorProtos for all files in files_to_generate and everything * they import. The files will appear in topological order, so each file * appears before any file that imports it. * * Note: the files listed in files_to_generate will include runtime-retention * options only, but all other files will include source-retention options. * The source_file_descriptors field below is available in case you need * source-retention options for files_to_generate. * * protoc guarantees that all proto_files will be written after * the fields above, even though this is not technically guaranteed by the * protobuf wire format. This theoretically could allow a plugin to stream * in the FileDescriptorProtos and handle them one by one rather than read * the entire set into memory at once. However, as of this writing, this * is not similarly optimized on protoc's end -- it will store all fields in * memory at once before sending them to the plugin. * * Type names of fields and extensions in the FileDescriptorProto are always * fully qualified. * * @generated from field: repeated google.protobuf.FileDescriptorProto proto_file = 15; */ ⋮---- /** * File descriptors with all options, including source-retention options. * These descriptors are only provided for the files listed in * files_to_generate. * * @generated from field: repeated google.protobuf.FileDescriptorProto source_file_descriptors = 17; */ ⋮---- /** * The version number of protocol compiler. * * @generated from field: optional google.protobuf.compiler.Version compiler_version = 3; */ ⋮---- /** * Describes the message google.protobuf.compiler.CodeGeneratorRequest. * Use `create(CodeGeneratorRequestSchema)` to create a new message. */ export const CodeGeneratorRequestSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The plugin writes an encoded CodeGeneratorResponse to stdout. * * @generated from message google.protobuf.compiler.CodeGeneratorResponse */ export type CodeGeneratorResponse = Message<"google.protobuf.compiler.CodeGeneratorResponse"> & { /** * Error message. If non-empty, code generation failed. The plugin process * should exit with status code zero even if it reports an error in this way. * * This should be used to indicate errors in .proto files which prevent the * code generator from generating correct code. Errors which indicate a * problem in protoc itself -- such as the input CodeGeneratorRequest being * unparseable -- should be reported by writing a message to stderr and * exiting with a non-zero status code. * * @generated from field: optional string error = 1; */ error: string; /** * A bitmask of supported features that the code generator supports. * This is a bitwise "or" of values from the Feature enum. * * @generated from field: optional uint64 supported_features = 2; */ supportedFeatures: bigint; /** * The minimum edition this plugin supports. This will be treated as an * Edition enum, but we want to allow unknown values. It should be specified * according the edition enum value, *not* the edition number. Only takes * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. * * @generated from field: optional int32 minimum_edition = 3; */ minimumEdition: number; /** * The maximum edition this plugin supports. This will be treated as an * Edition enum, but we want to allow unknown values. It should be specified * according the edition enum value, *not* the edition number. Only takes * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. * * @generated from field: optional int32 maximum_edition = 4; */ maximumEdition: number; /** * @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; */ file: CodeGeneratorResponse_File[]; }; ⋮---- /** * Error message. If non-empty, code generation failed. The plugin process * should exit with status code zero even if it reports an error in this way. * * This should be used to indicate errors in .proto files which prevent the * code generator from generating correct code. Errors which indicate a * problem in protoc itself -- such as the input CodeGeneratorRequest being * unparseable -- should be reported by writing a message to stderr and * exiting with a non-zero status code. * * @generated from field: optional string error = 1; */ ⋮---- /** * A bitmask of supported features that the code generator supports. * This is a bitwise "or" of values from the Feature enum. * * @generated from field: optional uint64 supported_features = 2; */ ⋮---- /** * The minimum edition this plugin supports. This will be treated as an * Edition enum, but we want to allow unknown values. It should be specified * according the edition enum value, *not* the edition number. Only takes * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. * * @generated from field: optional int32 minimum_edition = 3; */ ⋮---- /** * The maximum edition this plugin supports. This will be treated as an * Edition enum, but we want to allow unknown values. It should be specified * according the edition enum value, *not* the edition number. Only takes * effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. * * @generated from field: optional int32 maximum_edition = 4; */ ⋮---- /** * @generated from field: repeated google.protobuf.compiler.CodeGeneratorResponse.File file = 15; */ ⋮---- /** * Describes the message google.protobuf.compiler.CodeGeneratorResponse. * Use `create(CodeGeneratorResponseSchema)` to create a new message. */ export const CodeGeneratorResponseSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Represents a single generated file. * * @generated from message google.protobuf.compiler.CodeGeneratorResponse.File */ export type CodeGeneratorResponse_File = Message<"google.protobuf.compiler.CodeGeneratorResponse.File"> & { /** * The file name, relative to the output directory. The name must not * contain "." or ".." components and must be relative, not be absolute (so, * the file cannot lie outside the output directory). "/" must be used as * the path separator, not "\". * * If the name is omitted, the content will be appended to the previous * file. This allows the generator to break large files into small chunks, * and allows the generated text to be streamed back to protoc so that large * files need not reside completely in memory at one time. Note that as of * this writing protoc does not optimize for this -- it will read the entire * CodeGeneratorResponse before writing files to disk. * * @generated from field: optional string name = 1; */ name: string; /** * If non-empty, indicates that the named file should already exist, and the * content here is to be inserted into that file at a defined insertion * point. This feature allows a code generator to extend the output * produced by another code generator. The original generator may provide * insertion points by placing special annotations in the file that look * like: * @@protoc_insertion_point(NAME) * The annotation can have arbitrary text before and after it on the line, * which allows it to be placed in a comment. NAME should be replaced with * an identifier naming the point -- this is what other generators will use * as the insertion_point. Code inserted at this point will be placed * immediately above the line containing the insertion point (thus multiple * insertions to the same point will come out in the order they were added). * The double-@ is intended to make it unlikely that the generated code * could contain things that look like insertion points by accident. * * For example, the C++ code generator places the following line in the * .pb.h files that it generates: * // @@protoc_insertion_point(namespace_scope) * This line appears within the scope of the file's package namespace, but * outside of any particular class. Another plugin can then specify the * insertion_point "namespace_scope" to generate additional classes or * other declarations that should be placed in this scope. * * Note that if the line containing the insertion point begins with * whitespace, the same whitespace will be added to every line of the * inserted text. This is useful for languages like Python, where * indentation matters. In these languages, the insertion point comment * should be indented the same amount as any inserted code will need to be * in order to work correctly in that context. * * The code generator that generates the initial file and the one which * inserts into it must both run as part of a single invocation of protoc. * Code generators are executed in the order in which they appear on the * command line. * * If |insertion_point| is present, |name| must also be present. * * @generated from field: optional string insertion_point = 2; */ insertionPoint: string; /** * The file contents. * * @generated from field: optional string content = 15; */ content: string; /** * Information describing the file content being inserted. If an insertion * point is used, this information will be appropriately offset and inserted * into the code generation metadata for the generated files. * * @generated from field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; */ generatedCodeInfo?: GeneratedCodeInfo; }; ⋮---- /** * The file name, relative to the output directory. The name must not * contain "." or ".." components and must be relative, not be absolute (so, * the file cannot lie outside the output directory). "/" must be used as * the path separator, not "\". * * If the name is omitted, the content will be appended to the previous * file. This allows the generator to break large files into small chunks, * and allows the generated text to be streamed back to protoc so that large * files need not reside completely in memory at one time. Note that as of * this writing protoc does not optimize for this -- it will read the entire * CodeGeneratorResponse before writing files to disk. * * @generated from field: optional string name = 1; */ ⋮---- /** * If non-empty, indicates that the named file should already exist, and the * content here is to be inserted into that file at a defined insertion * point. This feature allows a code generator to extend the output * produced by another code generator. The original generator may provide * insertion points by placing special annotations in the file that look * like: * @@protoc_insertion_point(NAME) * The annotation can have arbitrary text before and after it on the line, * which allows it to be placed in a comment. NAME should be replaced with * an identifier naming the point -- this is what other generators will use * as the insertion_point. Code inserted at this point will be placed * immediately above the line containing the insertion point (thus multiple * insertions to the same point will come out in the order they were added). * The double-@ is intended to make it unlikely that the generated code * could contain things that look like insertion points by accident. * * For example, the C++ code generator places the following line in the * .pb.h files that it generates: * // @@protoc_insertion_point(namespace_scope) * This line appears within the scope of the file's package namespace, but * outside of any particular class. Another plugin can then specify the * insertion_point "namespace_scope" to generate additional classes or * other declarations that should be placed in this scope. * * Note that if the line containing the insertion point begins with * whitespace, the same whitespace will be added to every line of the * inserted text. This is useful for languages like Python, where * indentation matters. In these languages, the insertion point comment * should be indented the same amount as any inserted code will need to be * in order to work correctly in that context. * * The code generator that generates the initial file and the one which * inserts into it must both run as part of a single invocation of protoc. * Code generators are executed in the order in which they appear on the * command line. * * If |insertion_point| is present, |name| must also be present. * * @generated from field: optional string insertion_point = 2; */ ⋮---- /** * The file contents. * * @generated from field: optional string content = 15; */ ⋮---- /** * Information describing the file content being inserted. If an insertion * point is used, this information will be appropriately offset and inserted * into the code generation metadata for the generated files. * * @generated from field: optional google.protobuf.GeneratedCodeInfo generated_code_info = 16; */ ⋮---- /** * Describes the message google.protobuf.compiler.CodeGeneratorResponse.File. * Use `create(CodeGeneratorResponse_FileSchema)` to create a new message. */ export const CodeGeneratorResponse_FileSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Sync with code_generator.h. * * @generated from enum google.protobuf.compiler.CodeGeneratorResponse.Feature */ export enum CodeGeneratorResponse_Feature { /** * @generated from enum value: FEATURE_NONE = 0; */ NONE = 0, /** * @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1; */ PROTO3_OPTIONAL = 1, /** * @generated from enum value: FEATURE_SUPPORTS_EDITIONS = 2; */ SUPPORTS_EDITIONS = 2, } ⋮---- /** * @generated from enum value: FEATURE_NONE = 0; */ ⋮---- /** * @generated from enum value: FEATURE_PROTO3_OPTIONAL = 1; */ ⋮---- /** * @generated from enum value: FEATURE_SUPPORTS_EDITIONS = 2; */ ⋮---- /** * Describes the enum google.protobuf.compiler.CodeGeneratorResponse.Feature. */ export const CodeGeneratorResponse_FeatureSchema: GenEnum = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/any_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/any.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/any.proto. */ export const file_google_protobuf_any: GenFile = /*@__PURE__*/ ⋮---- /** * `Any` contains an arbitrary serialized protocol buffer message along with a * URL that describes the type of the serialized message. * * Protobuf library provides support to pack/unpack Any values in the form * of utility functions or additional generated methods of the Any type. * * Example 1: Pack and unpack a message in C++. * * Foo foo = ...; * Any any; * any.PackFrom(foo); * ... * if (any.UnpackTo(&foo)) { * ... * } * * Example 2: Pack and unpack a message in Java. * * Foo foo = ...; * Any any = Any.pack(foo); * ... * if (any.is(Foo.class)) { * foo = any.unpack(Foo.class); * } * // or ... * if (any.isSameTypeAs(Foo.getDefaultInstance())) { * foo = any.unpack(Foo.getDefaultInstance()); * } * * Example 3: Pack and unpack a message in Python. * * foo = Foo(...) * any = Any() * any.Pack(foo) * ... * if any.Is(Foo.DESCRIPTOR): * any.Unpack(foo) * ... * * Example 4: Pack and unpack a message in Go * * foo := &pb.Foo{...} * any, err := anypb.New(foo) * if err != nil { * ... * } * ... * foo := &pb.Foo{} * if err := any.UnmarshalTo(foo); err != nil { * ... * } * * The pack methods provided by protobuf library will by default use * 'type.googleapis.com/full.type.name' as the type URL and the unpack * methods only use the fully qualified type name after the last '/' * in the type URL, for example "foo.bar.com/x/y.z" will yield type * name "y.z". * * JSON * ==== * The JSON representation of an `Any` value uses the regular * representation of the deserialized, embedded message, with an * additional field `@type` which contains the type URL. Example: * * package google.profile; * message Person { * string first_name = 1; * string last_name = 2; * } * * { * "@type": "type.googleapis.com/google.profile.Person", * "firstName": , * "lastName": * } * * If the embedded message type is well-known and has a custom JSON * representation, that representation will be embedded adding a field * `value` which holds the custom JSON in addition to the `@type` * field. Example (for message [google.protobuf.Duration][]): * * { * "@type": "type.googleapis.com/google.protobuf.Duration", * "value": "1.212s" * } * * * @generated from message google.protobuf.Any */ export type Any = Message<"google.protobuf.Any"> & { /** * A URL/resource name that uniquely identifies the type of the serialized * protocol buffer message. This string must contain at least * one "/" character. The last segment of the URL's path must represent * the fully qualified name of the type (as in * `path/google.protobuf.Duration`). The name should be in a canonical form * (e.g., leading "." is not accepted). * * In practice, teams usually precompile into the binary all types that they * expect it to use in the context of Any. However, for URLs which use the * scheme `http`, `https`, or no scheme, one can optionally set up a type * server that maps type URLs to message definitions as follows: * * * If no scheme is provided, `https` is assumed. * * An HTTP GET on the URL must yield a [google.protobuf.Type][] * value in binary format, or produce an error. * * Applications are allowed to cache lookup results based on the * URL, or have them precompiled into a binary to avoid any * lookup. Therefore, binary compatibility needs to be preserved * on changes to types. (Use versioned type names to manage * breaking changes.) * * Note: this functionality is not currently available in the official * protobuf release, and it is not used for type URLs beginning with * type.googleapis.com. As of May 2023, there are no widely used type server * implementations and no plans to implement one. * * Schemes other than `http`, `https` (or the empty scheme) might be * used with implementation specific semantics. * * * @generated from field: string type_url = 1; */ typeUrl: string; /** * Must be a valid serialized protocol buffer of the above specified type. * * @generated from field: bytes value = 2; */ value: Uint8Array; }; ⋮---- /** * A URL/resource name that uniquely identifies the type of the serialized * protocol buffer message. This string must contain at least * one "/" character. The last segment of the URL's path must represent * the fully qualified name of the type (as in * `path/google.protobuf.Duration`). The name should be in a canonical form * (e.g., leading "." is not accepted). * * In practice, teams usually precompile into the binary all types that they * expect it to use in the context of Any. However, for URLs which use the * scheme `http`, `https`, or no scheme, one can optionally set up a type * server that maps type URLs to message definitions as follows: * * * If no scheme is provided, `https` is assumed. * * An HTTP GET on the URL must yield a [google.protobuf.Type][] * value in binary format, or produce an error. * * Applications are allowed to cache lookup results based on the * URL, or have them precompiled into a binary to avoid any * lookup. Therefore, binary compatibility needs to be preserved * on changes to types. (Use versioned type names to manage * breaking changes.) * * Note: this functionality is not currently available in the official * protobuf release, and it is not used for type URLs beginning with * type.googleapis.com. As of May 2023, there are no widely used type server * implementations and no plans to implement one. * * Schemes other than `http`, `https` (or the empty scheme) might be * used with implementation specific semantics. * * * @generated from field: string type_url = 1; */ ⋮---- /** * Must be a valid serialized protocol buffer of the above specified type. * * @generated from field: bytes value = 2; */ ⋮---- /** * Describes the message google.protobuf.Any. * Use `create(AnySchema)` to create a new message. */ export const AnySchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/api_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/api.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { SourceContext } from "./source_context_pb"; import { file_google_protobuf_source_context } from "./source_context_pb"; import type { Option, Syntax } from "./type_pb"; import { file_google_protobuf_type } from "./type_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/api.proto. */ export const file_google_protobuf_api: GenFile = /*@__PURE__*/ ⋮---- /** * Api is a light-weight descriptor for an API Interface. * * Interfaces are also described as "protocol buffer services" in some contexts, * such as by the "service" keyword in a .proto file, but they are different * from API Services, which represent a concrete implementation of an interface * as opposed to simply a description of methods and bindings. They are also * sometimes simply referred to as "APIs" in other contexts, such as the name of * this message itself. See https://cloud.google.com/apis/design/glossary for * detailed terminology. * * New usages of this message as an alternative to ServiceDescriptorProto are * strongly discouraged. This message does not reliability preserve all * information necessary to model the schema and preserve semantics. Instead * make use of FileDescriptorSet which preserves the necessary information. * * @generated from message google.protobuf.Api */ export type Api = Message<"google.protobuf.Api"> & { /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. * * @generated from field: string name = 1; */ name: string; /** * The methods of this interface, in unspecified order. * * @generated from field: repeated google.protobuf.Method methods = 2; */ methods: Method[]; /** * Any metadata attached to the interface. * * @generated from field: repeated google.protobuf.Option options = 3; */ options: Option[]; /** * A version string for this interface. If specified, must have the form * `major-version.minor-version`, as in `1.10`. If the minor version is * omitted, it defaults to zero. If the entire version field is empty, the * major version is derived from the package name, as outlined below. If the * field is not empty, the version in the package name will be verified to be * consistent with what is provided here. * * The versioning schema uses [semantic * versioning](http://semver.org) where the major version number * indicates a breaking change and the minor version an additive, * non-breaking change. Both version numbers are signals to users * what to expect from different versions, and should be carefully * chosen based on the product plan. * * The major version is also reflected in the package name of the * interface, which must end in `v`, as in * `google.feature.v1`. For major versions 0 and 1, the suffix can * be omitted. Zero major versions must only be used for * experimental, non-GA interfaces. * * * @generated from field: string version = 4; */ version: string; /** * Source context for the protocol buffer service represented by this * message. * * @generated from field: google.protobuf.SourceContext source_context = 5; */ sourceContext?: SourceContext; /** * Included interfaces. See [Mixin][]. * * @generated from field: repeated google.protobuf.Mixin mixins = 6; */ mixins: Mixin[]; /** * The source syntax of the service. * * @generated from field: google.protobuf.Syntax syntax = 7; */ syntax: Syntax; /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. * * @generated from field: string edition = 8; */ edition: string; }; ⋮---- /** * The fully qualified name of this interface, including package name * followed by the interface's simple name. * * @generated from field: string name = 1; */ ⋮---- /** * The methods of this interface, in unspecified order. * * @generated from field: repeated google.protobuf.Method methods = 2; */ ⋮---- /** * Any metadata attached to the interface. * * @generated from field: repeated google.protobuf.Option options = 3; */ ⋮---- /** * A version string for this interface. If specified, must have the form * `major-version.minor-version`, as in `1.10`. If the minor version is * omitted, it defaults to zero. If the entire version field is empty, the * major version is derived from the package name, as outlined below. If the * field is not empty, the version in the package name will be verified to be * consistent with what is provided here. * * The versioning schema uses [semantic * versioning](http://semver.org) where the major version number * indicates a breaking change and the minor version an additive, * non-breaking change. Both version numbers are signals to users * what to expect from different versions, and should be carefully * chosen based on the product plan. * * The major version is also reflected in the package name of the * interface, which must end in `v`, as in * `google.feature.v1`. For major versions 0 and 1, the suffix can * be omitted. Zero major versions must only be used for * experimental, non-GA interfaces. * * * @generated from field: string version = 4; */ ⋮---- /** * Source context for the protocol buffer service represented by this * message. * * @generated from field: google.protobuf.SourceContext source_context = 5; */ ⋮---- /** * Included interfaces. See [Mixin][]. * * @generated from field: repeated google.protobuf.Mixin mixins = 6; */ ⋮---- /** * The source syntax of the service. * * @generated from field: google.protobuf.Syntax syntax = 7; */ ⋮---- /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. * * @generated from field: string edition = 8; */ ⋮---- /** * Describes the message google.protobuf.Api. * Use `create(ApiSchema)` to create a new message. */ export const ApiSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Method represents a method of an API interface. * * New usages of this message as an alternative to MethodDescriptorProto are * strongly discouraged. This message does not reliability preserve all * information necessary to model the schema and preserve semantics. Instead * make use of FileDescriptorSet which preserves the necessary information. * * @generated from message google.protobuf.Method */ export type Method = Message<"google.protobuf.Method"> & { /** * The simple name of this method. * * @generated from field: string name = 1; */ name: string; /** * A URL of the input message type. * * @generated from field: string request_type_url = 2; */ requestTypeUrl: string; /** * If true, the request is streamed. * * @generated from field: bool request_streaming = 3; */ requestStreaming: boolean; /** * The URL of the output message type. * * @generated from field: string response_type_url = 4; */ responseTypeUrl: string; /** * If true, the response is streamed. * * @generated from field: bool response_streaming = 5; */ responseStreaming: boolean; /** * Any metadata attached to the method. * * @generated from field: repeated google.protobuf.Option options = 6; */ options: Option[]; /** * The source syntax of this method. * * This field should be ignored, instead the syntax should be inherited from * Api. This is similar to Field and EnumValue. * * @generated from field: google.protobuf.Syntax syntax = 7 [deprecated = true]; * @deprecated */ syntax: Syntax; /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. * * This field should be ignored, instead the edition should be inherited from * Api. This is similar to Field and EnumValue. * * @generated from field: string edition = 8 [deprecated = true]; * @deprecated */ edition: string; }; ⋮---- /** * The simple name of this method. * * @generated from field: string name = 1; */ ⋮---- /** * A URL of the input message type. * * @generated from field: string request_type_url = 2; */ ⋮---- /** * If true, the request is streamed. * * @generated from field: bool request_streaming = 3; */ ⋮---- /** * The URL of the output message type. * * @generated from field: string response_type_url = 4; */ ⋮---- /** * If true, the response is streamed. * * @generated from field: bool response_streaming = 5; */ ⋮---- /** * Any metadata attached to the method. * * @generated from field: repeated google.protobuf.Option options = 6; */ ⋮---- /** * The source syntax of this method. * * This field should be ignored, instead the syntax should be inherited from * Api. This is similar to Field and EnumValue. * * @generated from field: google.protobuf.Syntax syntax = 7 [deprecated = true]; * @deprecated */ ⋮---- /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. * * This field should be ignored, instead the edition should be inherited from * Api. This is similar to Field and EnumValue. * * @generated from field: string edition = 8 [deprecated = true]; * @deprecated */ ⋮---- /** * Describes the message google.protobuf.Method. * Use `create(MethodSchema)` to create a new message. */ export const MethodSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Declares an API Interface to be included in this interface. The including * interface must redeclare all the methods from the included interface, but * documentation and options are inherited as follows: * * - If after comment and whitespace stripping, the documentation * string of the redeclared method is empty, it will be inherited * from the original method. * * - Each annotation belonging to the service config (http, * visibility) which is not set in the redeclared method will be * inherited. * * - If an http annotation is inherited, the path pattern will be * modified as follows. Any version prefix will be replaced by the * version of the including interface plus the [root][] path if * specified. * * Example of a simple mixin: * * package google.acl.v1; * service AccessControl { * // Get the underlying ACL object. * rpc GetAcl(GetAclRequest) returns (Acl) { * option (google.api.http).get = "/v1/{resource=**}:getAcl"; * } * } * * package google.storage.v2; * service Storage { * rpc GetAcl(GetAclRequest) returns (Acl); * * // Get a data record. * rpc GetData(GetDataRequest) returns (Data) { * option (google.api.http).get = "/v2/{resource=**}"; * } * } * * Example of a mixin configuration: * * apis: * - name: google.storage.v2.Storage * mixins: * - name: google.acl.v1.AccessControl * * The mixin construct implies that all methods in `AccessControl` are * also declared with same name and request/response types in * `Storage`. A documentation generator or annotation processor will * see the effective `Storage.GetAcl` method after inheriting * documentation and annotations as follows: * * service Storage { * // Get the underlying ACL object. * rpc GetAcl(GetAclRequest) returns (Acl) { * option (google.api.http).get = "/v2/{resource=**}:getAcl"; * } * ... * } * * Note how the version in the path pattern changed from `v1` to `v2`. * * If the `root` field in the mixin is specified, it should be a * relative path under which inherited HTTP paths are placed. Example: * * apis: * - name: google.storage.v2.Storage * mixins: * - name: google.acl.v1.AccessControl * root: acls * * This implies the following inherited HTTP annotation: * * service Storage { * // Get the underlying ACL object. * rpc GetAcl(GetAclRequest) returns (Acl) { * option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; * } * ... * } * * @generated from message google.protobuf.Mixin */ export type Mixin = Message<"google.protobuf.Mixin"> & { /** * The fully qualified name of the interface which is included. * * @generated from field: string name = 1; */ name: string; /** * If non-empty specifies a path under which inherited HTTP paths * are rooted. * * @generated from field: string root = 2; */ root: string; }; ⋮---- /** * The fully qualified name of the interface which is included. * * @generated from field: string name = 1; */ ⋮---- /** * If non-empty specifies a path under which inherited HTTP paths * are rooted. * * @generated from field: string root = 2; */ ⋮---- /** * Describes the message google.protobuf.Mixin. * Use `create(MixinSchema)` to create a new message. */ export const MixinSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/cpp_features_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2023 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/cpp_features.proto (package pb, syntax proto2) /* eslint-disable */ ⋮---- import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { FeatureSet } from "./descriptor_pb"; import { file_google_protobuf_descriptor } from "./descriptor_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/cpp_features.proto. */ export const file_google_protobuf_cpp_features: GenFile = /*@__PURE__*/ ⋮---- /** * @generated from message pb.CppFeatures */ export type CppFeatures = Message<"pb.CppFeatures"> & { /** * Whether or not to treat an enum field as closed. This option is only * applicable to enum fields, and will be removed in the future. It is * consistent with the legacy behavior of using proto3 enum types for proto2 * fields. * * @generated from field: optional bool legacy_closed_enum = 1; */ legacyClosedEnum: boolean; /** * @generated from field: optional pb.CppFeatures.StringType string_type = 2; */ stringType: CppFeatures_StringType; /** * @generated from field: optional bool enum_name_uses_string_view = 3; */ enumNameUsesStringView: boolean; }; ⋮---- /** * Whether or not to treat an enum field as closed. This option is only * applicable to enum fields, and will be removed in the future. It is * consistent with the legacy behavior of using proto3 enum types for proto2 * fields. * * @generated from field: optional bool legacy_closed_enum = 1; */ ⋮---- /** * @generated from field: optional pb.CppFeatures.StringType string_type = 2; */ ⋮---- /** * @generated from field: optional bool enum_name_uses_string_view = 3; */ ⋮---- /** * Describes the message pb.CppFeatures. * Use `create(CppFeaturesSchema)` to create a new message. */ export const CppFeaturesSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from enum pb.CppFeatures.StringType */ export enum CppFeatures_StringType { /** * @generated from enum value: STRING_TYPE_UNKNOWN = 0; */ STRING_TYPE_UNKNOWN = 0, /** * @generated from enum value: VIEW = 1; */ VIEW = 1, /** * @generated from enum value: CORD = 2; */ CORD = 2, /** * @generated from enum value: STRING = 3; */ STRING = 3, } ⋮---- /** * @generated from enum value: STRING_TYPE_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: VIEW = 1; */ ⋮---- /** * @generated from enum value: CORD = 2; */ ⋮---- /** * @generated from enum value: STRING = 3; */ ⋮---- /** * Describes the enum pb.CppFeatures.StringType. */ export const CppFeatures_StringTypeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from extension: optional pb.CppFeatures cpp = 1000; */ export const cpp: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/descriptor_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // Author: kenton@google.com (Kenton Varda) // Based on original Protocol Buffers design by // Sanjay Ghemawat, Jeff Dean, and others. // // The messages in this file describe the definitions found in .proto files. // A valid .proto file can be translated directly to a FileDescriptorProto // without any other information (e.g. without reading its imports). ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/descriptor.proto (package google.protobuf, syntax proto2) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/descriptor.proto. */ export const file_google_protobuf_descriptor: GenFile = /*@__PURE__*/ ⋮---- /** * The protocol compiler can output a FileDescriptorSet containing the .proto * files it parses. * * @generated from message google.protobuf.FileDescriptorSet */ export type FileDescriptorSet = Message<"google.protobuf.FileDescriptorSet"> & { /** * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1; */ file: FileDescriptorProto[]; }; ⋮---- /** * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1; */ ⋮---- /** * Describes the message google.protobuf.FileDescriptorSet. * Use `create(FileDescriptorSetSchema)` to create a new message. */ export const FileDescriptorSetSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes a complete .proto file. * * @generated from message google.protobuf.FileDescriptorProto */ export type FileDescriptorProto = Message<"google.protobuf.FileDescriptorProto"> & { /** * file name, relative to root of source tree * * @generated from field: optional string name = 1; */ name: string; /** * e.g. "foo", "foo.bar", etc. * * @generated from field: optional string package = 2; */ package: string; /** * Names of files imported by this file. * * @generated from field: repeated string dependency = 3; */ dependency: string[]; /** * Indexes of the public imported files in the dependency list above. * * @generated from field: repeated int32 public_dependency = 10; */ publicDependency: number[]; /** * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * * @generated from field: repeated int32 weak_dependency = 11; */ weakDependency: number[]; /** * Names of files imported by this file purely for the purpose of providing * option extensions. These are excluded from the dependency list above. * * @generated from field: repeated string option_dependency = 15; */ optionDependency: string[]; /** * All top-level definitions in this file. * * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4; */ messageType: DescriptorProto[]; /** * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; */ enumType: EnumDescriptorProto[]; /** * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6; */ service: ServiceDescriptorProto[]; /** * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7; */ extension: FieldDescriptorProto[]; /** * @generated from field: optional google.protobuf.FileOptions options = 8; */ options?: FileOptions; /** * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9; */ sourceCodeInfo?: SourceCodeInfo; /** * The syntax of the proto file. * The supported values are "proto2", "proto3", and "editions". * * If `edition` is present, this value must be "editions". * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional string syntax = 12; */ syntax: string; /** * The edition of the proto file. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.Edition edition = 14; */ edition: Edition; }; ⋮---- /** * file name, relative to root of source tree * * @generated from field: optional string name = 1; */ ⋮---- /** * e.g. "foo", "foo.bar", etc. * * @generated from field: optional string package = 2; */ ⋮---- /** * Names of files imported by this file. * * @generated from field: repeated string dependency = 3; */ ⋮---- /** * Indexes of the public imported files in the dependency list above. * * @generated from field: repeated int32 public_dependency = 10; */ ⋮---- /** * Indexes of the weak imported files in the dependency list. * For Google-internal migration only. Do not use. * * @generated from field: repeated int32 weak_dependency = 11; */ ⋮---- /** * Names of files imported by this file purely for the purpose of providing * option extensions. These are excluded from the dependency list above. * * @generated from field: repeated string option_dependency = 15; */ ⋮---- /** * All top-level definitions in this file. * * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4; */ ⋮---- /** * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5; */ ⋮---- /** * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6; */ ⋮---- /** * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7; */ ⋮---- /** * @generated from field: optional google.protobuf.FileOptions options = 8; */ ⋮---- /** * This field contains optional information about the original source code. * You may safely remove this entire field without harming runtime * functionality of the descriptors -- the information is needed only by * development tools. * * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9; */ ⋮---- /** * The syntax of the proto file. * The supported values are "proto2", "proto3", and "editions". * * If `edition` is present, this value must be "editions". * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional string syntax = 12; */ ⋮---- /** * The edition of the proto file. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.Edition edition = 14; */ ⋮---- /** * Describes the message google.protobuf.FileDescriptorProto. * Use `create(FileDescriptorProtoSchema)` to create a new message. */ export const FileDescriptorProtoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes a message type. * * @generated from message google.protobuf.DescriptorProto */ export type DescriptorProto = Message<"google.protobuf.DescriptorProto"> & { /** * @generated from field: optional string name = 1; */ name: string; /** * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2; */ field: FieldDescriptorProto[]; /** * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6; */ extension: FieldDescriptorProto[]; /** * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3; */ nestedType: DescriptorProto[]; /** * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; */ enumType: EnumDescriptorProto[]; /** * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ extensionRange: DescriptorProto_ExtensionRange[]; /** * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; */ oneofDecl: OneofDescriptorProto[]; /** * @generated from field: optional google.protobuf.MessageOptions options = 7; */ options?: MessageOptions; /** * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; */ reservedRange: DescriptorProto_ReservedRange[]; /** * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * * @generated from field: repeated string reserved_name = 10; */ reservedName: string[]; /** * Support for `export` and `local` keywords on enums. * * @generated from field: optional google.protobuf.SymbolVisibility visibility = 11; */ visibility: SymbolVisibility; }; ⋮---- /** * @generated from field: optional string name = 1; */ ⋮---- /** * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2; */ ⋮---- /** * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6; */ ⋮---- /** * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3; */ ⋮---- /** * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4; */ ⋮---- /** * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */ ⋮---- /** * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; */ ⋮---- /** * @generated from field: optional google.protobuf.MessageOptions options = 7; */ ⋮---- /** * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; */ ⋮---- /** * Reserved field names, which may not be used by fields in the same message. * A given name may only be reserved once. * * @generated from field: repeated string reserved_name = 10; */ ⋮---- /** * Support for `export` and `local` keywords on enums. * * @generated from field: optional google.protobuf.SymbolVisibility visibility = 11; */ ⋮---- /** * Describes the message google.protobuf.DescriptorProto. * Use `create(DescriptorProtoSchema)` to create a new message. */ export const DescriptorProtoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.DescriptorProto.ExtensionRange */ export type DescriptorProto_ExtensionRange = Message<"google.protobuf.DescriptorProto.ExtensionRange"> & { /** * Inclusive. * * @generated from field: optional int32 start = 1; */ start: number; /** * Exclusive. * * @generated from field: optional int32 end = 2; */ end: number; /** * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3; */ options?: ExtensionRangeOptions; }; ⋮---- /** * Inclusive. * * @generated from field: optional int32 start = 1; */ ⋮---- /** * Exclusive. * * @generated from field: optional int32 end = 2; */ ⋮---- /** * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3; */ ⋮---- /** * Describes the message google.protobuf.DescriptorProto.ExtensionRange. * Use `create(DescriptorProto_ExtensionRangeSchema)` to create a new message. */ export const DescriptorProto_ExtensionRangeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Range of reserved tag numbers. Reserved tag numbers may not be used by * fields or extension ranges in the same message. Reserved ranges may * not overlap. * * @generated from message google.protobuf.DescriptorProto.ReservedRange */ export type DescriptorProto_ReservedRange = Message<"google.protobuf.DescriptorProto.ReservedRange"> & { /** * Inclusive. * * @generated from field: optional int32 start = 1; */ start: number; /** * Exclusive. * * @generated from field: optional int32 end = 2; */ end: number; }; ⋮---- /** * Inclusive. * * @generated from field: optional int32 start = 1; */ ⋮---- /** * Exclusive. * * @generated from field: optional int32 end = 2; */ ⋮---- /** * Describes the message google.protobuf.DescriptorProto.ReservedRange. * Use `create(DescriptorProto_ReservedRangeSchema)` to create a new message. */ export const DescriptorProto_ReservedRangeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.ExtensionRangeOptions */ export type ExtensionRangeOptions = Message<"google.protobuf.ExtensionRangeOptions"> & { /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; /** * For external users: DO NOT USE. We are in the process of open sourcing * extension declaration and executing internal cleanups before it can be * used externally. * * @generated from field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; */ declaration: ExtensionRangeOptions_Declaration[]; /** * Any features defined in the specific edition. * * @generated from field: optional google.protobuf.FeatureSet features = 50; */ features?: FeatureSet; /** * The verification state of the range. * TODO: flip the default to DECLARATION once all empty ranges * are marked as UNVERIFIED. * * @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; */ verification: ExtensionRangeOptions_VerificationState; }; ⋮---- /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * For external users: DO NOT USE. We are in the process of open sourcing * extension declaration and executing internal cleanups before it can be * used externally. * * @generated from field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; */ ⋮---- /** * Any features defined in the specific edition. * * @generated from field: optional google.protobuf.FeatureSet features = 50; */ ⋮---- /** * The verification state of the range. * TODO: flip the default to DECLARATION once all empty ranges * are marked as UNVERIFIED. * * @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED]; */ ⋮---- /** * Describes the message google.protobuf.ExtensionRangeOptions. * Use `create(ExtensionRangeOptionsSchema)` to create a new message. */ export const ExtensionRangeOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.ExtensionRangeOptions.Declaration */ export type ExtensionRangeOptions_Declaration = Message<"google.protobuf.ExtensionRangeOptions.Declaration"> & { /** * The extension number declared within the extension range. * * @generated from field: optional int32 number = 1; */ number: number; /** * The fully-qualified name of the extension field. There must be a leading * dot in front of the full name. * * @generated from field: optional string full_name = 2; */ fullName: string; /** * The fully-qualified type name of the extension field. Unlike * Metadata.type, Declaration.type must have a leading dot for messages * and enums. * * @generated from field: optional string type = 3; */ type: string; /** * If true, indicates that the number is reserved in the extension range, * and any extension field with the number will fail to compile. Set this * when a declared extension field is deleted. * * @generated from field: optional bool reserved = 5; */ reserved: boolean; /** * If true, indicates that the extension must be defined as repeated. * Otherwise the extension must be defined as optional. * * @generated from field: optional bool repeated = 6; */ repeated: boolean; }; ⋮---- /** * The extension number declared within the extension range. * * @generated from field: optional int32 number = 1; */ ⋮---- /** * The fully-qualified name of the extension field. There must be a leading * dot in front of the full name. * * @generated from field: optional string full_name = 2; */ ⋮---- /** * The fully-qualified type name of the extension field. Unlike * Metadata.type, Declaration.type must have a leading dot for messages * and enums. * * @generated from field: optional string type = 3; */ ⋮---- /** * If true, indicates that the number is reserved in the extension range, * and any extension field with the number will fail to compile. Set this * when a declared extension field is deleted. * * @generated from field: optional bool reserved = 5; */ ⋮---- /** * If true, indicates that the extension must be defined as repeated. * Otherwise the extension must be defined as optional. * * @generated from field: optional bool repeated = 6; */ ⋮---- /** * Describes the message google.protobuf.ExtensionRangeOptions.Declaration. * Use `create(ExtensionRangeOptions_DeclarationSchema)` to create a new message. */ export const ExtensionRangeOptions_DeclarationSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The verification state of the extension range. * * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState */ export enum ExtensionRangeOptions_VerificationState { /** * All the extensions of the range must be declared. * * @generated from enum value: DECLARATION = 0; */ DECLARATION = 0, /** * @generated from enum value: UNVERIFIED = 1; */ UNVERIFIED = 1, } ⋮---- /** * All the extensions of the range must be declared. * * @generated from enum value: DECLARATION = 0; */ ⋮---- /** * @generated from enum value: UNVERIFIED = 1; */ ⋮---- /** * Describes the enum google.protobuf.ExtensionRangeOptions.VerificationState. */ export const ExtensionRangeOptions_VerificationStateSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Describes a field within a message. * * @generated from message google.protobuf.FieldDescriptorProto */ export type FieldDescriptorProto = Message<"google.protobuf.FieldDescriptorProto"> & { /** * @generated from field: optional string name = 1; */ name: string; /** * @generated from field: optional int32 number = 3; */ number: number; /** * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4; */ label: FieldDescriptorProto_Label; /** * If type_name is set, this need not be set. If both this and type_name * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. * * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5; */ type: FieldDescriptorProto_Type; /** * For message and enum types, this is the name of the type. If the name * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping * rules are used to find the type (i.e. first the nested types within this * message are searched, then within the parent, on up to the root * namespace). * * @generated from field: optional string type_name = 6; */ typeName: string; /** * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * * @generated from field: optional string extendee = 2; */ extendee: string; /** * For numeric types, contains the original text representation of the value. * For booleans, "true" or "false". * For strings, contains the default text contents (not escaped in any way). * For bytes, contains the C escaped value. All bytes >= 128 are escaped. * * @generated from field: optional string default_value = 7; */ defaultValue: string; /** * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * * @generated from field: optional int32 oneof_index = 9; */ oneofIndex: number; /** * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * * @generated from field: optional string json_name = 10; */ jsonName: string; /** * @generated from field: optional google.protobuf.FieldOptions options = 8; */ options?: FieldOptions; /** * If true, this is a proto3 "optional". When a proto3 field is optional, it * tracks presence regardless of field type. * * When proto3_optional is true, this field must belong to a oneof to signal * to old proto3 clients that presence is tracked for this field. This oneof * is known as a "synthetic" oneof, and this field must be its sole member * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs * exist in the descriptor only, and do not generate any API. Synthetic oneofs * must be ordered after all "real" oneofs. * * For message fields, proto3_optional doesn't create any semantic change, * since non-repeated message fields always track presence. However it still * indicates the semantic detail of whether the user wrote "optional" or not. * This can be useful for round-tripping the .proto file. For consistency we * give message fields a synthetic oneof also, even though it is not required * to track presence. This is especially important because the parser can't * tell if a field is a message or an enum, so it must always create a * synthetic oneof. * * Proto2 optional fields do not set this flag, because they already indicate * optional with `LABEL_OPTIONAL`. * * @generated from field: optional bool proto3_optional = 17; */ proto3Optional: boolean; }; ⋮---- /** * @generated from field: optional string name = 1; */ ⋮---- /** * @generated from field: optional int32 number = 3; */ ⋮---- /** * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4; */ ⋮---- /** * If type_name is set, this need not be set. If both this and type_name * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. * * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5; */ ⋮---- /** * For message and enum types, this is the name of the type. If the name * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping * rules are used to find the type (i.e. first the nested types within this * message are searched, then within the parent, on up to the root * namespace). * * @generated from field: optional string type_name = 6; */ ⋮---- /** * For extensions, this is the name of the type being extended. It is * resolved in the same manner as type_name. * * @generated from field: optional string extendee = 2; */ ⋮---- /** * For numeric types, contains the original text representation of the value. * For booleans, "true" or "false". * For strings, contains the default text contents (not escaped in any way). * For bytes, contains the C escaped value. All bytes >= 128 are escaped. * * @generated from field: optional string default_value = 7; */ ⋮---- /** * If set, gives the index of a oneof in the containing type's oneof_decl * list. This field is a member of that oneof. * * @generated from field: optional int32 oneof_index = 9; */ ⋮---- /** * JSON name of this field. The value is set by protocol compiler. If the * user has set a "json_name" option on this field, that option's value * will be used. Otherwise, it's deduced from the field's name by converting * it to camelCase. * * @generated from field: optional string json_name = 10; */ ⋮---- /** * @generated from field: optional google.protobuf.FieldOptions options = 8; */ ⋮---- /** * If true, this is a proto3 "optional". When a proto3 field is optional, it * tracks presence regardless of field type. * * When proto3_optional is true, this field must belong to a oneof to signal * to old proto3 clients that presence is tracked for this field. This oneof * is known as a "synthetic" oneof, and this field must be its sole member * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs * exist in the descriptor only, and do not generate any API. Synthetic oneofs * must be ordered after all "real" oneofs. * * For message fields, proto3_optional doesn't create any semantic change, * since non-repeated message fields always track presence. However it still * indicates the semantic detail of whether the user wrote "optional" or not. * This can be useful for round-tripping the .proto file. For consistency we * give message fields a synthetic oneof also, even though it is not required * to track presence. This is especially important because the parser can't * tell if a field is a message or an enum, so it must always create a * synthetic oneof. * * Proto2 optional fields do not set this flag, because they already indicate * optional with `LABEL_OPTIONAL`. * * @generated from field: optional bool proto3_optional = 17; */ ⋮---- /** * Describes the message google.protobuf.FieldDescriptorProto. * Use `create(FieldDescriptorProtoSchema)` to create a new message. */ export const FieldDescriptorProtoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FieldDescriptorProto.Type */ export enum FieldDescriptorProto_Type { /** * 0 is reserved for errors. * Order is weird for historical reasons. * * @generated from enum value: TYPE_DOUBLE = 1; */ DOUBLE = 1, /** * @generated from enum value: TYPE_FLOAT = 2; */ FLOAT = 2, /** * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if * negative values are likely. * * @generated from enum value: TYPE_INT64 = 3; */ INT64 = 3, /** * @generated from enum value: TYPE_UINT64 = 4; */ UINT64 = 4, /** * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if * negative values are likely. * * @generated from enum value: TYPE_INT32 = 5; */ INT32 = 5, /** * @generated from enum value: TYPE_FIXED64 = 6; */ FIXED64 = 6, /** * @generated from enum value: TYPE_FIXED32 = 7; */ FIXED32 = 7, /** * @generated from enum value: TYPE_BOOL = 8; */ BOOL = 8, /** * @generated from enum value: TYPE_STRING = 9; */ STRING = 9, /** * Tag-delimited aggregate. * Group type is deprecated and not supported after google.protobuf. However, Proto3 * implementations should still be able to parse the group wire format and * treat group fields as unknown fields. In Editions, the group wire format * can be enabled via the `message_encoding` feature. * * @generated from enum value: TYPE_GROUP = 10; */ GROUP = 10, /** * Length-delimited aggregate. * * @generated from enum value: TYPE_MESSAGE = 11; */ MESSAGE = 11, /** * New in version 2. * * @generated from enum value: TYPE_BYTES = 12; */ BYTES = 12, /** * @generated from enum value: TYPE_UINT32 = 13; */ UINT32 = 13, /** * @generated from enum value: TYPE_ENUM = 14; */ ENUM = 14, /** * @generated from enum value: TYPE_SFIXED32 = 15; */ SFIXED32 = 15, /** * @generated from enum value: TYPE_SFIXED64 = 16; */ SFIXED64 = 16, /** * Uses ZigZag encoding. * * @generated from enum value: TYPE_SINT32 = 17; */ SINT32 = 17, /** * Uses ZigZag encoding. * * @generated from enum value: TYPE_SINT64 = 18; */ SINT64 = 18, } ⋮---- /** * 0 is reserved for errors. * Order is weird for historical reasons. * * @generated from enum value: TYPE_DOUBLE = 1; */ ⋮---- /** * @generated from enum value: TYPE_FLOAT = 2; */ ⋮---- /** * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if * negative values are likely. * * @generated from enum value: TYPE_INT64 = 3; */ ⋮---- /** * @generated from enum value: TYPE_UINT64 = 4; */ ⋮---- /** * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if * negative values are likely. * * @generated from enum value: TYPE_INT32 = 5; */ ⋮---- /** * @generated from enum value: TYPE_FIXED64 = 6; */ ⋮---- /** * @generated from enum value: TYPE_FIXED32 = 7; */ ⋮---- /** * @generated from enum value: TYPE_BOOL = 8; */ ⋮---- /** * @generated from enum value: TYPE_STRING = 9; */ ⋮---- /** * Tag-delimited aggregate. * Group type is deprecated and not supported after google.protobuf. However, Proto3 * implementations should still be able to parse the group wire format and * treat group fields as unknown fields. In Editions, the group wire format * can be enabled via the `message_encoding` feature. * * @generated from enum value: TYPE_GROUP = 10; */ ⋮---- /** * Length-delimited aggregate. * * @generated from enum value: TYPE_MESSAGE = 11; */ ⋮---- /** * New in version 2. * * @generated from enum value: TYPE_BYTES = 12; */ ⋮---- /** * @generated from enum value: TYPE_UINT32 = 13; */ ⋮---- /** * @generated from enum value: TYPE_ENUM = 14; */ ⋮---- /** * @generated from enum value: TYPE_SFIXED32 = 15; */ ⋮---- /** * @generated from enum value: TYPE_SFIXED64 = 16; */ ⋮---- /** * Uses ZigZag encoding. * * @generated from enum value: TYPE_SINT32 = 17; */ ⋮---- /** * Uses ZigZag encoding. * * @generated from enum value: TYPE_SINT64 = 18; */ ⋮---- /** * Describes the enum google.protobuf.FieldDescriptorProto.Type. */ export const FieldDescriptorProto_TypeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FieldDescriptorProto.Label */ export enum FieldDescriptorProto_Label { /** * 0 is reserved for errors * * @generated from enum value: LABEL_OPTIONAL = 1; */ OPTIONAL = 1, /** * @generated from enum value: LABEL_REPEATED = 3; */ REPEATED = 3, /** * The required label is only allowed in google.protobuf. In proto3 and Editions * it's explicitly prohibited. In Editions, the `field_presence` feature * can be used to get this behavior. * * @generated from enum value: LABEL_REQUIRED = 2; */ REQUIRED = 2, } ⋮---- /** * 0 is reserved for errors * * @generated from enum value: LABEL_OPTIONAL = 1; */ ⋮---- /** * @generated from enum value: LABEL_REPEATED = 3; */ ⋮---- /** * The required label is only allowed in google.protobuf. In proto3 and Editions * it's explicitly prohibited. In Editions, the `field_presence` feature * can be used to get this behavior. * * @generated from enum value: LABEL_REQUIRED = 2; */ ⋮---- /** * Describes the enum google.protobuf.FieldDescriptorProto.Label. */ export const FieldDescriptorProto_LabelSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Describes a oneof. * * @generated from message google.protobuf.OneofDescriptorProto */ export type OneofDescriptorProto = Message<"google.protobuf.OneofDescriptorProto"> & { /** * @generated from field: optional string name = 1; */ name: string; /** * @generated from field: optional google.protobuf.OneofOptions options = 2; */ options?: OneofOptions; }; ⋮---- /** * @generated from field: optional string name = 1; */ ⋮---- /** * @generated from field: optional google.protobuf.OneofOptions options = 2; */ ⋮---- /** * Describes the message google.protobuf.OneofDescriptorProto. * Use `create(OneofDescriptorProtoSchema)` to create a new message. */ export const OneofDescriptorProtoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes an enum type. * * @generated from message google.protobuf.EnumDescriptorProto */ export type EnumDescriptorProto = Message<"google.protobuf.EnumDescriptorProto"> & { /** * @generated from field: optional string name = 1; */ name: string; /** * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2; */ value: EnumValueDescriptorProto[]; /** * @generated from field: optional google.protobuf.EnumOptions options = 3; */ options?: EnumOptions; /** * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; */ reservedRange: EnumDescriptorProto_EnumReservedRange[]; /** * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * * @generated from field: repeated string reserved_name = 5; */ reservedName: string[]; /** * Support for `export` and `local` keywords on enums. * * @generated from field: optional google.protobuf.SymbolVisibility visibility = 6; */ visibility: SymbolVisibility; }; ⋮---- /** * @generated from field: optional string name = 1; */ ⋮---- /** * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2; */ ⋮---- /** * @generated from field: optional google.protobuf.EnumOptions options = 3; */ ⋮---- /** * Range of reserved numeric values. Reserved numeric values may not be used * by enum values in the same enum declaration. Reserved ranges may not * overlap. * * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; */ ⋮---- /** * Reserved enum value names, which may not be reused. A given name may only * be reserved once. * * @generated from field: repeated string reserved_name = 5; */ ⋮---- /** * Support for `export` and `local` keywords on enums. * * @generated from field: optional google.protobuf.SymbolVisibility visibility = 6; */ ⋮---- /** * Describes the message google.protobuf.EnumDescriptorProto. * Use `create(EnumDescriptorProtoSchema)` to create a new message. */ export const EnumDescriptorProtoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Range of reserved numeric values. Reserved values may not be used by * entries in the same enum. Reserved ranges may not overlap. * * Note that this is distinct from DescriptorProto.ReservedRange in that it * is inclusive such that it can appropriately represent the entire int32 * domain. * * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange */ export type EnumDescriptorProto_EnumReservedRange = Message<"google.protobuf.EnumDescriptorProto.EnumReservedRange"> & { /** * Inclusive. * * @generated from field: optional int32 start = 1; */ start: number; /** * Inclusive. * * @generated from field: optional int32 end = 2; */ end: number; }; ⋮---- /** * Inclusive. * * @generated from field: optional int32 start = 1; */ ⋮---- /** * Inclusive. * * @generated from field: optional int32 end = 2; */ ⋮---- /** * Describes the message google.protobuf.EnumDescriptorProto.EnumReservedRange. * Use `create(EnumDescriptorProto_EnumReservedRangeSchema)` to create a new message. */ export const EnumDescriptorProto_EnumReservedRangeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes a value within an enum. * * @generated from message google.protobuf.EnumValueDescriptorProto */ export type EnumValueDescriptorProto = Message<"google.protobuf.EnumValueDescriptorProto"> & { /** * @generated from field: optional string name = 1; */ name: string; /** * @generated from field: optional int32 number = 2; */ number: number; /** * @generated from field: optional google.protobuf.EnumValueOptions options = 3; */ options?: EnumValueOptions; }; ⋮---- /** * @generated from field: optional string name = 1; */ ⋮---- /** * @generated from field: optional int32 number = 2; */ ⋮---- /** * @generated from field: optional google.protobuf.EnumValueOptions options = 3; */ ⋮---- /** * Describes the message google.protobuf.EnumValueDescriptorProto. * Use `create(EnumValueDescriptorProtoSchema)` to create a new message. */ export const EnumValueDescriptorProtoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes a service. * * @generated from message google.protobuf.ServiceDescriptorProto */ export type ServiceDescriptorProto = Message<"google.protobuf.ServiceDescriptorProto"> & { /** * @generated from field: optional string name = 1; */ name: string; /** * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2; */ method: MethodDescriptorProto[]; /** * @generated from field: optional google.protobuf.ServiceOptions options = 3; */ options?: ServiceOptions; }; ⋮---- /** * @generated from field: optional string name = 1; */ ⋮---- /** * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2; */ ⋮---- /** * @generated from field: optional google.protobuf.ServiceOptions options = 3; */ ⋮---- /** * Describes the message google.protobuf.ServiceDescriptorProto. * Use `create(ServiceDescriptorProtoSchema)` to create a new message. */ export const ServiceDescriptorProtoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes a method of a service. * * @generated from message google.protobuf.MethodDescriptorProto */ export type MethodDescriptorProto = Message<"google.protobuf.MethodDescriptorProto"> & { /** * @generated from field: optional string name = 1; */ name: string; /** * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * * @generated from field: optional string input_type = 2; */ inputType: string; /** * @generated from field: optional string output_type = 3; */ outputType: string; /** * @generated from field: optional google.protobuf.MethodOptions options = 4; */ options?: MethodOptions; /** * Identifies if client streams multiple client messages * * @generated from field: optional bool client_streaming = 5 [default = false]; */ clientStreaming: boolean; /** * Identifies if server streams multiple server messages * * @generated from field: optional bool server_streaming = 6 [default = false]; */ serverStreaming: boolean; }; ⋮---- /** * @generated from field: optional string name = 1; */ ⋮---- /** * Input and output type names. These are resolved in the same way as * FieldDescriptorProto.type_name, but must refer to a message type. * * @generated from field: optional string input_type = 2; */ ⋮---- /** * @generated from field: optional string output_type = 3; */ ⋮---- /** * @generated from field: optional google.protobuf.MethodOptions options = 4; */ ⋮---- /** * Identifies if client streams multiple client messages * * @generated from field: optional bool client_streaming = 5 [default = false]; */ ⋮---- /** * Identifies if server streams multiple server messages * * @generated from field: optional bool server_streaming = 6 [default = false]; */ ⋮---- /** * Describes the message google.protobuf.MethodDescriptorProto. * Use `create(MethodDescriptorProtoSchema)` to create a new message. */ export const MethodDescriptorProtoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.FileOptions */ export type FileOptions = Message<"google.protobuf.FileOptions"> & { /** * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * * @generated from field: optional string java_package = 1; */ javaPackage: string; /** * Controls the name of the wrapper Java class generated for the .proto file. * That class will always contain the .proto file's getDescriptor() method as * well as any top-level extensions defined in the .proto file. * If java_multiple_files is disabled, then all the other classes from the * .proto file will be nested inside the single wrapper outer class. * * @generated from field: optional string java_outer_classname = 8; */ javaOuterClassname: string; /** * If enabled, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the wrapper class * named by java_outer_classname. However, the wrapper class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * * @generated from field: optional bool java_multiple_files = 10 [default = false]; */ javaMultipleFiles: boolean; /** * This option does nothing. * * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; * @deprecated */ javaGenerateEqualsAndHash: boolean; /** * A proto2 file can set this to true to opt in to UTF-8 checking for Java, * which will throw an exception if invalid UTF-8 is parsed from the wire or * assigned to a string field. * * TODO: clarify exactly what kinds of field types this option * applies to, and update these docs accordingly. * * Proto3 files already perform these checks. Setting the option explicitly to * false has no effect: it cannot be used to opt proto3 files out of UTF-8 * checks. * * @generated from field: optional bool java_string_check_utf8 = 27 [default = false]; */ javaStringCheckUtf8: boolean; /** * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; */ optimizeFor: FileOptions_OptimizeMode; /** * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * * @generated from field: optional string go_package = 11; */ goPackage: string; /** * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * * @generated from field: optional bool cc_generic_services = 16 [default = false]; */ ccGenericServices: boolean; /** * @generated from field: optional bool java_generic_services = 17 [default = false]; */ javaGenericServices: boolean; /** * @generated from field: optional bool py_generic_services = 18 [default = false]; */ pyGenericServices: boolean; /** * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * * @generated from field: optional bool deprecated = 23 [default = false]; */ deprecated: boolean; /** * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * * @generated from field: optional bool cc_enable_arenas = 31 [default = true]; */ ccEnableArenas: boolean; /** * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * * @generated from field: optional string objc_class_prefix = 36; */ objcClassPrefix: string; /** * Namespace for generated classes; defaults to the package. * * @generated from field: optional string csharp_namespace = 37; */ csharpNamespace: string; /** * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * * @generated from field: optional string swift_prefix = 39; */ swiftPrefix: string; /** * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * * @generated from field: optional string php_class_prefix = 40; */ phpClassPrefix: string; /** * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * * @generated from field: optional string php_namespace = 41; */ phpNamespace: string; /** * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * * @generated from field: optional string php_metadata_namespace = 44; */ phpMetadataNamespace: string; /** * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * * @generated from field: optional string ruby_package = 45; */ rubyPackage: string; /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 50; */ features?: FeatureSet; /** * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; }; ⋮---- /** * Sets the Java package where classes generated from this .proto will be * placed. By default, the proto package is used, but this is often * inappropriate because proto packages do not normally start with backwards * domain names. * * @generated from field: optional string java_package = 1; */ ⋮---- /** * Controls the name of the wrapper Java class generated for the .proto file. * That class will always contain the .proto file's getDescriptor() method as * well as any top-level extensions defined in the .proto file. * If java_multiple_files is disabled, then all the other classes from the * .proto file will be nested inside the single wrapper outer class. * * @generated from field: optional string java_outer_classname = 8; */ ⋮---- /** * If enabled, then the Java code generator will generate a separate .java * file for each top-level message, enum, and service defined in the .proto * file. Thus, these types will *not* be nested inside the wrapper class * named by java_outer_classname. However, the wrapper class will still be * generated to contain the file's getDescriptor() method as well as any * top-level extensions defined in the file. * * @generated from field: optional bool java_multiple_files = 10 [default = false]; */ ⋮---- /** * This option does nothing. * * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true]; * @deprecated */ ⋮---- /** * A proto2 file can set this to true to opt in to UTF-8 checking for Java, * which will throw an exception if invalid UTF-8 is parsed from the wire or * assigned to a string field. * * TODO: clarify exactly what kinds of field types this option * applies to, and update these docs accordingly. * * Proto3 files already perform these checks. Setting the option explicitly to * false has no effect: it cannot be used to opt proto3 files out of UTF-8 * checks. * * @generated from field: optional bool java_string_check_utf8 = 27 [default = false]; */ ⋮---- /** * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED]; */ ⋮---- /** * Sets the Go package where structs generated from this .proto will be * placed. If omitted, the Go package will be derived from the following: * - The basename of the package import path, if provided. * - Otherwise, the package statement in the .proto file, if present. * - Otherwise, the basename of the .proto file, without extension. * * @generated from field: optional string go_package = 11; */ ⋮---- /** * Should generic services be generated in each language? "Generic" services * are not specific to any particular RPC system. They are generated by the * main code generators in each language (without additional plugins). * Generic services were the only kind of service generation supported by * early versions of google.protobuf. * * Generic services are now considered deprecated in favor of using plugins * that generate code specific to your particular RPC system. Therefore, * these default to false. Old code which depends on generic services should * explicitly set them to true. * * @generated from field: optional bool cc_generic_services = 16 [default = false]; */ ⋮---- /** * @generated from field: optional bool java_generic_services = 17 [default = false]; */ ⋮---- /** * @generated from field: optional bool py_generic_services = 18 [default = false]; */ ⋮---- /** * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations * for everything in the file, or it will be completely ignored; in the very * least, this is a formalization for deprecating files. * * @generated from field: optional bool deprecated = 23 [default = false]; */ ⋮---- /** * Enables the use of arenas for the proto messages in this file. This applies * only to generated classes for C++. * * @generated from field: optional bool cc_enable_arenas = 31 [default = true]; */ ⋮---- /** * Sets the objective c class prefix which is prepended to all objective c * generated classes from this .proto. There is no default. * * @generated from field: optional string objc_class_prefix = 36; */ ⋮---- /** * Namespace for generated classes; defaults to the package. * * @generated from field: optional string csharp_namespace = 37; */ ⋮---- /** * By default Swift generators will take the proto package and CamelCase it * replacing '.' with underscore and use that to prefix the types/symbols * defined. When this options is provided, they will use this value instead * to prefix the types/symbols defined. * * @generated from field: optional string swift_prefix = 39; */ ⋮---- /** * Sets the php class prefix which is prepended to all php generated classes * from this .proto. Default is empty. * * @generated from field: optional string php_class_prefix = 40; */ ⋮---- /** * Use this option to change the namespace of php generated classes. Default * is empty. When this option is empty, the package name will be used for * determining the namespace. * * @generated from field: optional string php_namespace = 41; */ ⋮---- /** * Use this option to change the namespace of php generated metadata classes. * Default is empty. When this option is empty, the proto file name will be * used for determining the namespace. * * @generated from field: optional string php_metadata_namespace = 44; */ ⋮---- /** * Use this option to change the package of ruby generated classes. Default * is empty. When this option is not set, the package name will be used for * determining the ruby package. * * @generated from field: optional string ruby_package = 45; */ ⋮---- /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 50; */ ⋮---- /** * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * Describes the message google.protobuf.FileOptions. * Use `create(FileOptionsSchema)` to create a new message. */ export const FileOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Generated classes can be optimized for speed or code size. * * @generated from enum google.protobuf.FileOptions.OptimizeMode */ export enum FileOptions_OptimizeMode { /** * Generate complete code for parsing, serialization, * * @generated from enum value: SPEED = 1; */ SPEED = 1, /** * etc. * * Use ReflectionOps to implement these methods. * * @generated from enum value: CODE_SIZE = 2; */ CODE_SIZE = 2, /** * Generate code using MessageLite and the lite runtime. * * @generated from enum value: LITE_RUNTIME = 3; */ LITE_RUNTIME = 3, } ⋮---- /** * Generate complete code for parsing, serialization, * * @generated from enum value: SPEED = 1; */ ⋮---- /** * etc. * * Use ReflectionOps to implement these methods. * * @generated from enum value: CODE_SIZE = 2; */ ⋮---- /** * Generate code using MessageLite and the lite runtime. * * @generated from enum value: LITE_RUNTIME = 3; */ ⋮---- /** * Describes the enum google.protobuf.FileOptions.OptimizeMode. */ export const FileOptions_OptimizeModeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.MessageOptions */ export type MessageOptions = Message<"google.protobuf.MessageOptions"> & { /** * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * * @generated from field: optional bool message_set_wire_format = 1 [default = false]; */ messageSetWireFormat: boolean; /** * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false]; */ noStandardDescriptorAccessor: boolean; /** * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * * @generated from field: optional bool deprecated = 3 [default = false]; */ deprecated: boolean; /** * Whether the message is an automatically generated map entry type for the * maps field. * * For maps fields: * map map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * * @generated from field: optional bool map_entry = 7; */ mapEntry: boolean; /** * Enable the legacy handling of JSON field name conflicts. This lowercases * and strips underscored from the fields before comparison in proto3 only. * The new behavior takes `json_name` into account and applies to proto2 as * well. * * This should only be used as a temporary measure against broken builds due * to the change in behavior for JSON field name conflicts. * * TODO This is legacy behavior we plan to remove once downstream * teams have had time to migrate. * * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; * @deprecated */ deprecatedLegacyJsonFieldConflicts: boolean; /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 12; */ features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; }; ⋮---- /** * Set true to use the old proto1 MessageSet wire format for extensions. * This is provided for backwards-compatibility with the MessageSet wire * format. You should not use this for any other reason: It's less * efficient, has fewer features, and is more complicated. * * The message must be defined exactly as follows: * message Foo { * option message_set_wire_format = true; * extensions 4 to max; * } * Note that the message cannot have any defined fields; MessageSets only * have extensions. * * All extensions of your type must be singular messages; e.g. they cannot * be int32s, enums, or repeated messages. * * Because this is an option, the above two restrictions are not enforced by * the protocol compiler. * * @generated from field: optional bool message_set_wire_format = 1 [default = false]; */ ⋮---- /** * Disables the generation of the standard "descriptor()" accessor, which can * conflict with a field of the same name. This is meant to make migration * from proto1 easier; new code should avoid fields named "descriptor". * * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false]; */ ⋮---- /** * Is this message deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the message, or it will be completely ignored; in the very least, * this is a formalization for deprecating messages. * * @generated from field: optional bool deprecated = 3 [default = false]; */ ⋮---- /** * Whether the message is an automatically generated map entry type for the * maps field. * * For maps fields: * map map_field = 1; * The parsed descriptor looks like: * message MapFieldEntry { * option map_entry = true; * optional KeyType key = 1; * optional ValueType value = 2; * } * repeated MapFieldEntry map_field = 1; * * Implementations may choose not to generate the map_entry=true message, but * use a native map in the target language to hold the keys and values. * The reflection APIs in such implementations still need to work as * if the field is a repeated message field. * * NOTE: Do not set the option in .proto files. Always use the maps syntax * instead. The option should only be implicitly set by the proto compiler * parser. * * @generated from field: optional bool map_entry = 7; */ ⋮---- /** * Enable the legacy handling of JSON field name conflicts. This lowercases * and strips underscored from the fields before comparison in proto3 only. * The new behavior takes `json_name` into account and applies to proto2 as * well. * * This should only be used as a temporary measure against broken builds due * to the change in behavior for JSON field name conflicts. * * TODO This is legacy behavior we plan to remove once downstream * teams have had time to migrate. * * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; * @deprecated */ ⋮---- /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 12; */ ⋮---- /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * Describes the message google.protobuf.MessageOptions. * Use `create(MessageOptionsSchema)` to create a new message. */ export const MessageOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.FieldOptions */ export type FieldOptions = Message<"google.protobuf.FieldOptions"> & { /** * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is only implemented to support use of * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of * type "bytes" in the open source release. * TODO: make ctype actually deprecated. * * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; */ ctype: FieldOptions_CType; /** * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. This option is prohibited in * Editions, but the `repeated_field_encoding` feature can be used to control * the behavior. * * @generated from field: optional bool packed = 2; */ packed: boolean; /** * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; */ jstype: FieldOptions_JSType; /** * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * Note that lazy message fields are still eagerly verified to check * ill-formed wireformat or missing required fields. Calling IsInitialized() * on the outer message would fail if the inner message has missing required * fields. Failed verification would result in parsing failure (except when * uninitialized messages are acceptable). * * @generated from field: optional bool lazy = 5 [default = false]; */ lazy: boolean; /** * unverified_lazy does no correctness checks on the byte stream. This should * only be used where lazy with verification is prohibitive for performance * reasons. * * @generated from field: optional bool unverified_lazy = 15 [default = false]; */ unverifiedLazy: boolean; /** * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * * @generated from field: optional bool deprecated = 3 [default = false]; */ deprecated: boolean; /** * DEPRECATED. DO NOT USE! * For Google-internal migration only. Do not use. * * @generated from field: optional bool weak = 10 [default = false, deprecated = true]; * @deprecated */ weak: boolean; /** * Indicate that the field value should not be printed out when using debug * formats, e.g. when the field contains sensitive credentials. * * @generated from field: optional bool debug_redact = 16 [default = false]; */ debugRedact: boolean; /** * @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; */ retention: FieldOptions_OptionRetention; /** * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; */ targets: FieldOptions_OptionTargetType[]; /** * @generated from field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; */ editionDefaults: FieldOptions_EditionDefault[]; /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 21; */ features?: FeatureSet; /** * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; */ featureSupport?: FieldOptions_FeatureSupport; /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; }; ⋮---- /** * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead. * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific * options below. This option is only implemented to support use of * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of * type "bytes" in the open source release. * TODO: make ctype actually deprecated. * * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING]; */ ⋮---- /** * The packed option can be enabled for repeated primitive fields to enable * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to * false will avoid using packed encoding. This option is prohibited in * Editions, but the `repeated_field_encoding` feature can be used to control * the behavior. * * @generated from field: optional bool packed = 2; */ ⋮---- /** * The jstype option determines the JavaScript type used for values of the * field. The option is permitted only for 64 bit integral and fixed types * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING * is represented as JavaScript string, which avoids loss of precision that * can happen when a large value is converted to a floating point JavaScript. * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to * use the JavaScript "number" type. The behavior of the default option * JS_NORMAL is implementation dependent. * * This option is an enum to permit additional types to be added, e.g. * goog.math.Integer. * * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL]; */ ⋮---- /** * Should this field be parsed lazily? Lazy applies only to message-type * fields. It means that when the outer message is initially parsed, the * inner message's contents will not be parsed but instead stored in encoded * form. The inner message will actually be parsed when it is first accessed. * * This is only a hint. Implementations are free to choose whether to use * eager or lazy parsing regardless of the value of this option. However, * setting this option true suggests that the protocol author believes that * using lazy parsing on this field is worth the additional bookkeeping * overhead typically needed to implement it. * * This option does not affect the public interface of any generated code; * all method signatures remain the same. Furthermore, thread-safety of the * interface is not affected by this option; const methods remain safe to * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * * Note that lazy message fields are still eagerly verified to check * ill-formed wireformat or missing required fields. Calling IsInitialized() * on the outer message would fail if the inner message has missing required * fields. Failed verification would result in parsing failure (except when * uninitialized messages are acceptable). * * @generated from field: optional bool lazy = 5 [default = false]; */ ⋮---- /** * unverified_lazy does no correctness checks on the byte stream. This should * only be used where lazy with verification is prohibitive for performance * reasons. * * @generated from field: optional bool unverified_lazy = 15 [default = false]; */ ⋮---- /** * Is this field deprecated? * Depending on the target platform, this can emit Deprecated annotations * for accessors, or it will be completely ignored; in the very least, this * is a formalization for deprecating fields. * * @generated from field: optional bool deprecated = 3 [default = false]; */ ⋮---- /** * DEPRECATED. DO NOT USE! * For Google-internal migration only. Do not use. * * @generated from field: optional bool weak = 10 [default = false, deprecated = true]; * @deprecated */ ⋮---- /** * Indicate that the field value should not be printed out when using debug * formats, e.g. when the field contains sensitive credentials. * * @generated from field: optional bool debug_redact = 16 [default = false]; */ ⋮---- /** * @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; */ ⋮---- /** * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; */ ⋮---- /** * @generated from field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; */ ⋮---- /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 21; */ ⋮---- /** * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; */ ⋮---- /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * Describes the message google.protobuf.FieldOptions. * Use `create(FieldOptionsSchema)` to create a new message. */ export const FieldOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.FieldOptions.EditionDefault */ export type FieldOptions_EditionDefault = Message<"google.protobuf.FieldOptions.EditionDefault"> & { /** * @generated from field: optional google.protobuf.Edition edition = 3; */ edition: Edition; /** * Textproto value. * * @generated from field: optional string value = 2; */ value: string; }; ⋮---- /** * @generated from field: optional google.protobuf.Edition edition = 3; */ ⋮---- /** * Textproto value. * * @generated from field: optional string value = 2; */ ⋮---- /** * Describes the message google.protobuf.FieldOptions.EditionDefault. * Use `create(FieldOptions_EditionDefaultSchema)` to create a new message. */ export const FieldOptions_EditionDefaultSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Information about the support window of a feature. * * @generated from message google.protobuf.FieldOptions.FeatureSupport */ export type FieldOptions_FeatureSupport = Message<"google.protobuf.FieldOptions.FeatureSupport"> & { /** * The edition that this feature was first available in. In editions * earlier than this one, the default assigned to EDITION_LEGACY will be * used, and proto files will not be able to override it. * * @generated from field: optional google.protobuf.Edition edition_introduced = 1; */ editionIntroduced: Edition; /** * The edition this feature becomes deprecated in. Using this after this * edition may trigger warnings. * * @generated from field: optional google.protobuf.Edition edition_deprecated = 2; */ editionDeprecated: Edition; /** * The deprecation warning text if this feature is used after the edition it * was marked deprecated in. * * @generated from field: optional string deprecation_warning = 3; */ deprecationWarning: string; /** * The edition this feature is no longer available in. In editions after * this one, the last default assigned will be used, and proto files will * not be able to override it. * * @generated from field: optional google.protobuf.Edition edition_removed = 4; */ editionRemoved: Edition; }; ⋮---- /** * The edition that this feature was first available in. In editions * earlier than this one, the default assigned to EDITION_LEGACY will be * used, and proto files will not be able to override it. * * @generated from field: optional google.protobuf.Edition edition_introduced = 1; */ ⋮---- /** * The edition this feature becomes deprecated in. Using this after this * edition may trigger warnings. * * @generated from field: optional google.protobuf.Edition edition_deprecated = 2; */ ⋮---- /** * The deprecation warning text if this feature is used after the edition it * was marked deprecated in. * * @generated from field: optional string deprecation_warning = 3; */ ⋮---- /** * The edition this feature is no longer available in. In editions after * this one, the last default assigned will be used, and proto files will * not be able to override it. * * @generated from field: optional google.protobuf.Edition edition_removed = 4; */ ⋮---- /** * Describes the message google.protobuf.FieldOptions.FeatureSupport. * Use `create(FieldOptions_FeatureSupportSchema)` to create a new message. */ export const FieldOptions_FeatureSupportSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FieldOptions.CType */ export enum FieldOptions_CType { /** * Default mode. * * @generated from enum value: STRING = 0; */ STRING = 0, /** * The option [ctype=CORD] may be applied to a non-repeated field of type * "bytes". It indicates that in C++, the data should be stored in a Cord * instead of a string. For very large strings, this may reduce memory * fragmentation. It may also allow better performance when parsing from a * Cord, or when parsing with aliasing enabled, as the parsed Cord may then * alias the original buffer. * * @generated from enum value: CORD = 1; */ CORD = 1, /** * @generated from enum value: STRING_PIECE = 2; */ STRING_PIECE = 2, } ⋮---- /** * Default mode. * * @generated from enum value: STRING = 0; */ ⋮---- /** * The option [ctype=CORD] may be applied to a non-repeated field of type * "bytes". It indicates that in C++, the data should be stored in a Cord * instead of a string. For very large strings, this may reduce memory * fragmentation. It may also allow better performance when parsing from a * Cord, or when parsing with aliasing enabled, as the parsed Cord may then * alias the original buffer. * * @generated from enum value: CORD = 1; */ ⋮---- /** * @generated from enum value: STRING_PIECE = 2; */ ⋮---- /** * Describes the enum google.protobuf.FieldOptions.CType. */ export const FieldOptions_CTypeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FieldOptions.JSType */ export enum FieldOptions_JSType { /** * Use the default type. * * @generated from enum value: JS_NORMAL = 0; */ JS_NORMAL = 0, /** * Use JavaScript strings. * * @generated from enum value: JS_STRING = 1; */ JS_STRING = 1, /** * Use JavaScript numbers. * * @generated from enum value: JS_NUMBER = 2; */ JS_NUMBER = 2, } ⋮---- /** * Use the default type. * * @generated from enum value: JS_NORMAL = 0; */ ⋮---- /** * Use JavaScript strings. * * @generated from enum value: JS_STRING = 1; */ ⋮---- /** * Use JavaScript numbers. * * @generated from enum value: JS_NUMBER = 2; */ ⋮---- /** * Describes the enum google.protobuf.FieldOptions.JSType. */ export const FieldOptions_JSTypeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * If set to RETENTION_SOURCE, the option will be omitted from the binary. * * @generated from enum google.protobuf.FieldOptions.OptionRetention */ export enum FieldOptions_OptionRetention { /** * @generated from enum value: RETENTION_UNKNOWN = 0; */ RETENTION_UNKNOWN = 0, /** * @generated from enum value: RETENTION_RUNTIME = 1; */ RETENTION_RUNTIME = 1, /** * @generated from enum value: RETENTION_SOURCE = 2; */ RETENTION_SOURCE = 2, } ⋮---- /** * @generated from enum value: RETENTION_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: RETENTION_RUNTIME = 1; */ ⋮---- /** * @generated from enum value: RETENTION_SOURCE = 2; */ ⋮---- /** * Describes the enum google.protobuf.FieldOptions.OptionRetention. */ export const FieldOptions_OptionRetentionSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * This indicates the types of entities that the field may apply to when used * as an option. If it is unset, then the field may be freely used as an * option on any kind of entity. * * @generated from enum google.protobuf.FieldOptions.OptionTargetType */ export enum FieldOptions_OptionTargetType { /** * @generated from enum value: TARGET_TYPE_UNKNOWN = 0; */ TARGET_TYPE_UNKNOWN = 0, /** * @generated from enum value: TARGET_TYPE_FILE = 1; */ TARGET_TYPE_FILE = 1, /** * @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2; */ TARGET_TYPE_EXTENSION_RANGE = 2, /** * @generated from enum value: TARGET_TYPE_MESSAGE = 3; */ TARGET_TYPE_MESSAGE = 3, /** * @generated from enum value: TARGET_TYPE_FIELD = 4; */ TARGET_TYPE_FIELD = 4, /** * @generated from enum value: TARGET_TYPE_ONEOF = 5; */ TARGET_TYPE_ONEOF = 5, /** * @generated from enum value: TARGET_TYPE_ENUM = 6; */ TARGET_TYPE_ENUM = 6, /** * @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7; */ TARGET_TYPE_ENUM_ENTRY = 7, /** * @generated from enum value: TARGET_TYPE_SERVICE = 8; */ TARGET_TYPE_SERVICE = 8, /** * @generated from enum value: TARGET_TYPE_METHOD = 9; */ TARGET_TYPE_METHOD = 9, } ⋮---- /** * @generated from enum value: TARGET_TYPE_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_FILE = 1; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_MESSAGE = 3; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_FIELD = 4; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_ONEOF = 5; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_ENUM = 6; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_SERVICE = 8; */ ⋮---- /** * @generated from enum value: TARGET_TYPE_METHOD = 9; */ ⋮---- /** * Describes the enum google.protobuf.FieldOptions.OptionTargetType. */ export const FieldOptions_OptionTargetTypeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.OneofOptions */ export type OneofOptions = Message<"google.protobuf.OneofOptions"> & { /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 1; */ features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; }; ⋮---- /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 1; */ ⋮---- /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * Describes the message google.protobuf.OneofOptions. * Use `create(OneofOptionsSchema)` to create a new message. */ export const OneofOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.EnumOptions */ export type EnumOptions = Message<"google.protobuf.EnumOptions"> & { /** * Set this option to true to allow mapping different tag names to the same * value. * * @generated from field: optional bool allow_alias = 2; */ allowAlias: boolean; /** * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * * @generated from field: optional bool deprecated = 3 [default = false]; */ deprecated: boolean; /** * Enable the legacy handling of JSON field name conflicts. This lowercases * and strips underscored from the fields before comparison in proto3 only. * The new behavior takes `json_name` into account and applies to proto2 as * well. * TODO Remove this legacy behavior once downstream teams have * had time to migrate. * * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; * @deprecated */ deprecatedLegacyJsonFieldConflicts: boolean; /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 7; */ features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; }; ⋮---- /** * Set this option to true to allow mapping different tag names to the same * value. * * @generated from field: optional bool allow_alias = 2; */ ⋮---- /** * Is this enum deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum, or it will be completely ignored; in the very least, this * is a formalization for deprecating enums. * * @generated from field: optional bool deprecated = 3 [default = false]; */ ⋮---- /** * Enable the legacy handling of JSON field name conflicts. This lowercases * and strips underscored from the fields before comparison in proto3 only. * The new behavior takes `json_name` into account and applies to proto2 as * well. * TODO Remove this legacy behavior once downstream teams have * had time to migrate. * * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; * @deprecated */ ⋮---- /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 7; */ ⋮---- /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * Describes the message google.protobuf.EnumOptions. * Use `create(EnumOptionsSchema)` to create a new message. */ export const EnumOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.EnumValueOptions */ export type EnumValueOptions = Message<"google.protobuf.EnumValueOptions"> & { /** * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * * @generated from field: optional bool deprecated = 1 [default = false]; */ deprecated: boolean; /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 2; */ features?: FeatureSet; /** * Indicate that fields annotated with this enum value should not be printed * out when using debug formats, e.g. when the field contains sensitive * credentials. * * @generated from field: optional bool debug_redact = 3 [default = false]; */ debugRedact: boolean; /** * Information about the support window of a feature value. * * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; */ featureSupport?: FieldOptions_FeatureSupport; /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; }; ⋮---- /** * Is this enum value deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the enum value, or it will be completely ignored; in the very least, * this is a formalization for deprecating enum values. * * @generated from field: optional bool deprecated = 1 [default = false]; */ ⋮---- /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 2; */ ⋮---- /** * Indicate that fields annotated with this enum value should not be printed * out when using debug formats, e.g. when the field contains sensitive * credentials. * * @generated from field: optional bool debug_redact = 3 [default = false]; */ ⋮---- /** * Information about the support window of a feature value. * * @generated from field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; */ ⋮---- /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * Describes the message google.protobuf.EnumValueOptions. * Use `create(EnumValueOptionsSchema)` to create a new message. */ export const EnumValueOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.ServiceOptions */ export type ServiceOptions = Message<"google.protobuf.ServiceOptions"> & { /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 34; */ features?: FeatureSet; /** * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * * @generated from field: optional bool deprecated = 33 [default = false]; */ deprecated: boolean; /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; }; ⋮---- /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 34; */ ⋮---- /** * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the service, or it will be completely ignored; in the very least, * this is a formalization for deprecating services. * * @generated from field: optional bool deprecated = 33 [default = false]; */ ⋮---- /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * Describes the message google.protobuf.ServiceOptions. * Use `create(ServiceOptionsSchema)` to create a new message. */ export const ServiceOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.MethodOptions */ export type MethodOptions = Message<"google.protobuf.MethodOptions"> & { /** * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * * @generated from field: optional bool deprecated = 33 [default = false]; */ deprecated: boolean; /** * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; */ idempotencyLevel: MethodOptions_IdempotencyLevel; /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 35; */ features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; }; ⋮---- /** * Is this method deprecated? * Depending on the target platform, this can emit Deprecated annotations * for the method, or it will be completely ignored; in the very least, * this is a formalization for deprecating methods. * * @generated from field: optional bool deprecated = 33 [default = false]; */ ⋮---- /** * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN]; */ ⋮---- /** * Any features defined in the specific edition. * WARNING: This field should only be used by protobuf plugins or special * cases like the proto compiler. Other uses are discouraged and * developers should rely on the protoreflect APIs for their client language. * * @generated from field: optional google.protobuf.FeatureSet features = 35; */ ⋮---- /** * The parser stores options it doesn't recognize here. See above. * * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ ⋮---- /** * Describes the message google.protobuf.MethodOptions. * Use `create(MethodOptionsSchema)` to create a new message. */ export const MethodOptionsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, * or neither? HTTP based RPC implementation may choose GET verb for safe * methods, and PUT verb for idempotent methods instead of the default POST. * * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel */ export enum MethodOptions_IdempotencyLevel { /** * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0; */ IDEMPOTENCY_UNKNOWN = 0, /** * implies idempotent * * @generated from enum value: NO_SIDE_EFFECTS = 1; */ NO_SIDE_EFFECTS = 1, /** * idempotent, but may have side effects * * @generated from enum value: IDEMPOTENT = 2; */ IDEMPOTENT = 2, } ⋮---- /** * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0; */ ⋮---- /** * implies idempotent * * @generated from enum value: NO_SIDE_EFFECTS = 1; */ ⋮---- /** * idempotent, but may have side effects * * @generated from enum value: IDEMPOTENT = 2; */ ⋮---- /** * Describes the enum google.protobuf.MethodOptions.IdempotencyLevel. */ export const MethodOptions_IdempotencyLevelSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * A message representing a option the parser does not recognize. This only * appears in options protos created by the compiler::Parser class. * DescriptorPool resolves these when building Descriptor objects. Therefore, * options protos in descriptor objects (e.g. returned by Descriptor::options(), * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions * in them. * * @generated from message google.protobuf.UninterpretedOption */ export type UninterpretedOption = Message<"google.protobuf.UninterpretedOption"> & { /** * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; */ name: UninterpretedOption_NamePart[]; /** * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * * @generated from field: optional string identifier_value = 3; */ identifierValue: string; /** * @generated from field: optional uint64 positive_int_value = 4; */ positiveIntValue: bigint; /** * @generated from field: optional int64 negative_int_value = 5; */ negativeIntValue: bigint; /** * @generated from field: optional double double_value = 6; */ doubleValue: number; /** * @generated from field: optional bytes string_value = 7; */ stringValue: Uint8Array; /** * @generated from field: optional string aggregate_value = 8; */ aggregateValue: string; }; ⋮---- /** * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2; */ ⋮---- /** * The value of the uninterpreted option, in whatever type the tokenizer * identified it as during parsing. Exactly one of these should be set. * * @generated from field: optional string identifier_value = 3; */ ⋮---- /** * @generated from field: optional uint64 positive_int_value = 4; */ ⋮---- /** * @generated from field: optional int64 negative_int_value = 5; */ ⋮---- /** * @generated from field: optional double double_value = 6; */ ⋮---- /** * @generated from field: optional bytes string_value = 7; */ ⋮---- /** * @generated from field: optional string aggregate_value = 8; */ ⋮---- /** * Describes the message google.protobuf.UninterpretedOption. * Use `create(UninterpretedOptionSchema)` to create a new message. */ export const UninterpretedOptionSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * The name of the uninterpreted option. Each string represents a segment in * a dot-separated name. is_extension is true iff a segment represents an * extension (denoted with parentheses in options specs in .proto files). * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents * "foo.(bar.baz).moo". * * @generated from message google.protobuf.UninterpretedOption.NamePart */ export type UninterpretedOption_NamePart = Message<"google.protobuf.UninterpretedOption.NamePart"> & { /** * @generated from field: required string name_part = 1; */ namePart: string; /** * @generated from field: required bool is_extension = 2; */ isExtension: boolean; }; ⋮---- /** * @generated from field: required string name_part = 1; */ ⋮---- /** * @generated from field: required bool is_extension = 2; */ ⋮---- /** * Describes the message google.protobuf.UninterpretedOption.NamePart. * Use `create(UninterpretedOption_NamePartSchema)` to create a new message. */ export const UninterpretedOption_NamePartSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * TODO Enums in C++ gencode (and potentially other languages) are * not well scoped. This means that each of the feature enums below can clash * with each other. The short names we've chosen maximize call-site * readability, but leave us very open to this scenario. A future feature will * be designed and implemented to handle this, hopefully before we ever hit a * conflict here. * * @generated from message google.protobuf.FeatureSet */ export type FeatureSet = Message<"google.protobuf.FeatureSet"> & { /** * @generated from field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; */ fieldPresence: FeatureSet_FieldPresence; /** * @generated from field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; */ enumType: FeatureSet_EnumType; /** * @generated from field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; */ repeatedFieldEncoding: FeatureSet_RepeatedFieldEncoding; /** * @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; */ utf8Validation: FeatureSet_Utf8Validation; /** * @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; */ messageEncoding: FeatureSet_MessageEncoding; /** * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */ jsonFormat: FeatureSet_JsonFormat; /** * @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; */ enforceNamingStyle: FeatureSet_EnforceNamingStyle; /** * @generated from field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; */ defaultSymbolVisibility: FeatureSet_VisibilityFeature_DefaultSymbolVisibility; }; ⋮---- /** * @generated from field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; */ ⋮---- /** * @generated from field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; */ ⋮---- /** * @generated from field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; */ ⋮---- /** * @generated from field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; */ ⋮---- /** * @generated from field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; */ ⋮---- /** * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */ ⋮---- /** * @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7; */ ⋮---- /** * @generated from field: optional google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8; */ ⋮---- /** * Describes the message google.protobuf.FeatureSet. * Use `create(FeatureSetSchema)` to create a new message. */ export const FeatureSetSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.FeatureSet.VisibilityFeature */ export type FeatureSet_VisibilityFeature = Message<"google.protobuf.FeatureSet.VisibilityFeature"> & { }; ⋮---- /** * Describes the message google.protobuf.FeatureSet.VisibilityFeature. * Use `create(FeatureSet_VisibilityFeatureSchema)` to create a new message. */ export const FeatureSet_VisibilityFeatureSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility */ export enum FeatureSet_VisibilityFeature_DefaultSymbolVisibility { /** * @generated from enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; */ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0, /** * Default pre-EDITION_2024, all UNSET visibility are export. * * @generated from enum value: EXPORT_ALL = 1; */ EXPORT_ALL = 1, /** * All top-level symbols default to export, nested default to local. * * @generated from enum value: EXPORT_TOP_LEVEL = 2; */ EXPORT_TOP_LEVEL = 2, /** * All symbols default to local. * * @generated from enum value: LOCAL_ALL = 3; */ LOCAL_ALL = 3, /** * All symbols local by default. Nested types cannot be exported. * With special case caveat for message { enum {} reserved 1 to max; } * This is the recommended setting for new protos. * * @generated from enum value: STRICT = 4; */ STRICT = 4, } ⋮---- /** * @generated from enum value: DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0; */ ⋮---- /** * Default pre-EDITION_2024, all UNSET visibility are export. * * @generated from enum value: EXPORT_ALL = 1; */ ⋮---- /** * All top-level symbols default to export, nested default to local. * * @generated from enum value: EXPORT_TOP_LEVEL = 2; */ ⋮---- /** * All symbols default to local. * * @generated from enum value: LOCAL_ALL = 3; */ ⋮---- /** * All symbols local by default. Nested types cannot be exported. * With special case caveat for message { enum {} reserved 1 to max; } * This is the recommended setting for new protos. * * @generated from enum value: STRICT = 4; */ ⋮---- /** * Describes the enum google.protobuf.FeatureSet.VisibilityFeature.DefaultSymbolVisibility. */ export const FeatureSet_VisibilityFeature_DefaultSymbolVisibilitySchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FeatureSet.FieldPresence */ export enum FeatureSet_FieldPresence { /** * @generated from enum value: FIELD_PRESENCE_UNKNOWN = 0; */ FIELD_PRESENCE_UNKNOWN = 0, /** * @generated from enum value: EXPLICIT = 1; */ EXPLICIT = 1, /** * @generated from enum value: IMPLICIT = 2; */ IMPLICIT = 2, /** * @generated from enum value: LEGACY_REQUIRED = 3; */ LEGACY_REQUIRED = 3, } ⋮---- /** * @generated from enum value: FIELD_PRESENCE_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: EXPLICIT = 1; */ ⋮---- /** * @generated from enum value: IMPLICIT = 2; */ ⋮---- /** * @generated from enum value: LEGACY_REQUIRED = 3; */ ⋮---- /** * Describes the enum google.protobuf.FeatureSet.FieldPresence. */ export const FeatureSet_FieldPresenceSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FeatureSet.EnumType */ export enum FeatureSet_EnumType { /** * @generated from enum value: ENUM_TYPE_UNKNOWN = 0; */ ENUM_TYPE_UNKNOWN = 0, /** * @generated from enum value: OPEN = 1; */ OPEN = 1, /** * @generated from enum value: CLOSED = 2; */ CLOSED = 2, } ⋮---- /** * @generated from enum value: ENUM_TYPE_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: OPEN = 1; */ ⋮---- /** * @generated from enum value: CLOSED = 2; */ ⋮---- /** * Describes the enum google.protobuf.FeatureSet.EnumType. */ export const FeatureSet_EnumTypeSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding */ export enum FeatureSet_RepeatedFieldEncoding { /** * @generated from enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; */ REPEATED_FIELD_ENCODING_UNKNOWN = 0, /** * @generated from enum value: PACKED = 1; */ PACKED = 1, /** * @generated from enum value: EXPANDED = 2; */ EXPANDED = 2, } ⋮---- /** * @generated from enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: PACKED = 1; */ ⋮---- /** * @generated from enum value: EXPANDED = 2; */ ⋮---- /** * Describes the enum google.protobuf.FeatureSet.RepeatedFieldEncoding. */ export const FeatureSet_RepeatedFieldEncodingSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FeatureSet.Utf8Validation */ export enum FeatureSet_Utf8Validation { /** * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; */ UTF8_VALIDATION_UNKNOWN = 0, /** * @generated from enum value: VERIFY = 2; */ VERIFY = 2, /** * @generated from enum value: NONE = 3; */ NONE = 3, } ⋮---- /** * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: VERIFY = 2; */ ⋮---- /** * @generated from enum value: NONE = 3; */ ⋮---- /** * Describes the enum google.protobuf.FeatureSet.Utf8Validation. */ export const FeatureSet_Utf8ValidationSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FeatureSet.MessageEncoding */ export enum FeatureSet_MessageEncoding { /** * @generated from enum value: MESSAGE_ENCODING_UNKNOWN = 0; */ MESSAGE_ENCODING_UNKNOWN = 0, /** * @generated from enum value: LENGTH_PREFIXED = 1; */ LENGTH_PREFIXED = 1, /** * @generated from enum value: DELIMITED = 2; */ DELIMITED = 2, } ⋮---- /** * @generated from enum value: MESSAGE_ENCODING_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: LENGTH_PREFIXED = 1; */ ⋮---- /** * @generated from enum value: DELIMITED = 2; */ ⋮---- /** * Describes the enum google.protobuf.FeatureSet.MessageEncoding. */ export const FeatureSet_MessageEncodingSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FeatureSet.JsonFormat */ export enum FeatureSet_JsonFormat { /** * @generated from enum value: JSON_FORMAT_UNKNOWN = 0; */ JSON_FORMAT_UNKNOWN = 0, /** * @generated from enum value: ALLOW = 1; */ ALLOW = 1, /** * @generated from enum value: LEGACY_BEST_EFFORT = 2; */ LEGACY_BEST_EFFORT = 2, } ⋮---- /** * @generated from enum value: JSON_FORMAT_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: ALLOW = 1; */ ⋮---- /** * @generated from enum value: LEGACY_BEST_EFFORT = 2; */ ⋮---- /** * Describes the enum google.protobuf.FeatureSet.JsonFormat. */ export const FeatureSet_JsonFormatSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle */ export enum FeatureSet_EnforceNamingStyle { /** * @generated from enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0; */ ENFORCE_NAMING_STYLE_UNKNOWN = 0, /** * @generated from enum value: STYLE2024 = 1; */ STYLE2024 = 1, /** * @generated from enum value: STYLE_LEGACY = 2; */ STYLE_LEGACY = 2, } ⋮---- /** * @generated from enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0; */ ⋮---- /** * @generated from enum value: STYLE2024 = 1; */ ⋮---- /** * @generated from enum value: STYLE_LEGACY = 2; */ ⋮---- /** * Describes the enum google.protobuf.FeatureSet.EnforceNamingStyle. */ export const FeatureSet_EnforceNamingStyleSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * A compiled specification for the defaults of a set of features. These * messages are generated from FeatureSet extensions and can be used to seed * feature resolution. The resolution with this object becomes a simple search * for the closest matching edition, followed by proto merges. * * @generated from message google.protobuf.FeatureSetDefaults */ export type FeatureSetDefaults = Message<"google.protobuf.FeatureSetDefaults"> & { /** * @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; */ defaults: FeatureSetDefaults_FeatureSetEditionDefault[]; /** * The minimum supported edition (inclusive) when this was constructed. * Editions before this will not have defaults. * * @generated from field: optional google.protobuf.Edition minimum_edition = 4; */ minimumEdition: Edition; /** * The maximum known edition (inclusive) when this was constructed. Editions * after this will not have reliable defaults. * * @generated from field: optional google.protobuf.Edition maximum_edition = 5; */ maximumEdition: Edition; }; ⋮---- /** * @generated from field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; */ ⋮---- /** * The minimum supported edition (inclusive) when this was constructed. * Editions before this will not have defaults. * * @generated from field: optional google.protobuf.Edition minimum_edition = 4; */ ⋮---- /** * The maximum known edition (inclusive) when this was constructed. Editions * after this will not have reliable defaults. * * @generated from field: optional google.protobuf.Edition maximum_edition = 5; */ ⋮---- /** * Describes the message google.protobuf.FeatureSetDefaults. * Use `create(FeatureSetDefaultsSchema)` to create a new message. */ export const FeatureSetDefaultsSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A map from every known edition with a unique set of defaults to its * defaults. Not all editions may be contained here. For a given edition, * the defaults at the closest matching edition ordered at or before it should * be used. This field must be in strict ascending order by edition. * * @generated from message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault */ export type FeatureSetDefaults_FeatureSetEditionDefault = Message<"google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault"> & { /** * @generated from field: optional google.protobuf.Edition edition = 3; */ edition: Edition; /** * Defaults of features that can be overridden in this edition. * * @generated from field: optional google.protobuf.FeatureSet overridable_features = 4; */ overridableFeatures?: FeatureSet; /** * Defaults of features that can't be overridden in this edition. * * @generated from field: optional google.protobuf.FeatureSet fixed_features = 5; */ fixedFeatures?: FeatureSet; }; ⋮---- /** * @generated from field: optional google.protobuf.Edition edition = 3; */ ⋮---- /** * Defaults of features that can be overridden in this edition. * * @generated from field: optional google.protobuf.FeatureSet overridable_features = 4; */ ⋮---- /** * Defaults of features that can't be overridden in this edition. * * @generated from field: optional google.protobuf.FeatureSet fixed_features = 5; */ ⋮---- /** * Describes the message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault. * Use `create(FeatureSetDefaults_FeatureSetEditionDefaultSchema)` to create a new message. */ export const FeatureSetDefaults_FeatureSetEditionDefaultSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Encapsulates information about the original source file from which a * FileDescriptorProto was generated. * * @generated from message google.protobuf.SourceCodeInfo */ export type SourceCodeInfo = Message<"google.protobuf.SourceCodeInfo"> & { /** * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1; */ location: SourceCodeInfo_Location[]; }; ⋮---- /** * A Location identifies a piece of source code in a .proto file which * corresponds to a particular definition. This information is intended * to be useful to IDEs, code indexers, documentation generators, and similar * tools. * * For example, say we have a file like: * message Foo { * optional string foo = 1; * } * Let's look at just the field definition: * optional string foo = 1; * ^ ^^ ^^ ^ ^^^ * a bc de f ghi * We have the following locations: * span path represents * [a,i) [ 4, 0, 2, 0 ] The whole field definition. * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). * [c,d) [ 4, 0, 2, 0, 5 ] The type (string). * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). * [g,h) [ 4, 0, 2, 0, 3 ] The number (1). * * Notes: * - A location may refer to a repeated field itself (i.e. not to any * particular index within it). This is used whenever a set of elements are * logically enclosed in a single code segment. For example, an entire * extend block (possibly containing multiple extension definitions) will * have an outer location whose path refers to the "extensions" repeated * field without an index. * - Multiple locations may have the same path. This happens when a single * logical declaration is spread out across multiple places. The most * obvious example is the "extend" block again -- there may be multiple * extend blocks in the same scope, each of which will have the same path. * - A location's span is not always a subset of its parent's span. For * example, the "extendee" of an extension declaration appears at the * beginning of the "extend" block and is shared by all extensions within * the block. * - Just because a location's span is a subset of some other location's span * does not mean that it is a descendant. For example, a "group" defines * both a type and a field in a single declaration. Thus, the locations * corresponding to the type and field and their components will overlap. * - Code which tries to interpret locations should probably be designed to * ignore those that it doesn't understand, as more types of locations could * be recorded in the future. * * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1; */ ⋮---- /** * Describes the message google.protobuf.SourceCodeInfo. * Use `create(SourceCodeInfoSchema)` to create a new message. */ export const SourceCodeInfoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.SourceCodeInfo.Location */ export type SourceCodeInfo_Location = Message<"google.protobuf.SourceCodeInfo.Location"> & { /** * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition appears. * For example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * * @generated from field: repeated int32 path = 1 [packed = true]; */ path: number[]; /** * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * * @generated from field: repeated int32 span = 2 [packed = true]; */ span: number[]; /** * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to moo. * // * // Another line attached to moo. * optional double moo = 4; * * // Detached comment for corge. This is not leading or trailing comments * // to moo or corge because there are blank lines separating it from * // both. * * // Detached comment for corge paragraph 2. * * optional string corge = 5; * /* Block comment attached * * to corge. Leading asterisks * * will be removed. *\/ * /* Block comment attached to * * grault. *\/ * optional int32 grault = 6; * * // ignored detached comments. * * @generated from field: optional string leading_comments = 3; */ leadingComments: string; /** * @generated from field: optional string trailing_comments = 4; */ trailingComments: string; /** * @generated from field: repeated string leading_detached_comments = 6; */ leadingDetachedComments: string[]; }; ⋮---- /** * Identifies which part of the FileDescriptorProto was defined at this * location. * * Each element is a field number or an index. They form a path from * the root FileDescriptorProto to the place where the definition appears. * For example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: * file.message_type(3) // 4, 3 * .field(7) // 2, 7 * .name() // 1 * This is because FileDescriptorProto.message_type has field number 4: * repeated DescriptorProto message_type = 4; * and DescriptorProto.field has field number 2: * repeated FieldDescriptorProto field = 2; * and FieldDescriptorProto.name has field number 1: * optional string name = 1; * * Thus, the above path gives the location of a field name. If we removed * the last element: * [ 4, 3, 2, 7 ] * this path refers to the whole field declaration (from the beginning * of the label to the terminating semicolon). * * @generated from field: repeated int32 path = 1 [packed = true]; */ ⋮---- /** * Always has exactly three or four elements: start line, start column, * end line (optional, otherwise assumed same as start line), end column. * These are packed into a single field for efficiency. Note that line * and column numbers are zero-based -- typically you will want to add * 1 to each before displaying to a user. * * @generated from field: repeated int32 span = 2 [packed = true]; */ ⋮---- /** * If this SourceCodeInfo represents a complete declaration, these are any * comments appearing before and after the declaration which appear to be * attached to the declaration. * * A series of line comments appearing on consecutive lines, with no other * tokens appearing on those lines, will be treated as a single comment. * * leading_detached_comments will keep paragraphs of comments that appear * before (but not connected to) the current element. Each paragraph, * separated by empty lines, will be one comment element in the repeated * field. * * Only the comment content is provided; comment markers (e.g. //) are * stripped out. For block comments, leading whitespace and an asterisk * will be stripped from the beginning of each line other than the first. * Newlines are included in the output. * * Examples: * * optional int32 foo = 1; // Comment attached to foo. * // Comment attached to bar. * optional int32 bar = 2; * * optional string baz = 3; * // Comment attached to baz. * // Another line attached to baz. * * // Comment attached to moo. * // * // Another line attached to moo. * optional double moo = 4; * * // Detached comment for corge. This is not leading or trailing comments * // to moo or corge because there are blank lines separating it from * // both. * * // Detached comment for corge paragraph 2. * * optional string corge = 5; * /* Block comment attached * * to corge. Leading asterisks * * will be removed. *\/ * /* Block comment attached to * * grault. *\/ * optional int32 grault = 6; * * // ignored detached comments. * * @generated from field: optional string leading_comments = 3; */ ⋮---- /** * @generated from field: optional string trailing_comments = 4; */ ⋮---- /** * @generated from field: repeated string leading_detached_comments = 6; */ ⋮---- /** * Describes the message google.protobuf.SourceCodeInfo.Location. * Use `create(SourceCodeInfo_LocationSchema)` to create a new message. */ export const SourceCodeInfo_LocationSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Describes the relationship between generated code and its original source * file. A GeneratedCodeInfo message is associated with only one generated * source file, but may contain references to different source .proto files. * * @generated from message google.protobuf.GeneratedCodeInfo */ export type GeneratedCodeInfo = Message<"google.protobuf.GeneratedCodeInfo"> & { /** * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */ annotation: GeneratedCodeInfo_Annotation[]; }; ⋮---- /** * An Annotation connects some span of text in generated code to an element * of its generating .proto file. * * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */ ⋮---- /** * Describes the message google.protobuf.GeneratedCodeInfo. * Use `create(GeneratedCodeInfoSchema)` to create a new message. */ export const GeneratedCodeInfoSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message google.protobuf.GeneratedCodeInfo.Annotation */ export type GeneratedCodeInfo_Annotation = Message<"google.protobuf.GeneratedCodeInfo.Annotation"> & { /** * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * * @generated from field: repeated int32 path = 1 [packed = true]; */ path: number[]; /** * Identifies the filesystem path to the original source .proto. * * @generated from field: optional string source_file = 2; */ sourceFile: string; /** * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * * @generated from field: optional int32 begin = 3; */ begin: number; /** * Identifies the ending offset in bytes in the generated code that * relates to the identified object. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * * @generated from field: optional int32 end = 4; */ end: number; /** * @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; */ semantic: GeneratedCodeInfo_Annotation_Semantic; }; ⋮---- /** * Identifies the element in the original source .proto file. This field * is formatted the same as SourceCodeInfo.Location.path. * * @generated from field: repeated int32 path = 1 [packed = true]; */ ⋮---- /** * Identifies the filesystem path to the original source .proto. * * @generated from field: optional string source_file = 2; */ ⋮---- /** * Identifies the starting offset in bytes in the generated code * that relates to the identified object. * * @generated from field: optional int32 begin = 3; */ ⋮---- /** * Identifies the ending offset in bytes in the generated code that * relates to the identified object. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * * @generated from field: optional int32 end = 4; */ ⋮---- /** * @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; */ ⋮---- /** * Describes the message google.protobuf.GeneratedCodeInfo.Annotation. * Use `create(GeneratedCodeInfo_AnnotationSchema)` to create a new message. */ export const GeneratedCodeInfo_AnnotationSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Represents the identified object's effect on the element in the original * .proto file. * * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic */ export enum GeneratedCodeInfo_Annotation_Semantic { /** * There is no effect or the effect is indescribable. * * @generated from enum value: NONE = 0; */ NONE = 0, /** * The element is set or otherwise mutated. * * @generated from enum value: SET = 1; */ SET = 1, /** * An alias to the element is returned. * * @generated from enum value: ALIAS = 2; */ ALIAS = 2, } ⋮---- /** * There is no effect or the effect is indescribable. * * @generated from enum value: NONE = 0; */ ⋮---- /** * The element is set or otherwise mutated. * * @generated from enum value: SET = 1; */ ⋮---- /** * An alias to the element is returned. * * @generated from enum value: ALIAS = 2; */ ⋮---- /** * Describes the enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic. */ export const GeneratedCodeInfo_Annotation_SemanticSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * The full set of known editions. * * @generated from enum google.protobuf.Edition */ export enum Edition { /** * A placeholder for an unknown edition value. * * @generated from enum value: EDITION_UNKNOWN = 0; */ EDITION_UNKNOWN = 0, /** * A placeholder edition for specifying default behaviors *before* a feature * was first introduced. This is effectively an "infinite past". * * @generated from enum value: EDITION_LEGACY = 900; */ EDITION_LEGACY = 900, /** * Legacy syntax "editions". These pre-date editions, but behave much like * distinct editions. These can't be used to specify the edition of proto * files, but feature definitions must supply proto2/proto3 defaults for * backwards compatibility. * * @generated from enum value: EDITION_PROTO2 = 998; */ EDITION_PROTO2 = 998, /** * @generated from enum value: EDITION_PROTO3 = 999; */ EDITION_PROTO3 = 999, /** * Editions that have been released. The specific values are arbitrary and * should not be depended on, but they will always be time-ordered for easy * comparison. * * @generated from enum value: EDITION_2023 = 1000; */ EDITION_2023 = 1000, /** * @generated from enum value: EDITION_2024 = 1001; */ EDITION_2024 = 1001, /** * Placeholder editions for testing feature resolution. These should not be * used or relied on outside of tests. * * @generated from enum value: EDITION_1_TEST_ONLY = 1; */ EDITION_1_TEST_ONLY = 1, /** * @generated from enum value: EDITION_2_TEST_ONLY = 2; */ EDITION_2_TEST_ONLY = 2, /** * @generated from enum value: EDITION_99997_TEST_ONLY = 99997; */ EDITION_99997_TEST_ONLY = 99997, /** * @generated from enum value: EDITION_99998_TEST_ONLY = 99998; */ EDITION_99998_TEST_ONLY = 99998, /** * @generated from enum value: EDITION_99999_TEST_ONLY = 99999; */ EDITION_99999_TEST_ONLY = 99999, /** * Placeholder for specifying unbounded edition support. This should only * ever be used by plugins that can expect to never require any changes to * support a new edition. * * @generated from enum value: EDITION_MAX = 2147483647; */ EDITION_MAX = 2147483647, } ⋮---- /** * A placeholder for an unknown edition value. * * @generated from enum value: EDITION_UNKNOWN = 0; */ ⋮---- /** * A placeholder edition for specifying default behaviors *before* a feature * was first introduced. This is effectively an "infinite past". * * @generated from enum value: EDITION_LEGACY = 900; */ ⋮---- /** * Legacy syntax "editions". These pre-date editions, but behave much like * distinct editions. These can't be used to specify the edition of proto * files, but feature definitions must supply proto2/proto3 defaults for * backwards compatibility. * * @generated from enum value: EDITION_PROTO2 = 998; */ ⋮---- /** * @generated from enum value: EDITION_PROTO3 = 999; */ ⋮---- /** * Editions that have been released. The specific values are arbitrary and * should not be depended on, but they will always be time-ordered for easy * comparison. * * @generated from enum value: EDITION_2023 = 1000; */ ⋮---- /** * @generated from enum value: EDITION_2024 = 1001; */ ⋮---- /** * Placeholder editions for testing feature resolution. These should not be * used or relied on outside of tests. * * @generated from enum value: EDITION_1_TEST_ONLY = 1; */ ⋮---- /** * @generated from enum value: EDITION_2_TEST_ONLY = 2; */ ⋮---- /** * @generated from enum value: EDITION_99997_TEST_ONLY = 99997; */ ⋮---- /** * @generated from enum value: EDITION_99998_TEST_ONLY = 99998; */ ⋮---- /** * @generated from enum value: EDITION_99999_TEST_ONLY = 99999; */ ⋮---- /** * Placeholder for specifying unbounded edition support. This should only * ever be used by plugins that can expect to never require any changes to * support a new edition. * * @generated from enum value: EDITION_MAX = 2147483647; */ ⋮---- /** * Describes the enum google.protobuf.Edition. */ export const EditionSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Describes the 'visibility' of a symbol with respect to the proto import * system. Symbols can only be imported when the visibility rules do not prevent * it (ex: local symbols cannot be imported). Visibility modifiers can only set * on `message` and `enum` as they are the only types available to be referenced * from other files. * * @generated from enum google.protobuf.SymbolVisibility */ export enum SymbolVisibility { /** * @generated from enum value: VISIBILITY_UNSET = 0; */ VISIBILITY_UNSET = 0, /** * @generated from enum value: VISIBILITY_LOCAL = 1; */ VISIBILITY_LOCAL = 1, /** * @generated from enum value: VISIBILITY_EXPORT = 2; */ VISIBILITY_EXPORT = 2, } ⋮---- /** * @generated from enum value: VISIBILITY_UNSET = 0; */ ⋮---- /** * @generated from enum value: VISIBILITY_LOCAL = 1; */ ⋮---- /** * @generated from enum value: VISIBILITY_EXPORT = 2; */ ⋮---- /** * Describes the enum google.protobuf.SymbolVisibility. */ export const SymbolVisibilitySchema: GenEnum = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/duration_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/duration.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/duration.proto. */ export const file_google_protobuf_duration: GenFile = /*@__PURE__*/ ⋮---- /** * A Duration represents a signed, fixed-length span of time represented * as a count of seconds and fractions of seconds at nanosecond * resolution. It is independent of any calendar and concepts like "day" * or "month". It is related to Timestamp in that the difference between * two Timestamp values is a Duration and it can be added or subtracted * from a Timestamp. Range is approximately +-10,000 years. * * # Examples * * Example 1: Compute Duration from two Timestamps in pseudo code. * * Timestamp start = ...; * Timestamp end = ...; * Duration duration = ...; * * duration.seconds = end.seconds - start.seconds; * duration.nanos = end.nanos - start.nanos; * * if (duration.seconds < 0 && duration.nanos > 0) { * duration.seconds += 1; * duration.nanos -= 1000000000; * } else if (duration.seconds > 0 && duration.nanos < 0) { * duration.seconds -= 1; * duration.nanos += 1000000000; * } * * Example 2: Compute Timestamp from Timestamp + Duration in pseudo code. * * Timestamp start = ...; * Duration duration = ...; * Timestamp end = ...; * * end.seconds = start.seconds + duration.seconds; * end.nanos = start.nanos + duration.nanos; * * if (end.nanos < 0) { * end.seconds -= 1; * end.nanos += 1000000000; * } else if (end.nanos >= 1000000000) { * end.seconds += 1; * end.nanos -= 1000000000; * } * * Example 3: Compute Duration from datetime.timedelta in Python. * * td = datetime.timedelta(days=3, minutes=10) * duration = Duration() * duration.FromTimedelta(td) * * # JSON Mapping * * In JSON format, the Duration type is encoded as a string rather than an * object, where the string ends in the suffix "s" (indicating seconds) and * is preceded by the number of seconds, with nanoseconds expressed as * fractional seconds. For example, 3 seconds with 0 nanoseconds should be * encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should * be expressed in JSON format as "3.000000001s", and 3 seconds and 1 * microsecond should be expressed in JSON format as "3.000001s". * * * @generated from message google.protobuf.Duration */ export type Duration = Message<"google.protobuf.Duration"> & { /** * Signed seconds of the span of time. Must be from -315,576,000,000 * to +315,576,000,000 inclusive. Note: these bounds are computed from: * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years * * @generated from field: int64 seconds = 1; */ seconds: bigint; /** * Signed fractions of a second at nanosecond resolution of the span * of time. Durations less than one second are represented with a 0 * `seconds` field and a positive or negative `nanos` field. For durations * of one second or more, a non-zero value for the `nanos` field must be * of the same sign as the `seconds` field. Must be from -999,999,999 * to +999,999,999 inclusive. * * @generated from field: int32 nanos = 2; */ nanos: number; }; ⋮---- /** * Signed seconds of the span of time. Must be from -315,576,000,000 * to +315,576,000,000 inclusive. Note: these bounds are computed from: * 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years * * @generated from field: int64 seconds = 1; */ ⋮---- /** * Signed fractions of a second at nanosecond resolution of the span * of time. Durations less than one second are represented with a 0 * `seconds` field and a positive or negative `nanos` field. For durations * of one second or more, a non-zero value for the `nanos` field must be * of the same sign as the `seconds` field. Must be from -999,999,999 * to +999,999,999 inclusive. * * @generated from field: int32 nanos = 2; */ ⋮---- /** * Describes the message google.protobuf.Duration. * Use `create(DurationSchema)` to create a new message. */ export const DurationSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/empty_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/empty.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/empty.proto. */ export const file_google_protobuf_empty: GenFile = /*@__PURE__*/ ⋮---- /** * A generic empty message that you can re-use to avoid defining duplicated * empty messages in your APIs. A typical example is to use it as the request * or the response type of an API method. For instance: * * service Foo { * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); * } * * * @generated from message google.protobuf.Empty */ export type Empty = Message<"google.protobuf.Empty"> & { }; ⋮---- /** * Describes the message google.protobuf.Empty. * Use `create(EmptySchema)` to create a new message. */ export const EmptySchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/field_mask_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/field_mask.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/field_mask.proto. */ export const file_google_protobuf_field_mask: GenFile = /*@__PURE__*/ ⋮---- /** * `FieldMask` represents a set of symbolic field paths, for example: * * paths: "f.a" * paths: "f.b.d" * * Here `f` represents a field in some root message, `a` and `b` * fields in the message found in `f`, and `d` a field found in the * message in `f.b`. * * Field masks are used to specify a subset of fields that should be * returned by a get operation or modified by an update operation. * Field masks also have a custom JSON encoding (see below). * * # Field Masks in Projections * * When used in the context of a projection, a response message or * sub-message is filtered by the API to only contain those fields as * specified in the mask. For example, if the mask in the previous * example is applied to a response message as follows: * * f { * a : 22 * b { * d : 1 * x : 2 * } * y : 13 * } * z: 8 * * The result will not contain specific values for fields x,y and z * (their value will be set to the default, and omitted in proto text * output): * * * f { * a : 22 * b { * d : 1 * } * } * * A repeated field is not allowed except at the last position of a * paths string. * * If a FieldMask object is not present in a get operation, the * operation applies to all fields (as if a FieldMask of all fields * had been specified). * * Note that a field mask does not necessarily apply to the * top-level response message. In case of a REST get operation, the * field mask applies directly to the response, but in case of a REST * list operation, the mask instead applies to each individual message * in the returned resource list. In case of a REST custom method, * other definitions may be used. Where the mask applies will be * clearly documented together with its declaration in the API. In * any case, the effect on the returned resource/resources is required * behavior for APIs. * * # Field Masks in Update Operations * * A field mask in update operations specifies which fields of the * targeted resource are going to be updated. The API is required * to only change the values of the fields as specified in the mask * and leave the others untouched. If a resource is passed in to * describe the updated values, the API ignores the values of all * fields not covered by the mask. * * If a repeated field is specified for an update operation, new values will * be appended to the existing repeated field in the target resource. Note that * a repeated field is only allowed in the last position of a `paths` string. * * If a sub-message is specified in the last position of the field mask for an * update operation, then new value will be merged into the existing sub-message * in the target resource. * * For example, given the target message: * * f { * b { * d: 1 * x: 2 * } * c: [1] * } * * And an update message: * * f { * b { * d: 10 * } * c: [2] * } * * then if the field mask is: * * paths: ["f.b", "f.c"] * * then the result will be: * * f { * b { * d: 10 * x: 2 * } * c: [1, 2] * } * * An implementation may provide options to override this default behavior for * repeated and message fields. * * In order to reset a field's value to the default, the field must * be in the mask and set to the default value in the provided resource. * Hence, in order to reset all fields of a resource, provide a default * instance of the resource and set all fields in the mask, or do * not provide a mask as described below. * * If a field mask is not present on update, the operation applies to * all fields (as if a field mask of all fields has been specified). * Note that in the presence of schema evolution, this may mean that * fields the client does not know and has therefore not filled into * the request will be reset to their default. If this is unwanted * behavior, a specific service may require a client to always specify * a field mask, producing an error if not. * * As with get operations, the location of the resource which * describes the updated values in the request message depends on the * operation kind. In any case, the effect of the field mask is * required to be honored by the API. * * ## Considerations for HTTP REST * * The HTTP kind of an update operation which uses a field mask must * be set to PATCH instead of PUT in order to satisfy HTTP semantics * (PUT must only be used for full updates). * * # JSON Encoding of Field Masks * * In JSON, a field mask is encoded as a single string where paths are * separated by a comma. Fields name in each path are converted * to/from lower-camel naming conventions. * * As an example, consider the following message declarations: * * message Profile { * User user = 1; * Photo photo = 2; * } * message User { * string display_name = 1; * string address = 2; * } * * In proto a field mask for `Profile` may look as such: * * mask { * paths: "user.display_name" * paths: "photo" * } * * In JSON, the same mask is represented as below: * * { * mask: "user.displayName,photo" * } * * # Field Masks and Oneof Fields * * Field masks treat fields in oneofs just as regular fields. Consider the * following message: * * message SampleMessage { * oneof test_oneof { * string name = 4; * SubMessage sub_message = 9; * } * } * * The field mask can be: * * mask { * paths: "name" * } * * Or: * * mask { * paths: "sub_message" * } * * Note that oneof type names ("test_oneof" in this case) cannot be used in * paths. * * ## Field Mask Verification * * The implementation of any API method which has a FieldMask type field in the * request should verify the included field paths, and return an * `INVALID_ARGUMENT` error if any path is unmappable. * * @generated from message google.protobuf.FieldMask */ export type FieldMask = Message<"google.protobuf.FieldMask"> & { /** * The set of field mask paths. * * @generated from field: repeated string paths = 1; */ paths: string[]; }; ⋮---- /** * The set of field mask paths. * * @generated from field: repeated string paths = 1; */ ⋮---- /** * Describes the message google.protobuf.FieldMask. * Use `create(FieldMaskSchema)` to create a new message. */ export const FieldMaskSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/go_features_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2023 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/go_features.proto (package pb, syntax proto2) /* eslint-disable */ ⋮---- import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { FeatureSet } from "./descriptor_pb"; import { file_google_protobuf_descriptor } from "./descriptor_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/go_features.proto. */ export const file_google_protobuf_go_features: GenFile = /*@__PURE__*/ ⋮---- /** * @generated from message pb.GoFeatures */ export type GoFeatures = Message<"pb.GoFeatures"> & { /** * Whether or not to generate the deprecated UnmarshalJSON method for enums. * Can only be true for proto using the Open Struct api. * * @generated from field: optional bool legacy_unmarshal_json_enum = 1; */ legacyUnmarshalJsonEnum: boolean; /** * One of OPEN, HYBRID or OPAQUE. * * @generated from field: optional pb.GoFeatures.APILevel api_level = 2; */ apiLevel: GoFeatures_APILevel; /** * @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3; */ stripEnumPrefix: GoFeatures_StripEnumPrefix; }; ⋮---- /** * Whether or not to generate the deprecated UnmarshalJSON method for enums. * Can only be true for proto using the Open Struct api. * * @generated from field: optional bool legacy_unmarshal_json_enum = 1; */ ⋮---- /** * One of OPEN, HYBRID or OPAQUE. * * @generated from field: optional pb.GoFeatures.APILevel api_level = 2; */ ⋮---- /** * @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3; */ ⋮---- /** * Describes the message pb.GoFeatures. * Use `create(GoFeaturesSchema)` to create a new message. */ export const GoFeaturesSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from enum pb.GoFeatures.APILevel */ export enum GoFeatures_APILevel { /** * API_LEVEL_UNSPECIFIED results in selecting the OPEN API, * but needs to be a separate value to distinguish between * an explicitly set api level or a missing api level. * * @generated from enum value: API_LEVEL_UNSPECIFIED = 0; */ API_LEVEL_UNSPECIFIED = 0, /** * @generated from enum value: API_OPEN = 1; */ API_OPEN = 1, /** * @generated from enum value: API_HYBRID = 2; */ API_HYBRID = 2, /** * @generated from enum value: API_OPAQUE = 3; */ API_OPAQUE = 3, } ⋮---- /** * API_LEVEL_UNSPECIFIED results in selecting the OPEN API, * but needs to be a separate value to distinguish between * an explicitly set api level or a missing api level. * * @generated from enum value: API_LEVEL_UNSPECIFIED = 0; */ ⋮---- /** * @generated from enum value: API_OPEN = 1; */ ⋮---- /** * @generated from enum value: API_HYBRID = 2; */ ⋮---- /** * @generated from enum value: API_OPAQUE = 3; */ ⋮---- /** * Describes the enum pb.GoFeatures.APILevel. */ export const GoFeatures_APILevelSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from enum pb.GoFeatures.StripEnumPrefix */ export enum GoFeatures_StripEnumPrefix { /** * @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0; */ UNSPECIFIED = 0, /** * @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1; */ KEEP = 1, /** * @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2; */ GENERATE_BOTH = 2, /** * @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3; */ STRIP = 3, } ⋮---- /** * @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0; */ ⋮---- /** * @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1; */ ⋮---- /** * @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2; */ ⋮---- /** * @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3; */ ⋮---- /** * Describes the enum pb.GoFeatures.StripEnumPrefix. */ export const GoFeatures_StripEnumPrefixSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from extension: optional pb.GoFeatures go = 1002; */ export const go: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/java_features_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2023 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/java_features.proto (package pb, syntax proto2) /* eslint-disable */ ⋮---- import type { GenEnum, GenExtension, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, extDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { FeatureSet } from "./descriptor_pb"; import { file_google_protobuf_descriptor } from "./descriptor_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/java_features.proto. */ export const file_google_protobuf_java_features: GenFile = /*@__PURE__*/ ⋮---- /** * @generated from message pb.JavaFeatures */ export type JavaFeatures = Message<"pb.JavaFeatures"> & { /** * Whether or not to treat an enum field as closed. This option is only * applicable to enum fields, and will be removed in the future. It is * consistent with the legacy behavior of using proto3 enum types for proto2 * fields. * * @generated from field: optional bool legacy_closed_enum = 1; */ legacyClosedEnum: boolean; /** * @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2; */ utf8Validation: JavaFeatures_Utf8Validation; /** * Allows creation of large Java enums, extending beyond the standard * constant limits imposed by the Java language. * * @generated from field: optional bool large_enum = 3; */ largeEnum: boolean; /** * Whether to use the old default outer class name scheme, or the new feature * which adds a "Proto" suffix to the outer class name. * * Users will not be able to set this option, because we removed it in the * same edition that it was introduced. But we use it to determine which * naming scheme to use for outer class name defaults. * * @generated from field: optional bool use_old_outer_classname_default = 4; */ useOldOuterClassnameDefault: boolean; /** * Whether to nest the generated class in the generated file class. This is * only applicable to *top-level* messages, enums, and services. * * @generated from field: optional pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5; */ nestInFileClass: JavaFeatures_NestInFileClassFeature_NestInFileClass; }; ⋮---- /** * Whether or not to treat an enum field as closed. This option is only * applicable to enum fields, and will be removed in the future. It is * consistent with the legacy behavior of using proto3 enum types for proto2 * fields. * * @generated from field: optional bool legacy_closed_enum = 1; */ ⋮---- /** * @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2; */ ⋮---- /** * Allows creation of large Java enums, extending beyond the standard * constant limits imposed by the Java language. * * @generated from field: optional bool large_enum = 3; */ ⋮---- /** * Whether to use the old default outer class name scheme, or the new feature * which adds a "Proto" suffix to the outer class name. * * Users will not be able to set this option, because we removed it in the * same edition that it was introduced. But we use it to determine which * naming scheme to use for outer class name defaults. * * @generated from field: optional bool use_old_outer_classname_default = 4; */ ⋮---- /** * Whether to nest the generated class in the generated file class. This is * only applicable to *top-level* messages, enums, and services. * * @generated from field: optional pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5; */ ⋮---- /** * Describes the message pb.JavaFeatures. * Use `create(JavaFeaturesSchema)` to create a new message. */ export const JavaFeaturesSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from message pb.JavaFeatures.NestInFileClassFeature */ export type JavaFeatures_NestInFileClassFeature = Message<"pb.JavaFeatures.NestInFileClassFeature"> & { }; ⋮---- /** * Describes the message pb.JavaFeatures.NestInFileClassFeature. * Use `create(JavaFeatures_NestInFileClassFeatureSchema)` to create a new message. */ export const JavaFeatures_NestInFileClassFeatureSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass */ export enum JavaFeatures_NestInFileClassFeature_NestInFileClass { /** * Invalid default, which should never be used. * * @generated from enum value: NEST_IN_FILE_CLASS_UNKNOWN = 0; */ NEST_IN_FILE_CLASS_UNKNOWN = 0, /** * Do not nest the generated class in the file class. * * @generated from enum value: NO = 1; */ NO = 1, /** * Nest the generated class in the file class. * * @generated from enum value: YES = 2; */ YES = 2, /** * Fall back to the `java_multiple_files` option. Users won't be able to * set this option. * * @generated from enum value: LEGACY = 3; */ LEGACY = 3, } ⋮---- /** * Invalid default, which should never be used. * * @generated from enum value: NEST_IN_FILE_CLASS_UNKNOWN = 0; */ ⋮---- /** * Do not nest the generated class in the file class. * * @generated from enum value: NO = 1; */ ⋮---- /** * Nest the generated class in the file class. * * @generated from enum value: YES = 2; */ ⋮---- /** * Fall back to the `java_multiple_files` option. Users won't be able to * set this option. * * @generated from enum value: LEGACY = 3; */ ⋮---- /** * Describes the enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass. */ export const JavaFeatures_NestInFileClassFeature_NestInFileClassSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * The UTF8 validation strategy to use. * * @generated from enum pb.JavaFeatures.Utf8Validation */ export enum JavaFeatures_Utf8Validation { /** * Invalid default, which should never be used. * * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; */ UTF8_VALIDATION_UNKNOWN = 0, /** * Respect the UTF8 validation behavior specified by the global * utf8_validation feature. * * @generated from enum value: DEFAULT = 1; */ DEFAULT = 1, /** * Verifies UTF8 validity overriding the global utf8_validation * feature. This represents the legacy java_string_check_utf8 option. * * @generated from enum value: VERIFY = 2; */ VERIFY = 2, } ⋮---- /** * Invalid default, which should never be used. * * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0; */ ⋮---- /** * Respect the UTF8 validation behavior specified by the global * utf8_validation feature. * * @generated from enum value: DEFAULT = 1; */ ⋮---- /** * Verifies UTF8 validity overriding the global utf8_validation * feature. This represents the legacy java_string_check_utf8 option. * * @generated from enum value: VERIFY = 2; */ ⋮---- /** * Describes the enum pb.JavaFeatures.Utf8Validation. */ export const JavaFeatures_Utf8ValidationSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * @generated from extension: optional pb.JavaFeatures java = 1001; */ export const java: GenExtension = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/source_context_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/source_context.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/source_context.proto. */ export const file_google_protobuf_source_context: GenFile = /*@__PURE__*/ ⋮---- /** * `SourceContext` represents information about the source of a * protobuf element, like the file in which it is defined. * * @generated from message google.protobuf.SourceContext */ export type SourceContext = Message<"google.protobuf.SourceContext"> & { /** * The path-qualified name of the .proto file that contained the associated * protobuf element. For example: `"google/protobuf/source_context.proto"`. * * @generated from field: string file_name = 1; */ fileName: string; }; ⋮---- /** * The path-qualified name of the .proto file that contained the associated * protobuf element. For example: `"google/protobuf/source_context.proto"`. * * @generated from field: string file_name = 1; */ ⋮---- /** * Describes the message google.protobuf.SourceContext. * Use `create(SourceContextSchema)` to create a new message. */ export const SourceContextSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/struct_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/struct.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/struct.proto. */ export const file_google_protobuf_struct: GenFile = /*@__PURE__*/ ⋮---- /** * `Struct` represents a structured data value, consisting of fields * which map to dynamically typed values. In some languages, `Struct` * might be supported by a native representation. For example, in * scripting languages like JS a struct is represented as an * object. The details of that representation are described together * with the proto support for the language. * * The JSON representation for `Struct` is JSON object. * * @generated from message google.protobuf.Struct */ export type Struct = Message<"google.protobuf.Struct"> & { /** * Unordered map of dynamically typed values. * * @generated from field: map fields = 1; */ fields: { [key: string]: Value }; }; ⋮---- /** * Unordered map of dynamically typed values. * * @generated from field: map fields = 1; */ ⋮---- /** * Describes the message google.protobuf.Struct. * Use `create(StructSchema)` to create a new message. */ export const StructSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * `Value` represents a dynamically typed value which can be either * null, a number, a string, a boolean, a recursive struct value, or a * list of values. A producer of value is expected to set one of these * variants. Absence of any variant indicates an error. * * The JSON representation for `Value` is JSON value. * * @generated from message google.protobuf.Value */ export type Value = Message<"google.protobuf.Value"> & { /** * The kind of value. * * @generated from oneof google.protobuf.Value.kind */ kind: { /** * Represents a null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ value: NullValue; case: "nullValue"; } | { /** * Represents a double value. * * @generated from field: double number_value = 2; */ value: number; case: "numberValue"; } | { /** * Represents a string value. * * @generated from field: string string_value = 3; */ value: string; case: "stringValue"; } | { /** * Represents a boolean value. * * @generated from field: bool bool_value = 4; */ value: boolean; case: "boolValue"; } | { /** * Represents a structured value. * * @generated from field: google.protobuf.Struct struct_value = 5; */ value: Struct; case: "structValue"; } | { /** * Represents a repeated `Value`. * * @generated from field: google.protobuf.ListValue list_value = 6; */ value: ListValue; case: "listValue"; } | { case: undefined; value?: undefined }; }; ⋮---- /** * The kind of value. * * @generated from oneof google.protobuf.Value.kind */ ⋮---- /** * Represents a null value. * * @generated from field: google.protobuf.NullValue null_value = 1; */ ⋮---- /** * Represents a double value. * * @generated from field: double number_value = 2; */ ⋮---- /** * Represents a string value. * * @generated from field: string string_value = 3; */ ⋮---- /** * Represents a boolean value. * * @generated from field: bool bool_value = 4; */ ⋮---- /** * Represents a structured value. * * @generated from field: google.protobuf.Struct struct_value = 5; */ ⋮---- /** * Represents a repeated `Value`. * * @generated from field: google.protobuf.ListValue list_value = 6; */ ⋮---- /** * Describes the message google.protobuf.Value. * Use `create(ValueSchema)` to create a new message. */ export const ValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * `ListValue` is a wrapper around a repeated field of values. * * The JSON representation for `ListValue` is JSON array. * * @generated from message google.protobuf.ListValue */ export type ListValue = Message<"google.protobuf.ListValue"> & { /** * Repeated field of dynamically typed values. * * @generated from field: repeated google.protobuf.Value values = 1; */ values: Value[]; }; ⋮---- /** * Repeated field of dynamically typed values. * * @generated from field: repeated google.protobuf.Value values = 1; */ ⋮---- /** * Describes the message google.protobuf.ListValue. * Use `create(ListValueSchema)` to create a new message. */ export const ListValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * `NullValue` is a singleton enumeration to represent the null value for the * `Value` type union. * * The JSON representation for `NullValue` is JSON `null`. * * @generated from enum google.protobuf.NullValue */ export enum NullValue { /** * Null value. * * @generated from enum value: NULL_VALUE = 0; */ NULL_VALUE = 0, } ⋮---- /** * Null value. * * @generated from enum value: NULL_VALUE = 0; */ ⋮---- /** * Describes the enum google.protobuf.NullValue. */ export const NullValueSchema: GenEnum = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/timestamp_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/timestamp.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/timestamp.proto. */ export const file_google_protobuf_timestamp: GenFile = /*@__PURE__*/ ⋮---- /** * A Timestamp represents a point in time independent of any time zone or local * calendar, encoded as a count of seconds and fractions of seconds at * nanosecond resolution. The count is relative to an epoch at UTC midnight on * January 1, 1970, in the proleptic Gregorian calendar which extends the * Gregorian calendar backwards to year one. * * All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap * second table is needed for interpretation, using a [24-hour linear * smear](https://developers.google.com/time/smear). * * The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By * restricting to that range, we ensure that we can convert to and from [RFC * 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. * * # Examples * * Example 1: Compute Timestamp from POSIX `time()`. * * Timestamp timestamp; * timestamp.set_seconds(time(NULL)); * timestamp.set_nanos(0); * * Example 2: Compute Timestamp from POSIX `gettimeofday()`. * * struct timeval tv; * gettimeofday(&tv, NULL); * * Timestamp timestamp; * timestamp.set_seconds(tv.tv_sec); * timestamp.set_nanos(tv.tv_usec * 1000); * * Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. * * FILETIME ft; * GetSystemTimeAsFileTime(&ft); * UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; * * // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z * // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. * Timestamp timestamp; * timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); * timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); * * Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. * * long millis = System.currentTimeMillis(); * * Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) * .setNanos((int) ((millis % 1000) * 1000000)).build(); * * Example 5: Compute Timestamp from Java `Instant.now()`. * * Instant now = Instant.now(); * * Timestamp timestamp = * Timestamp.newBuilder().setSeconds(now.getEpochSecond()) * .setNanos(now.getNano()).build(); * * Example 6: Compute Timestamp from current time in Python. * * timestamp = Timestamp() * timestamp.GetCurrentTime() * * # JSON Mapping * * In JSON format, the Timestamp type is encoded as a string in the * [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the * format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z" * where {year} is always expressed using four digits while {month}, {day}, * {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional * seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), * are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone * is required. A proto3 JSON serializer should always use UTC (as indicated by * "Z") when printing the Timestamp type and a proto3 JSON parser should be * able to accept both UTC and other timezones (as indicated by an offset). * * For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past * 01:30 UTC on January 15, 2017. * * In JavaScript, one can convert a Date object to this format using the * standard * [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) * method. In Python, a standard `datetime.datetime` object can be converted * to this format using * [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with * the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use * the Joda Time's [`ISODateTimeFormat.dateTime()`]( * http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() * ) to obtain a formatter capable of generating timestamps in this format. * * * @generated from message google.protobuf.Timestamp */ export type Timestamp = Message<"google.protobuf.Timestamp"> & { /** * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must * be between -315576000000 and 315576000000 inclusive (which corresponds to * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). * * @generated from field: int64 seconds = 1; */ seconds: bigint; /** * Non-negative fractions of a second at nanosecond resolution. This field is * the nanosecond portion of the duration, not an alternative to seconds. * Negative second values with fractions must still have non-negative nanos * values that count forward in time. Must be between 0 and 999,999,999 * inclusive. * * @generated from field: int32 nanos = 2; */ nanos: number; }; ⋮---- /** * Represents seconds of UTC time since Unix epoch 1970-01-01T00:00:00Z. Must * be between -315576000000 and 315576000000 inclusive (which corresponds to * 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z). * * @generated from field: int64 seconds = 1; */ ⋮---- /** * Non-negative fractions of a second at nanosecond resolution. This field is * the nanosecond portion of the duration, not an alternative to seconds. * Negative second values with fractions must still have non-negative nanos * values that count forward in time. Must be between 0 and 999,999,999 * inclusive. * * @generated from field: int32 nanos = 2; */ ⋮---- /** * Describes the message google.protobuf.Timestamp. * Use `create(TimestampSchema)` to create a new message. */ export const TimestampSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/protobuf/type_pb.ts ````typescript // Protocol Buffers - Google's data interchange format // Copyright 2008 Google Inc. All rights reserved. // https://developers.google.com/protocol-buffers/ // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/protobuf/type.proto (package google.protobuf, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Any } from "./any_pb"; import { file_google_protobuf_any } from "./any_pb"; import type { SourceContext } from "./source_context_pb"; import { file_google_protobuf_source_context } from "./source_context_pb"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/protobuf/type.proto. */ export const file_google_protobuf_type: GenFile = /*@__PURE__*/ ⋮---- /** * A protocol buffer message type. * * New usages of this message as an alternative to DescriptorProto are strongly * discouraged. This message does not reliability preserve all information * necessary to model the schema and preserve semantics. Instead make use of * FileDescriptorSet which preserves the necessary information. * * @generated from message google.protobuf.Type */ export type Type = Message<"google.protobuf.Type"> & { /** * The fully qualified message name. * * @generated from field: string name = 1; */ name: string; /** * The list of fields. * * @generated from field: repeated google.protobuf.Field fields = 2; */ fields: Field[]; /** * The list of types appearing in `oneof` definitions in this type. * * @generated from field: repeated string oneofs = 3; */ oneofs: string[]; /** * The protocol buffer options. * * @generated from field: repeated google.protobuf.Option options = 4; */ options: Option[]; /** * The source context. * * @generated from field: google.protobuf.SourceContext source_context = 5; */ sourceContext?: SourceContext; /** * The source syntax. * * @generated from field: google.protobuf.Syntax syntax = 6; */ syntax: Syntax; /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. * * @generated from field: string edition = 7; */ edition: string; }; ⋮---- /** * The fully qualified message name. * * @generated from field: string name = 1; */ ⋮---- /** * The list of fields. * * @generated from field: repeated google.protobuf.Field fields = 2; */ ⋮---- /** * The list of types appearing in `oneof` definitions in this type. * * @generated from field: repeated string oneofs = 3; */ ⋮---- /** * The protocol buffer options. * * @generated from field: repeated google.protobuf.Option options = 4; */ ⋮---- /** * The source context. * * @generated from field: google.protobuf.SourceContext source_context = 5; */ ⋮---- /** * The source syntax. * * @generated from field: google.protobuf.Syntax syntax = 6; */ ⋮---- /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. * * @generated from field: string edition = 7; */ ⋮---- /** * Describes the message google.protobuf.Type. * Use `create(TypeSchema)` to create a new message. */ export const TypeSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A single field of a message type. * * New usages of this message as an alternative to FieldDescriptorProto are * strongly discouraged. This message does not reliability preserve all * information necessary to model the schema and preserve semantics. Instead * make use of FileDescriptorSet which preserves the necessary information. * * @generated from message google.protobuf.Field */ export type Field = Message<"google.protobuf.Field"> & { /** * The field type. * * @generated from field: google.protobuf.Field.Kind kind = 1; */ kind: Field_Kind; /** * The field cardinality. * * @generated from field: google.protobuf.Field.Cardinality cardinality = 2; */ cardinality: Field_Cardinality; /** * The field number. * * @generated from field: int32 number = 3; */ number: number; /** * The field name. * * @generated from field: string name = 4; */ name: string; /** * The field type URL, without the scheme, for message or enumeration * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. * * @generated from field: string type_url = 6; */ typeUrl: string; /** * The index of the field type in `Type.oneofs`, for message or enumeration * types. The first type has index 1; zero means the type is not in the list. * * @generated from field: int32 oneof_index = 7; */ oneofIndex: number; /** * Whether to use alternative packed wire representation. * * @generated from field: bool packed = 8; */ packed: boolean; /** * The protocol buffer options. * * @generated from field: repeated google.protobuf.Option options = 9; */ options: Option[]; /** * The field JSON name. * * @generated from field: string json_name = 10; */ jsonName: string; /** * The string value of the default value of this field. Proto2 syntax only. * * @generated from field: string default_value = 11; */ defaultValue: string; }; ⋮---- /** * The field type. * * @generated from field: google.protobuf.Field.Kind kind = 1; */ ⋮---- /** * The field cardinality. * * @generated from field: google.protobuf.Field.Cardinality cardinality = 2; */ ⋮---- /** * The field number. * * @generated from field: int32 number = 3; */ ⋮---- /** * The field name. * * @generated from field: string name = 4; */ ⋮---- /** * The field type URL, without the scheme, for message or enumeration * types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`. * * @generated from field: string type_url = 6; */ ⋮---- /** * The index of the field type in `Type.oneofs`, for message or enumeration * types. The first type has index 1; zero means the type is not in the list. * * @generated from field: int32 oneof_index = 7; */ ⋮---- /** * Whether to use alternative packed wire representation. * * @generated from field: bool packed = 8; */ ⋮---- /** * The protocol buffer options. * * @generated from field: repeated google.protobuf.Option options = 9; */ ⋮---- /** * The field JSON name. * * @generated from field: string json_name = 10; */ ⋮---- /** * The string value of the default value of this field. Proto2 syntax only. * * @generated from field: string default_value = 11; */ ⋮---- /** * Describes the message google.protobuf.Field. * Use `create(FieldSchema)` to create a new message. */ export const FieldSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Basic field types. * * @generated from enum google.protobuf.Field.Kind */ export enum Field_Kind { /** * Field type unknown. * * @generated from enum value: TYPE_UNKNOWN = 0; */ TYPE_UNKNOWN = 0, /** * Field type double. * * @generated from enum value: TYPE_DOUBLE = 1; */ TYPE_DOUBLE = 1, /** * Field type float. * * @generated from enum value: TYPE_FLOAT = 2; */ TYPE_FLOAT = 2, /** * Field type int64. * * @generated from enum value: TYPE_INT64 = 3; */ TYPE_INT64 = 3, /** * Field type uint64. * * @generated from enum value: TYPE_UINT64 = 4; */ TYPE_UINT64 = 4, /** * Field type int32. * * @generated from enum value: TYPE_INT32 = 5; */ TYPE_INT32 = 5, /** * Field type fixed64. * * @generated from enum value: TYPE_FIXED64 = 6; */ TYPE_FIXED64 = 6, /** * Field type fixed32. * * @generated from enum value: TYPE_FIXED32 = 7; */ TYPE_FIXED32 = 7, /** * Field type bool. * * @generated from enum value: TYPE_BOOL = 8; */ TYPE_BOOL = 8, /** * Field type string. * * @generated from enum value: TYPE_STRING = 9; */ TYPE_STRING = 9, /** * Field type group. Proto2 syntax only, and deprecated. * * @generated from enum value: TYPE_GROUP = 10; */ TYPE_GROUP = 10, /** * Field type message. * * @generated from enum value: TYPE_MESSAGE = 11; */ TYPE_MESSAGE = 11, /** * Field type bytes. * * @generated from enum value: TYPE_BYTES = 12; */ TYPE_BYTES = 12, /** * Field type uint32. * * @generated from enum value: TYPE_UINT32 = 13; */ TYPE_UINT32 = 13, /** * Field type enum. * * @generated from enum value: TYPE_ENUM = 14; */ TYPE_ENUM = 14, /** * Field type sfixed32. * * @generated from enum value: TYPE_SFIXED32 = 15; */ TYPE_SFIXED32 = 15, /** * Field type sfixed64. * * @generated from enum value: TYPE_SFIXED64 = 16; */ TYPE_SFIXED64 = 16, /** * Field type sint32. * * @generated from enum value: TYPE_SINT32 = 17; */ TYPE_SINT32 = 17, /** * Field type sint64. * * @generated from enum value: TYPE_SINT64 = 18; */ TYPE_SINT64 = 18, } ⋮---- /** * Field type unknown. * * @generated from enum value: TYPE_UNKNOWN = 0; */ ⋮---- /** * Field type double. * * @generated from enum value: TYPE_DOUBLE = 1; */ ⋮---- /** * Field type float. * * @generated from enum value: TYPE_FLOAT = 2; */ ⋮---- /** * Field type int64. * * @generated from enum value: TYPE_INT64 = 3; */ ⋮---- /** * Field type uint64. * * @generated from enum value: TYPE_UINT64 = 4; */ ⋮---- /** * Field type int32. * * @generated from enum value: TYPE_INT32 = 5; */ ⋮---- /** * Field type fixed64. * * @generated from enum value: TYPE_FIXED64 = 6; */ ⋮---- /** * Field type fixed32. * * @generated from enum value: TYPE_FIXED32 = 7; */ ⋮---- /** * Field type bool. * * @generated from enum value: TYPE_BOOL = 8; */ ⋮---- /** * Field type string. * * @generated from enum value: TYPE_STRING = 9; */ ⋮---- /** * Field type group. Proto2 syntax only, and deprecated. * * @generated from enum value: TYPE_GROUP = 10; */ ⋮---- /** * Field type message. * * @generated from enum value: TYPE_MESSAGE = 11; */ ⋮---- /** * Field type bytes. * * @generated from enum value: TYPE_BYTES = 12; */ ⋮---- /** * Field type uint32. * * @generated from enum value: TYPE_UINT32 = 13; */ ⋮---- /** * Field type enum. * * @generated from enum value: TYPE_ENUM = 14; */ ⋮---- /** * Field type sfixed32. * * @generated from enum value: TYPE_SFIXED32 = 15; */ ⋮---- /** * Field type sfixed64. * * @generated from enum value: TYPE_SFIXED64 = 16; */ ⋮---- /** * Field type sint32. * * @generated from enum value: TYPE_SINT32 = 17; */ ⋮---- /** * Field type sint64. * * @generated from enum value: TYPE_SINT64 = 18; */ ⋮---- /** * Describes the enum google.protobuf.Field.Kind. */ export const Field_KindSchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Whether a field is optional, required, or repeated. * * @generated from enum google.protobuf.Field.Cardinality */ export enum Field_Cardinality { /** * For fields with unknown cardinality. * * @generated from enum value: CARDINALITY_UNKNOWN = 0; */ UNKNOWN = 0, /** * For optional fields. * * @generated from enum value: CARDINALITY_OPTIONAL = 1; */ OPTIONAL = 1, /** * For required fields. Proto2 syntax only. * * @generated from enum value: CARDINALITY_REQUIRED = 2; */ REQUIRED = 2, /** * For repeated fields. * * @generated from enum value: CARDINALITY_REPEATED = 3; */ REPEATED = 3, } ⋮---- /** * For fields with unknown cardinality. * * @generated from enum value: CARDINALITY_UNKNOWN = 0; */ ⋮---- /** * For optional fields. * * @generated from enum value: CARDINALITY_OPTIONAL = 1; */ ⋮---- /** * For required fields. Proto2 syntax only. * * @generated from enum value: CARDINALITY_REQUIRED = 2; */ ⋮---- /** * For repeated fields. * * @generated from enum value: CARDINALITY_REPEATED = 3; */ ⋮---- /** * Describes the enum google.protobuf.Field.Cardinality. */ export const Field_CardinalitySchema: GenEnum = /*@__PURE__*/ ⋮---- /** * Enum type definition. * * New usages of this message as an alternative to EnumDescriptorProto are * strongly discouraged. This message does not reliability preserve all * information necessary to model the schema and preserve semantics. Instead * make use of FileDescriptorSet which preserves the necessary information. * * @generated from message google.protobuf.Enum */ export type Enum = Message<"google.protobuf.Enum"> & { /** * Enum type name. * * @generated from field: string name = 1; */ name: string; /** * Enum value definitions. * * @generated from field: repeated google.protobuf.EnumValue enumvalue = 2; */ enumvalue: EnumValue[]; /** * Protocol buffer options. * * @generated from field: repeated google.protobuf.Option options = 3; */ options: Option[]; /** * The source context. * * @generated from field: google.protobuf.SourceContext source_context = 4; */ sourceContext?: SourceContext; /** * The source syntax. * * @generated from field: google.protobuf.Syntax syntax = 5; */ syntax: Syntax; /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. * * @generated from field: string edition = 6; */ edition: string; }; ⋮---- /** * Enum type name. * * @generated from field: string name = 1; */ ⋮---- /** * Enum value definitions. * * @generated from field: repeated google.protobuf.EnumValue enumvalue = 2; */ ⋮---- /** * Protocol buffer options. * * @generated from field: repeated google.protobuf.Option options = 3; */ ⋮---- /** * The source context. * * @generated from field: google.protobuf.SourceContext source_context = 4; */ ⋮---- /** * The source syntax. * * @generated from field: google.protobuf.Syntax syntax = 5; */ ⋮---- /** * The source edition string, only valid when syntax is SYNTAX_EDITIONS. * * @generated from field: string edition = 6; */ ⋮---- /** * Describes the message google.protobuf.Enum. * Use `create(EnumSchema)` to create a new message. */ export const EnumSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * Enum value definition. * * New usages of this message as an alternative to EnumValueDescriptorProto are * strongly discouraged. This message does not reliability preserve all * information necessary to model the schema and preserve semantics. Instead * make use of FileDescriptorSet which preserves the necessary information. * * @generated from message google.protobuf.EnumValue */ export type EnumValue = Message<"google.protobuf.EnumValue"> & { /** * Enum value name. * * @generated from field: string name = 1; */ name: string; /** * Enum value number. * * @generated from field: int32 number = 2; */ number: number; /** * Protocol buffer options. * * @generated from field: repeated google.protobuf.Option options = 3; */ options: Option[]; }; ⋮---- /** * Enum value name. * * @generated from field: string name = 1; */ ⋮---- /** * Enum value number. * * @generated from field: int32 number = 2; */ ⋮---- /** * Protocol buffer options. * * @generated from field: repeated google.protobuf.Option options = 3; */ ⋮---- /** * Describes the message google.protobuf.EnumValue. * Use `create(EnumValueSchema)` to create a new message. */ export const EnumValueSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * A protocol buffer option, which can be attached to a message, field, * enumeration, etc. * * New usages of this message as an alternative to FileOptions, MessageOptions, * FieldOptions, EnumOptions, EnumValueOptions, ServiceOptions, or MethodOptions * are strongly discouraged. * * @generated from message google.protobuf.Option */ export type Option = Message<"google.protobuf.Option"> & { /** * The option's name. For protobuf built-in options (options defined in * descriptor.proto), this is the short name. For example, `"map_entry"`. * For custom options, it should be the fully-qualified name. For example, * `"google.api.http"`. * * @generated from field: string name = 1; */ name: string; /** * The option's value packed in an Any message. If the value is a primitive, * the corresponding wrapper type defined in google/protobuf/wrappers.proto * should be used. If the value is an enum, it should be stored as an int32 * value using the google.protobuf.Int32Value type. * * @generated from field: google.protobuf.Any value = 2; */ value?: Any; }; ⋮---- /** * The option's name. For protobuf built-in options (options defined in * descriptor.proto), this is the short name. For example, `"map_entry"`. * For custom options, it should be the fully-qualified name. For example, * `"google.api.http"`. * * @generated from field: string name = 1; */ ⋮---- /** * The option's value packed in an Any message. If the value is a primitive, * the corresponding wrapper type defined in google/protobuf/wrappers.proto * should be used. If the value is an enum, it should be stored as an int32 * value using the google.protobuf.Int32Value type. * * @generated from field: google.protobuf.Any value = 2; */ ⋮---- /** * Describes the message google.protobuf.Option. * Use `create(OptionSchema)` to create a new message. */ export const OptionSchema: GenMessageWGS84 * standard. Values must be within normalized ranges. * * @generated from message google.type.LatLng */ export type LatLng = Message<"google.type.LatLng"> & { /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. * * @generated from field: double latitude = 1; */ latitude: number; /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. * * @generated from field: double longitude = 2; */ longitude: number; }; ⋮---- /** * The latitude in degrees. It must be in the range [-90.0, +90.0]. * * @generated from field: double latitude = 1; */ ⋮---- /** * The longitude in degrees. It must be in the range [-180.0, +180.0]. * * @generated from field: double longitude = 2; */ ⋮---- /** * Describes the message google.type.LatLng. * Use `create(LatLngSchema)` to create a new message. */ export const LatLngSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/type/localized_text_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/type/localized_text.proto (package google.type, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/type/localized_text.proto. */ export const file_google_type_localized_text: GenFile = /*@__PURE__*/ ⋮---- /** * Localized variant of a text in a particular language. * * @generated from message google.type.LocalizedText */ export type LocalizedText = Message<"google.type.LocalizedText"> & { /** * Localized string in the language corresponding to `language_code' below. * * @generated from field: string text = 1; */ text: string; /** * The text's BCP-47 language code, such as "en-US" or "sr-Latn". * * For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. * * @generated from field: string language_code = 2; */ languageCode: string; }; ⋮---- /** * Localized string in the language corresponding to `language_code' below. * * @generated from field: string text = 1; */ ⋮---- /** * The text's BCP-47 language code, such as "en-US" or "sr-Latn". * * For more information, see * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. * * @generated from field: string language_code = 2; */ ⋮---- /** * Describes the message google.type.LocalizedText. * Use `create(LocalizedTextSchema)` to create a new message. */ export const LocalizedTextSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/type/money_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/type/money.proto (package google.type, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/type/money.proto. */ export const file_google_type_money: GenFile = /*@__PURE__*/ ⋮---- /** * Represents an amount of money with its currency type. * * @generated from message google.type.Money */ export type Money = Message<"google.type.Money"> & { /** * The three-letter currency code defined in ISO 4217. * * @generated from field: string currency_code = 1; */ currencyCode: string; /** * The whole units of the amount. * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. * * @generated from field: int64 units = 2; */ units: bigint; /** * Number of nano (10^-9) units of the amount. * The value must be between -999,999,999 and +999,999,999 inclusive. * If `units` is positive, `nanos` must be positive or zero. * If `units` is zero, `nanos` can be positive, zero, or negative. * If `units` is negative, `nanos` must be negative or zero. * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. * * @generated from field: int32 nanos = 3; */ nanos: number; }; ⋮---- /** * The three-letter currency code defined in ISO 4217. * * @generated from field: string currency_code = 1; */ ⋮---- /** * The whole units of the amount. * For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar. * * @generated from field: int64 units = 2; */ ⋮---- /** * Number of nano (10^-9) units of the amount. * The value must be between -999,999,999 and +999,999,999 inclusive. * If `units` is positive, `nanos` must be positive or zero. * If `units` is zero, `nanos` can be positive, zero, or negative. * If `units` is negative, `nanos` must be negative or zero. * For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000. * * @generated from field: int32 nanos = 3; */ ⋮---- /** * Describes the message google.type.Money. * Use `create(MoneySchema)` to create a new message. */ export const MoneySchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/type/month_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/type/month.proto (package google.type, syntax proto3) /* eslint-disable */ ⋮---- import type { GenEnum, GenFile } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc } from "@bufbuild/protobuf/codegenv2"; ⋮---- /** * Describes the file google/type/month.proto. */ export const file_google_type_month: GenFile = /*@__PURE__*/ ⋮---- /** * Represents a month in the Gregorian calendar. * * @generated from enum google.type.Month */ export enum Month { /** * The unspecified month. * * @generated from enum value: MONTH_UNSPECIFIED = 0; */ MONTH_UNSPECIFIED = 0, /** * The month of January. * * @generated from enum value: JANUARY = 1; */ JANUARY = 1, /** * The month of February. * * @generated from enum value: FEBRUARY = 2; */ FEBRUARY = 2, /** * The month of March. * * @generated from enum value: MARCH = 3; */ MARCH = 3, /** * The month of April. * * @generated from enum value: APRIL = 4; */ APRIL = 4, /** * The month of May. * * @generated from enum value: MAY = 5; */ MAY = 5, /** * The month of June. * * @generated from enum value: JUNE = 6; */ JUNE = 6, /** * The month of July. * * @generated from enum value: JULY = 7; */ JULY = 7, /** * The month of August. * * @generated from enum value: AUGUST = 8; */ AUGUST = 8, /** * The month of September. * * @generated from enum value: SEPTEMBER = 9; */ SEPTEMBER = 9, /** * The month of October. * * @generated from enum value: OCTOBER = 10; */ OCTOBER = 10, /** * The month of November. * * @generated from enum value: NOVEMBER = 11; */ NOVEMBER = 11, /** * The month of December. * * @generated from enum value: DECEMBER = 12; */ DECEMBER = 12, } ⋮---- /** * The unspecified month. * * @generated from enum value: MONTH_UNSPECIFIED = 0; */ ⋮---- /** * The month of January. * * @generated from enum value: JANUARY = 1; */ ⋮---- /** * The month of February. * * @generated from enum value: FEBRUARY = 2; */ ⋮---- /** * The month of March. * * @generated from enum value: MARCH = 3; */ ⋮---- /** * The month of April. * * @generated from enum value: APRIL = 4; */ ⋮---- /** * The month of May. * * @generated from enum value: MAY = 5; */ ⋮---- /** * The month of June. * * @generated from enum value: JUNE = 6; */ ⋮---- /** * The month of July. * * @generated from enum value: JULY = 7; */ ⋮---- /** * The month of August. * * @generated from enum value: AUGUST = 8; */ ⋮---- /** * The month of September. * * @generated from enum value: SEPTEMBER = 9; */ ⋮---- /** * The month of October. * * @generated from enum value: OCTOBER = 10; */ ⋮---- /** * The month of November. * * @generated from enum value: NOVEMBER = 11; */ ⋮---- /** * The month of December. * * @generated from enum value: DECEMBER = 12; */ ⋮---- /** * Describes the enum google.type.Month. */ export const MonthSchema: GenEnum = /*@__PURE__*/ ```` ## File: src/gen/google/type/phone_number_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/type/phone_number.proto (package google.type, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/type/phone_number.proto. */ export const file_google_type_phone_number: GenFile = /*@__PURE__*/ ⋮---- /** * An object representing a phone number, suitable as an API wire format. * * This representation: * * - should not be used for locale-specific formatting of a phone number, such * as "+1 (650) 253-0000 ext. 123" * * - is not designed for efficient storage * - may not be suitable for dialing - specialized libraries (see references) * should be used to parse the number for that purpose * * To do something meaningful with this number, such as format it for various * use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first. * * For instance, in Java this would be: * * com.google.type.PhoneNumber wireProto = * com.google.type.PhoneNumber.newBuilder().build(); * com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber = * PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ"); * if (!wireProto.getExtension().isEmpty()) { * phoneNumber.setExtension(wireProto.getExtension()); * } * * Reference(s): * - https://github.com/google/libphonenumber * * @generated from message google.type.PhoneNumber */ export type PhoneNumber = Message<"google.type.PhoneNumber"> & { /** * Required. Either a regular number, or a short code. New fields may be * added to the oneof below in the future, so clients should ignore phone * numbers for which none of the fields they coded against are set. * * @generated from oneof google.type.PhoneNumber.kind */ kind: { /** * The phone number, represented as a leading plus sign ('+'), followed by a * phone number that uses a relaxed ITU E.164 format consisting of the * country calling code (1 to 3 digits) and the subscriber number, with no * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. * - https://en.wikipedia.org/wiki/List_of_country_calling_codes * * @generated from field: string e164_number = 1; */ value: string; case: "e164Number"; } | { /** * A short code. * * Reference(s): * - https://en.wikipedia.org/wiki/Short_code * * @generated from field: google.type.PhoneNumber.ShortCode short_code = 2; */ value: PhoneNumber_ShortCode; case: "shortCode"; } | { case: undefined; value?: undefined }; /** * The phone number's extension. The extension is not standardized in ITU * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the * future. * * @generated from field: string extension = 3; */ extension: string; }; ⋮---- /** * Required. Either a regular number, or a short code. New fields may be * added to the oneof below in the future, so clients should ignore phone * numbers for which none of the fields they coded against are set. * * @generated from oneof google.type.PhoneNumber.kind */ ⋮---- /** * The phone number, represented as a leading plus sign ('+'), followed by a * phone number that uses a relaxed ITU E.164 format consisting of the * country calling code (1 to 3 digits) and the subscriber number, with no * additional spaces or formatting, e.g.: * - correct: "+15552220123" * - incorrect: "+1 (555) 222-01234 x123". * * The ITU E.164 format limits the latter to 12 digits, but in practice not * all countries respect that, so we relax that restriction here. * National-only numbers are not allowed. * * References: * - https://www.itu.int/rec/T-REC-E.164-201011-I * - https://en.wikipedia.org/wiki/E.164. * - https://en.wikipedia.org/wiki/List_of_country_calling_codes * * @generated from field: string e164_number = 1; */ ⋮---- /** * A short code. * * Reference(s): * - https://en.wikipedia.org/wiki/Short_code * * @generated from field: google.type.PhoneNumber.ShortCode short_code = 2; */ ⋮---- /** * The phone number's extension. The extension is not standardized in ITU * recommendations, except for being defined as a series of numbers with a * maximum length of 40 digits. Other than digits, some other dialing * characters such as ',' (indicating a wait) or '#' may be stored here. * * Note that no regions currently use extensions with short codes, so this * field is normally only set in conjunction with an E.164 number. It is held * separately from the E.164 number to allow for short code extensions in the * future. * * @generated from field: string extension = 3; */ ⋮---- /** * Describes the message google.type.PhoneNumber. * Use `create(PhoneNumberSchema)` to create a new message. */ export const PhoneNumberSchema: GenMessage = /*@__PURE__*/ ⋮---- /** * An object representing a short code, which is a phone number that is * typically much shorter than regular phone numbers and can be used to * address messages in MMS and SMS systems, as well as for abbreviated dialing * (e.g. "Text 611 to see how many minutes you have remaining on your plan."). * * Short codes are restricted to a region and are not internationally * dialable, which means the same short code can exist in different regions, * with different usage and pricing, even if those regions share the same * country calling code (e.g. US and CA). * * @generated from message google.type.PhoneNumber.ShortCode */ export type PhoneNumber_ShortCode = Message<"google.type.PhoneNumber.ShortCode"> & { /** * Required. The BCP-47 region code of the location where calls to this * short code can be made, such as "US" and "BB". * * Reference(s): * - http://www.unicode.org/reports/tr35/#unicode_region_subtag * * @generated from field: string region_code = 1; */ regionCode: string; /** * Required. The short code digits, without a leading plus ('+') or country * calling code, e.g. "611". * * @generated from field: string number = 2; */ number: string; }; ⋮---- /** * Required. The BCP-47 region code of the location where calls to this * short code can be made, such as "US" and "BB". * * Reference(s): * - http://www.unicode.org/reports/tr35/#unicode_region_subtag * * @generated from field: string region_code = 1; */ ⋮---- /** * Required. The short code digits, without a leading plus ('+') or country * calling code, e.g. "611". * * @generated from field: string number = 2; */ ⋮---- /** * Describes the message google.type.PhoneNumber.ShortCode. * Use `create(PhoneNumber_ShortCodeSchema)` to create a new message. */ export const PhoneNumber_ShortCodeSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/type/postal_address_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/type/postal_address.proto (package google.type, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/type/postal_address.proto. */ export const file_google_type_postal_address: GenFile = /*@__PURE__*/ ⋮---- /** * Represents a postal address, e.g. for postal delivery or payments addresses. * Given a postal address, a postal service can deliver items to a premise, P.O. * Box or similar. * It is not intended to model geographical locations (roads, towns, * mountains). * * In typical usage an address would be created via user input or from importing * existing data, depending on the type of process. * * Advice on address input / editing: * - Use an i18n-ready address widget such as * https://github.com/google/libaddressinput) * - Users should not be presented with UI elements for input or editing of * fields outside countries where that field is used. * * For more guidance on how to use this schema, please see: * https://support.google.com/business/answer/6397478 * * @generated from message google.type.PostalAddress */ export type PostalAddress = Message<"google.type.PostalAddress"> & { /** * The schema revision of the `PostalAddress`. This must be set to 0, which is * the latest revision. * * All new revisions **must** be backward compatible with old revisions. * * @generated from field: int32 revision = 1; */ revision: number; /** * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is * correct. See http://cldr.unicode.org/ and * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * * @generated from field: string region_code = 2; */ regionCode: string; /** * Optional. BCP-47 language code of the contents of this address (if * known). This is often the UI language of the input form or is expected * to match one of the languages used in the address' country/region, or their * transliterated equivalents. * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). * * Examples: "zh-Hant", "ja", "ja-Latn", "en". * * @generated from field: string language_code = 3; */ languageCode: string; /** * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger * additional validation with other parts of the address (e.g. state/zip * validation in the U.S.A.). * * @generated from field: string postal_code = 4; */ postalCode: string; /** * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number * alone, representing the "sector code" (Jamaica), "delivery area indicator" * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). * * @generated from field: string sorting_code = 5; */ sortingCode: string; /** * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. * Specifically, for Spain this is the province and not the autonomous * community (e.g. "Barcelona" and not "Catalonia"). * Many countries don't use an administrative area in postal addresses. E.g. * in Switzerland this should be left unpopulated. * * @generated from field: string administrative_area = 6; */ administrativeArea: string; /** * Optional. Generally refers to the city/town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit * into this structure well, leave locality empty and use address_lines. * * @generated from field: string locality = 7; */ locality: string; /** * Optional. Sublocality of the address. * For example, this can be neighborhoods, boroughs, districts. * * @generated from field: string sublocality = 8; */ sublocality: string; /** * Unstructured address lines describing the lower levels of an address. * * Because values in address_lines do not have type information and may * sometimes contain multiple values in a single field (e.g. * "Austin, TX"), it is important that the line order is clear. The order of * address lines should be "envelope order" for the country/region of the * address. In places where this can vary (e.g. Japan), address_language is * used to make it explicit (e.g. "ja" for large-to-small ordering and * "ja-Latn" or "en" for small-to-large). This way, the most specific line of * an address can be selected based on the language. * * The minimum permitted structural representation of an address consists * of a region_code with all remaining information placed in the * address_lines. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. * * Creating an address only containing a region_code and address_lines, and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). * * @generated from field: repeated string address_lines = 9; */ addressLines: string[]; /** * Optional. The recipient at the address. * This field may, under certain circumstances, contain multiline information. * For example, it might contain "care of" information. * * @generated from field: repeated string recipients = 10; */ recipients: string[]; /** * Optional. The name of the organization at the address. * * @generated from field: string organization = 11; */ organization: string; }; ⋮---- /** * The schema revision of the `PostalAddress`. This must be set to 0, which is * the latest revision. * * All new revisions **must** be backward compatible with old revisions. * * @generated from field: int32 revision = 1; */ ⋮---- /** * Required. CLDR region code of the country/region of the address. This * is never inferred and it is up to the user to ensure the value is * correct. See http://cldr.unicode.org/ and * http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html * for details. Example: "CH" for Switzerland. * * @generated from field: string region_code = 2; */ ⋮---- /** * Optional. BCP-47 language code of the contents of this address (if * known). This is often the UI language of the input form or is expected * to match one of the languages used in the address' country/region, or their * transliterated equivalents. * This can affect formatting in certain countries, but is not critical * to the correctness of the data and will never affect any validation or * other non-formatting related operations. * * If this value is not known, it should be omitted (rather than specifying a * possibly incorrect default). * * Examples: "zh-Hant", "ja", "ja-Latn", "en". * * @generated from field: string language_code = 3; */ ⋮---- /** * Optional. Postal code of the address. Not all countries use or require * postal codes to be present, but where they are used, they may trigger * additional validation with other parts of the address (e.g. state/zip * validation in the U.S.A.). * * @generated from field: string postal_code = 4; */ ⋮---- /** * Optional. Additional, country-specific, sorting code. This is not used * in most regions. Where it is used, the value is either a string like * "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number * alone, representing the "sector code" (Jamaica), "delivery area indicator" * (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). * * @generated from field: string sorting_code = 5; */ ⋮---- /** * Optional. Highest administrative subdivision which is used for postal * addresses of a country or region. * For example, this can be a state, a province, an oblast, or a prefecture. * Specifically, for Spain this is the province and not the autonomous * community (e.g. "Barcelona" and not "Catalonia"). * Many countries don't use an administrative area in postal addresses. E.g. * in Switzerland this should be left unpopulated. * * @generated from field: string administrative_area = 6; */ ⋮---- /** * Optional. Generally refers to the city/town portion of the address. * Examples: US city, IT comune, UK post town. * In regions of the world where localities are not well defined or do not fit * into this structure well, leave locality empty and use address_lines. * * @generated from field: string locality = 7; */ ⋮---- /** * Optional. Sublocality of the address. * For example, this can be neighborhoods, boroughs, districts. * * @generated from field: string sublocality = 8; */ ⋮---- /** * Unstructured address lines describing the lower levels of an address. * * Because values in address_lines do not have type information and may * sometimes contain multiple values in a single field (e.g. * "Austin, TX"), it is important that the line order is clear. The order of * address lines should be "envelope order" for the country/region of the * address. In places where this can vary (e.g. Japan), address_language is * used to make it explicit (e.g. "ja" for large-to-small ordering and * "ja-Latn" or "en" for small-to-large). This way, the most specific line of * an address can be selected based on the language. * * The minimum permitted structural representation of an address consists * of a region_code with all remaining information placed in the * address_lines. It would be possible to format such an address very * approximately without geocoding, but no semantic reasoning could be * made about any of the address components until it was at least * partially resolved. * * Creating an address only containing a region_code and address_lines, and * then geocoding is the recommended way to handle completely unstructured * addresses (as opposed to guessing which parts of the address should be * localities or administrative areas). * * @generated from field: repeated string address_lines = 9; */ ⋮---- /** * Optional. The recipient at the address. * This field may, under certain circumstances, contain multiline information. * For example, it might contain "care of" information. * * @generated from field: repeated string recipients = 10; */ ⋮---- /** * Optional. The name of the organization at the address. * * @generated from field: string organization = 11; */ ⋮---- /** * Describes the message google.type.PostalAddress. * Use `create(PostalAddressSchema)` to create a new message. */ export const PostalAddressSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/type/quaternion_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/type/quaternion.proto (package google.type, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/type/quaternion.proto. */ export const file_google_type_quaternion: GenFile = /*@__PURE__*/ ⋮---- /** * A quaternion is defined as the quotient of two directed lines in a * three-dimensional space or equivalently as the quotient of two Euclidean * vectors (https://en.wikipedia.org/wiki/Quaternion). * * Quaternions are often used in calculations involving three-dimensional * rotations (https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation), * as they provide greater mathematical robustness by avoiding the gimbal lock * problems that can be encountered when using Euler angles * (https://en.wikipedia.org/wiki/Gimbal_lock). * * Quaternions are generally represented in this form: * * w + xi + yj + zk * * where x, y, z, and w are real numbers, and i, j, and k are three imaginary * numbers. * * Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for * those interested in the geometric properties of the quaternion in the 3D * Cartesian space. Other texts often use alternative names or subscripts, such * as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps * better suited for mathematical interpretations. * * To avoid any confusion, as well as to maintain compatibility with a large * number of software libraries, the quaternions represented using the protocol * buffer below *must* follow the Hamilton convention, which defines `ij = k` * (i.e. a right-handed algebra), and therefore: * * i^2 = j^2 = k^2 = ijk = −1 * ij = −ji = k * jk = −kj = i * ki = −ik = j * * Please DO NOT use this to represent quaternions that follow the JPL * convention, or any of the other quaternion flavors out there. * * Definitions: * * - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`. * - Unit (or normalized) quaternion: a quaternion whose norm is 1. * - Pure quaternion: a quaternion whose scalar component (`w`) is 0. * - Rotation quaternion: a unit quaternion used to represent rotation. * - Orientation quaternion: a unit quaternion used to represent orientation. * * A quaternion can be normalized by dividing it by its norm. The resulting * quaternion maintains the same direction, but has a norm of 1, i.e. it moves * on the unit sphere. This is generally necessary for rotation and orientation * quaternions, to avoid rounding errors: * https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions * * Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation, * but normalization would be even more useful, e.g. for comparison purposes, if * it would produce a unique representation. It is thus recommended that `w` be * kept positive, which can be achieved by changing all the signs when `w` is * negative. * * * @generated from message google.type.Quaternion */ export type Quaternion = Message<"google.type.Quaternion"> & { /** * The x component. * * @generated from field: double x = 1; */ x: number; /** * The y component. * * @generated from field: double y = 2; */ y: number; /** * The z component. * * @generated from field: double z = 3; */ z: number; /** * The scalar component. * * @generated from field: double w = 4; */ w: number; }; ⋮---- /** * The x component. * * @generated from field: double x = 1; */ ⋮---- /** * The y component. * * @generated from field: double y = 2; */ ⋮---- /** * The z component. * * @generated from field: double z = 3; */ ⋮---- /** * The scalar component. * * @generated from field: double w = 4; */ ⋮---- /** * Describes the message google.type.Quaternion. * Use `create(QuaternionSchema)` to create a new message. */ export const QuaternionSchema: GenMessage = /*@__PURE__*/ ```` ## File: src/gen/google/type/timeofday_pb.ts ````typescript // Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. ⋮---- // @generated by protoc-gen-es v2.6.3 with parameter "target=ts" // @generated from file google/type/timeofday.proto (package google.type, syntax proto3) /* eslint-disable */ ⋮---- import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2"; import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2"; import type { Message } from "@bufbuild/protobuf"; ⋮---- /** * Describes the file google/type/timeofday.proto. */ export const file_google_type_timeofday: GenFile = /*@__PURE__*/ ⋮---- /** * Represents a time of day. The date and time zone are either not significant * or are specified elsewhere. An API may choose to allow leap seconds. Related * types are [google.type.Date][google.type.Date] and * `google.protobuf.Timestamp`. * * @generated from message google.type.TimeOfDay */ export type TimeOfDay = Message<"google.type.TimeOfDay"> & { /** * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose * to allow the value "24:00:00" for scenarios like business closing time. * * @generated from field: int32 hours = 1; */ hours: number; /** * Minutes of hour of day. Must be from 0 to 59. * * @generated from field: int32 minutes = 2; */ minutes: number; /** * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. * * @generated from field: int32 seconds = 3; */ seconds: number; /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * * @generated from field: int32 nanos = 4; */ nanos: number; }; ⋮---- /** * Hours of day in 24 hour format. Should be from 0 to 23. An API may choose * to allow the value "24:00:00" for scenarios like business closing time. * * @generated from field: int32 hours = 1; */ ⋮---- /** * Minutes of hour of day. Must be from 0 to 59. * * @generated from field: int32 minutes = 2; */ ⋮---- /** * Seconds of minutes of the time. Must normally be from 0 to 59. An API may * allow the value 60 if it allows leap-seconds. * * @generated from field: int32 seconds = 3; */ ⋮---- /** * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * * @generated from field: int32 nanos = 4; */ ⋮---- /** * Describes the message google.type.TimeOfDay. * Use `create(TimeOfDaySchema)` to create a new message. */ export const TimeOfDaySchema: GenMessage = /*@__PURE__*/ ```` ## File: src/index.ts ````typescript ```` ## File: .gitignore ```` node_modules dist /api .DS_Store .idea ```` ## File: .npmignore ```` # Source files are included via "files" field in package.json # This file provides additional exclusions for security and cleanliness # Development files .eslintrc.json tsconfig.json buf.gen.yaml # Scripts and examples (already in separate packages) scripts/ examples/ # CI/CD and development .github/ .npmrc # OS files .DS_Store Thumbs.db # Editor files .vscode/ .idea/ *.swp *.swo # Logs *.log npm-debug.log* # Temporary files *.tmp *.temp ```` ## File: .npmrc ```` engine-strict=true package-lock=true fund=false audit=false //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN} ```` ## File: buf.gen.yaml ````yaml version: v2 inputs: - directory: . - module: buf.build/googleapis/googleapis - module: buf.build/protocolbuffers/wellknowntypes managed: enabled: true plugins: - remote: buf.build/bufbuild/es:v2.6.3 out: src/gen opt: - target=ts ```` ## File: buf.lock ```` # Generated by buf. DO NOT EDIT. version: v2 deps: - name: buf.build/googleapis/googleapis commit: 72c8614f3bd0466ea67931ef2c43d608 digest: b5:13efeea24e633fd45327390bdee941207a8727e96cf01affb84c1e4100fd8f48a42bbd508df11930cd2884629bafad685df1ac3111bc78cdaefcd38c9371c6b1 ```` ## File: buf.yaml ````yaml version: v2 modules: - path: . deps: - buf.build/googleapis/googleapis ```` ## File: eslint.config.js ````javascript ```` ## File: LICENSE ```` MIT License Copyright (c) 2025 Symbiotic 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. ```` ## File: package.json ````json { "name": "@symbioticfi/relay-client-ts", "version": "0.2.0", "description": "TypeScript client for Symbiotic Relay", "keywords": [ "symbiotic", "relay", "typescript", "client", "blockchain", "grpc" ], "homepage": "https://github.com/symbioticfi/relay-client-ts#readme", "bugs": { "url": "https://github.com/symbioticfi/relay-client-ts/issues" }, "author": "Symbiotic Team", "type": "module", "main": "dist/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", "files": [ "dist", "src" ], "scripts": { "update:proto": "bash ./scripts/update-proto.sh", "generate": "buf generate", "build": "tsc -p tsconfig.json", "lint": "eslint . --ext .ts", "prepublishOnly": "npm run build" }, "dependencies": { "@bufbuild/protobuf": "^2.0.0" }, "devDependencies": { "@eslint/js": "^9.33.0", "@types/node": "^20.12.0", "@typescript-eslint/eslint-plugin": "^8.40.0", "@typescript-eslint/parser": "^8.40.0", "eslint": "^9.0.0", "typescript": "^5.5.0" }, "publishConfig": { "access": "public" }, "repository": { "type": "git", "url": "git+https://github.com/symbioticfi/relay-client-ts.git" }, "license": "MIT", "engines": { "node": ">=20" } } ```` ## File: README.md ````markdown # Relay Client (TypeScript) TypeScript client for the Symbiotic Relay built with Connect RPC and @bufbuild/protobuf. ## Usage Create a transport with @connectrpc/connect-node and instantiate the SymbioticAPIService client with that transport. See [examples/](./examples/) directory for comprehensive usage examples including: - Basic client setup and connection - Message signing and aggregation - Streaming operations - Error handling patterns To get started with the examples: ```bash cd examples/ npm install npm run basic-usage ``` ## Development Run scripts/update-proto.sh to fetch upstream proto and regenerate; run npm run build to compile to dist. ```` ## File: tsconfig.json ````json { "compilerOptions": { "target": "ES2020", "module": "ES2020", "moduleResolution": "bundler", "declaration": true, "outDir": "dist", "rootDir": "src", "strict": true, "resolveJsonModule": true, "skipLibCheck": true }, "include": [ "src/**/*.ts" ], "exclude": [ "node_modules", "dist" ] } ````