Signed-off-by: Faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-10-04 19:11:37 +03:00
1 parent 9c305f2a4d
commit 21261db8ef
185 files changed
+52751 -217

No files matched your search

+1404
View File
File diff suppressed because it is too large. Load diff
+40
View File
@@ -0,0 +1,40 @@
[package]
name = "schema-api"
version = "0.1.0"
edition = "2021"
description = "Complete Rust gRPC bindings and client utilities for the supplied API schemas"
readme = "README.md"
publish = false
include = ["src/**", "proto/**", "build.rs", "Cargo.toml", "Cargo.lock", "README.md", "docs/**", "examples/**", "tests/**", "scripts/**"]
[features]
default = ["reflection"]
reflection = ["dep:prost-reflect", "dep:serde_json"]
server = []
infrastructure = []
gzip = ["tonic/gzip"]
[dependencies]
prost = "0.14"
prost-types = "0.14"
tonic = { version = "0.14", features = ["transport", "tls-ring", "tls-native-roots"] }
tonic-prost = "0.14"
thiserror = "2"
prost-reflect = { version = "0.16", features = ["serde"], optional = true }
serde_json = { version = "1", optional = true }
[build-dependencies]
prost-build = "0.14"
tonic-prost-build = "0.14"
protoc-bin-vendored = "3"
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread", "net", "sync", "time"] }
tokio-stream = { version = "0.1", features = ["net"] }
[[example]]
name = "inspect_schema"
required-features = ["reflection"]
# Voelin: keep this vendored package independent of enclosing workspaces.
[workspace]
+172
View File
@@ -0,0 +1,172 @@
# schema-api
A Rust crate for the API in the supplied protobuf archive. It exposes **all 106 application RPCs across nine services**, plus all 228 application message declarations and 33 enums. Original namespaces, field numbers, enum numbers, oneofs, proto2 presence, and RPC route spelling are preserved. The namespace is treated solely as your API's wire contract.
Features include configurable async gRPC clients, native/custom TLS and mTLS, rotating request metadata, request deadlines, message limits, optional gzip, session-body helpers, binary codecs, checked `Any` conversion, runtime descriptors, protobuf JSON, and optional generated servers. All original 123 `.proto` files are included.
## Use locally
Extract this directory next to your application and add:
```toml
[dependencies]
schema-api = { path = "../schema-api" }
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
```
Use a current stable Rust toolchain. Cargo downloads dependencies on the first build. A bundled `protoc` is selected automatically; installing a protobuf compiler separately is unnecessary. `PROTOC` can override the executable and `PROTOC_INCLUDE` can override its standard include directory (containing `google/protobuf`). Set both on hosts without a vendored compiler. `Cargo.lock` records the versions used for verification. This local crate is not published; `publish = false` avoids accidental registry publication. No new license is imposed on your supplied schemas.
## Login and a session-authenticated call
```no_run
use schema_api::{api, ApiClient, SessionRequest, SessionToken};
use std::time::Duration;
# async fn example() -> Result<(), Box<dyn std::error::Error>> {
let client = ApiClient::builder("https://api.example.invalid")?
.connect_timeout(Duration::from_secs(10))
.request_timeout(Duration::from_secs(30))
.connect()
.await?;
let response = client.login().login(api::LoginData {
email: "user@example.invalid".into(),
password: "your-server-defined-credential".into(),
device_name: "Rust client".into(),
..Default::default()
}).await?.into_inner();
// Require the explicit LOGIN_OK code (200), then a nonempty session.
// Keep the full response: it also carries keys, permissions and renewal data.
let session = SessionToken::try_from(&response)?;
let request = api::user::Session::default().with_session(&session);
let badges = client.user().get_badges(request).await?.into_inner();
// Inspect the response's own application status fields before using its data.
# let _ = badges;
# Ok(())
# }
```
The archive does not define a hostname, credential encoding, or deployment authentication policy. Supply your own endpoint and server-defined credential representation. Session helpers set explicit protobuf body fields; they do not add a guessed authorization header. `skipSession` logins can succeed without yielding a usable `SessionToken`. Unknown numeric application error values remain accessible.
## Service coverage
Every getter returns a generated tonic client over a cheap clone of the shared channel. Client methods accept either a message or `tonic::Request<Message>` and retain response metadata and `tonic::Status` errors. No RPC is hidden behind a smaller handwritten facade.
| Getter | Service | RPCs | Coverage |
| --- | --- | ---: | --- |
| `login()` | `LoginService` | 12 | Sessions, login, auth/renewal tokens, account status |
| `user()` | `UserAccountService` | 30 | Accounts, badges, voice servers, avatars, files, 2FA |
| `management()` | `UserManagementService` | 39 | Users, activation, resets, badges, communities |
| `chat()` | `ChatRequests` | 16 | Contacts, identifiers, home migration, group sessions |
| `synchronization()` | `SynchronizationService` | 2 | Check and update item classes |
| `integration()` | `IntegrationUserService` | 4 | Bindings, status, subscriptions |
| `messenger()` | `MessengerConnectorClientService` | 1 | Messenger account creation |
| `addon()` | `UserAddonService` | 1 | Download/update lookup |
| `push()` | `PushService` | 1 | Server-streaming `longPull` |
Rust method names are snake case, such as `login_with_auth_token`, `get_account_data`, and `long_pull`. Their on-wire method names retain the original spelling. The complete method/type/auth-field catalog is in `docs/SCHEMA.md`; `docs/schema-inventory.json` includes resolved paths, symbols, and original source hashes.
Use separate `ApiClient`s when services live at different endpoints. For custom connectors or middleware, use `ApiClient::from_channel`, `client::ClientBuilder::from_endpoint`, or the public generated client types under `proto`.
## Namespaces and features
| Namespace | Contents |
| --- | --- |
| `api` | Shared application types and service submodules |
| `push` | Push transport `Message` and `PushServiceClient` |
| `api::push` | Notification envelopes and payload types |
| `account` | Local account serialization messages |
| `sync` | Local synchronization serialization messages |
| `proto::com::teamspeak` | Complete original application package hierarchy, including caches and revocation |
| `proto::envoy`, `proto::xds`, etc. | Optional infrastructure packages |
| Cargo feature | Default | Effect |
| --- | --- | --- |
| `reflection` | Yes | Runtime inspection, dynamic messages, protobuf JSON |
| `server` | No | Generated tonic server traits/adapters for every enabled service |
| `infrastructure` | No | Also generate supporting Envoy/xDS/UDPA/CEL/gRPC/validation bindings and Envoy load-reporting client |
| `gzip` | No | Opt-in request/response gzip support |
`--no-default-features` retains all application types, gRPC clients, session helpers, codecs, TLS, and the raw `FILE_DESCRIPTOR_SET`, while dropping runtime JSON/reflection dependencies. Google well-known messages map to `prost_types`; `google.protobuf.Empty` maps to `()`.
The archive's Google `descriptor.proto` and `cpp_features.proto` contain malformed options. The build keeps these originals untouched and resolves standard Google protobuf imports from the compiler's bundled includes first. Compiler-only `pb.CppFeatures` is not exposed. The optional infrastructure definitions are data bindings; generating validation annotations does not execute business validation or implement an xDS controller.
## Metadata, TLS, deadlines, and limits
```no_run
use schema_api::{ApiClient, tonic::{Request, metadata::MetadataMap}};
use std::time::Duration;
# async fn example() -> Result<(), Box<dyn std::error::Error>> {
let mut headers = MetadataMap::new();
headers.insert("x-tenant", "example".parse()?);
let client = ApiClient::builder("https://api.example.invalid")?
.metadata(headers)
.max_decoding_message_size(16 * 1024 * 1024)
.max_encoding_message_size(16 * 1024 * 1024)
.request_timeout(Duration::from_secs(20))
.connect().await?;
// Only enable bearer authentication if it is part of YOUR deployment contract.
client.metadata().set_bearer_token("opaque-token")?;
client.metadata().clear_bearer_token()?;
let mut request = Request::new(schema_api::api::Session { session: "session".into() });
request.metadata_mut().insert("x-tenant", "override".parse()?);
request.set_timeout(Duration::from_secs(5));
let _ = client.login().session(request).await?;
# Ok(())
# }
```
Per-request metadata overrides defaults by key; duplicate default values and binary metadata are preserved. Shared metadata changes affect future calls through existing handles. Debug output for the shared metadata store and `SessionToken` is redacted; generated protobuf messages can contain secrets and should not be logged wholesale.
HTTPS enables native-root certificate validation. `client::ClientBuilder::tls_config` accepts a tonic `ClientTlsConfig` for a private CA, explicit TLS name, or client identity; see `examples/custom_tls.rs`. HTTP is supported for local or appropriately protected deployments. Endpoint paths/queries are rejected because service routes come from the protobuf descriptors.
The default connection timeout is 10 seconds. No RPC deadline is imposed by default. `request_timeout` sets `grpc-timeout` for unary calls; `stream_timeout` opts into a push deadline. The channel limits response setup; enforcement after a stream is established depends on the server. For a receive inactivity timeout, wrap `stream.message()` in `tokio::time::timeout`. Per-request timeouts override defaults. Message-size limits are per protobuf message. With `gzip`, use `send_gzip(true)` and `accept_gzip(true)` only when supported by the server.
## Push streams and binary payloads
```no_run
# async fn example(client: schema_api::ApiClient) -> Result<(), Box<dyn std::error::Error>> {
let mut stream = client.push().long_pull(()).await?.into_inner();
while let Some(message) = stream.message().await? {
// The contract only guarantees opaque bytes here.
println!("{} bytes", message.payload.len());
}
# Ok(())
# }
```
Dropping the stream cancels it. Stream errors remain `tonic::Status`. There is no automatic replay/reconnection policy because no resume cursor or delivery guarantee is specified. `wire::decode_push_payload::<T>` and `decode_push_notification` are explicit, fallible decoders for deployments that define the corresponding encoding. Typed `wire::pack_any`/`unpack_any` use full protobuf names and reject mismatched type URLs. Plain `wire::encode`/`decode` work with any prost message.
## Reflection and protobuf JSON
```rust
# #[cfg(feature = "reflection")]
# {
use schema_api::{api, reflection};
let message = api::LoginStatus { error: 200, uuid: "id".into() };
let json = reflection::to_json(&message).unwrap();
let roundtrip: api::LoginStatus = reflection::from_json(&json).unwrap();
assert_eq!(roundtrip, message);
# }
```
JSON follows protobuf rules: base64 bytes, named enums, string-encoded 64-bit integers, lower-camel field names, and descriptor-resolved `Any`. Unknown JSON fields and trailing content are rejected by default; configurable options are available. Dynamic messages support schema inspection and retain unknown wire fields. Decoding into generated types discards unknown wire fields. `FILE_DESCRIPTOR_SET` is available in every build for tooling or an optional server reflection implementation.
## Build and run examples
```sh
cargo test --locked --all-features --all-targets
cargo test --locked --no-default-features
cargo test --locked --doc
cargo run --locked --example inspect_schema
cargo doc --locked --all-features --no-deps --open
```
`examples/login.rs` reads `API_ENDPOINT`, `API_EMAIL`, `API_PASSWORD`, and optional `API_OTP`/`API_DEVICE_ID`. `examples/push.rs` reads `API_ENDPOINT` and optional `API_PUSH_HEADER`/`API_PUSH_VALUE`. No real hostname or credential is embedded. `examples/custom_tls.rs` documents CA and mTLS environment variables.
Tests cover actual in-process unary/streaming gRPC exchanges, metadata and status handling, deadline separation, schema coverage, binary compatibility, proto2 presence, unknown enums, checked session status, nested session updates, `Any`, and protobuf JSON. Verification details are in `docs/VERIFICATION.md`.
The schemas do not define encryption/signature algorithms, password derivation, blob envelope encoding, signed-URL HTTP upload details, token refresh rules, or safe retry/idempotency behavior. The crate exposes all related fields and RPCs without inventing those protocols or automatically retrying mutations. Live server compatibility requires your endpoint and its deployment contract.
+15
View File
@@ -0,0 +1,15 @@
# schema-api snapshot
Copied on 2026-10-04 from the owner's local
`/home/faumaray/Project/Personal/schema-api` (version 0.1.0).
The source directory has no Git metadata and declares no license; its licensing
must be resolved before redistribution. This note does not grant a license.
Voelin consumes the message types, session helpers and wire codec via a path
dependency with default features disabled. Generated gRPC clients are not used
for myTeamSpeak's custom HTTP transport.
The only upstream patch is an empty `[workspace]` table in `Cargo.toml`, matching
Voelin's other vendored packages. This packaging change prevents Cargo from
assigning the vendor to an enclosing checkout's workspace when Voelin itself is
in a nested worktree. All Rust and protobuf sources remain unmodified.
+55
View File
@@ -0,0 +1,55 @@
use std::{
env,
error::Error,
fs,
path::{Path, PathBuf},
};
fn collect_protos(dir: &Path, recursive: bool, files: &mut Vec<PathBuf>) -> std::io::Result<()> {
for entry in fs::read_dir(dir)? {
let path = entry?.path();
if path.is_dir() && recursive {
collect_protos(&path, true, files)?;
} else if path.extension().is_some_and(|ext| ext == "proto") {
// Google well-known definitions come from the same distribution as protoc.
// The archive's descriptor.proto/cpp_features.proto have invalid option syntax.
if !path.starts_with("proto/google/protobuf") {
files.push(path);
}
}
}
Ok(())
}
fn main() -> Result<(), Box<dyn Error>> {
println!("cargo:rerun-if-changed=proto");
println!("cargo:rerun-if-env-changed=PROTOC");
println!("cargo:rerun-if-env-changed=PROTOC_INCLUDE");
let out = PathBuf::from(env::var("OUT_DIR")?);
let mut files = Vec::new();
collect_protos(
Path::new("proto"),
env::var_os("CARGO_FEATURE_INFRASTRUCTURE").is_some(),
&mut files,
)?;
files.sort();
let mut config = prost_build::Config::new();
config.protoc_executable(match env::var_os("PROTOC") {
Some(path) => PathBuf::from(path),
None => protoc_bin_vendored::protoc_bin_path()?,
});
config.enable_type_names();
let standard_include = match env::var_os("PROTOC_INCLUDE") {
Some(path) => PathBuf::from(path),
None => protoc_bin_vendored::include_path()?,
};
let includes = [standard_include, PathBuf::from("proto")];
tonic_prost_build::configure()
.build_client(true)
.build_server(env::var_os("CARGO_FEATURE_SERVER").is_some())
.include_file("packages.rs")
.file_descriptor_set_path(out.join("api_descriptor.bin"))
.compile_with_config(config, &files, &includes)?;
Ok(())
}
+382
View File
@@ -0,0 +1,382 @@
# Source schema audit and RPC catalog
This document audits the supplied archive only. The namespace spelling is retained as a wire contract; it does not establish a relationship with any external service. No endpoint, credential, live server, or implementation documentation was supplied.
## Coverage and provenance
The archive contains **123 protobuf files**: **23 application files** and **100 supporting infrastructure files**. The application schemas define **228 explicitly declared messages**, **33 enums**, and **9 services with 106 methods**. Of those methods, **105 are unary** and **one is server streaming**. There are no application client-streaming or bidirectional methods. Message counts include nested declarations and exclude synthetic protobuf map-entry messages. The machine-readable [inventory](schema-inventory.json) records every source file, SHA-256 digest, package, message, enum value, and RPC path.
Every textual import points to a file in the archive. This is an import-completeness check, not proof that the entire archive compiles. Application source files contain no comments explaining protocol behavior. The only nonapplication imports needed by the application files are `google/protobuf/any.proto` and `google/protobuf/empty.proto`.
### Application source files
| File | Package | Messages | Enums | RPCs |
| --- | --- | ---: | ---: | ---: |
| `Account_Serializing.proto` | `com.teamspeak.account.proto` | 8 | 0 | 0 |
| `Sync_Serializing.proto` | `com.teamspeak.sync.proto` | 16 | 6 | 0 |
| `blacklist_info.proto` | `com.teamspeak.blacklist` | 2 | 1 | 0 |
| `client_lib_cache.proto` | `com.teamspeak.proto.client_cache` | 1 | 0 | 0 |
| `global_badge_list.proto` | `com.teamspeak.myteamspeak.proto.cloud` | 2 | 0 | 0 |
| `myteamspeak_addon.proto` | `com.teamspeak.myteamspeak.proto.addon` | 4 | 4 | 1 |
| `myteamspeak_avatar_common.proto` | `com.teamspeak.myteamspeak.proto` | 4 | 2 | 0 |
| `myteamspeak_common.proto` | `com.teamspeak.myteamspeak.proto` | 19 | 3 | 0 |
| `myteamspeak_integration_common.proto` | `com.teamspeak.myteamspeak.proto.integration` | 7 | 4 | 0 |
| `myteamspeak_integration_static_info.proto` | `com.teamspeak.myteamspeak.proto.integration` | 3 | 1 | 0 |
| `myteamspeak_integration_user.proto` | `com.teamspeak.myteamspeak.proto.integration` | 11 | 0 | 4 |
| `myteamspeak_login.proto` | `com.teamspeak.myteamspeak.proto.login` | 12 | 0 | 12 |
| `myteamspeak_messenger_connector_client.proto` | `com.teamspeak.myteamspeak.proto.messengerconnector` | 5 | 1 | 1 |
| `myteamspeak_namedserver_common.proto` | `com.teamspeak.myteamspeak.proto.namedserver` | 4 | 0 | 0 |
| `myteamspeak_push.proto` | `com.teamspeak.myteamspeak.proto.push` | 6 | 1 | 0 |
| `myteamspeak_synchronization.proto` | `com.teamspeak.myteamspeak.proto.synchronization` | 0 | 0 | 2 |
| `myteamspeak_tschat.proto` | `com.teamspeak.myteamspeak.proto.tschat` | 19 | 1 | 16 |
| `myteamspeak_user.proto` | `com.teamspeak.myteamspeak.proto.user` | 55 | 3 | 30 |
| `myteamspeak_user_management.proto` | `com.teamspeak.myteamspeak.proto.management.user` | 43 | 3 | 39 |
| `revocation_list.proto` | `com.teamspeak.revocation_list` | 1 | 0 | 0 |
| `revoke_cache.proto` | `com.teamspeak.proto.revocation` | 1 | 0 | 0 |
| `synchronization_common.proto` | `com.teamspeak.myteamspeak.proto.synchronization` | 4 | 3 | 0 |
| `teamspeak_push_grpc.proto` | `com.teamspeak.push.proto` | 1 | 0 | 1 |
`Account_Serializing.proto` and `Sync_Serializing.proto` use proto2. All other application files use proto3. The account/sync serialization, badge-list, named-server, revocation, blacklist and client-cache files define data formats without adding service methods. These formats are useful to the crate even though they do not establish a transport endpoint.
## Authentication and sessions
Most authenticated requests carry a session string **inside the protobuf body**. The shared `com.teamspeak.myteamspeak.proto.Session` and the distinct `com.teamspeak.myteamspeak.proto.user.Session` have equivalent fields but remain distinct types. Some requests nest the session: `NewUserPublicKeyData.session.session`, chat `user.session`, `UpdateBadgeRequest.addBadgeRequest.session`, and community listing `request.session`.
`LoginData` supports email/password plus `otp`, `device_id`, `otp_renewal_token`, `device_name`, `skipSession`, login origin and sync version. Login results include the session, key, UUID, limits, identity material, permissions, push token and optional alternative-login data. The latter contains renewal token, OTP renewal token and device ID. Auth-token and renewal-token login methods are also explicitly defined. Do not infer password hashing, key derivation, renewal timing, automatic token refresh, or a relation between `purge` and local clock units.
No schema declares an authorization metadata header, bearer-token format, endpoint, TLS requirement, hostname, or service routing layout. A client may expose custom metadata and separate service channels, but must not assume a particular header or silently copy the session/push token into one. Several management and account-status requests contain no session or credential field; this does not prove that the corresponding methods are unauthenticated. Such access may depend on deployment-specific transport metadata or service authorization.
Session convenience helpers should populate only explicit session fields and retain raw generated request access. Login helpers should preserve the full reply rather than discarding permissions, identity data or alternative-login fields. Keep passwords, renewal tokens, sessions, private keys, and OTP secrets out of diagnostic logs; generated message debugging can contain these values.
## Application status semantics
A successful gRPC transport status does not imply application success. Preserve the original response and unknown numeric enum values so callers can handle server extensions.
| Domain / enum | Evidence in schema | Client treatment |
| --- | --- | --- |
| Common `ErrorCommon` | Session OK `102`, login OK `200`, session deleted OK `204`; OTP required `208`; expired session `103` | Check the success appropriate to the RPC; expose OTP-required as a distinct outcome. `UNKNOWN_ERRORCOMMON = 0` is not success. |
| User `ErrorReturnCode` | Unknown `0`, named failures `100..132`; no named success value | Where a `success` boolean exists, use it. For enum-only responses, report the raw code; zero is unspecified rather than proof of success. |
| Management `UserManagementErrorReturnCode` | Unknown `0`, named failures `100..139`; no named success value | Same ambiguity as user responses. Preserve textual error and boolean fields when present. |
| Integration `IntegrationError` | OK `1`; session expired `8`; pending `10`; missing information `7`; invalid timestamp `11` | Success is `1`; retain `seconds_to_wait` on subscription replies without inventing a retry policy. |
| Avatar `AvatarError` | OK `1`, critical `2`, invalid session `3` | Success is `1`. |
| Chat `ChatRequestReturnCode` | Success `1`; connection `2`, internal `3`, request `4`, expired session `5`, account creation disabled `6` | Success is `1`; preserve nested `ErrorHandling.message`. |
| Messenger `MessengerConnectorReturnCodesClient` | Account created `1`; creation failed `100`, already exists `101` | Success is `1`; do not automatically treat already-exists as success. |
| Synchronization `SyncStatus` | In sync `300`, not in sync `301`, not in database `302`, collision `303`, over limit `304` | These are synchronization outcomes, not a generic boolean. Return them without automatic merging or retrying writes. |
| Add-on `ReturnCode` | Not found `1`, platform not found `2`, up to date `3`, update `4`, group `5` | Return a typed outcome; both up-to-date and update are useful results, with different payload interpretation. |
| Login management replies | `AuthTokenExpireReply` / `AccountStatusReply` have `success` and `error_msg`; token-list and suspension-reason replies have no application status | Use the declared boolean where available; absence of an error field must not be filled by guessed status codes. |
Response status fields vary in spelling and nesting (`error`, `error_code`, `errorcode`, `returncode`, `return_code`, `error_handling`). A universal reflective rule such as “an enum field named error must equal zero” is incorrect. A missing optional nested return-code message is also distinct from an explicit success.
## Streaming and opaque payloads
`com.teamspeak.push.proto.PushService/longPull` accepts `google.protobuf.Empty` and streams `Message { bytes payload = 1; }`. The request has no session or token field. Cancellation follows stream drop/cancellation at the transport layer. The schema provides no replay cursor, acknowledgment, reconnect backoff, heartbeat, or resume semantics; reconnecting cannot promise lossless delivery.
A different package defines `push.PushNotification` and `push.IntermediateData`, each with an `Any` payload, plus `SimpleNotification`, `ContactAvatarChanged`, `TsChatAvatarChanged` and `AuthTokenUsed`. The schema does **not** say whether the bytes emitted by `longPull` contain either of those envelopes, compressed data, or another encoding. Make decoding explicit and fallible. Support standard protobuf `Any` type URLs and preserve unknown payloads; do not choose an envelope by trial decoding alone, because protobuf accepts many unrelated byte sequences.
The `SimpleNotification` enum distinguishes sync-data changes (`1`), session expiry (`2`), and contact-homebase changes (`3`). `relogin_neccessary` is an independent boolean. Nothing in the schema specifies whether to obey it automatically or how to rebuild application state.
## Synchronization, identities and transfers
Synchronization requests carry the session, class/version list, global version and sync version. Each item detail has UUID, item version, opaque blob and the field `item_delte_on_server`. The data-serialization schema defines bookmarks, identities, hotkey profiles, whispers, add-ons, configuration, folders, group chats and contacts. Its `Item_Data.item_content` oneof permits typed local decoding, but the schema does not state that network `item_blob` is plain `Item_Data` rather than encrypted or wrapped. Expose codecs without automatic encryption/decryption assumptions. Preserve class/version IDs and collisions; never overwrite conflicting data without caller policy.
Signed identity, avatar, badge, integration, and Matrix identifier structures expose key, certificate, signature and timestamp bytes. They do not identify a signing algorithm, canonical signed bytes, certificate chain policy, signature verification procedure, or timestamp unit. Returning these structures is supported; inventing cryptographic verification is not.
Avatar/file RPCs return signed URLs and metadata. The schemas do not state the HTTP upload method, required headers, multipart layout, checksum policy, or URL expiration. Requesting an upload/download URL is part of the gRPC client surface. Transferring bytes through the URL requires deployment-specific HTTP details and should not be guessed.
## Schema quality and compilation cautions
- **Malformed bundled Google option syntax:** the supplied `google/protobuf/descriptor.proto`, beginning around line 358, serializes repeated/message-valued options with invalid source syntax, for example `targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE` and `edition_defaults = [value: ...]`. `google/protobuf/cpp_features.proto` has the same issue. Prefer compatible compiler-vendored standard protobuf includes when compiling optional infrastructure, and retain the supplied files as original source material. The application schemas do not need either malformed file. This finding is a source inspection result; compiler validation results belong to the crate's verification log.
- **Mixed presence semantics:** proto2 optional scalars must remain optional. For example, an absent bookmark `send_mytsid_on_server` has declared default `true`; reading its raw `Option<bool>` as `false` would change behavior. Proto3 scalars generally do not record whether an explicit default was sent. Message fields and oneofs retain presence.
- **Preserve original spelling:** wire/source symbols include `ERRIR_RENEWAL_TOKEN_INVALID`, `item_delte_on_server`, `relogin_neccessary`, lowercase `requestExpireTime`/`replyExpireTime`, mixed field casing and `Status_public_license_id`. Idiomatic Rust accessors may differ, but field numbers, enum numbers, full protobuf names and RPC paths must remain exact.
- **Reserved and deprecated fields:** respect declared reserved numbers; deprecated OTP QR-code bytes/MIME fields remain part of the wire format. Do not delete them from generated bindings.
- **Unknown enums and fields:** expose enum integers when no named variant is known. Prost generated messages generally discard unknown protobuf fields when decoded and re-encoded; use original bytes or a suitable dynamic representation when lossless forwarding matters.
- **No validation contract:** the archive includes `validate.proto` definitions, but the application schemas do not attach validation rules. Required business fields, string formats, UUID validation, quotas, size limits, and timestamp units are unspecified. Avoid rejecting otherwise encodable requests based on guessed rules.
- **Mutating operations and retries:** RPC names include account deletion, reset, badge management, key updates and voice-server changes, but there are no application idempotency annotations or request IDs. Retrying arbitrary failed RPCs can repeat side effects. Expose timeouts and caller-controlled retries.
- **Infrastructure is not application functionality:** the other 100 files describe Google protobuf/RPC/CEL, Envoy, xDS, UDPA, validation and gRPC support types. Their only additional service is Envoy load reporting. An optional infrastructure feature can expose these bindings without treating them as ordinary application API endpoints.
## Application RPC catalog
All method names and request/response names below are the original protobuf spelling. Request/response cells use names as declared in the source; shared parent-package types resolve by protobuf lexical scoping. The JSON inventory additionally records fully resolved type names. Each section states the full service name; the gRPC path is `/<full service name>/<method>`. “Body fields” lists evident session/credential fields, not a claim about required authorization. “None declared” never means public access.
### `com.teamspeak.myteamspeak.proto.addon.UserAddonService`
Source: `myteamspeak_addon.proto`. 1 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `requestDownload` | `GetDownload` | `Download` | None declared |
### `com.teamspeak.myteamspeak.proto.integration.IntegrationUserService`
Source: `myteamspeak_integration_user.proto`. 4 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `getIntegrationUserStatus` | `RequestIntegrationUserStatus` | `IntegrationStatusUserResponse` | `session` |
| `requestBindIntegration` | `RequestBindData` | `RequestBindResponse` | `session` |
| `requestUnbindIntegration` | `RequestUnbindData` | `RequestBindResponse` | `session` |
| `getUserIntegrationSubscriptionInfo` | `UserIntegrationSubscriptionInfoRequest` | `UserIntegrationSubscriptionInfoResponse` | `session_id` |
### `com.teamspeak.myteamspeak.proto.login.LoginService`
Source: `myteamspeak_login.proto`. 12 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `session` | `Session` | `LoginStatus` | `session` |
| `deleteSession` | `Session` | `LoginStatus` | `session` |
| `login` | `LoginData` | `LoginSession` | `email`, `password`; optional OTP/device fields |
| `requestAuthToken` | `AuthTokenRequest` | `AuthTokenReply` | `email`, `password` |
| `loginWithAuthToken` | `AuthTokenLogin` | `LoginSession` | `auth_token` |
| `loginWithRenewalToken` | `RenewalTokenLogin` | `LoginSession` | `renewal_token`, `auth_token` |
| `getAuthTokenList` | `AuthTokenListRequest` | `AuthTokenListReply` | `email`, `password` |
| `expireAuthTokenAccess` | `AuthTokenExpireRequest` | `AuthTokenExpireReply` | `email`, `password` |
| `deleteAccount` | `AccountStatusInfo` | `AccountStatusReply` | None; `email` is a target identifier |
| `suspendAccount` | `AccountStatusInfo` | `AccountStatusReply` | None; `email` is a target identifier |
| `reactivateAccount` | `AccountStatusInfo` | `AccountStatusReply` | None; `email` is a target identifier |
| `listSuspensionReasonForUser` | `AccountEmail` | `SuspensionReasonForUserReply` | None; `email` is a target identifier |
### `com.teamspeak.myteamspeak.proto.messengerconnector.MessengerConnectorClientService`
Source: `myteamspeak_messenger_connector_client.proto`. 1 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `requestCreateMessengerAccount` | `RequestCreateMessengerAccountRequest` | `RequestCreateMessengerAccountReply` | `session` |
### `com.teamspeak.myteamspeak.proto.synchronization.SynchronizationService`
Source: `myteamspeak_synchronization.proto`. 2 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `requestServerItems` | `Sync_Request_ItemClasses` | `Sync_Reply_ItemClasses` | `session` |
| `synchronizeItems` | `Sync_Request_ItemClasses` | `Sync_Reply_ItemClasses` | `session` |
### `com.teamspeak.myteamspeak.proto.tschat.ChatRequests`
Source: `myteamspeak_tschat.proto`. 16 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `createAccount` | `AuthenticatedUser` | `CreateAccountResponse` | `session`; `matrix_id` |
| `moveHome` | `MoveRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` |
| `getContactList` | `AuthenticatedUser` | `ContactList` | `session`; `matrix_id` |
| `updateContact` | `ContactRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` |
| `updateContactList` | `ContactRequestList` | `ErrorHandling` | `user.session`; Matrix ID in `user` |
| `removeContact` | `ContactRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` |
| `setPrimaryIdentifier` | `IdentifierRequest` | `TschatIdentifierList` | `user.session`; Matrix ID in `user` |
| `addIdentifier` | `IdentifierRequest` | `TschatIdentifierList` | `user.session`; Matrix ID in `user` |
| `removeIdentifier` | `IdentifierRequest` | `TschatIdentifierList` | `user.session`; Matrix ID in `user` |
| `getActiveIdentifierList` | `AuthenticatedUser` | `TschatIdentifierList` | `session`; `matrix_id` |
| `getAllowedIdentifierList` | `AuthenticatedUser` | `TschatIdentifierList` | `session`; `matrix_id` |
| `getGroupSessionData` | `GroupSessionRequest` | `GroupSessionResponse` | `user.session`; Matrix ID in `user` |
| `uploadGroupSessionData` | `GroupSessionRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` |
| `clearAllGroupSessions` | `AuthenticatedUser` | `ErrorHandling` | `session`; `matrix_id` |
| `clearGroupSessions` | `GroupSessionRequest` | `ErrorHandling` | `user.session`; Matrix ID in `user` |
| `requestSignedAllowedIdentifierList` | `AuthenticatedUser` | `SignedAllowedIdentifier` | `session`; `matrix_id` |
### `com.teamspeak.myteamspeak.proto.user.UserAccountService`
Source: `myteamspeak_user.proto`. 30 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `addUser` | `UserData` | `ReturnCode` | `session`; `login` / `login_old` credentials |
| `updateUser` | `UserData` | `ReturnCode` | `session`; `login` / `login_old` credentials |
| `getBackupKey` | `UserLogin` | `BackupKeyData` | `email`, `password` |
| `getBadges` | `Session` | `UserBadgesList` | `session` |
| `redeemBadgeCode` | `BadgeCode` | `RedeemBadgeCodeResponse` | `session` |
| `setNewUserPublicKey` | `NewUserPublicKeyData` | `NewUserPublicKeyDataResponse` | `session.session` |
| `requestContactsAvatar` | `RequestContactsAvatarInfoRequest` | `RequestContactsAvatarInfoResponse` | `session` |
| `getSignedBadges` | `Session` | `UserBadgesSignedResponse` | `session` |
| `requestVoiceServer` | `VoiceServerRequest` | `VoiceServerResponse` | `session` |
| `requestVoiceServerLocation` | `SpawnVoiceServerLocationRequest` | `SpawnVoiceServerLocationResponse` | `session` |
| `deleteSpawnedVoiceServer` | `VoiceServerRequest` | `ReturnCode` | `session` |
| `listSpawnedVoiceServer` | `Session` | `SpawnedVoiceServerListResponse` | `session` |
| `startVoiceServer` | `VoiceServerRequest` | `VoiceServerResponse` | `session` |
| `stopVoiceServer` | `VoiceServerRequest` | `VoiceServerResponse` | `session` |
| `readVoiceServerStatus` | `VoiceServerRequest` | `VoiceServerResponse` | `session` |
| `requestAvatarSignedUrl` | `AvatarSignedUrlRequest` | `AvatarSignedUrlResponse` | `session` |
| `requestUploadAvatar` | `RequestUploadAvatarRequest` | `RequestUploadAvatarResponse` | `session` |
| `requestDeleteAvatar` | `RequestDeleteAvatarInfoRequest` | `ReturnCode` | `session` |
| `changeEmail` | `EmailChange` | `ReturnCode` | `session`; `validationKey`, `currentPw`, `newPw` |
| `resetAccount` | `ResetAccountRequest` | `ReturnCode` | `session`, `myts_id.session.session` |
| `updateUserDescription` | `UpdateUserDescriptionRequest` | `ReturnCode` | `session` |
| `requestUploadFile` | `UploadFileRequest` | `FileInfo` | `session` |
| `requestDownloadFile` | `DownloadFileRequest` | `FileInfo` | `session` |
| `generateOtpSetupSecret` | `TwoFactorAuthTypeRequest` | `OtpSecretResponse` | `session`; `user_login` credentials |
| `updateTwoFactorAuthType` | `UpdateTwoFactorAuthTypeRequest` | `ReturnCode` | `session` |
| `confirmTwoFactorAuthTypeOtp` | `TwoFactorAuthTypeOtpConfirmationRequest` | `ReturnCode` | `session`; `user_login` credentials; `otp` |
| `removeTwoFactorAuthType` | `TwoFactorAuthTypeRequest` | `ReturnCode` | `session`; `user_login` credentials |
| `getTwoFactorAuthType` | `Session` | `TwoFactorAuthTypeResponse` | `session` |
| `registerFirebasePush` | `RegisterFirebasePush` | `ReturnCode` | `session` |
| `getAccountData` | `AccountDataRequest` | `UserAccountData` | `session` |
### `com.teamspeak.myteamspeak.proto.management.user.UserManagementService`
Source: `myteamspeak_user_management.proto`. 39 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `listUser` | `SearchLimit` | `UserLightDataList` | None declared |
| `getUserInfo` | `Request` | `UserLightData` | `session` |
| `getKey` | `Request` | `KeyData` | `session` |
| `deleteUser` | `Request` | `UserManagementReturnCode` | `session` |
| `activateUser` | `Activation` | `UserManagementReturnCode` | `email`, activation `key` |
| `requestNewActivation` | `Activation` | `UserManagementReturnCode` | `email`, activation `key` |
| `setAddonDevStatus` | `AddonDevRequest` | `AddonDevReturnCode` | None declared |
| `requestPasswordReset` | `PasswordResetRequest` | `UserManagementReturnCode` | `email`, reset `key`, new `password` |
| `resetPassword` | `PasswordResetRequest` | `UserManagementReturnCode` | `email`, reset `key`, new `password` |
| `generateBadgeCodes` | `BadgeCodesRequest` | `BadgeCodes` | `session` |
| `changeEmail` | `EmailChange` | `UserManagementReturnCode` | `session`; `validationKey`, `currentPw`, `newPw` |
| `changeEmail2` | `EmailChange` | `UserManagementReturnCode` | `session`; `validationKey`, `currentPw`, `newPw` |
| `changeEmail3` | `EmailChange` | `UserManagementReturnCode` | `session`; `validationKey`, `currentPw`, `newPw` |
| `assignBadge` | `AssignBadgeRequest` | `UserManagementReturnCode` | `session` |
| `getUserData` | `Request` | `UserFullData` | `session` |
| `forceRename` | `UserRenameRequest` | `UserManagementReturnCode` | `session` |
| `addBadge` | `AddBadgeRequest` | `AddBadgeReturnCode` | `session` |
| `listBadges` | `Session` | `ListBadgesReturnCode` | `session` |
| `getBadgeStatistics` | `BadgeStatisticsRequest` | `BadgeStatisticsReturnCode` | `session` |
| `deleteBadge` | `Request` | `DeleteBadgeReturnCode` | `session` |
| `updateBadge` | `UpdateBadgeRequest` | `AddBadgeReturnCode` | `addBadgeRequest.session` |
| `updateBadgeCode` | `BadgeCodesRequest` | `BadgeCodeReturnCode` | `session` |
| `deleteBadgeCode` | `BadgeCodesRequest` | `UserManagementReturnCode` | `session` |
| `listBadgeCodes` | `BadgeCodesRequest` | `ListBadgeCodesResponse` | `session` |
| `addOAuthClient` | `OAuthClientRequest` | `OAuthClientReturnCode` | `session` |
| `updateOAuthClient` | `OAuthClientRequest` | `OAuthClientReturnCode` | `session` |
| `deleteOAuthClient` | `OAuthClientRequest` | `UserManagementReturnCode` | `session` |
| `listOAuthClients` | `Request` | `ListOAuthClientsReturnCode` | `session` |
| `searchUser` | `SearchTerm` | `UserLightDataList` | `session` |
| `addPermission` | `PermissionRequest` | `UserManagementReturnCode` | `session` |
| `removePermission` | `PermissionRequest` | `UserManagementReturnCode` | `session` |
| `removeBadgeFromUser` | `AssignBadgeRequest` | `UserManagementReturnCode` | `session` |
| `createCommunity` | `TSCommunityRequest` | `TSCommunityList` | `session` |
| `listCommunities` | `TSCommunityListRequest` | `TSCommunityList` | `request.session` |
| `updateCommunity` | `TSCommunityRequest` | `TSCommunityList` | `session` |
| `setRenameAllowance` | `RenameAllowanceRequest` | `UserManagementReturnCode` | `session` |
| `deleteTSChatAccount` | `Request` | `UserManagementReturnCode` | `session` |
| `getUserStatistics` | `UserStatisticsRequest` | `UserStatisticsResponse` | `session` |
| `getAllUserStatistics` | `UserStatisticsRequest` | `AllUserStatisticsResponse` | `session` |
### `com.teamspeak.push.proto.PushService`
Source: `teamspeak_push_grpc.proto`. 1 methods.
| Method | Request | Response | Body fields |
| --- | --- | --- | --- |
| `longPull` | `google.protobuf.Empty` | `stream Message` | None declared |
## Application enum catalog
All enum values, including nested enum values and sparse numeric assignments, are recorded in the JSON inventory. Counts below count explicitly declared variants, not integer ranges. Enum values whose names sound successful must be interpreted in their owning response domain.
| Fully qualified enum | Variants |
| --- | ---: |
| `com.teamspeak.sync.proto.Bookmark_Data.SubscriptionMode` | 3 |
| `com.teamspeak.sync.proto.Whisper_list_data.WhisperListType` | 3 |
| `com.teamspeak.sync.proto.Whisper_list_data.WhisperEntry.WhisperEntryType` | 3 |
| `com.teamspeak.sync.proto.HotkeyProfile_data.Hotkey.OS` | 3 |
| `com.teamspeak.sync.proto.Contact.NotificationPreference` | 4 |
| `com.teamspeak.sync.proto.Item_Data.Manipulation_Flag` | 4 |
| `com.teamspeak.blacklist.BlacklistInfoResponse.Result` | 4 |
| `com.teamspeak.myteamspeak.proto.addon.ApiType` | 7 |
| `com.teamspeak.myteamspeak.proto.addon.ReturnCode` | 6 |
| `com.teamspeak.myteamspeak.proto.addon.Platform` | 7 |
| `com.teamspeak.myteamspeak.proto.addon.Status` | 7 |
| `com.teamspeak.myteamspeak.proto.AvatarError` | 4 |
| `com.teamspeak.myteamspeak.proto.AvatarState` | 5 |
| `com.teamspeak.myteamspeak.proto.AddonDevStatus` | 7 |
| `com.teamspeak.myteamspeak.proto.LoginOrigin` | 2 |
| `com.teamspeak.myteamspeak.proto.ErrorCommon` | 18 |
| `com.teamspeak.myteamspeak.proto.integration.SpecifierType` | 5 |
| `com.teamspeak.myteamspeak.proto.integration.IntegrationType` | 3 |
| `com.teamspeak.myteamspeak.proto.integration.IntegrationBindingStatus` | 4 |
| `com.teamspeak.myteamspeak.proto.integration.IntegrationError` | 12 |
| `com.teamspeak.myteamspeak.proto.integration.ResponseType` | 5 |
| `com.teamspeak.myteamspeak.proto.messengerconnector.MessengerConnectorReturnCodesClient` | 4 |
| `com.teamspeak.myteamspeak.proto.push.SimpleNotificationType` | 4 |
| `com.teamspeak.myteamspeak.proto.tschat.ChatRequestReturnCode` | 7 |
| `com.teamspeak.myteamspeak.proto.user.UserAccountDataSelector` | 15 |
| `com.teamspeak.myteamspeak.proto.user.AuthType` | 2 |
| `com.teamspeak.myteamspeak.proto.user.ErrorReturnCode` | 34 |
| `com.teamspeak.myteamspeak.proto.management.user.TSCommunityState` | 4 |
| `com.teamspeak.myteamspeak.proto.management.user.UserSearchCriterionSelector` | 8 |
| `com.teamspeak.myteamspeak.proto.management.user.UserManagementErrorReturnCode` | 41 |
| `com.teamspeak.myteamspeak.proto.synchronization.SyncStatus` | 10 |
| `com.teamspeak.myteamspeak.proto.synchronization.Item_Class` | 9 |
| `com.teamspeak.myteamspeak.proto.synchronization.Sync_Version` | 2 |
## All archive packages
These are source-level counts across the entire archive. “App” marks packages declared by root application files. Infrastructure bindings may use compiler-vendored Google definitions in place of malformed bundled sources, so generated descriptor counts can differ from these archive counts.
| Package | Scope | Files | Messages | Enums | Services | RPCs |
| --- | --- | ---: | ---: | ---: | ---: | ---: |
| `com.teamspeak.account.proto` | App | 1 | 8 | 0 | 0 | 0 |
| `com.teamspeak.blacklist` | App | 1 | 2 | 1 | 0 | 0 |
| `com.teamspeak.myteamspeak.proto` | App | 2 | 23 | 5 | 0 | 0 |
| `com.teamspeak.myteamspeak.proto.addon` | App | 1 | 4 | 4 | 1 | 1 |
| `com.teamspeak.myteamspeak.proto.cloud` | App | 1 | 2 | 0 | 0 | 0 |
| `com.teamspeak.myteamspeak.proto.integration` | App | 3 | 21 | 5 | 1 | 4 |
| `com.teamspeak.myteamspeak.proto.login` | App | 1 | 12 | 0 | 1 | 12 |
| `com.teamspeak.myteamspeak.proto.management.user` | App | 1 | 43 | 3 | 1 | 39 |
| `com.teamspeak.myteamspeak.proto.messengerconnector` | App | 1 | 5 | 1 | 1 | 1 |
| `com.teamspeak.myteamspeak.proto.namedserver` | App | 1 | 4 | 0 | 0 | 0 |
| `com.teamspeak.myteamspeak.proto.push` | App | 1 | 6 | 1 | 0 | 0 |
| `com.teamspeak.myteamspeak.proto.synchronization` | App | 2 | 4 | 3 | 1 | 2 |
| `com.teamspeak.myteamspeak.proto.tschat` | App | 1 | 19 | 1 | 1 | 16 |
| `com.teamspeak.myteamspeak.proto.user` | App | 1 | 55 | 3 | 1 | 30 |
| `com.teamspeak.proto.client_cache` | App | 1 | 1 | 0 | 0 | 0 |
| `com.teamspeak.proto.revocation` | App | 1 | 1 | 0 | 0 | 0 |
| `com.teamspeak.push.proto` | App | 1 | 1 | 0 | 1 | 1 |
| `com.teamspeak.revocation_list` | App | 1 | 1 | 0 | 0 | 0 |
| `com.teamspeak.sync.proto` | App | 1 | 16 | 6 | 0 | 0 |
| `envoy.annotations` | Infrastructure | 1 | 0 | 0 | 0 | 0 |
| `envoy.config.accesslog.v3` | Infrastructure | 1 | 16 | 2 | 0 | 0 |
| `envoy.config.cluster.v3` | Infrastructure | 4 | 29 | 9 | 0 | 0 |
| `envoy.config.core.v3` | Infrastructure | 16 | 97 | 13 | 0 | 0 |
| `envoy.config.endpoint.v3` | Infrastructure | 3 | 16 | 0 | 0 | 0 |
| `envoy.config.listener.v3` | Infrastructure | 5 | 20 | 2 | 0 | 0 |
| `envoy.config.rbac.v3` | Infrastructure | 1 | 11 | 3 | 0 | 0 |
| `envoy.config.route.v3` | Infrastructure | 3 | 62 | 6 | 0 | 0 |
| `envoy.config.trace.v3` | Infrastructure | 1 | 2 | 0 | 0 | 0 |
| `envoy.data.accesslog.v3` | Infrastructure | 1 | 11 | 4 | 0 | 0 |
| `envoy.extensions.clusters.aggregate.v3` | Infrastructure | 1 | 1 | 0 | 0 | 0 |
| `envoy.extensions.filters.common.fault.v3` | Infrastructure | 1 | 5 | 1 | 0 | 0 |
| `envoy.extensions.filters.http.fault.v3` | Infrastructure | 1 | 3 | 0 | 0 | 0 |
| `envoy.extensions.filters.http.gcp_authn.v3` | Infrastructure | 1 | 4 | 0 | 0 | 0 |
| `envoy.extensions.filters.http.rbac.v3` | Infrastructure | 1 | 2 | 0 | 0 | 0 |
| `envoy.extensions.filters.http.router.v3` | Infrastructure | 1 | 2 | 0 | 0 | 0 |
| `envoy.extensions.filters.http.stateful_session.v3` | Infrastructure | 1 | 2 | 0 | 0 | 0 |
| `envoy.extensions.filters.network.http_connection_manager.v3` | Infrastructure | 1 | 21 | 5 | 0 | 0 |
| `envoy.extensions.http.stateful_session.cookie.v3` | Infrastructure | 1 | 1 | 0 | 0 | 0 |
| `envoy.extensions.transport_sockets.http_11_proxy.v3` | Infrastructure | 1 | 1 | 0 | 0 | 0 |
| `envoy.extensions.transport_sockets.tls.v3` | Infrastructure | 3 | 18 | 4 | 0 | 0 |
| `envoy.extensions.upstreams.http.v3` | Infrastructure | 1 | 4 | 0 | 0 | 0 |
| `envoy.service.discovery.v3` | Infrastructure | 1 | 13 | 0 | 0 | 0 |
| `envoy.service.load_stats.v3` | Infrastructure | 1 | 2 | 0 | 1 | 1 |
| `envoy.type.http.v3` | Infrastructure | 2 | 5 | 0 | 0 | 0 |
| `envoy.type.matcher.v3` | Infrastructure | 8 | 15 | 0 | 0 | 0 |
| `envoy.type.metadata.v3` | Infrastructure | 1 | 7 | 0 | 0 | 0 |
| `envoy.type.tracing.v3` | Infrastructure | 1 | 5 | 0 | 0 | 0 |
| `envoy.type.v3` | Infrastructure | 4 | 6 | 2 | 0 | 0 |
| `google.api.expr.v1alpha1` | Infrastructure | 2 | 25 | 3 | 0 | 0 |
| `google.protobuf` | Infrastructure | 9 | 56 | 24 | 0 | 0 |
| `google.rpc` | Infrastructure | 1 | 1 | 0 | 0 | 0 |
| `grpc.channelz.v2` | Infrastructure | 2 | 16 | 1 | 0 | 0 |
| `grpc.lookup.v1` | Infrastructure | 1 | 7 | 0 | 0 | 0 |
| `pb` | Infrastructure | 1 | 1 | 1 | 0 | 0 |
| `udpa.annotations` | Infrastructure | 5 | 6 | 1 | 0 | 0 |
| `validate` | Infrastructure | 1 | 23 | 1 | 0 | 0 |
| `xds.annotations.v3` | Infrastructure | 1 | 4 | 1 | 0 | 0 |
| `xds.core.v3` | Infrastructure | 6 | 8 | 1 | 0 | 0 |
| `xds.type.matcher.v3` | Infrastructure | 3 | 13 | 0 | 0 | 0 |
### Ancillary service
`envoy.service.load_stats.v3.LoadReportingService/StreamLoadStats` is bidirectional streaming from `LoadStatsRequest` to `LoadStatsResponse`. It is an infrastructure protocol separate from the 106 application methods.
## What requires server-side knowledge
A running integration still requires endpoint(s), authorization metadata if any, deployment TLS material, credential conventions, and any encrypted payload/signature conventions. User-management pagination includes both cursor-like `SearchLimit.last_uuid` and offset/limit requests; neither establishes ordering guarantees or termination rules for automatic pagination. No API version compatibility range, rate-limit policy, server time unit, or guaranteed default behavior is documented. These omissions should stay explicit in a full-featured client rather than being replaced by guessed protocol behavior.
+42
View File
@@ -0,0 +1,42 @@
# Verification
Verified on 2026-10-04 on Linux x86_64 with Rust/Cargo 1.99.0, using the included `Cargo.lock` (tonic 0.14.6, prost 0.14.4, prost-reflect 0.16.5). Dependencies are fetched by Cargo; protobuf compilation uses `protoc-bin-vendored` 3.2.0.
## Checks
| Check | Result |
| --- | --- |
| All features, all targets | 25 library tests + 4 schema tests + 5 local transport tests passed; all four examples compile |
| No default features | 15 library tests + 3 schema tests passed; 4 documentation examples compile/run |
| Default-feature documentation tests | 4 passed |
| Clippy, all features and targets, warnings denied | Passed |
| Rustfmt check | Passed |
| Rustdoc, all features, no dependencies | Generated successfully |
| Original protobuf source integrity | All 123 files match the recorded SHA-256 hashes |
## Reproduce
```sh
cargo fmt --all --check
cargo test --locked --all-features --all-targets
cargo test --locked --no-default-features
cargo test --locked --doc
cargo clippy --locked --all-features --all-targets -- -D warnings
cargo doc --locked --all-features --no-deps
```
The GitHub Actions workflow runs these checks using stable Rust. Test counts across feature configurations overlap; they are not separate suites to sum together.
## What was exercised
Local tonic servers test the exact original HTTP/2 method paths for unary add-on download lookup and push streaming, typed request/response payloads, response metadata, default ASCII/binary metadata, per-call metadata overrides, preserved gRPC error codes/details/metadata, streamed frames, normal EOF, terminal stream errors, and cancellation of a pending unary RPC by its configured deadline. These tests use ephemeral localhost ports and deterministic server shutdown.
Unit/schema tests cover metadata rotation and sensitivity, endpoint validation, timeout precedence, expected login/session/deletion success codes, unknown codes, nested body session assignment, checked protobuf `Any` URLs, malformed payload rejection, opt-in push envelopes, proto2 presence, a fixed protobuf wire vector, complete application service/RPC counts, cached descriptors, protobuf JSON naming/enums/base64/int64/Any, and unknown JSON/wire behavior.
## Scope and remaining integration work
No deployment endpoint, credentials, or server implementation was supplied, so no live service call was made. TLS/mTLS examples compile; they were not exercised against a certificate-bearing test or production server. Gzip support compiles in the all-feature build; compressed traffic was not separately exercised. Linux is the only tested build host.
Business rules absent from the schemas remain caller/server responsibilities: credential encoding, cryptography, signed-URL HTTP transfer details, opaque blob interpretation, renewal policy, authorization requirements, and synchronization conflict resolution. Every declared request/response field and application RPC remains accessible.
The supplied Google `descriptor.proto` and `cpp_features.proto` contain malformed option syntax. Original files remain unchanged; builds use compiler-matched standard Google imports, and the compiler-only `pb.CppFeatures` type is excluded. The application and optional infrastructure bindings both compile with this documented strategy.
File diff suppressed because it is too large. Load diff
+26
View File
@@ -0,0 +1,26 @@
use schema_api::{
tonic::transport::{Certificate, ClientTlsConfig, Identity},
ApiClient,
};
use std::{env, error::Error, fs};
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let mut tls = ClientTlsConfig::new()
.ca_certificate(Certificate::from_pem(fs::read(env::var("API_CA_PEM")?)?));
if let Ok(domain) = env::var("API_TLS_DOMAIN") {
tls = tls.domain_name(domain);
}
if let Ok(cert_path) = env::var("API_CLIENT_CERT_PEM") {
tls = tls.identity(Identity::from_pem(
fs::read(cert_path)?,
fs::read(env::var("API_CLIENT_KEY_PEM")?)?,
));
}
let _client = ApiClient::builder(env::var("API_ENDPOINT")?)?
.tls_config(tls)?
.connect()
.await?;
println!("Connected with custom TLS configuration");
Ok(())
}
+24
View File
@@ -0,0 +1,24 @@
fn main() {
let pool = schema_api::reflection::descriptor_pool();
for service in pool.services() {
println!("{}", service.full_name());
for method in service.methods() {
println!(
" {}({}{}) -> {}{}",
method.name(),
if method.is_client_streaming() {
"stream "
} else {
""
},
method.input().full_name(),
if method.is_server_streaming() {
"stream "
} else {
""
},
method.output().full_name(),
);
}
}
}
+34
View File
@@ -0,0 +1,34 @@
use schema_api::{api, ApiClient, SessionRequest, SessionToken};
use std::{env, error::Error, time::Duration};
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
let client = ApiClient::builder(env::var("API_ENDPOINT")?)?
.connect_timeout(Duration::from_secs(10))
.request_timeout(Duration::from_secs(30))
.connect()
.await?;
// Credential encoding is server-defined; this example passes the supplied values verbatim.
let reply = client
.login()
.login(api::LoginData {
email: env::var("API_EMAIL")?,
password: env::var("API_PASSWORD")?,
otp: env::var("API_OTP").unwrap_or_default(),
device_id: env::var("API_DEVICE_ID").unwrap_or_default(),
device_name: "Rust API client".into(),
..Default::default()
})
.await?
.into_inner();
let session = SessionToken::try_from(&reply)?;
println!("Login succeeded");
let status = client
.login()
.session(api::Session::default().with_session(&session))
.await?
.into_inner();
schema_api::session::validate_session_status(&status)?;
println!("Session is valid");
Ok(())
}
+28
View File
@@ -0,0 +1,28 @@
use schema_api::{
tonic::metadata::{MetadataKey, MetadataMap, MetadataValue},
ApiClient,
};
use std::{env, error::Error};
#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
// The schemas do not specify push authentication. Supply your server's metadata contract.
let mut headers = MetadataMap::new();
if let Ok(name) = env::var("API_PUSH_HEADER") {
let key: MetadataKey<_> = name.parse()?;
let mut value: MetadataValue<_> = env::var("API_PUSH_VALUE")?.parse()?;
value.set_sensitive(true);
headers.insert(key, value);
}
let client = ApiClient::builder(env::var("API_ENDPOINT")?)?
.metadata(headers)
.connect()
.await?;
let mut stream = client.push().long_pull(()).await?.into_inner();
while let Some(message) = stream.message().await? {
println!("Received {} opaque payload bytes", message.payload.len());
// If your server uses this envelope, explicitly decode it with:
// let notification = schema_api::wire::decode_push_notification(&message)?;
}
Ok(())
}
+84
View File
@@ -0,0 +1,84 @@
syntax = "proto2";
package com.teamspeak.account.proto;
import "myteamspeak_common.proto";
import "myteamspeak_integration_common.proto";
import "myteamspeak_avatar_common.proto";
import "myteamspeak_tschat.proto";
message Account_Session {
optional string id = 1;
}
message Account_Data {
optional string email = 1;
optional string password = 2;
optional string uuid = 3;
optional string user_name = 4;
optional bytes encryption_password = 5;
optional string global_items_uuid = 10;
optional string class_bookmark_version_uuid = 11;
optional string class_identity_version_uuid = 12;
optional string class_add_on_version_uuid = 13;
optional string class_config_version_uuid = 14;
optional string class_hotkey_profile_version_uuid = 15;
optional string class_whisper_list_version_uuid = 16;
optional string class_item_folder_version_uuid = 17;
optional string class_item_room_category_version_uuid = 18;
optional string class_group_chats_version_uuid = 19;
optional string class_contact_version_uuid = 20;
optional Account_Session session = 50;
repeated myteamspeak.proto.Limits limits = 51;
optional bytes key = 52;
optional bytes backup_ed_key = 53;
optional myteamspeak.proto.MyTeamSpeakIdData myteamspeakid_data = 54;
repeated IntegrationCache integration_cache = 55;
message IntegrationCache {
repeated string user_integration_id = 1;
optional myteamspeak.proto.integration.IntegrationResponseList integration_cache = 2;
}
optional myteamspeak.proto.MyTSUserCertificate myteamspeakid_user_certificate = 56;
optional myteamspeak.proto.AvatarData avatar_data = 57;
optional string push_token = 58;
optional Permissions permissions = 59;
optional myteamspeak.proto.tschat.MatrixIdentifierToken identifier_token = 61;
optional AuthTokenCache auth_token_cache = 62;
message AuthTokenCache {
optional string auth_token = 1;
optional string renewal_token = 2;
}
optional string firebase_device_token = 63;
optional string otp_renewal_token = 64;
optional string device_id = 65;
}
message TS_Sync_Account {
optional string passphrase = 1;
}
message Permissions {
repeated string permission = 1;
}
message MyTSID_Verification_Token {
optional bytes verification_sign = 1;
optional uint64 sign_timestamp = 2;
optional bytes user_pub_key = 3;
optional bytes pub_sign = 4;
optional bytes pub_sign_cert = 5;
optional uint64 ac_time = 6;
optional bytes mytsid = 7;
}
message Auth_Token_Package {
optional uint32 version = 1;
optional string auth_token = 2;
optional string encrypted_encryption_password = 3;
optional string encryption_tag = 4;
optional string iv = 5;
}
+220
View File
@@ -0,0 +1,220 @@
syntax = "proto2";
package com.teamspeak.sync.proto;
import "synchronization_common.proto";
message Bookmark_Data {
optional string name = 1;
optional string address = 2;
optional uint32 port = 3;
optional string nickname = 4;
optional string phonetic_nickname = 5;
optional string identity = 6;
optional string server_password = 7;
optional string default_channel = 8;
optional string default_channel_password = 9;
optional uint64 default_channel_id = 10;
optional string capture_profile = 11;
optional string playback_profile = 12;
optional string hotkey_profile = 13;
optional bool autoconnect = 14;
optional string server_uid = 15;
optional string server_icon = 16;
optional string sound_pack = 17;
optional bool show_server_query_clients = 18;
optional SubscriptionMode subscription_mode = 19;
enum SubscriptionMode {
Undefined = 0;
All = 1;
Current = 2;
}
repeated uint64 subscribed_channel_ids = 20;
repeated ChannelPassword channel_passwords = 21;
message ChannelPassword {
optional uint64 channel_id = 1;
optional string password = 2;
}
optional bool send_mytsid_on_server = 22 [default = true];
optional bool announce_to_chat = 23 [default = false];
optional string resolved_server_nickname = 24;
optional bool connect_muted = 25 [default = false];
}
message Identity_Data {
optional string unique_identity = 1;
optional string id_name = 2;
optional string nickname = 3;
optional string phonetic_nickname = 4;
optional bool is_default = 5 [default = false];
}
message Whisper_list_data {
optional string uuid = 1;
optional string name = 2;
optional WhisperListType type = 3;
enum WhisperListType {
WLT_INVALID = 0;
WLT_LIST = 1;
WLT_PREDEFINED = 2;
}
optional int32 groupType = 4;
optional int32 groupTargetMode = 5;
optional uint64 targetGroupID = 6;
optional string targetGroupName = 7;
optional string targetServerUid = 8;
optional string targetServerName = 9;
repeated WhisperEntry whisperListEntries = 10;
message WhisperEntry {
optional WhisperEntryType type = 1;
enum WhisperEntryType {
WET_INVALID = 0;
WET_CLIENT = 1;
WET_CHANNEL = 2;
}
optional string name = 2;
optional string uid = 3;
}
}
message HotkeyProfile_data {
optional string uuid = 1;
optional string name = 2;
repeated Hotkey hotkeys = 3;
message Hotkey {
optional OS os = 3;
enum OS {
Windows = 0;
OSX = 1;
Linux = 2;
}
optional int32 event_type = 4;
optional string event_uuid = 5;
optional string event_mode = 6;
repeated KeyDef keys = 7;
message KeyDef {
optional string identifier = 1;
optional string key = 2;
}
optional uint32 action_type = 8;
optional string action_uuid = 9;
optional bool action_discard = 10 [default = false];
optional string action_mode = 11;
optional string action_flag = 12;
optional string action_description = 13;
optional string action_plugin = 14;
optional string action_away_message = 15;
optional string action_soundpack = 16;
optional string action_plugincommand = 17;
optional string action_plugindescription = 18;
optional string action_deviceuid = 19;
optional string action_devicename = 20;
optional string action_target = 21;
optional bool action_auto = 22 [default = false];
optional string action_profiles = 23;
optional bool action_active_tab = 24 [default = false];
}
optional bool is_default = 4 [default = false];
}
message Add_on_data {
optional string uuid = 1;
optional bool enabled = 2;
}
message Chat_Credentials {
optional string domain = 1;
optional string username = 2;
optional string password = 3;
}
message Config_data {
optional int32 default_subscribe_mode = 1;
repeated string user_badges = 2;
optional bool show_user_badges = 3;
optional bytes global_presence_token = 4;
optional Chat_Credentials tschat_credentials = 5;
repeated TSCHAT_DE_Data tschat_de_data = 7;
}
message Item_Folder {
optional string folder_name = 1;
optional myteamspeak.proto.synchronization.Item_Class folder_type = 2;
}
message Group_Chats {
optional string category_name = 1;
}
message Contact {
optional string chat_room_id = 1;
optional string custom_name = 2;
optional string custom_category = 3;
optional NotificationPreference notification_preference = 4;
enum NotificationPreference {
NOTIFY_ALWAYS = 0;
NOTIFY_EVERYONE_AND_SELF = 1;
NOTIFY_SELF = 2;
NOTIFY_NONE = 3;
}
optional bool is_favourite = 5;
optional bool is_direct_chat = 6;
optional string mytsid = 7;
optional string chat_member_id = 8;
}
message Item_Data {
optional string item_uuid = 2;
optional string sync_version_uuid = 3;
optional Manipulation_Flag manipulated = 4;
enum Manipulation_Flag {
ITEM_ADDED = 0;
ITEM_CHANGED = 1;
ITEM_DELETED = 2;
ITEM_NOT_MANIPULATED = 3;
}
optional string last_known_version = 5;
optional uint32 item_type = 6;
optional string parent = 7;
optional string sort_order = 8;
optional uint64 timestamp = 9;
oneof item_content {
Bookmark_Data bookmark = 16;
Identity_Data identity = 17;
Whisper_list_data whisperlist = 18;
HotkeyProfile_data hotkeyprofile = 19;
Add_on_data add_on = 20;
Config_data config = 21;
Item_Folder item_folder = 22;
Group_Chats group_chats = 24;
Contact contact = 25;
}
}
message TSCHAT_DE_Data {
optional string url = 1;
optional string identity = 2;
optional string username = 3;
optional string server_id = 4;
optional string address = 5;
optional string port = 6;
optional string name = 7;
}
+29
View File
@@ -0,0 +1,29 @@
syntax = "proto3";
package com.teamspeak.blacklist;
message BlacklistInfoRequest {
bytes ip_address = 1;
string domain_name = 2;
string virtual_server_id = 3;
string public_license_id = 4;
uint32 port = 5;
uint64 timestamp = 6;
bool valid_token_present = 7;
bool slots_ok = 8;
string updated_virtual_server_id = 9;
}
message BlacklistInfoResponse {
Result status_ip = 1;
enum Result {
INVALID = 0;
BLACKLISTED = 1;
GREYLISTED = 2;
NOT_LISTED = 3;
}
Result status_domain = 2;
Result status_virtual_server_id = 3;
Result Status_public_license_id = 4;
}
+10
View File
@@ -0,0 +1,10 @@
syntax = "proto3";
package com.teamspeak.proto.client_cache;
import "revoke_cache.proto";
message ClientLibCache {
revocation.RevokeListCachedData revoke_list_cache_certificates = 1;
revocation.RevokeListCachedData revoke_list_cache_mytsid_data = 2;
}
@@ -0,0 +1,17 @@
syntax = "proto3";
package envoy.annotations;
import "google/protobuf/descriptor.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/annotations";
extend google.protobuf.FieldOptions {
bool disallowed_by_default = 189503207;
string deprecated_at_minor_version = 157299826;
}
extend google.protobuf.EnumValueOptions {
bool disallowed_by_default_enum = 70100853;
string deprecated_at_minor_version_enum = 181198657;
}
@@ -0,0 +1,146 @@
syntax = "proto3";
package envoy.config.accesslog.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/route/v3/route_components.proto";
import "envoy/data/accesslog/v3/accesslog.proto";
import "envoy/type/matcher/v3/metadata.proto";
import "envoy/type/v3/percent.proto";
import "google/protobuf/any.proto";
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/accesslog/v3;accesslogv3";
option java_multiple_files = true;
option java_outer_classname = "AccesslogProto";
option java_package = "io.envoyproxy.envoy.config.accesslog.v3";
message AccessLog {
string name = 1;
AccessLogFilter filter = 2;
oneof config_type {
google.protobuf.Any typed_config = 4;
}
reserved 3;
reserved "config";
}
message AccessLogFilter {
oneof filter_specifier {
StatusCodeFilter status_code_filter = 1;
DurationFilter duration_filter = 2;
NotHealthCheckFilter not_health_check_filter = 3;
TraceableFilter traceable_filter = 4;
RuntimeFilter runtime_filter = 5;
AndFilter and_filter = 6;
OrFilter or_filter = 7;
HeaderFilter header_filter = 8;
ResponseFlagFilter response_flag_filter = 9;
GrpcStatusFilter grpc_status_filter = 10;
ExtensionFilter extension_filter = 11;
MetadataFilter metadata_filter = 12;
LogTypeFilter log_type_filter = 13;
}
}
message ComparisonFilter {
Op op = 1;
enum Op {
EQ = 0;
GE = 1;
LE = 2;
}
core.v3.RuntimeUInt32 value = 2;
}
message StatusCodeFilter {
ComparisonFilter comparison = 1;
}
message DurationFilter {
ComparisonFilter comparison = 1;
}
message NotHealthCheckFilter {
}
message TraceableFilter {
}
message RuntimeFilter {
string runtime_key = 1;
type.v3.FractionalPercent percent_sampled = 2;
bool use_independent_randomness = 3;
}
message AndFilter {
repeated AccessLogFilter filters = 1;
}
message OrFilter {
repeated AccessLogFilter filters = 2;
}
message HeaderFilter {
route.v3.HeaderMatcher header = 1;
}
message ResponseFlagFilter {
repeated string flags = 1;
}
message GrpcStatusFilter {
repeated Status statuses = 1;
enum Status {
OK = 0;
CANCELED = 1;
UNKNOWN = 2;
INVALID_ARGUMENT = 3;
DEADLINE_EXCEEDED = 4;
NOT_FOUND = 5;
ALREADY_EXISTS = 6;
PERMISSION_DENIED = 7;
RESOURCE_EXHAUSTED = 8;
FAILED_PRECONDITION = 9;
ABORTED = 10;
OUT_OF_RANGE = 11;
UNIMPLEMENTED = 12;
INTERNAL = 13;
UNAVAILABLE = 14;
DATA_LOSS = 15;
UNAUTHENTICATED = 16;
}
bool exclude = 2;
}
message MetadataFilter {
type.matcher.v3.MetadataMatcher matcher = 1;
google.protobuf.BoolValue match_if_key_not_found = 2;
}
message LogTypeFilter {
repeated data.accesslog.v3.AccessLogType types = 1;
bool exclude = 2;
}
message ExtensionFilter {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 3;
}
reserved 2;
reserved "config";
}
@@ -0,0 +1,37 @@
syntax = "proto3";
package envoy.config.cluster.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/type/v3/percent.proto";
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3;clusterv3";
option java_multiple_files = true;
option java_outer_classname = "CircuitBreakerProto";
option java_package = "io.envoyproxy.envoy.config.cluster.v3";
message CircuitBreakers {
repeated Thresholds thresholds = 1;
message Thresholds {
core.v3.RoutingPriority priority = 1;
google.protobuf.UInt32Value max_connections = 2;
google.protobuf.UInt32Value max_pending_requests = 3;
google.protobuf.UInt32Value max_requests = 4;
google.protobuf.UInt32Value max_retries = 5;
RetryBudget retry_budget = 8;
message RetryBudget {
type.v3.Percent budget_percent = 1;
google.protobuf.UInt32Value min_retry_concurrency = 2;
}
bool track_remaining = 6;
google.protobuf.UInt32Value max_connection_pools = 7;
}
repeated Thresholds per_host_thresholds = 2;
}
@@ -0,0 +1,311 @@
syntax = "proto3";
package envoy.config.cluster.v3;
import "envoy/config/cluster/v3/circuit_breaker.proto";
import "envoy/config/cluster/v3/filter.proto";
import "envoy/config/cluster/v3/outlier_detection.proto";
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/config_source.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/health_check.proto";
import "envoy/config/core/v3/protocol.proto";
import "envoy/config/core/v3/resolver.proto";
import "envoy/config/endpoint/v3/endpoint.proto";
import "envoy/type/metadata/v3/metadata.proto";
import "envoy/type/v3/percent.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "xds/core/v3/collection_entry.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/security.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3;clusterv3";
option java_multiple_files = true;
option java_outer_classname = "ClusterProto";
option java_package = "io.envoyproxy.envoy.config.cluster.v3";
message ClusterCollection {
xds.core.v3.CollectionEntry entries = 1;
}
message Cluster {
repeated TransportSocketMatch transport_socket_matches = 43;
message TransportSocketMatch {
string name = 1;
google.protobuf.Struct match = 2;
core.v3.TransportSocket transport_socket = 3;
}
string name = 1;
string alt_stat_name = 28;
EdsClusterConfig eds_cluster_config = 3;
message EdsClusterConfig {
core.v3.ConfigSource eds_config = 1;
string service_name = 2;
}
google.protobuf.Duration connect_timeout = 4;
google.protobuf.UInt32Value per_connection_buffer_limit_bytes = 5;
LbPolicy lb_policy = 6;
enum LbPolicy {
ROUND_ROBIN = 0;
LEAST_REQUEST = 1;
RING_HASH = 2;
RANDOM = 3;
MAGLEV = 5;
CLUSTER_PROVIDED = 6;
LOAD_BALANCING_POLICY_CONFIG = 7;
}
endpoint.v3.ClusterLoadAssignment load_assignment = 33;
repeated core.v3.HealthCheck health_checks = 8;
google.protobuf.UInt32Value max_requests_per_connection = 9 [deprecated = true];
CircuitBreakers circuit_breakers = 10;
core.v3.UpstreamHttpProtocolOptions upstream_http_protocol_options = 46 [deprecated = true];
core.v3.HttpProtocolOptions common_http_protocol_options = 29 [deprecated = true];
core.v3.Http1ProtocolOptions http_protocol_options = 13 [deprecated = true];
core.v3.Http2ProtocolOptions http2_protocol_options = 14 [deprecated = true];
map<string, google.protobuf.Any> typed_extension_protocol_options = 36;
google.protobuf.Duration dns_refresh_rate = 16 [deprecated = true];
google.protobuf.Duration dns_jitter = 58 [deprecated = true];
RefreshRate dns_failure_refresh_rate = 44 [deprecated = true];
message RefreshRate {
google.protobuf.Duration base_interval = 1;
google.protobuf.Duration max_interval = 2;
}
bool respect_dns_ttl = 39 [deprecated = true];
DnsLookupFamily dns_lookup_family = 17;
enum DnsLookupFamily {
AUTO = 0;
V4_ONLY = 1;
V6_ONLY = 2;
V4_PREFERRED = 3;
ALL = 4;
}
repeated core.v3.Address dns_resolvers = 18 [deprecated = true];
bool use_tcp_for_dns_lookups = 45 [deprecated = true];
core.v3.DnsResolutionConfig dns_resolution_config = 53 [deprecated = true];
core.v3.TypedExtensionConfig typed_dns_resolver_config = 55;
google.protobuf.BoolValue wait_for_warm_on_init = 54;
OutlierDetection outlier_detection = 19;
google.protobuf.Duration cleanup_interval = 20;
core.v3.BindConfig upstream_bind_config = 21;
LbSubsetConfig lb_subset_config = 22;
message LbSubsetConfig {
LbSubsetFallbackPolicy fallback_policy = 1;
enum LbSubsetFallbackPolicy {
NO_FALLBACK = 0;
ANY_ENDPOINT = 1;
DEFAULT_SUBSET = 2;
}
google.protobuf.Struct default_subset = 2;
repeated LbSubsetSelector subset_selectors = 3;
message LbSubsetSelector {
repeated string keys = 1;
bool single_host_per_subset = 4;
LbSubsetSelectorFallbackPolicy fallback_policy = 2;
enum LbSubsetSelectorFallbackPolicy {
NOT_DEFINED = 0;
NO_FALLBACK = 1;
ANY_ENDPOINT = 2;
DEFAULT_SUBSET = 3;
KEYS_SUBSET = 4;
}
repeated string fallback_keys_subset = 3;
}
bool locality_weight_aware = 4;
bool scale_locality_weight = 5;
bool panic_mode_any = 6;
bool list_as_any = 7;
LbSubsetMetadataFallbackPolicy metadata_fallback_policy = 8;
enum LbSubsetMetadataFallbackPolicy {
METADATA_NO_FALLBACK = 0;
FALLBACK_LIST = 1;
}
}
CommonLbConfig common_lb_config = 27;
message CommonLbConfig {
type.v3.Percent healthy_panic_threshold = 1;
google.protobuf.Duration update_merge_window = 4;
bool ignore_new_hosts_until_first_hc = 5;
bool close_connections_on_host_set_change = 6;
ConsistentHashingLbConfig consistent_hashing_lb_config = 7;
message ConsistentHashingLbConfig {
bool use_hostname_for_hashing = 1;
google.protobuf.UInt32Value hash_balance_factor = 2;
}
core.v3.HealthStatusSet override_host_status = 8;
oneof locality_config_specifier {
ZoneAwareLbConfig zone_aware_lb_config = 2;
LocalityWeightedLbConfig locality_weighted_lb_config = 3;
}
message ZoneAwareLbConfig {
type.v3.Percent routing_enabled = 1;
google.protobuf.UInt64Value min_cluster_size = 2;
bool fail_traffic_on_panic = 3;
}
message LocalityWeightedLbConfig {
}
}
core.v3.TransportSocket transport_socket = 24;
core.v3.Metadata metadata = 25;
ClusterProtocolSelection protocol_selection = 26 [deprecated = true];
enum ClusterProtocolSelection {
USE_CONFIGURED_PROTOCOL = 0;
USE_DOWNSTREAM_PROTOCOL = 1;
}
UpstreamConnectionOptions upstream_connection_options = 30;
bool close_connections_on_host_health_failure = 31;
bool ignore_health_on_host_removal = 32;
repeated Filter filters = 40;
LoadBalancingPolicy load_balancing_policy = 41;
core.v3.ConfigSource lrs_server = 42;
repeated string lrs_report_endpoint_metrics = 57;
bool track_timeout_budgets = 47 [deprecated = true];
core.v3.TypedExtensionConfig upstream_config = 48;
TrackClusterStats track_cluster_stats = 49;
PreconnectPolicy preconnect_policy = 50;
message PreconnectPolicy {
google.protobuf.DoubleValue per_upstream_preconnect_ratio = 1;
google.protobuf.DoubleValue predictive_preconnect_ratio = 2;
}
bool connection_pool_per_downstream_connection = 51;
oneof cluster_discovery_type {
DiscoveryType type = 2;
CustomClusterType cluster_type = 38;
}
oneof lb_config {
RingHashLbConfig ring_hash_lb_config = 23;
MaglevLbConfig maglev_lb_config = 52;
OriginalDstLbConfig original_dst_lb_config = 34;
LeastRequestLbConfig least_request_lb_config = 37;
RoundRobinLbConfig round_robin_lb_config = 56;
}
reserved 12, 15, 7, 11, 35;
reserved "hosts", "tls_context", "extension_protocol_options";
message CustomClusterType {
string name = 1;
google.protobuf.Any typed_config = 2;
}
message SlowStartConfig {
google.protobuf.Duration slow_start_window = 1;
core.v3.RuntimeDouble aggression = 2;
type.v3.Percent min_weight_percent = 3;
}
message RoundRobinLbConfig {
SlowStartConfig slow_start_config = 1;
}
message LeastRequestLbConfig {
google.protobuf.UInt32Value choice_count = 1;
core.v3.RuntimeDouble active_request_bias = 2;
SlowStartConfig slow_start_config = 3;
}
message RingHashLbConfig {
google.protobuf.UInt64Value minimum_ring_size = 1;
HashFunction hash_function = 3;
enum HashFunction {
XX_HASH = 0;
MURMUR_HASH_2 = 1;
}
google.protobuf.UInt64Value maximum_ring_size = 4;
reserved 2;
}
message MaglevLbConfig {
google.protobuf.UInt64Value table_size = 1;
}
message OriginalDstLbConfig {
bool use_http_header = 1;
string http_header_name = 2;
google.protobuf.UInt32Value upstream_port_override = 3;
type.metadata.v3.MetadataKey metadata_key = 4;
}
enum DiscoveryType {
STATIC = 0;
STRICT_DNS = 1;
LOGICAL_DNS = 2;
EDS = 3;
ORIGINAL_DST = 4;
}
}
message LoadBalancingPolicy {
repeated Policy policies = 1;
message Policy {
core.v3.TypedExtensionConfig typed_extension_config = 4;
reserved 2, 1, 3;
reserved "config", "name", "typed_config";
}
}
message UpstreamConnectionOptions {
core.v3.TcpKeepalive tcp_keepalive = 1;
bool set_local_interface_name_on_upstream_connections = 2;
HappyEyeballsConfig happy_eyeballs_config = 3;
message HappyEyeballsConfig {
FirstAddressFamilyVersion first_address_family_version = 1;
google.protobuf.UInt32Value first_address_family_count = 2;
}
enum FirstAddressFamilyVersion {
DEFAULT = 0;
V4 = 1;
V6 = 2;
}
}
message TrackClusterStats {
bool timeout_budgets = 1;
bool request_response_sizes = 2;
bool per_endpoint_stats = 3;
}
@@ -0,0 +1,20 @@
syntax = "proto3";
package envoy.config.cluster.v3;
import "envoy/config/core/v3/config_source.proto";
import "google/protobuf/any.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3;clusterv3";
option java_multiple_files = true;
option java_outer_classname = "FilterProto";
option java_package = "io.envoyproxy.envoy.config.cluster.v3";
message Filter {
string name = 1;
google.protobuf.Any typed_config = 2;
core.v3.ExtensionConfigSource config_discovery = 3;
}
@@ -0,0 +1,43 @@
syntax = "proto3";
package envoy.config.cluster.v3;
import "envoy/config/core/v3/extension.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/cluster/v3;clusterv3";
option java_multiple_files = true;
option java_outer_classname = "OutlierDetectionProto";
option java_package = "io.envoyproxy.envoy.config.cluster.v3";
message OutlierDetection {
google.protobuf.UInt32Value consecutive_5xx = 1;
google.protobuf.Duration interval = 2;
google.protobuf.Duration base_ejection_time = 3;
google.protobuf.UInt32Value max_ejection_percent = 4;
google.protobuf.UInt32Value enforcing_consecutive_5xx = 5;
google.protobuf.UInt32Value enforcing_success_rate = 6;
google.protobuf.UInt32Value success_rate_minimum_hosts = 7;
google.protobuf.UInt32Value success_rate_request_volume = 8;
google.protobuf.UInt32Value success_rate_stdev_factor = 9;
google.protobuf.UInt32Value consecutive_gateway_failure = 10;
google.protobuf.UInt32Value enforcing_consecutive_gateway_failure = 11;
bool split_external_local_origin_errors = 12;
google.protobuf.UInt32Value consecutive_local_origin_failure = 13;
google.protobuf.UInt32Value enforcing_consecutive_local_origin_failure = 14;
google.protobuf.UInt32Value enforcing_local_origin_success_rate = 15;
google.protobuf.UInt32Value failure_percentage_threshold = 16;
google.protobuf.UInt32Value enforcing_failure_percentage = 17;
google.protobuf.UInt32Value enforcing_failure_percentage_local_origin = 18;
google.protobuf.UInt32Value failure_percentage_minimum_hosts = 19;
google.protobuf.UInt32Value failure_percentage_request_volume = 20;
google.protobuf.Duration max_ejection_time = 21;
google.protobuf.Duration max_ejection_time_jitter = 22;
google.protobuf.BoolValue successful_active_health_check_uneject_host = 23;
repeated core.v3.TypedExtensionConfig monitors = 24;
google.protobuf.BoolValue always_eject_one_host = 25;
}
@@ -0,0 +1,79 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/socket_option.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "AddressProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message Pipe {
string path = 1;
uint32 mode = 2;
}
message EnvoyInternalAddress {
string endpoint_id = 2;
oneof address_name_specifier {
string server_listener_name = 1;
}
}
message SocketAddress {
Protocol protocol = 1;
enum Protocol {
TCP = 0;
UDP = 1;
}
string address = 2;
string resolver_name = 5;
bool ipv4_compat = 6;
oneof port_specifier {
uint32 port_value = 3;
string named_port = 4;
}
}
message TcpKeepalive {
google.protobuf.UInt32Value keepalive_probes = 1;
google.protobuf.UInt32Value keepalive_time = 2;
google.protobuf.UInt32Value keepalive_interval = 3;
}
message ExtraSourceAddress {
SocketAddress address = 1;
SocketOptionsOverride socket_options = 2;
}
message BindConfig {
SocketAddress source_address = 1;
google.protobuf.BoolValue freebind = 2;
repeated SocketOption socket_options = 3;
repeated ExtraSourceAddress extra_source_addresses = 5;
repeated SocketAddress additional_source_addresses = 4 [deprecated = true];
TypedExtensionConfig local_address_selector = 6;
}
message Address {
oneof address {
SocketAddress socket_address = 1;
Pipe pipe = 2;
EnvoyInternalAddress envoy_internal_address = 3;
}
}
message CidrRange {
string address_prefix = 1;
google.protobuf.UInt32Value prefix_len = 2;
}
@@ -0,0 +1,18 @@
syntax = "proto3";
package envoy.config.core.v3;
import "google/protobuf/duration.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "BackoffProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message BackoffStrategy {
google.protobuf.Duration base_interval = 1;
google.protobuf.Duration max_interval = 2;
}
@@ -0,0 +1,246 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/backoff.proto";
import "envoy/config/core/v3/http_uri.proto";
import "envoy/type/v3/percent.proto";
import "envoy/type/v3/semantic_version.proto";
import "google/protobuf/any.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "xds/core/v3/context_params.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "BaseProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message Locality {
string region = 1;
string zone = 2;
string sub_zone = 3;
}
message BuildVersion {
type.v3.SemanticVersion version = 1;
google.protobuf.Struct metadata = 2;
}
message Extension {
string name = 1;
string category = 2;
string type_descriptor = 3 [deprecated = true];
BuildVersion version = 4;
bool disabled = 5;
repeated string type_urls = 6;
}
message Node {
string id = 1;
string cluster = 2;
google.protobuf.Struct metadata = 3;
map<string, xds.core.v3.ContextParams> dynamic_parameters = 12;
Locality locality = 4;
string user_agent_name = 6;
repeated Extension extensions = 9;
repeated string client_features = 10;
repeated Address listening_addresses = 11 [deprecated = true];
oneof user_agent_version_type {
string user_agent_version = 7;
BuildVersion user_agent_build_version = 8;
}
reserved 5;
reserved "build_version";
}
message Metadata {
map<string, google.protobuf.Struct> filter_metadata = 1;
map<string, google.protobuf.Any> typed_filter_metadata = 2;
}
message RuntimeUInt32 {
uint32 default_value = 2;
string runtime_key = 3;
}
message RuntimePercent {
type.v3.Percent default_value = 1;
string runtime_key = 2;
}
message RuntimeDouble {
double default_value = 1;
string runtime_key = 2;
}
message RuntimeFeatureFlag {
google.protobuf.BoolValue default_value = 1;
string runtime_key = 2;
}
message KeyValue {
string key = 1 [deprecated = true];
bytes value = 2 [deprecated = true];
}
message KeyValuePair {
string key = 1;
google.protobuf.Value value = 2;
}
message KeyValueAppend {
KeyValuePair record = 3;
KeyValue entry = 1 [deprecated = true];
KeyValueAppendAction action = 2;
enum KeyValueAppendAction {
APPEND_IF_EXISTS_OR_ADD = 0;
ADD_IF_ABSENT = 1;
OVERWRITE_IF_EXISTS_OR_ADD = 2;
OVERWRITE_IF_EXISTS = 3;
}
}
message KeyValueMutation {
KeyValueAppend append = 1;
string remove = 2;
}
message QueryParameter {
string key = 1;
string value = 2;
}
message HeaderValue {
string key = 1;
string value = 2;
bytes raw_value = 3;
}
message HeaderValueOption {
HeaderValue header = 1;
google.protobuf.BoolValue append = 2 [deprecated = true];
HeaderAppendAction append_action = 3;
enum HeaderAppendAction {
APPEND_IF_EXISTS_OR_ADD = 0;
ADD_IF_ABSENT = 1;
OVERWRITE_IF_EXISTS_OR_ADD = 2;
OVERWRITE_IF_EXISTS = 3;
}
bool keep_empty_value = 4;
}
message HeaderMap {
repeated HeaderValue headers = 1;
}
message WatchedDirectory {
string path = 1;
}
message DataSource {
WatchedDirectory watched_directory = 5;
oneof specifier {
string filename = 1;
bytes inline_bytes = 2;
string inline_string = 3;
string environment_variable = 4;
}
}
message RetryPolicy {
BackoffStrategy retry_back_off = 1;
google.protobuf.UInt32Value num_retries = 2;
string retry_on = 3;
RetryPriority retry_priority = 4;
message RetryPriority {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 2;
}
}
repeated RetryHostPredicate retry_host_predicate = 5;
message RetryHostPredicate {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 2;
}
}
int64 host_selection_retry_max_attempts = 6;
}
message RemoteDataSource {
HttpUri http_uri = 1;
string sha256 = 2;
RetryPolicy retry_policy = 3;
}
message AsyncDataSource {
oneof specifier {
DataSource local = 1;
RemoteDataSource remote = 2;
}
}
message TransportSocket {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 3;
}
reserved 2;
reserved "config";
}
message RuntimeFractionalPercent {
type.v3.FractionalPercent default_value = 1;
string runtime_key = 2;
}
message ControlPlane {
string identifier = 1;
}
enum RoutingPriority {
DEFAULT = 0;
HIGH = 1;
}
enum RequestMethod {
METHOD_UNSPECIFIED = 0;
GET = 1;
HEAD = 2;
POST = 3;
PUT = 4;
DELETE = 5;
CONNECT = 6;
OPTIONS = 7;
TRACE = 8;
PATCH = 9;
}
enum TrafficDirection {
UNSPECIFIED = 0;
INBOUND = 1;
OUTBOUND = 2;
}
@@ -0,0 +1,86 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/grpc_service.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "xds/core/v3/authority.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "ConfigSourceProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message ApiConfigSource {
ApiType api_type = 1;
enum ApiType {
DEPRECATED_AND_UNAVAILABLE_DO_NOT_USE = 0 [deprecated = true];
REST = 1;
GRPC = 2;
DELTA_GRPC = 3;
AGGREGATED_GRPC = 5;
AGGREGATED_DELTA_GRPC = 6;
}
ApiVersion transport_api_version = 8;
repeated string cluster_names = 2;
repeated GrpcService grpc_services = 4;
google.protobuf.Duration refresh_delay = 3;
google.protobuf.Duration request_timeout = 5;
RateLimitSettings rate_limit_settings = 6;
bool set_node_on_first_message_only = 7;
repeated TypedExtensionConfig config_validators = 9;
}
message AggregatedConfigSource {
}
message SelfConfigSource {
ApiVersion transport_api_version = 1;
}
message RateLimitSettings {
google.protobuf.UInt32Value max_tokens = 1;
google.protobuf.DoubleValue fill_rate = 2;
}
message PathConfigSource {
string path = 1;
WatchedDirectory watched_directory = 2;
}
message ConfigSource {
repeated xds.core.v3.Authority authorities = 7;
google.protobuf.Duration initial_fetch_timeout = 4;
ApiVersion resource_api_version = 6;
oneof config_source_specifier {
string path = 1 [deprecated = true];
PathConfigSource path_config_source = 8;
ApiConfigSource api_config_source = 2;
AggregatedConfigSource ads = 3;
SelfConfigSource self = 5;
}
}
message ExtensionConfigSource {
ConfigSource config_source = 1;
google.protobuf.Any default_config = 2;
bool apply_default_config_without_warming = 3;
repeated string type_urls = 4;
}
enum ApiVersion {
AUTO = 0;
V2 = 1 [deprecated = true];
V3 = 2;
}
@@ -0,0 +1,19 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/grpc_service.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "EventServiceConfigProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message EventServiceConfig {
oneof config_source_specifier {
GrpcService grpc_service = 1;
}
}
@@ -0,0 +1,17 @@
syntax = "proto3";
package envoy.config.core.v3;
import "google/protobuf/any.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "ExtensionProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message TypedExtensionConfig {
string name = 1;
google.protobuf.Any typed_config = 2;
}
@@ -0,0 +1,127 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/base.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "udpa/annotations/sensitive.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "GrpcServiceProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message GrpcService {
google.protobuf.Duration timeout = 3;
repeated HeaderValue initial_metadata = 5;
RetryPolicy retry_policy = 6;
oneof target_specifier {
EnvoyGrpc envoy_grpc = 1;
GoogleGrpc google_grpc = 2;
}
reserved 4;
message EnvoyGrpc {
string cluster_name = 1;
string authority = 2;
RetryPolicy retry_policy = 3;
google.protobuf.UInt32Value max_receive_message_length = 4;
bool skip_envoy_headers = 5;
}
message GoogleGrpc {
string target_uri = 1;
ChannelCredentials channel_credentials = 2;
message ChannelCredentials {
oneof credential_specifier {
SslCredentials ssl_credentials = 1;
google.protobuf.Empty google_default = 2;
GoogleLocalCredentials local_credentials = 3;
}
}
repeated CallCredentials call_credentials = 3;
message CallCredentials {
oneof credential_specifier {
string access_token = 1;
google.protobuf.Empty google_compute_engine = 2;
string google_refresh_token = 3;
ServiceAccountJWTAccessCredentials service_account_jwt_access = 4;
GoogleIAMCredentials google_iam = 5;
MetadataCredentialsFromPlugin from_plugin = 6;
StsService sts_service = 7;
}
message ServiceAccountJWTAccessCredentials {
string json_key = 1;
uint64 token_lifetime_seconds = 2;
}
message GoogleIAMCredentials {
string authorization_token = 1;
string authority_selector = 2;
}
message MetadataCredentialsFromPlugin {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 3;
}
reserved 2;
reserved "config";
}
message StsService {
string token_exchange_service_uri = 1;
string resource = 2;
string audience = 3;
string scope = 4;
string requested_token_type = 5;
string subject_token_path = 6;
string subject_token_type = 7;
string actor_token_path = 8;
string actor_token_type = 9;
}
}
string stat_prefix = 4;
string credentials_factory_name = 5;
google.protobuf.Struct config = 6;
google.protobuf.UInt32Value per_stream_buffer_limit_bytes = 7;
ChannelArgs channel_args = 8;
message ChannelArgs {
map<string, Value> args = 1;
message Value {
oneof value_specifier {
string string_value = 1;
int64 int_value = 2;
}
}
}
message SslCredentials {
DataSource root_certs = 1;
DataSource private_key = 2;
DataSource cert_chain = 3;
}
message GoogleLocalCredentials {
}
}
}
@@ -0,0 +1,129 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/event_service_config.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/proxy_protocol.proto";
import "envoy/type/matcher/v3/string.proto";
import "envoy/type/v3/http.proto";
import "envoy/type/v3/range.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "HealthCheckProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message HealthStatusSet {
repeated HealthStatus statuses = 1;
}
message HealthCheck {
google.protobuf.Duration timeout = 1;
google.protobuf.Duration interval = 2;
google.protobuf.Duration initial_jitter = 20;
google.protobuf.Duration interval_jitter = 3;
uint32 interval_jitter_percent = 18;
google.protobuf.UInt32Value unhealthy_threshold = 4;
google.protobuf.UInt32Value healthy_threshold = 5;
google.protobuf.UInt32Value alt_port = 6;
google.protobuf.BoolValue reuse_connection = 7;
google.protobuf.Duration no_traffic_interval = 12;
google.protobuf.Duration no_traffic_healthy_interval = 24;
google.protobuf.Duration unhealthy_interval = 14;
google.protobuf.Duration unhealthy_edge_interval = 15;
google.protobuf.Duration healthy_edge_interval = 16;
string event_log_path = 17 [deprecated = true];
repeated TypedExtensionConfig event_logger = 25;
EventServiceConfig event_service = 22;
bool always_log_health_check_failures = 19;
bool always_log_health_check_success = 26;
TlsOptions tls_options = 21;
message TlsOptions {
repeated string alpn_protocols = 1;
}
google.protobuf.Struct transport_socket_match_criteria = 23;
oneof health_checker {
HttpHealthCheck http_health_check = 8;
TcpHealthCheck tcp_health_check = 9;
GrpcHealthCheck grpc_health_check = 11;
CustomHealthCheck custom_health_check = 13;
}
reserved 10;
message Payload {
oneof payload {
string text = 1;
bytes binary = 2;
}
}
message HttpHealthCheck {
string host = 1;
string path = 2;
Payload send = 3;
repeated Payload receive = 4;
google.protobuf.UInt64Value response_buffer_size = 14;
repeated HeaderValueOption request_headers_to_add = 6;
repeated string request_headers_to_remove = 8;
repeated type.v3.Int64Range expected_statuses = 9;
repeated type.v3.Int64Range retriable_statuses = 12;
type.v3.CodecClientType codec_client_type = 10;
type.matcher.v3.StringMatcher service_name_matcher = 11;
RequestMethod method = 13;
reserved 5, 7;
reserved "service_name", "use_http2";
}
message TcpHealthCheck {
Payload send = 1;
repeated Payload receive = 2;
ProxyProtocolConfig proxy_protocol_config = 3;
}
message RedisHealthCheck {
string key = 1;
}
message GrpcHealthCheck {
string service_name = 1;
string authority = 2;
repeated HeaderValueOption initial_metadata = 3;
}
message CustomHealthCheck {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 3;
}
reserved 2;
reserved "config";
}
}
enum HealthStatus {
UNKNOWN = 0;
HEALTHY = 1;
UNHEALTHY = 2;
DRAINING = 3;
TIMEOUT = 4;
DEGRADED = 5;
}
@@ -0,0 +1,22 @@
syntax = "proto3";
package envoy.config.core.v3;
import "google/protobuf/duration.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "HttpUriProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message HttpUri {
string uri = 1;
google.protobuf.Duration timeout = 3;
oneof http_upstream_type {
string cluster = 2;
}
}
@@ -0,0 +1,153 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/extension.proto";
import "envoy/type/v3/percent.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "xds/annotations/v3/status.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "ProtocolProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message TcpProtocolOptions {
}
message QuicKeepAliveSettings {
google.protobuf.Duration max_interval = 1;
google.protobuf.Duration initial_interval = 2;
}
message QuicProtocolOptions {
google.protobuf.UInt32Value max_concurrent_streams = 1;
google.protobuf.UInt32Value initial_stream_window_size = 2;
google.protobuf.UInt32Value initial_connection_window_size = 3;
google.protobuf.UInt32Value num_timeouts_to_trigger_port_migration = 4;
QuicKeepAliveSettings connection_keepalive = 5;
string connection_options = 6;
string client_connection_options = 7;
google.protobuf.Duration idle_network_timeout = 8;
google.protobuf.UInt64Value max_packet_length = 9;
}
message UpstreamHttpProtocolOptions {
bool auto_sni = 1;
bool auto_san_validation = 2;
string override_auto_sni_header = 3;
}
message AlternateProtocolsCacheOptions {
string name = 1;
google.protobuf.UInt32Value max_entries = 2;
TypedExtensionConfig key_value_store_config = 3;
repeated AlternateProtocolsCacheEntry prepopulated_entries = 4;
message AlternateProtocolsCacheEntry {
string hostname = 1;
uint32 port = 2;
}
repeated string canonical_suffixes = 5;
}
message HttpProtocolOptions {
google.protobuf.Duration idle_timeout = 1;
google.protobuf.Duration max_connection_duration = 3;
google.protobuf.UInt32Value max_headers_count = 2;
google.protobuf.UInt32Value max_response_headers_kb = 7;
google.protobuf.Duration max_stream_duration = 4;
HeadersWithUnderscoresAction headers_with_underscores_action = 5;
enum HeadersWithUnderscoresAction {
ALLOW = 0;
REJECT_REQUEST = 1;
DROP_HEADER = 2;
}
google.protobuf.UInt32Value max_requests_per_connection = 6;
}
message Http1ProtocolOptions {
google.protobuf.BoolValue allow_absolute_url = 1;
bool accept_http_10 = 2;
string default_host_for_http_10 = 3;
HeaderKeyFormat header_key_format = 4;
message HeaderKeyFormat {
oneof header_format {
ProperCaseWords proper_case_words = 1;
TypedExtensionConfig stateful_formatter = 8;
}
message ProperCaseWords {
}
}
bool enable_trailers = 5;
bool allow_chunked_length = 6;
google.protobuf.BoolValue override_stream_error_on_invalid_http_message = 7;
bool send_fully_qualified_url = 8;
google.protobuf.BoolValue use_balsa_parser = 9;
bool allow_custom_methods = 10;
}
message KeepaliveSettings {
google.protobuf.Duration interval = 1;
google.protobuf.Duration timeout = 2;
type.v3.Percent interval_jitter = 3;
google.protobuf.Duration connection_idle_interval = 4;
}
message Http2ProtocolOptions {
google.protobuf.UInt32Value hpack_table_size = 1;
google.protobuf.UInt32Value max_concurrent_streams = 2;
google.protobuf.UInt32Value initial_stream_window_size = 3;
google.protobuf.UInt32Value initial_connection_window_size = 4;
bool allow_connect = 5;
bool allow_metadata = 6;
google.protobuf.UInt32Value max_outbound_frames = 7;
google.protobuf.UInt32Value max_outbound_control_frames = 8;
google.protobuf.UInt32Value max_consecutive_inbound_frames_with_empty_payload = 9;
google.protobuf.UInt32Value max_inbound_priority_frames_per_stream = 10;
google.protobuf.UInt32Value max_inbound_window_update_frames_per_data_frame_sent = 11;
bool stream_error_on_invalid_http_messaging = 12 [deprecated = true];
google.protobuf.BoolValue override_stream_error_on_invalid_http_message = 14;
repeated SettingsParameter custom_settings_parameters = 13;
message SettingsParameter {
google.protobuf.UInt32Value identifier = 1;
google.protobuf.UInt32Value value = 2;
}
KeepaliveSettings connection_keepalive = 15;
google.protobuf.BoolValue use_oghttp2_codec = 16;
google.protobuf.UInt64Value max_metadata_size = 17;
}
message GrpcProtocolOptions {
Http2ProtocolOptions http2_protocol_options = 1;
}
message Http3ProtocolOptions {
QuicProtocolOptions quic_protocol_options = 1;
google.protobuf.BoolValue override_stream_error_on_invalid_http_message = 2;
bool allow_extended_connect = 5;
bool allow_metadata = 6;
}
message SchemeHeaderTransformation {
bool match_upstream = 2;
oneof transformation {
string scheme_to_overwrite = 1;
}
}
@@ -0,0 +1,31 @@
syntax = "proto3";
package envoy.config.core.v3;
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "ProxyProtocolProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message ProxyProtocolPassThroughTLVs {
PassTLVsMatchType match_type = 1;
enum PassTLVsMatchType {
INCLUDE_ALL = 0;
INCLUDE = 1;
}
repeated uint32 tlv_type = 2;
}
message ProxyProtocolConfig {
Version version = 1;
enum Version {
V1 = 0;
V2 = 1;
}
ProxyProtocolPassThroughTLVs pass_through_tlvs = 2;
}
@@ -0,0 +1,22 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/address.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "ResolverProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message DnsResolverOptions {
bool use_tcp_for_dns_lookups = 1;
bool no_default_search_domain = 2;
}
message DnsResolutionConfig {
repeated Address resolvers = 1;
DnsResolverOptions dns_resolver_options = 2;
}
@@ -0,0 +1,17 @@
syntax = "proto3";
package envoy.config.core.v3;
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "SocketCmsgHeadersProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message SocketCmsgHeaders {
google.protobuf.UInt32Value level = 1;
google.protobuf.UInt32Value type = 2;
uint32 expected_size = 3;
}
@@ -0,0 +1,47 @@
syntax = "proto3";
package envoy.config.core.v3;
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "SocketOptionProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message SocketOption {
string description = 1;
int64 level = 2;
int64 name = 3;
SocketState state = 6;
enum SocketState {
STATE_PREBIND = 0;
STATE_BOUND = 1;
STATE_LISTENING = 2;
}
SocketType type = 7;
message SocketType {
Stream stream = 1;
message Stream {
}
Datagram datagram = 2;
message Datagram {
}
}
oneof value {
int64 int_value = 4;
bytes buf_value = 5;
}
}
message SocketOptionsOverride {
repeated SocketOption socket_options = 1;
}
@@ -0,0 +1,32 @@
syntax = "proto3";
package envoy.config.core.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/extension.proto";
import "google/protobuf/struct.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "SubstitutionFormatStringProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message JsonFormatOptions {
bool sort_properties = 1;
}
message SubstitutionFormatString {
bool omit_empty_values = 3;
string content_type = 4;
repeated TypedExtensionConfig formatters = 6;
JsonFormatOptions json_format_options = 7;
oneof format {
string text_format = 1 [deprecated = true];
google.protobuf.Struct json_format = 2;
DataSource text_format_source = 5;
}
}
@@ -0,0 +1,17 @@
syntax = "proto3";
package envoy.config.core.v3;
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/core/v3;corev3";
option java_multiple_files = true;
option java_outer_classname = "UdpSocketConfigProto";
option java_package = "io.envoyproxy.envoy.config.core.v3";
message UdpSocketConfig {
google.protobuf.UInt64Value max_rx_datagram_size = 1;
google.protobuf.BoolValue prefer_gro = 2;
}
@@ -0,0 +1,39 @@
syntax = "proto3";
package envoy.config.endpoint.v3;
import "envoy/config/endpoint/v3/endpoint_components.proto";
import "envoy/type/v3/percent.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3;endpointv3";
option java_multiple_files = true;
option java_outer_classname = "EndpointProto";
option java_package = "io.envoyproxy.envoy.config.endpoint.v3";
message ClusterLoadAssignment {
string cluster_name = 1;
repeated LocalityLbEndpoints endpoints = 2;
map<string, Endpoint> named_endpoints = 5;
Policy policy = 4;
message Policy {
repeated DropOverload drop_overloads = 2;
message DropOverload {
string category = 1;
type.v3.FractionalPercent drop_percentage = 2;
}
google.protobuf.UInt32Value overprovisioning_factor = 3;
google.protobuf.Duration endpoint_stale_after = 4;
bool weighted_priority_health = 6;
reserved 1, 5;
reserved "disable_overprovisioning";
}
}
@@ -0,0 +1,70 @@
syntax = "proto3";
package envoy.config.endpoint.v3;
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/config_source.proto";
import "envoy/config/core/v3/health_check.proto";
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3;endpointv3";
option java_multiple_files = true;
option java_outer_classname = "EndpointComponentsProto";
option java_package = "io.envoyproxy.envoy.config.endpoint.v3";
message Endpoint {
core.v3.Address address = 1;
HealthCheckConfig health_check_config = 2;
message HealthCheckConfig {
uint32 port_value = 1;
string hostname = 2;
core.v3.Address address = 3;
bool disable_active_health_check = 4;
}
string hostname = 3;
repeated AdditionalAddress additional_addresses = 4;
message AdditionalAddress {
core.v3.Address address = 1;
}
}
message LbEndpoint {
core.v3.HealthStatus health_status = 2;
core.v3.Metadata metadata = 3;
google.protobuf.UInt32Value load_balancing_weight = 4;
oneof host_identifier {
Endpoint endpoint = 1;
string endpoint_name = 5;
}
}
message LedsClusterLocalityConfig {
core.v3.ConfigSource leds_config = 1;
string leds_collection_name = 2;
}
message LocalityLbEndpoints {
core.v3.Locality locality = 1;
core.v3.Metadata metadata = 9;
repeated LbEndpoint lb_endpoints = 2;
google.protobuf.UInt32Value load_balancing_weight = 3;
uint32 priority = 5;
google.protobuf.UInt32Value proximity = 6;
oneof lb_config {
LbEndpointList load_balancer_endpoints = 7;
LedsClusterLocalityConfig leds_cluster_locality_config = 8;
}
message LbEndpointList {
repeated LbEndpoint lb_endpoints = 1;
}
}
@@ -0,0 +1,70 @@
syntax = "proto3";
package envoy.config.endpoint.v3;
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "xds/annotations/v3/status.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/endpoint/v3;endpointv3";
option java_multiple_files = true;
option java_outer_classname = "LoadReportProto";
option java_package = "io.envoyproxy.envoy.config.endpoint.v3";
message UpstreamLocalityStats {
core.v3.Locality locality = 1;
uint64 total_successful_requests = 2;
uint64 total_requests_in_progress = 3;
uint64 total_error_requests = 4;
uint64 total_issued_requests = 8;
uint64 total_active_connections = 9;
uint64 total_new_connections = 10;
uint64 total_fail_connections = 11;
UnnamedEndpointLoadMetricStats cpu_utilization = 12;
UnnamedEndpointLoadMetricStats mem_utilization = 13;
UnnamedEndpointLoadMetricStats application_utilization = 14;
repeated EndpointLoadMetricStats load_metric_stats = 5;
repeated UpstreamEndpointStats upstream_endpoint_stats = 7;
uint32 priority = 6;
}
message UpstreamEndpointStats {
core.v3.Address address = 1;
google.protobuf.Struct metadata = 6;
uint64 total_successful_requests = 2;
uint64 total_requests_in_progress = 3;
uint64 total_error_requests = 4;
uint64 total_issued_requests = 7;
repeated EndpointLoadMetricStats load_metric_stats = 5;
}
message EndpointLoadMetricStats {
string metric_name = 1;
uint64 num_requests_finished_with_metric = 2;
double total_metric_value = 3;
}
message UnnamedEndpointLoadMetricStats {
uint64 num_requests_finished_with_metric = 1;
double total_metric_value = 2;
}
message ClusterStats {
string cluster_name = 1;
string cluster_service_name = 6;
repeated UpstreamLocalityStats upstream_locality_stats = 2;
uint64 total_dropped_requests = 3;
repeated DroppedRequests dropped_requests = 5;
message DroppedRequests {
string category = 1;
uint64 dropped_count = 2;
}
google.protobuf.Duration load_report_interval = 4;
}
@@ -0,0 +1,16 @@
syntax = "proto3";
package envoy.config.listener.v3;
import "google/protobuf/any.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3";
option java_multiple_files = true;
option java_outer_classname = "ApiListenerProto";
option java_package = "io.envoyproxy.envoy.config.listener.v3";
message ApiListener {
google.protobuf.Any api_listener = 1;
}
@@ -0,0 +1,115 @@
syntax = "proto3";
package envoy.config.listener.v3;
import "envoy/config/accesslog/v3/accesslog.proto";
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/socket_option.proto";
import "envoy/config/listener/v3/api_listener.proto";
import "envoy/config/listener/v3/listener_components.proto";
import "envoy/config/listener/v3/udp_listener_config.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "xds/annotations/v3/status.proto";
import "xds/core/v3/collection_entry.proto";
import "xds/type/matcher/v3/matcher.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/security.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3";
option java_multiple_files = true;
option java_outer_classname = "ListenerProto";
option java_package = "io.envoyproxy.envoy.config.listener.v3";
message AdditionalAddress {
core.v3.Address address = 1;
core.v3.SocketOptionsOverride socket_options = 2;
}
message ListenerCollection {
repeated xds.core.v3.CollectionEntry entries = 1;
}
message Listener {
string name = 1;
core.v3.Address address = 2;
repeated AdditionalAddress additional_addresses = 33;
string stat_prefix = 28;
repeated FilterChain filter_chains = 3;
xds.type.matcher.v3.Matcher filter_chain_matcher = 32;
google.protobuf.BoolValue use_original_dst = 4;
FilterChain default_filter_chain = 25;
google.protobuf.UInt32Value per_connection_buffer_limit_bytes = 5;
core.v3.Metadata metadata = 6;
DeprecatedV1 deprecated_v1 = 7 [deprecated = true];
message DeprecatedV1 {
google.protobuf.BoolValue bind_to_port = 1;
}
DrainType drain_type = 8;
enum DrainType {
DEFAULT = 0;
MODIFY_ONLY = 1;
}
repeated ListenerFilter listener_filters = 9;
google.protobuf.Duration listener_filters_timeout = 15;
bool continue_on_listener_filters_timeout = 17;
google.protobuf.BoolValue transparent = 10;
google.protobuf.BoolValue freebind = 11;
repeated core.v3.SocketOption socket_options = 13;
google.protobuf.UInt32Value tcp_fast_open_queue_length = 12;
core.v3.TrafficDirection traffic_direction = 16;
UdpListenerConfig udp_listener_config = 18;
ApiListener api_listener = 19;
ConnectionBalanceConfig connection_balance_config = 20;
message ConnectionBalanceConfig {
oneof balance_type {
ExactBalance exact_balance = 1;
core.v3.TypedExtensionConfig extend_balance = 2;
}
message ExactBalance {
}
}
bool reuse_port = 21 [deprecated = true];
google.protobuf.BoolValue enable_reuse_port = 29;
repeated accesslog.v3.AccessLog access_log = 22;
google.protobuf.UInt32Value tcp_backlog_size = 24;
google.protobuf.UInt32Value max_connections_to_accept_per_socket_event = 34;
google.protobuf.BoolValue bind_to_port = 26;
bool enable_mptcp = 30;
bool ignore_global_conn_limit = 31;
bool bypass_overload_manager = 35;
oneof listener_specifier {
InternalListenerConfig internal_listener = 27;
}
reserved 14, 23;
message InternalListenerConfig {
}
}
message ListenerManager {
}
message ValidationListenerManager {
}
message ApiListenerManager {
}
@@ -0,0 +1,98 @@
syntax = "proto3";
package envoy.config.listener.v3;
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/config_source.proto";
import "envoy/type/v3/range.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3";
option java_multiple_files = true;
option java_outer_classname = "ListenerComponentsProto";
option java_package = "io.envoyproxy.envoy.config.listener.v3";
message Filter {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 4;
core.v3.ExtensionConfigSource config_discovery = 5;
}
reserved 3, 2;
reserved "config";
}
message FilterChainMatch {
google.protobuf.UInt32Value destination_port = 8;
repeated core.v3.CidrRange prefix_ranges = 3;
string address_suffix = 4;
google.protobuf.UInt32Value suffix_len = 5;
repeated core.v3.CidrRange direct_source_prefix_ranges = 13;
ConnectionSourceType source_type = 12;
enum ConnectionSourceType {
ANY = 0;
SAME_IP_OR_LOOPBACK = 1;
EXTERNAL = 2;
}
repeated core.v3.CidrRange source_prefix_ranges = 6;
repeated uint32 source_ports = 7;
repeated string server_names = 11;
string transport_protocol = 9;
repeated string application_protocols = 10;
reserved 1;
}
message FilterChain {
FilterChainMatch filter_chain_match = 1;
repeated Filter filters = 3;
google.protobuf.BoolValue use_proxy_proto = 4 [deprecated = true];
core.v3.Metadata metadata = 5;
core.v3.TransportSocket transport_socket = 6;
google.protobuf.Duration transport_socket_connect_timeout = 9;
string name = 7;
reserved 2, 8;
reserved "tls_context", "on_demand_configuration";
}
message ListenerFilterChainMatchPredicate {
oneof rule {
MatchSet or_match = 1;
MatchSet and_match = 2;
ListenerFilterChainMatchPredicate not_match = 3;
bool any_match = 4;
type.v3.Int32Range destination_port_range = 5;
}
message MatchSet {
repeated ListenerFilterChainMatchPredicate rules = 1;
}
}
message ListenerFilter {
string name = 1;
ListenerFilterChainMatchPredicate filter_disabled = 4;
oneof config_type {
google.protobuf.Any typed_config = 3;
core.v3.ExtensionConfigSource config_discovery = 5;
}
reserved 2;
reserved "config";
}
@@ -0,0 +1,35 @@
syntax = "proto3";
package envoy.config.listener.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/protocol.proto";
import "envoy/config/core/v3/socket_cmsg_headers.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "xds/annotations/v3/status.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3";
option java_multiple_files = true;
option java_outer_classname = "QuicConfigProto";
option java_package = "io.envoyproxy.envoy.config.listener.v3";
message QuicProtocolOptions {
core.v3.QuicProtocolOptions quic_protocol_options = 1;
google.protobuf.Duration idle_timeout = 2;
google.protobuf.Duration crypto_handshake_timeout = 3;
core.v3.RuntimeFeatureFlag enabled = 4;
google.protobuf.UInt32Value packets_to_read_to_connection_count_ratio = 5;
core.v3.TypedExtensionConfig crypto_stream_config = 6;
core.v3.TypedExtensionConfig proof_source_config = 7;
core.v3.TypedExtensionConfig connection_id_generator_config = 8;
core.v3.TypedExtensionConfig server_preferred_address_config = 9;
google.protobuf.BoolValue send_disable_active_migration = 10;
core.v3.TypedExtensionConfig connection_debug_visitor_config = 11;
repeated core.v3.SocketCmsgHeaders save_cmsg_config = 12;
bool reject_new_connections = 13;
}
@@ -0,0 +1,28 @@
syntax = "proto3";
package envoy.config.listener.v3;
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/udp_socket_config.proto";
import "envoy/config/listener/v3/quic_config.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/listener/v3;listenerv3";
option java_multiple_files = true;
option java_outer_classname = "UdpListenerConfigProto";
option java_package = "io.envoyproxy.envoy.config.listener.v3";
message UdpListenerConfig {
core.v3.UdpSocketConfig downstream_socket_config = 5;
QuicProtocolOptions quic_options = 7;
core.v3.TypedExtensionConfig udp_packet_packet_writer_config = 8;
reserved 1, 2, 3, 4, 6;
reserved "config";
}
message ActiveRawUdpListenerConfig {
}
@@ -0,0 +1,125 @@
syntax = "proto3";
package envoy.config.rbac.v3;
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/route/v3/route_components.proto";
import "envoy/type/matcher/v3/filter_state.proto";
import "envoy/type/matcher/v3/metadata.proto";
import "envoy/type/matcher/v3/path.proto";
import "envoy/type/matcher/v3/string.proto";
import "envoy/type/v3/range.proto";
import "google/api/expr/v1alpha1/checked.proto";
import "google/api/expr/v1alpha1/syntax.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/rbac/v3;rbacv3";
option java_multiple_files = true;
option java_outer_classname = "RbacProto";
option java_package = "io.envoyproxy.envoy.config.rbac.v3";
message RBAC {
Action action = 1;
enum Action {
ALLOW = 0;
DENY = 1;
LOG = 2;
}
map<string, Policy> policies = 2;
AuditLoggingOptions audit_logging_options = 3;
message AuditLoggingOptions {
AuditCondition audit_condition = 1;
enum AuditCondition {
NONE = 0;
ON_DENY = 1;
ON_ALLOW = 2;
ON_DENY_AND_ALLOW = 3;
}
repeated AuditLoggerConfig logger_configs = 2;
message AuditLoggerConfig {
core.v3.TypedExtensionConfig audit_logger = 1;
bool is_optional = 2;
}
}
}
message Policy {
repeated Permission permissions = 1;
repeated Principal principals = 2;
google.api.expr.v1alpha1.Expr condition = 3;
google.api.expr.v1alpha1.CheckedExpr checked_condition = 4;
}
message SourcedMetadata {
type.matcher.v3.MetadataMatcher metadata_matcher = 1;
MetadataSource metadata_source = 2;
}
message Permission {
oneof rule {
Set and_rules = 1;
Set or_rules = 2;
bool any = 3;
route.v3.HeaderMatcher header = 4;
type.matcher.v3.PathMatcher url_path = 10;
core.v3.CidrRange destination_ip = 5;
uint32 destination_port = 6;
type.v3.Int32Range destination_port_range = 11;
type.matcher.v3.MetadataMatcher metadata = 7 [deprecated = true];
Permission not_rule = 8;
type.matcher.v3.StringMatcher requested_server_name = 9;
core.v3.TypedExtensionConfig matcher = 12;
core.v3.TypedExtensionConfig uri_template = 13;
SourcedMetadata sourced_metadata = 14;
}
message Set {
repeated Permission rules = 1;
}
}
message Principal {
oneof identifier {
Set and_ids = 1;
Set or_ids = 2;
bool any = 3;
Authenticated authenticated = 4;
core.v3.CidrRange source_ip = 5 [deprecated = true];
core.v3.CidrRange direct_remote_ip = 10;
core.v3.CidrRange remote_ip = 11;
route.v3.HeaderMatcher header = 6;
type.matcher.v3.PathMatcher url_path = 9;
type.matcher.v3.MetadataMatcher metadata = 7 [deprecated = true];
type.matcher.v3.FilterStateMatcher filter_state = 12;
Principal not_id = 8;
SourcedMetadata sourced_metadata = 13;
}
message Set {
repeated Principal ids = 1;
}
message Authenticated {
type.matcher.v3.StringMatcher principal_name = 2;
reserved 1;
}
}
message Action {
string name = 1;
RBAC.Action action = 2;
}
enum MetadataSource {
DYNAMIC = 0;
ROUTE = 1;
}
@@ -0,0 +1,41 @@
syntax = "proto3";
package envoy.config.route.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/config_source.proto";
import "envoy/config/route/v3/route_components.proto";
import "google/protobuf/any.proto";
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/route/v3;routev3";
option java_multiple_files = true;
option java_outer_classname = "RouteProto";
option java_package = "io.envoyproxy.envoy.config.route.v3";
message RouteConfiguration {
string name = 1;
repeated VirtualHost virtual_hosts = 2;
Vhds vhds = 9;
repeated string internal_only_headers = 3;
repeated core.v3.HeaderValueOption response_headers_to_add = 4;
repeated string response_headers_to_remove = 5;
repeated core.v3.HeaderValueOption request_headers_to_add = 6;
repeated string request_headers_to_remove = 8;
bool most_specific_header_mutations_wins = 10;
google.protobuf.BoolValue validate_clusters = 7;
google.protobuf.UInt32Value max_direct_response_body_size_bytes = 11;
repeated ClusterSpecifierPlugin cluster_specifier_plugins = 12;
repeated RouteAction.RequestMirrorPolicy request_mirror_policies = 13;
bool ignore_port_in_host_matching = 14;
bool ignore_path_parameters_in_path_matching = 15;
map<string, google.protobuf.Any> typed_per_filter_config = 16;
core.v3.Metadata metadata = 17;
}
message Vhds {
core.v3.ConfigSource config_source = 1;
}
@@ -0,0 +1,607 @@
syntax = "proto3";
package envoy.config.route.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/proxy_protocol.proto";
import "envoy/type/matcher/v3/metadata.proto";
import "envoy/type/matcher/v3/regex.proto";
import "envoy/type/matcher/v3/string.proto";
import "envoy/type/metadata/v3/metadata.proto";
import "envoy/type/tracing/v3/custom_tag.proto";
import "envoy/type/v3/percent.proto";
import "envoy/type/v3/range.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "xds/type/matcher/v3/matcher.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/route/v3;routev3";
option java_multiple_files = true;
option java_outer_classname = "RouteComponentsProto";
option java_package = "io.envoyproxy.envoy.config.route.v3";
message VirtualHost {
string name = 1;
repeated string domains = 2;
repeated Route routes = 3;
xds.type.matcher.v3.Matcher matcher = 21;
TlsRequirementType require_tls = 4;
enum TlsRequirementType {
NONE = 0;
EXTERNAL_ONLY = 1;
ALL = 2;
}
repeated VirtualCluster virtual_clusters = 5;
repeated RateLimit rate_limits = 6;
repeated core.v3.HeaderValueOption request_headers_to_add = 7;
repeated string request_headers_to_remove = 13;
repeated core.v3.HeaderValueOption response_headers_to_add = 10;
repeated string response_headers_to_remove = 11;
CorsPolicy cors = 8 [deprecated = true];
map<string, google.protobuf.Any> typed_per_filter_config = 15;
bool include_request_attempt_count = 14;
bool include_attempt_count_in_response = 19;
RetryPolicy retry_policy = 16;
google.protobuf.Any retry_policy_typed_config = 20;
HedgePolicy hedge_policy = 17;
bool include_is_timeout_retry_header = 23;
google.protobuf.UInt32Value per_request_buffer_limit_bytes = 18;
repeated RouteAction.RequestMirrorPolicy request_mirror_policies = 22;
core.v3.Metadata metadata = 24;
reserved 9, 12;
reserved "per_filter_config";
}
message FilterAction {
google.protobuf.Any action = 1;
}
message RouteList {
repeated Route routes = 1;
}
message Route {
string name = 14;
RouteMatch match = 1;
core.v3.Metadata metadata = 4;
Decorator decorator = 5;
map<string, google.protobuf.Any> typed_per_filter_config = 13;
repeated core.v3.HeaderValueOption request_headers_to_add = 9;
repeated string request_headers_to_remove = 12;
repeated core.v3.HeaderValueOption response_headers_to_add = 10;
repeated string response_headers_to_remove = 11;
Tracing tracing = 15;
google.protobuf.UInt32Value per_request_buffer_limit_bytes = 16;
string stat_prefix = 19;
oneof action {
RouteAction route = 2;
RedirectAction redirect = 3;
DirectResponseAction direct_response = 7;
FilterAction filter_action = 17;
NonForwardingAction non_forwarding_action = 18;
}
reserved 6, 8;
reserved "per_filter_config";
}
message WeightedCluster {
repeated ClusterWeight clusters = 1;
message ClusterWeight {
string name = 1;
string cluster_header = 12;
google.protobuf.UInt32Value weight = 2;
core.v3.Metadata metadata_match = 3;
repeated core.v3.HeaderValueOption request_headers_to_add = 4;
repeated string request_headers_to_remove = 9;
repeated core.v3.HeaderValueOption response_headers_to_add = 5;
repeated string response_headers_to_remove = 6;
map<string, google.protobuf.Any> typed_per_filter_config = 10;
oneof host_rewrite_specifier {
string host_rewrite_literal = 11;
}
reserved 7, 8;
reserved "per_filter_config";
}
google.protobuf.UInt32Value total_weight = 3 [deprecated = true];
string runtime_key_prefix = 2;
oneof random_value_specifier {
string header_name = 4;
}
}
message ClusterSpecifierPlugin {
core.v3.TypedExtensionConfig extension = 1;
bool is_optional = 2;
}
message RouteMatch {
google.protobuf.BoolValue case_sensitive = 4;
core.v3.RuntimeFractionalPercent runtime_fraction = 9;
repeated HeaderMatcher headers = 6;
repeated QueryParameterMatcher query_parameters = 7;
GrpcRouteMatchOptions grpc = 8;
message GrpcRouteMatchOptions {
}
TlsContextMatchOptions tls_context = 11;
message TlsContextMatchOptions {
google.protobuf.BoolValue presented = 1;
google.protobuf.BoolValue validated = 2;
}
repeated type.matcher.v3.MetadataMatcher dynamic_metadata = 13;
oneof path_specifier {
string prefix = 1;
string path = 2;
type.matcher.v3.RegexMatcher safe_regex = 10;
ConnectMatcher connect_matcher = 12;
string path_separated_prefix = 14;
core.v3.TypedExtensionConfig path_match_policy = 15;
}
reserved 5, 3;
reserved "regex";
message ConnectMatcher {
}
}
message CorsPolicy {
repeated type.matcher.v3.StringMatcher allow_origin_string_match = 11;
string allow_methods = 2;
string allow_headers = 3;
string expose_headers = 4;
string max_age = 5;
google.protobuf.BoolValue allow_credentials = 6;
core.v3.RuntimeFractionalPercent shadow_enabled = 10;
google.protobuf.BoolValue allow_private_network_access = 12;
google.protobuf.BoolValue forward_not_matching_preflights = 13;
oneof enabled_specifier {
core.v3.RuntimeFractionalPercent filter_enabled = 9;
}
reserved 1, 8, 7;
reserved "allow_origin", "allow_origin_regex", "enabled";
}
message RouteAction {
ClusterNotFoundResponseCode cluster_not_found_response_code = 20;
enum ClusterNotFoundResponseCode {
SERVICE_UNAVAILABLE = 0;
NOT_FOUND = 1;
INTERNAL_SERVER_ERROR = 2;
}
core.v3.Metadata metadata_match = 4;
string prefix_rewrite = 5;
type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 32;
core.v3.TypedExtensionConfig path_rewrite_policy = 41;
bool append_x_forwarded_host = 38;
google.protobuf.Duration timeout = 8;
google.protobuf.Duration idle_timeout = 24;
core.v3.TypedExtensionConfig early_data_policy = 40;
RetryPolicy retry_policy = 9;
google.protobuf.Any retry_policy_typed_config = 33;
repeated RequestMirrorPolicy request_mirror_policies = 30;
message RequestMirrorPolicy {
string cluster = 1;
string cluster_header = 5;
core.v3.RuntimeFractionalPercent runtime_fraction = 3;
google.protobuf.BoolValue trace_sampled = 4;
bool disable_shadow_host_suffix_append = 6;
reserved 2;
reserved "runtime_key";
}
core.v3.RoutingPriority priority = 11;
repeated RateLimit rate_limits = 13;
google.protobuf.BoolValue include_vh_rate_limits = 14 [deprecated = true];
repeated HashPolicy hash_policy = 15;
message HashPolicy {
bool terminal = 4;
oneof policy_specifier {
Header header = 1;
Cookie cookie = 2;
ConnectionProperties connection_properties = 3;
QueryParameter query_parameter = 5;
FilterState filter_state = 6;
}
message Header {
string header_name = 1;
type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 2;
}
message CookieAttribute {
string name = 1;
string value = 2;
}
message Cookie {
string name = 1;
google.protobuf.Duration ttl = 2;
string path = 3;
repeated CookieAttribute attributes = 4;
}
message ConnectionProperties {
bool source_ip = 1;
}
message QueryParameter {
string name = 1;
}
message FilterState {
string key = 1;
}
}
CorsPolicy cors = 17 [deprecated = true];
google.protobuf.Duration max_grpc_timeout = 23 [deprecated = true];
google.protobuf.Duration grpc_timeout_offset = 28 [deprecated = true];
repeated UpgradeConfig upgrade_configs = 25;
message UpgradeConfig {
string upgrade_type = 1;
google.protobuf.BoolValue enabled = 2;
ConnectConfig connect_config = 3;
message ConnectConfig {
core.v3.ProxyProtocolConfig proxy_protocol_config = 1;
bool allow_post = 2;
}
}
InternalRedirectPolicy internal_redirect_policy = 34;
InternalRedirectAction internal_redirect_action = 26 [deprecated = true];
enum InternalRedirectAction {
option deprecated = true;
PASS_THROUGH_INTERNAL_REDIRECT = 0;
HANDLE_INTERNAL_REDIRECT = 1;
}
google.protobuf.UInt32Value max_internal_redirects = 31 [deprecated = true];
HedgePolicy hedge_policy = 27;
MaxStreamDuration max_stream_duration = 36;
message MaxStreamDuration {
google.protobuf.Duration max_stream_duration = 1;
google.protobuf.Duration grpc_timeout_header_max = 2;
google.protobuf.Duration grpc_timeout_header_offset = 3;
}
oneof cluster_specifier {
string cluster = 1;
string cluster_header = 2;
WeightedCluster weighted_clusters = 3;
string cluster_specifier_plugin = 37;
ClusterSpecifierPlugin inline_cluster_specifier_plugin = 39;
}
oneof host_rewrite_specifier {
string host_rewrite_literal = 6;
google.protobuf.BoolValue auto_host_rewrite = 7;
string host_rewrite_header = 29;
type.matcher.v3.RegexMatchAndSubstitute host_rewrite_path_regex = 35;
}
reserved 12, 18, 19, 16, 22, 21, 10;
reserved "request_mirror_policy";
}
message RetryPolicy {
string retry_on = 1;
google.protobuf.UInt32Value num_retries = 2;
google.protobuf.Duration per_try_timeout = 3;
google.protobuf.Duration per_try_idle_timeout = 13;
RetryPriority retry_priority = 4;
message RetryPriority {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 3;
}
reserved 2;
reserved "config";
}
repeated RetryHostPredicate retry_host_predicate = 5;
message RetryHostPredicate {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 3;
}
reserved 2;
reserved "config";
}
repeated core.v3.TypedExtensionConfig retry_options_predicates = 12;
int64 host_selection_retry_max_attempts = 6;
repeated uint32 retriable_status_codes = 7;
RetryBackOff retry_back_off = 8;
message RetryBackOff {
google.protobuf.Duration base_interval = 1;
google.protobuf.Duration max_interval = 2;
}
RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
message RateLimitedRetryBackOff {
repeated ResetHeader reset_headers = 1;
google.protobuf.Duration max_interval = 2;
}
repeated HeaderMatcher retriable_headers = 9;
repeated HeaderMatcher retriable_request_headers = 10;
message ResetHeader {
string name = 1;
ResetHeaderFormat format = 2;
}
enum ResetHeaderFormat {
SECONDS = 0;
UNIX_TIMESTAMP = 1;
}
}
message HedgePolicy {
google.protobuf.UInt32Value initial_requests = 1;
type.v3.FractionalPercent additional_request_chance = 2;
bool hedge_on_per_try_timeout = 3;
}
message RedirectAction {
string host_redirect = 1;
uint32 port_redirect = 8;
RedirectResponseCode response_code = 3;
enum RedirectResponseCode {
MOVED_PERMANENTLY = 0;
FOUND = 1;
SEE_OTHER = 2;
TEMPORARY_REDIRECT = 3;
PERMANENT_REDIRECT = 4;
}
bool strip_query = 6;
oneof scheme_rewrite_specifier {
bool https_redirect = 4;
string scheme_redirect = 7;
}
oneof path_rewrite_specifier {
string path_redirect = 2;
string prefix_rewrite = 5;
type.matcher.v3.RegexMatchAndSubstitute regex_rewrite = 9;
}
}
message DirectResponseAction {
uint32 status = 1;
core.v3.DataSource body = 2;
}
message NonForwardingAction {
}
message Decorator {
string operation = 1;
google.protobuf.BoolValue propagate = 2;
}
message Tracing {
type.v3.FractionalPercent client_sampling = 1;
type.v3.FractionalPercent random_sampling = 2;
type.v3.FractionalPercent overall_sampling = 3;
repeated type.tracing.v3.CustomTag custom_tags = 4;
}
message VirtualCluster {
repeated HeaderMatcher headers = 4;
string name = 2;
reserved 1, 3;
reserved "pattern", "method";
}
message RateLimit {
google.protobuf.UInt32Value stage = 1;
string disable_key = 2;
repeated Action actions = 3;
message Action {
oneof action_specifier {
SourceCluster source_cluster = 1;
DestinationCluster destination_cluster = 2;
RequestHeaders request_headers = 3;
QueryParameters query_parameters = 12;
RemoteAddress remote_address = 4;
GenericKey generic_key = 5;
HeaderValueMatch header_value_match = 6;
DynamicMetaData dynamic_metadata = 7 [deprecated = true];
MetaData metadata = 8;
core.v3.TypedExtensionConfig extension = 9;
MaskedRemoteAddress masked_remote_address = 10;
QueryParameterValueMatch query_parameter_value_match = 11;
}
message SourceCluster {
}
message DestinationCluster {
}
message RequestHeaders {
string header_name = 1;
string descriptor_key = 2;
bool skip_if_absent = 3;
}
message QueryParameters {
string query_parameter_name = 1;
string descriptor_key = 2;
bool skip_if_absent = 3;
}
message RemoteAddress {
}
message MaskedRemoteAddress {
google.protobuf.UInt32Value v4_prefix_mask_len = 1;
google.protobuf.UInt32Value v6_prefix_mask_len = 2;
}
message GenericKey {
string descriptor_value = 1;
string descriptor_key = 2;
}
message HeaderValueMatch {
string descriptor_key = 4;
string descriptor_value = 1;
google.protobuf.BoolValue expect_match = 2;
repeated HeaderMatcher headers = 3;
}
message DynamicMetaData {
string descriptor_key = 1;
type.metadata.v3.MetadataKey metadata_key = 2;
string default_value = 3;
}
message MetaData {
string descriptor_key = 1;
type.metadata.v3.MetadataKey metadata_key = 2;
string default_value = 3;
Source source = 4;
enum Source {
DYNAMIC = 0;
ROUTE_ENTRY = 1;
}
bool skip_if_absent = 5;
}
message QueryParameterValueMatch {
string descriptor_key = 4;
string descriptor_value = 1;
google.protobuf.BoolValue expect_match = 2;
repeated QueryParameterMatcher query_parameters = 3;
}
}
Override limit = 4;
message Override {
oneof override_specifier {
DynamicMetadata dynamic_metadata = 1;
}
message DynamicMetadata {
type.metadata.v3.MetadataKey metadata_key = 1;
}
}
HitsAddend hits_addend = 5;
message HitsAddend {
google.protobuf.UInt64Value number = 1;
string format = 2;
}
bool apply_on_stream_done = 6;
}
message HeaderMatcher {
string name = 1;
bool invert_match = 8;
bool treat_missing_header_as_empty = 14;
oneof header_match_specifier {
string exact_match = 4 [deprecated = true];
type.matcher.v3.RegexMatcher safe_regex_match = 11 [deprecated = true];
type.v3.Int64Range range_match = 6;
bool present_match = 7;
string prefix_match = 9 [deprecated = true];
string suffix_match = 10 [deprecated = true];
string contains_match = 12 [deprecated = true];
type.matcher.v3.StringMatcher string_match = 13;
}
reserved 2, 3, 5;
reserved "regex_match";
}
message QueryParameterMatcher {
string name = 1;
oneof query_parameter_match_specifier {
type.matcher.v3.StringMatcher string_match = 5;
bool present_match = 6;
}
reserved 3, 4;
reserved "value", "regex";
}
message InternalRedirectPolicy {
google.protobuf.UInt32Value max_internal_redirects = 1;
repeated uint32 redirect_response_codes = 2;
repeated core.v3.TypedExtensionConfig predicates = 3;
bool allow_cross_scheme_redirect = 4;
repeated string response_headers_to_copy = 5;
}
message FilterConfig {
google.protobuf.Any config = 1;
bool is_optional = 2;
bool disabled = 3;
}
@@ -0,0 +1,31 @@
syntax = "proto3";
package envoy.config.route.v3;
import "envoy/config/route/v3/route.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/route/v3;routev3";
option java_multiple_files = true;
option java_outer_classname = "ScopedRouteProto";
option java_package = "io.envoyproxy.envoy.config.route.v3";
message ScopedRouteConfiguration {
bool on_demand = 4;
string name = 1;
string route_configuration_name = 2;
RouteConfiguration route_configuration = 5;
Key key = 3;
message Key {
repeated Fragment fragments = 1;
message Fragment {
oneof type {
string string_key = 1;
}
}
}
}
@@ -0,0 +1,28 @@
syntax = "proto3";
package envoy.config.trace.v3;
import "google/protobuf/any.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/config/trace/v3;tracev3";
option java_multiple_files = true;
option java_outer_classname = "HttpTracerProto";
option java_package = "io.envoyproxy.envoy.config.trace.v3";
message Tracing {
Http http = 1;
message Http {
string name = 1;
oneof config_type {
google.protobuf.Any typed_config = 3;
}
reserved 2;
reserved "config";
}
}
@@ -0,0 +1,199 @@
syntax = "proto3";
package envoy.data.accesslog.v3;
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/data/accesslog/v3;accesslogv3";
option java_multiple_files = true;
option java_outer_classname = "AccesslogProto";
option java_package = "io.envoyproxy.envoy.data.accesslog.v3";
message TCPAccessLogEntry {
AccessLogCommon common_properties = 1;
ConnectionProperties connection_properties = 2;
}
message HTTPAccessLogEntry {
AccessLogCommon common_properties = 1;
HTTPVersion protocol_version = 2;
enum HTTPVersion {
PROTOCOL_UNSPECIFIED = 0;
HTTP10 = 1;
HTTP11 = 2;
HTTP2 = 3;
HTTP3 = 4;
}
HTTPRequestProperties request = 3;
HTTPResponseProperties response = 4;
}
message ConnectionProperties {
uint64 received_bytes = 1;
uint64 sent_bytes = 2;
}
message AccessLogCommon {
double sample_rate = 1;
config.core.v3.Address downstream_remote_address = 2;
config.core.v3.Address downstream_local_address = 3;
TLSProperties tls_properties = 4;
google.protobuf.Timestamp start_time = 5;
google.protobuf.Duration time_to_last_rx_byte = 6;
google.protobuf.Duration time_to_first_upstream_tx_byte = 7;
google.protobuf.Duration time_to_last_upstream_tx_byte = 8;
google.protobuf.Duration time_to_first_upstream_rx_byte = 9;
google.protobuf.Duration time_to_last_upstream_rx_byte = 10;
google.protobuf.Duration time_to_first_downstream_tx_byte = 11;
google.protobuf.Duration time_to_last_downstream_tx_byte = 12;
config.core.v3.Address upstream_remote_address = 13;
config.core.v3.Address upstream_local_address = 14;
string upstream_cluster = 15;
ResponseFlags response_flags = 16;
config.core.v3.Metadata metadata = 17;
string upstream_transport_failure_reason = 18;
string route_name = 19;
config.core.v3.Address downstream_direct_remote_address = 20;
map<string, google.protobuf.Any> filter_state_objects = 21;
map<string, string> custom_tags = 22;
google.protobuf.Duration duration = 23;
uint32 upstream_request_attempt_count = 24;
string connection_termination_details = 25;
string stream_id = 26;
bool intermediate_log_entry = 27 [deprecated = true];
string downstream_transport_failure_reason = 28;
uint64 downstream_wire_bytes_sent = 29;
uint64 downstream_wire_bytes_received = 30;
uint64 upstream_wire_bytes_sent = 31;
uint64 upstream_wire_bytes_received = 32;
AccessLogType access_log_type = 33;
}
message ResponseFlags {
bool failed_local_healthcheck = 1;
bool no_healthy_upstream = 2;
bool upstream_request_timeout = 3;
bool local_reset = 4;
bool upstream_remote_reset = 5;
bool upstream_connection_failure = 6;
bool upstream_connection_termination = 7;
bool upstream_overflow = 8;
bool no_route_found = 9;
bool delay_injected = 10;
bool fault_injected = 11;
bool rate_limited = 12;
Unauthorized unauthorized_details = 13;
message Unauthorized {
Reason reason = 1;
enum Reason {
REASON_UNSPECIFIED = 0;
EXTERNAL_SERVICE = 1;
}
}
bool rate_limit_service_error = 14;
bool downstream_connection_termination = 15;
bool upstream_retry_limit_exceeded = 16;
bool stream_idle_timeout = 17;
bool invalid_envoy_request_headers = 18;
bool downstream_protocol_error = 19;
bool upstream_max_stream_duration_reached = 20;
bool response_from_cache_filter = 21;
bool no_filter_config_found = 22;
bool duration_timeout = 23;
bool upstream_protocol_error = 24;
bool no_cluster_found = 25;
bool overload_manager = 26;
bool dns_resolution_failure = 27;
bool downstream_remote_reset = 28;
}
message TLSProperties {
TLSVersion tls_version = 1;
enum TLSVersion {
VERSION_UNSPECIFIED = 0;
TLSv1 = 1;
TLSv1_1 = 2;
TLSv1_2 = 3;
TLSv1_3 = 4;
}
google.protobuf.UInt32Value tls_cipher_suite = 2;
string tls_sni_hostname = 3;
CertificateProperties local_certificate_properties = 4;
message CertificateProperties {
repeated SubjectAltName subject_alt_name = 1;
message SubjectAltName {
oneof san {
string uri = 1;
string dns = 2;
}
}
string subject = 2;
string issuer = 3;
}
CertificateProperties peer_certificate_properties = 5;
string tls_session_id = 6;
string ja3_fingerprint = 7;
}
message HTTPRequestProperties {
config.core.v3.RequestMethod request_method = 1;
string scheme = 2;
string authority = 3;
google.protobuf.UInt32Value port = 4;
string path = 5;
string user_agent = 6;
string referer = 7;
string forwarded_for = 8;
string request_id = 9;
string original_path = 10;
uint64 request_headers_bytes = 11;
uint64 request_body_bytes = 12;
map<string, string> request_headers = 13;
uint64 upstream_header_bytes_sent = 14;
uint64 downstream_header_bytes_received = 15;
}
message HTTPResponseProperties {
google.protobuf.UInt32Value response_code = 1;
uint64 response_headers_bytes = 2;
uint64 response_body_bytes = 3;
map<string, string> response_headers = 4;
map<string, string> response_trailers = 5;
string response_code_details = 6;
uint64 upstream_header_bytes_received = 7;
uint64 downstream_header_bytes_sent = 8;
}
enum AccessLogType {
NotSet = 0;
TcpUpstreamConnected = 1;
TcpPeriodic = 2;
TcpConnectionEnd = 3;
DownstreamStart = 4;
DownstreamPeriodic = 5;
DownstreamEnd = 6;
UpstreamPoolReady = 7;
UpstreamPeriodic = 8;
UpstreamEnd = 9;
DownstreamTunnelSuccessfullyEstablished = 10;
UdpTunnelUpstreamConnected = 11;
UdpPeriodic = 12;
UdpSessionEnd = 13;
}
@@ -0,0 +1,16 @@
syntax = "proto3";
package envoy.extensions.clusters.aggregate.v3;
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/clusters/aggregate/v3;aggregatev3";
option java_multiple_files = true;
option java_outer_classname = "ClusterProto";
option java_package = "io.envoyproxy.envoy.extensions.clusters.aggregate.v3";
message ClusterConfig {
repeated string clusters = 1;
}
@@ -0,0 +1,52 @@
syntax = "proto3";
package envoy.extensions.filters.common.fault.v3;
import "envoy/type/v3/percent.proto";
import "google/protobuf/duration.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/common/fault/v3;faultv3";
option java_multiple_files = true;
option java_outer_classname = "FaultProto";
option java_package = "io.envoyproxy.envoy.extensions.filters.common.fault.v3";
message FaultDelay {
type.v3.FractionalPercent percentage = 4;
oneof fault_delay_secifier {
google.protobuf.Duration fixed_delay = 3;
HeaderDelay header_delay = 5;
}
reserved 2, 1;
reserved "type";
message HeaderDelay {
}
enum FaultDelayType {
FIXED = 0;
}
}
message FaultRateLimit {
type.v3.FractionalPercent percentage = 2;
oneof limit_type {
FixedLimit fixed_limit = 1;
HeaderLimit header_limit = 3;
}
message FixedLimit {
uint64 limit_kbps = 1;
}
message HeaderLimit {
}
}
@@ -0,0 +1,52 @@
syntax = "proto3";
package envoy.extensions.filters.http.fault.v3;
import "envoy/config/route/v3/route_components.proto";
import "envoy/extensions/filters/common/fault/v3/fault.proto";
import "envoy/type/v3/percent.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/wrappers.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/fault/v3;faultv3";
option java_multiple_files = true;
option java_outer_classname = "FaultProto";
option java_package = "io.envoyproxy.envoy.extensions.filters.http.fault.v3";
message FaultAbort {
type.v3.FractionalPercent percentage = 3;
oneof error_type {
uint32 http_status = 2;
uint32 grpc_status = 5;
HeaderAbort header_abort = 4;
}
reserved 1;
message HeaderAbort {
}
}
message HTTPFault {
common.fault.v3.FaultDelay delay = 1;
FaultAbort abort = 2;
string upstream_cluster = 3;
repeated config.route.v3.HeaderMatcher headers = 4;
repeated string downstream_nodes = 5;
google.protobuf.UInt32Value max_active_faults = 6;
common.fault.v3.FaultRateLimit response_rate_limit = 7;
string delay_percent_runtime = 8;
string abort_percent_runtime = 9;
string delay_duration_runtime = 10;
string abort_http_status_runtime = 11;
string max_active_faults_runtime = 12;
string response_rate_limit_percent_runtime = 13;
string abort_grpc_status_runtime = 14;
bool disable_downstream_cluster_stats = 15;
google.protobuf.Struct filter_metadata = 16;
}
@@ -0,0 +1,38 @@
syntax = "proto3";
package envoy.extensions.filters.http.gcp_authn.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/http_uri.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/gcp_authn/v3;gcp_authnv3";
option java_multiple_files = true;
option java_outer_classname = "GcpAuthnProto";
option java_package = "io.envoyproxy.envoy.extensions.filters.http.gcp_authn.v3";
message GcpAuthnFilterConfig {
config.core.v3.HttpUri http_uri = 1 [deprecated = true];
config.core.v3.RetryPolicy retry_policy = 2;
TokenCacheConfig cache_config = 3;
TokenHeader token_header = 4;
string cluster = 5;
google.protobuf.Duration timeout = 6;
}
message Audience {
string url = 1;
}
message TokenCacheConfig {
google.protobuf.UInt64Value cache_size = 1;
}
message TokenHeader {
string name = 1;
string value_prefix = 2;
}
@@ -0,0 +1,31 @@
syntax = "proto3";
package envoy.extensions.filters.http.rbac.v3;
import "envoy/config/rbac/v3/rbac.proto";
import "xds/annotations/v3/status.proto";
import "xds/type/matcher/v3/matcher.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/rbac/v3;rbacv3";
option java_multiple_files = true;
option java_outer_classname = "RbacProto";
option java_package = "io.envoyproxy.envoy.extensions.filters.http.rbac.v3";
message RBAC {
config.rbac.v3.RBAC rules = 1;
string rules_stat_prefix = 6;
xds.type.matcher.v3.Matcher matcher = 4;
config.rbac.v3.RBAC shadow_rules = 2;
xds.type.matcher.v3.Matcher shadow_matcher = 5;
string shadow_rules_stat_prefix = 3;
bool track_per_rule_stats = 7;
}
message RBACPerRoute {
RBAC rbac = 2;
reserved 1;
}
@@ -0,0 +1,35 @@
syntax = "proto3";
package envoy.extensions.filters.http.router.v3;
import "envoy/config/accesslog/v3/accesslog.proto";
import "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/router/v3;routerv3";
option java_multiple_files = true;
option java_outer_classname = "RouterProto";
option java_package = "io.envoyproxy.envoy.extensions.filters.http.router.v3";
message Router {
google.protobuf.BoolValue dynamic_stats = 1;
bool start_child_span = 2 [deprecated = true];
repeated config.accesslog.v3.AccessLog upstream_log = 3;
UpstreamAccessLogOptions upstream_log_options = 9;
message UpstreamAccessLogOptions {
bool flush_upstream_log_on_upstream_stream = 1;
google.protobuf.Duration upstream_log_flush_interval = 2;
}
bool suppress_envoy_headers = 4;
repeated string strict_check_headers = 5;
bool respect_expected_rq_timeout = 6;
bool suppress_grpc_request_failure_code_stats = 7;
repeated network.http_connection_manager.v3.HttpFilter upstream_http_filters = 8;
}
@@ -0,0 +1,24 @@
syntax = "proto3";
package envoy.extensions.filters.http.stateful_session.v3;
import "envoy/config/core/v3/extension.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/stateful_session/v3;stateful_sessionv3";
option java_multiple_files = true;
option java_outer_classname = "StatefulSessionProto";
option java_package = "io.envoyproxy.envoy.extensions.filters.http.stateful_session.v3";
message StatefulSession {
config.core.v3.TypedExtensionConfig session_state = 1;
bool strict = 2;
}
message StatefulSessionPerRoute {
oneof override {
bool disabled = 1;
StatefulSession stateful_session = 2;
}
}
@@ -0,0 +1,288 @@
syntax = "proto3";
package envoy.extensions.filters.network.http_connection_manager.v3;
import "envoy/config/accesslog/v3/accesslog.proto";
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/config_source.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/protocol.proto";
import "envoy/config/core/v3/substitution_format_string.proto";
import "envoy/config/route/v3/route.proto";
import "envoy/config/route/v3/scoped_route.proto";
import "envoy/config/trace/v3/http_tracer.proto";
import "envoy/type/http/v3/path_transformation.proto";
import "envoy/type/tracing/v3/custom_tag.proto";
import "envoy/type/v3/percent.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/security.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/network/http_connection_manager/v3;http_connection_managerv3";
option java_multiple_files = true;
option java_outer_classname = "HttpConnectionManagerProto";
option java_package = "io.envoyproxy.envoy.extensions.filters.network.http_connection_manager.v3";
message HttpConnectionManager {
CodecType codec_type = 1;
enum CodecType {
AUTO = 0;
HTTP1 = 1;
HTTP2 = 2;
HTTP3 = 3;
}
string stat_prefix = 2;
repeated HttpFilter http_filters = 5;
google.protobuf.BoolValue add_user_agent = 6;
Tracing tracing = 7;
message Tracing {
type.v3.Percent client_sampling = 3;
type.v3.Percent random_sampling = 4;
type.v3.Percent overall_sampling = 5;
bool verbose = 6;
google.protobuf.UInt32Value max_path_tag_length = 7;
repeated type.tracing.v3.CustomTag custom_tags = 8;
config.trace.v3.Tracing.Http provider = 9;
google.protobuf.BoolValue spawn_upstream_span = 10;
reserved 1, 2;
reserved "operation_name", "request_headers_for_tags";
enum OperationName {
INGRESS = 0;
EGRESS = 1;
}
}
config.core.v3.HttpProtocolOptions common_http_protocol_options = 35;
bool http1_safe_max_connection_duration = 58;
config.core.v3.Http1ProtocolOptions http_protocol_options = 8;
config.core.v3.Http2ProtocolOptions http2_protocol_options = 9;
config.core.v3.Http3ProtocolOptions http3_protocol_options = 44;
string server_name = 10;
ServerHeaderTransformation server_header_transformation = 34;
enum ServerHeaderTransformation {
OVERWRITE = 0;
APPEND_IF_ABSENT = 1;
PASS_THROUGH = 2;
}
config.core.v3.SchemeHeaderTransformation scheme_header_transformation = 48;
google.protobuf.UInt32Value max_request_headers_kb = 29;
google.protobuf.Duration stream_idle_timeout = 24;
google.protobuf.Duration request_timeout = 28;
google.protobuf.Duration request_headers_timeout = 41;
google.protobuf.Duration drain_timeout = 12;
google.protobuf.Duration delayed_close_timeout = 26;
repeated config.accesslog.v3.AccessLog access_log = 13;
google.protobuf.Duration access_log_flush_interval = 54 [deprecated = true];
bool flush_access_log_on_new_request = 55 [deprecated = true];
HcmAccessLogOptions access_log_options = 56;
message HcmAccessLogOptions {
google.protobuf.Duration access_log_flush_interval = 1;
bool flush_access_log_on_new_request = 2;
bool flush_log_on_tunnel_successfully_established = 3;
}
google.protobuf.BoolValue use_remote_address = 14;
uint32 xff_num_trusted_hops = 19;
repeated config.core.v3.TypedExtensionConfig original_ip_detection_extensions = 46;
repeated config.core.v3.TypedExtensionConfig early_header_mutation_extensions = 52;
InternalAddressConfig internal_address_config = 25;
message InternalAddressConfig {
bool unix_sockets = 1;
repeated config.core.v3.CidrRange cidr_ranges = 2;
}
bool skip_xff_append = 21;
string via = 22;
google.protobuf.BoolValue generate_request_id = 15;
bool preserve_external_request_id = 32;
bool always_set_request_id_in_response = 37;
ForwardClientCertDetails forward_client_cert_details = 16;
enum ForwardClientCertDetails {
SANITIZE = 0;
FORWARD_ONLY = 1;
APPEND_FORWARD = 2;
SANITIZE_SET = 3;
ALWAYS_FORWARD_ONLY = 4;
}
SetCurrentClientCertDetails set_current_client_cert_details = 17;
message SetCurrentClientCertDetails {
google.protobuf.BoolValue subject = 1;
bool cert = 3;
bool chain = 6;
bool dns = 4;
bool uri = 5;
reserved 2;
}
bool proxy_100_continue = 18;
bool represent_ipv4_remote_address_as_ipv4_mapped_ipv6 = 20;
repeated UpgradeConfig upgrade_configs = 23;
message UpgradeConfig {
string upgrade_type = 1;
repeated HttpFilter filters = 2;
google.protobuf.BoolValue enabled = 3;
}
google.protobuf.BoolValue normalize_path = 30;
bool merge_slashes = 33;
PathWithEscapedSlashesAction path_with_escaped_slashes_action = 45;
enum PathWithEscapedSlashesAction {
IMPLEMENTATION_SPECIFIC_DEFAULT = 0;
KEEP_UNCHANGED = 1;
REJECT_REQUEST = 2;
UNESCAPE_AND_REDIRECT = 3;
UNESCAPE_AND_FORWARD = 4;
}
RequestIDExtension request_id_extension = 36;
LocalReplyConfig local_reply_config = 38;
bool strip_matching_host_port = 39;
google.protobuf.BoolValue stream_error_on_invalid_http_message = 40;
PathNormalizationOptions path_normalization_options = 43;
message PathNormalizationOptions {
type.http.v3.PathTransformation forwarding_transformation = 1;
type.http.v3.PathTransformation http_filter_transformation = 2;
}
bool strip_trailing_host_dot = 47;
ProxyStatusConfig proxy_status_config = 49;
message ProxyStatusConfig {
bool remove_details = 1;
bool remove_connection_termination_details = 2;
bool remove_response_flags = 3;
bool set_recommended_response_code = 4;
oneof proxy_name {
bool use_node_id = 5;
string literal_proxy_name = 6;
}
}
config.core.v3.TypedExtensionConfig typed_header_validation_config = 50;
bool append_x_forwarded_port = 51;
bool append_local_overload = 57;
google.protobuf.BoolValue add_proxy_protocol_connection_state = 53;
oneof route_specifier {
Rds rds = 3;
config.route.v3.RouteConfiguration route_config = 4;
ScopedRoutes scoped_routes = 31;
}
oneof strip_port_mode {
bool strip_any_host_port = 42;
}
reserved 27, 11;
reserved "idle_timeout";
}
message LocalReplyConfig {
repeated ResponseMapper mappers = 1;
config.core.v3.SubstitutionFormatString body_format = 2;
}
message ResponseMapper {
config.accesslog.v3.AccessLogFilter filter = 1;
google.protobuf.UInt32Value status_code = 2;
config.core.v3.DataSource body = 3;
config.core.v3.SubstitutionFormatString body_format_override = 4;
repeated config.core.v3.HeaderValueOption headers_to_add = 5;
}
message Rds {
config.core.v3.ConfigSource config_source = 1;
string route_config_name = 2;
}
message ScopedRouteConfigurationsList {
repeated config.route.v3.ScopedRouteConfiguration scoped_route_configurations = 1;
}
message ScopedRoutes {
string name = 1;
ScopeKeyBuilder scope_key_builder = 2;
message ScopeKeyBuilder {
repeated FragmentBuilder fragments = 1;
message FragmentBuilder {
oneof type {
HeaderValueExtractor header_value_extractor = 1;
}
message HeaderValueExtractor {
string name = 1;
string element_separator = 2;
oneof extract_type {
uint32 index = 3;
KvElement element = 4;
}
message KvElement {
string separator = 1;
string key = 2;
}
}
}
}
config.core.v3.ConfigSource rds_config_source = 3;
oneof config_specifier {
ScopedRouteConfigurationsList scoped_route_configurations_list = 4;
ScopedRds scoped_rds = 5;
}
}
message ScopedRds {
config.core.v3.ConfigSource scoped_rds_config_source = 1;
string srds_resources_locator = 2;
}
message HttpFilter {
string name = 1;
bool is_optional = 6;
bool disabled = 7;
oneof config_type {
google.protobuf.Any typed_config = 4;
config.core.v3.ExtensionConfigSource config_discovery = 5;
}
reserved 3, 2;
reserved "config";
}
message RequestIDExtension {
google.protobuf.Any typed_config = 1;
}
message EnvoyMobileHttpConnectionManager {
HttpConnectionManager config = 1;
}
@@ -0,0 +1,16 @@
syntax = "proto3";
package envoy.extensions.http.stateful_session.cookie.v3;
import "envoy/type/http/v3/cookie.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/http/stateful_session/cookie/v3;cookiev3";
option java_multiple_files = true;
option java_outer_classname = "CookieProto";
option java_package = "io.envoyproxy.envoy.extensions.http.stateful_session.cookie.v3";
message CookieBasedSessionState {
type.http.v3.Cookie cookie = 1;
}
@@ -0,0 +1,15 @@
syntax = "proto3";
package envoy.extensions.transport_sockets.http_11_proxy.v3;
import "envoy/config/core/v3/base.proto";
import "udpa/annotations/status.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/http_11_proxy/v3;http_11_proxyv3";
option java_multiple_files = true;
option java_outer_classname = "UpstreamHttp11ConnectProto";
option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.http_11_proxy.v3";
message Http11ProxyUpstreamTransport {
config.core.v3.TransportSocket transport_socket = 1;
}
@@ -0,0 +1,117 @@
syntax = "proto3";
package envoy.extensions.transport_sockets.tls.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/type/matcher/v3/string.proto";
import "google/protobuf/any.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/migrate.proto";
import "udpa/annotations/sensitive.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3;tlsv3";
option java_multiple_files = true;
option java_outer_classname = "CommonProto";
option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.tls.v3";
message TlsParameters {
TlsProtocol tls_minimum_protocol_version = 1;
enum TlsProtocol {
TLS_AUTO = 0;
TLSv1_0 = 1;
TLSv1_1 = 2;
TLSv1_2 = 3;
TLSv1_3 = 4;
}
TlsProtocol tls_maximum_protocol_version = 2;
repeated string cipher_suites = 3;
repeated string ecdh_curves = 4;
repeated string signature_algorithms = 5;
}
message PrivateKeyProvider {
string provider_name = 1;
bool fallback = 4;
oneof config_type {
google.protobuf.Any typed_config = 3;
}
reserved 2;
reserved "config";
}
message TlsCertificate {
config.core.v3.DataSource certificate_chain = 1;
config.core.v3.DataSource private_key = 2;
config.core.v3.DataSource pkcs12 = 8;
config.core.v3.WatchedDirectory watched_directory = 7;
PrivateKeyProvider private_key_provider = 6;
config.core.v3.DataSource password = 3;
config.core.v3.DataSource ocsp_staple = 4;
repeated config.core.v3.DataSource signed_certificate_timestamp = 5;
}
message TlsSessionTicketKeys {
repeated config.core.v3.DataSource keys = 1;
}
message CertificateProviderPluginInstance {
string instance_name = 1;
string certificate_name = 2;
}
message SubjectAltNameMatcher {
SanType san_type = 1;
enum SanType {
SAN_TYPE_UNSPECIFIED = 0;
EMAIL = 1;
DNS = 2;
URI = 3;
IP_ADDRESS = 4;
OTHER_NAME = 5;
}
type.matcher.v3.StringMatcher matcher = 2;
string oid = 3;
}
message CertificateValidationContext {
config.core.v3.DataSource trusted_ca = 1;
CertificateProviderPluginInstance ca_certificate_provider_instance = 13;
SystemRootCerts system_root_certs = 17;
message SystemRootCerts {
}
config.core.v3.WatchedDirectory watched_directory = 11;
repeated string verify_certificate_spki = 3;
repeated string verify_certificate_hash = 2;
repeated SubjectAltNameMatcher match_typed_subject_alt_names = 15;
repeated type.matcher.v3.StringMatcher match_subject_alt_names = 9 [deprecated = true];
google.protobuf.BoolValue require_signed_certificate_timestamp = 6;
config.core.v3.DataSource crl = 7;
bool allow_expired_certificate = 8;
TrustChainVerification trust_chain_verification = 10;
enum TrustChainVerification {
VERIFY_TRUST_CHAIN = 0;
ACCEPT_UNTRUSTED = 1;
}
config.core.v3.TypedExtensionConfig custom_validator_config = 12;
bool only_verify_leaf_cert_crl = 14;
google.protobuf.UInt32Value max_verify_depth = 16;
reserved 4, 5;
reserved "verify_subject_alt_name";
}
@@ -0,0 +1,36 @@
syntax = "proto3";
package envoy.extensions.transport_sockets.tls.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/core/v3/config_source.proto";
import "envoy/extensions/transport_sockets/tls/v3/common.proto";
import "udpa/annotations/sensitive.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3;tlsv3";
option java_multiple_files = true;
option java_outer_classname = "SecretProto";
option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.tls.v3";
message GenericSecret {
config.core.v3.DataSource secret = 1;
}
message SdsSecretConfig {
string name = 1;
config.core.v3.ConfigSource sds_config = 2;
}
message Secret {
string name = 1;
oneof type {
TlsCertificate tls_certificate = 2;
TlsSessionTicketKeys session_ticket_keys = 3;
CertificateValidationContext validation_context = 4;
GenericSecret generic_secret = 5;
}
}
@@ -0,0 +1,103 @@
syntax = "proto3";
package envoy.extensions.transport_sockets.tls.v3;
import "envoy/config/core/v3/address.proto";
import "envoy/config/core/v3/extension.proto";
import "envoy/extensions/transport_sockets/tls/v3/common.proto";
import "envoy/extensions/transport_sockets/tls/v3/secret.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/transport_sockets/tls/v3;tlsv3";
option java_multiple_files = true;
option java_outer_classname = "TlsProto";
option java_package = "io.envoyproxy.envoy.extensions.transport_sockets.tls.v3";
message UpstreamTlsContext {
CommonTlsContext common_tls_context = 1;
string sni = 2;
bool auto_host_sni = 6;
bool auto_sni_san_validation = 7;
bool allow_renegotiation = 3;
google.protobuf.UInt32Value max_session_keys = 4;
google.protobuf.BoolValue enforce_rsa_key_usage = 5;
}
message DownstreamTlsContext {
CommonTlsContext common_tls_context = 1;
google.protobuf.BoolValue require_client_certificate = 2;
google.protobuf.BoolValue require_sni = 3;
bool disable_stateful_session_resumption = 10;
google.protobuf.Duration session_timeout = 6;
OcspStaplePolicy ocsp_staple_policy = 8;
enum OcspStaplePolicy {
LENIENT_STAPLING = 0;
STRICT_STAPLING = 1;
MUST_STAPLE = 2;
}
google.protobuf.BoolValue full_scan_certs_on_sni_mismatch = 9;
bool prefer_client_ciphers = 11;
oneof session_ticket_keys_type {
TlsSessionTicketKeys session_ticket_keys = 4;
SdsSecretConfig session_ticket_keys_sds_secret_config = 5;
bool disable_stateless_session_resumption = 7;
}
}
message TlsKeyLog {
string path = 1;
repeated config.core.v3.CidrRange local_address_range = 2;
repeated config.core.v3.CidrRange remote_address_range = 3;
}
message CommonTlsContext {
TlsParameters tls_params = 1;
repeated TlsCertificate tls_certificates = 2;
repeated SdsSecretConfig tls_certificate_sds_secret_configs = 6;
CertificateProviderPluginInstance tls_certificate_provider_instance = 14;
config.core.v3.TypedExtensionConfig custom_tls_certificate_selector = 16;
CertificateProvider tls_certificate_certificate_provider = 9 [deprecated = true];
message CertificateProvider {
string name = 1;
oneof config {
config.core.v3.TypedExtensionConfig typed_config = 2;
}
}
CertificateProviderInstance tls_certificate_certificate_provider_instance = 11 [deprecated = true];
message CertificateProviderInstance {
string instance_name = 1;
string certificate_name = 2;
}
repeated string alpn_protocols = 4;
config.core.v3.TypedExtensionConfig custom_handshaker = 13;
TlsKeyLog key_log = 15;
oneof validation_context_type {
CertificateValidationContext validation_context = 3;
SdsSecretConfig validation_context_sds_secret_config = 7;
CombinedCertificateValidationContext combined_validation_context = 8;
CertificateProvider validation_context_certificate_provider = 10 [deprecated = true];
CertificateProviderInstance validation_context_certificate_provider_instance = 12 [deprecated = true];
}
reserved 5;
message CombinedCertificateValidationContext {
CertificateValidationContext default_validation_context = 1;
SdsSecretConfig validation_context_sds_secret_config = 2;
CertificateProvider validation_context_certificate_provider = 3 [deprecated = true];
CertificateProviderInstance validation_context_certificate_provider_instance = 4 [deprecated = true];
}
}
@@ -0,0 +1,48 @@
syntax = "proto3";
package envoy.extensions.upstreams.http.v3;
import "envoy/config/core/v3/extension.proto";
import "envoy/config/core/v3/protocol.proto";
import "envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/extensions/upstreams/http/v3;httpv3";
option java_multiple_files = true;
option java_outer_classname = "HttpProtocolOptionsProto";
option java_package = "io.envoyproxy.envoy.extensions.upstreams.http.v3";
message HttpProtocolOptions {
config.core.v3.HttpProtocolOptions common_http_protocol_options = 1;
config.core.v3.UpstreamHttpProtocolOptions upstream_http_protocol_options = 2;
repeated filters.network.http_connection_manager.v3.HttpFilter http_filters = 6;
config.core.v3.TypedExtensionConfig header_validation_config = 7;
oneof upstream_protocol_options {
ExplicitHttpConfig explicit_http_config = 3;
UseDownstreamHttpConfig use_downstream_protocol_config = 4;
AutoHttpConfig auto_config = 5;
}
message ExplicitHttpConfig {
oneof protocol_config {
config.core.v3.Http1ProtocolOptions http_protocol_options = 1;
config.core.v3.Http2ProtocolOptions http2_protocol_options = 2;
config.core.v3.Http3ProtocolOptions http3_protocol_options = 3;
}
}
message UseDownstreamHttpConfig {
config.core.v3.Http1ProtocolOptions http_protocol_options = 1;
config.core.v3.Http2ProtocolOptions http2_protocol_options = 2;
config.core.v3.Http3ProtocolOptions http3_protocol_options = 3;
}
message AutoHttpConfig {
config.core.v3.Http1ProtocolOptions http_protocol_options = 1;
config.core.v3.Http2ProtocolOptions http2_protocol_options = 2;
config.core.v3.Http3ProtocolOptions http3_protocol_options = 3;
config.core.v3.AlternateProtocolsCacheOptions alternate_protocols_cache_options = 4;
}
}
@@ -0,0 +1,116 @@
syntax = "proto3";
package envoy.service.discovery.v3;
import "envoy/config/core/v3/base.proto";
import "google/protobuf/any.proto";
import "google/protobuf/duration.proto";
import "google/rpc/status.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/discovery/v3;discoveryv3";
option java_multiple_files = true;
option java_outer_classname = "DiscoveryProto";
option java_package = "io.envoyproxy.envoy.service.discovery.v3";
message ResourceLocator {
string name = 1;
map<string, string> dynamic_parameters = 2;
}
message ResourceName {
string name = 1;
DynamicParameterConstraints dynamic_parameter_constraints = 2;
}
message ResourceError {
ResourceName resource_name = 1;
google.rpc.Status error_detail = 2;
}
message DiscoveryRequest {
string version_info = 1;
config.core.v3.Node node = 2;
repeated string resource_names = 3;
repeated ResourceLocator resource_locators = 7;
string type_url = 4;
string response_nonce = 5;
google.rpc.Status error_detail = 6;
}
message DiscoveryResponse {
string version_info = 1;
repeated google.protobuf.Any resources = 2;
bool canary = 3;
string type_url = 4;
string nonce = 5;
config.core.v3.ControlPlane control_plane = 6;
repeated ResourceError resource_errors = 7;
}
message DeltaDiscoveryRequest {
config.core.v3.Node node = 1;
string type_url = 2;
repeated string resource_names_subscribe = 3;
repeated string resource_names_unsubscribe = 4;
repeated ResourceLocator resource_locators_subscribe = 8;
repeated ResourceLocator resource_locators_unsubscribe = 9;
map<string, string> initial_resource_versions = 5;
string response_nonce = 6;
google.rpc.Status error_detail = 7;
}
message DeltaDiscoveryResponse {
string system_version_info = 1;
repeated Resource resources = 2;
string type_url = 4;
repeated string removed_resources = 6;
repeated ResourceName removed_resource_names = 8;
string nonce = 5;
config.core.v3.ControlPlane control_plane = 7;
repeated ResourceError resource_errors = 9;
}
message DynamicParameterConstraints {
oneof type {
SingleConstraint constraint = 1;
ConstraintList or_constraints = 2;
ConstraintList and_constraints = 3;
DynamicParameterConstraints not_constraints = 4;
}
message SingleConstraint {
string key = 1;
oneof constraint_type {
string value = 2;
Exists exists = 3;
}
message Exists {
}
}
message ConstraintList {
repeated DynamicParameterConstraints constraints = 1;
}
}
message Resource {
string name = 3;
ResourceName resource_name = 8;
repeated string aliases = 4;
string version = 1;
google.protobuf.Any resource = 2;
google.protobuf.Duration ttl = 6;
CacheControl cache_control = 7;
message CacheControl {
bool do_not_cache = 1;
}
config.core.v3.Metadata metadata = 9;
}
@@ -0,0 +1,30 @@
syntax = "proto3";
package envoy.service.load_stats.v3;
import "envoy/config/core/v3/base.proto";
import "envoy/config/endpoint/v3/load_report.proto";
import "google/protobuf/duration.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/service/load_stats/v3;load_statsv3";
option java_multiple_files = true;
option java_outer_classname = "LrsProto";
option java_package = "io.envoyproxy.envoy.service.load_stats.v3";
service LoadReportingService {
rpc StreamLoadStats(stream LoadStatsRequest) returns (stream LoadStatsResponse);
}
message LoadStatsRequest {
config.core.v3.Node node = 1;
repeated config.endpoint.v3.ClusterStats cluster_stats = 2;
}
message LoadStatsResponse {
repeated string clusters = 1;
bool send_all_clusters = 4;
google.protobuf.Duration load_reporting_interval = 2;
bool report_endpoint_granularity = 3;
}
@@ -0,0 +1,18 @@
syntax = "proto3";
package envoy.type.http.v3;
import "google/protobuf/duration.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/http/v3;httpv3";
option java_multiple_files = true;
option java_outer_classname = "CookieProto";
option java_package = "io.envoyproxy.envoy.type.http.v3";
message Cookie {
string name = 1;
google.protobuf.Duration ttl = 2;
string path = 3;
}
@@ -0,0 +1,29 @@
syntax = "proto3";
package envoy.type.http.v3;
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/http/v3;httpv3";
option java_multiple_files = true;
option java_outer_classname = "PathTransformationProto";
option java_package = "io.envoyproxy.envoy.type.http.v3";
message PathTransformation {
repeated Operation operations = 1;
message Operation {
oneof operation_specifier {
NormalizePathRFC3986 normalize_path_rfc_3986 = 2;
MergeSlashes merge_slashes = 3;
}
message NormalizePathRFC3986 {
}
message MergeSlashes {
}
}
}
@@ -0,0 +1,15 @@
syntax = "proto3";
package envoy.type.matcher.v3;
import "xds/core/v3/cidr.proto";
import "udpa/annotations/status.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3";
option java_multiple_files = true;
option java_outer_classname = "AddressProto";
option java_package = "io.envoyproxy.envoy.type.matcher.v3";
message AddressMatcher {
repeated xds.core.v3.CidrRange ranges = 1;
}
@@ -0,0 +1,22 @@
syntax = "proto3";
package envoy.type.matcher.v3;
import "envoy/type/matcher/v3/address.proto";
import "envoy/type/matcher/v3/string.proto";
import "udpa/annotations/status.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3";
option java_multiple_files = true;
option java_outer_classname = "FilterStateProto";
option java_package = "io.envoyproxy.envoy.type.matcher.v3";
message FilterStateMatcher {
string key = 1;
oneof matcher {
StringMatcher string_match = 2;
AddressMatcher address_match = 3;
}
}
@@ -0,0 +1,27 @@
syntax = "proto3";
package envoy.type.matcher.v3;
import "envoy/type/matcher/v3/value.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3";
option java_multiple_files = true;
option java_outer_classname = "MetadataProto";
option java_package = "io.envoyproxy.envoy.type.matcher.v3";
message MetadataMatcher {
string filter = 1;
repeated PathSegment path = 2;
message PathSegment {
oneof segment {
string key = 1;
}
}
ValueMatcher value = 3;
bool invert = 4;
}
@@ -0,0 +1,20 @@
syntax = "proto3";
package envoy.type.matcher.v3;
import "envoy/type/v3/range.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3";
option java_multiple_files = true;
option java_outer_classname = "NumberProto";
option java_package = "io.envoyproxy.envoy.type.matcher.v3";
message DoubleMatcher {
oneof match_pattern {
type.v3.DoubleRange range = 1;
double exact = 2;
}
}
@@ -0,0 +1,19 @@
syntax = "proto3";
package envoy.type.matcher.v3;
import "envoy/type/matcher/v3/string.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3";
option java_multiple_files = true;
option java_outer_classname = "PathProto";
option java_package = "io.envoyproxy.envoy.type.matcher.v3";
message PathMatcher {
oneof rule {
StringMatcher path = 1;
}
}
@@ -0,0 +1,31 @@
syntax = "proto3";
package envoy.type.matcher.v3;
import "google/protobuf/wrappers.proto";
import "envoy/annotations/deprecation.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3";
option java_multiple_files = true;
option java_outer_classname = "RegexProto";
option java_package = "io.envoyproxy.envoy.type.matcher.v3";
message RegexMatcher {
string regex = 2;
oneof engine_type {
GoogleRE2 google_re2 = 1 [deprecated = true];
}
message GoogleRE2 {
google.protobuf.UInt32Value max_program_size = 1 [deprecated = true];
}
}
message RegexMatchAndSubstitute {
RegexMatcher pattern = 1;
string substitution = 2;
}
@@ -0,0 +1,35 @@
syntax = "proto3";
package envoy.type.matcher.v3;
import "envoy/type/matcher/v3/regex.proto";
import "xds/core/v3/extension.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3";
option java_multiple_files = true;
option java_outer_classname = "StringProto";
option java_package = "io.envoyproxy.envoy.type.matcher.v3";
message StringMatcher {
bool ignore_case = 6;
oneof match_pattern {
string exact = 1;
string prefix = 2;
string suffix = 3;
RegexMatcher safe_regex = 5;
string contains = 7;
xds.core.v3.TypedExtensionConfig custom = 8;
}
reserved 4;
reserved "regex";
}
message ListStringMatcher {
repeated StringMatcher patterns = 1;
}
@@ -0,0 +1,40 @@
syntax = "proto3";
package envoy.type.matcher.v3;
import "envoy/type/matcher/v3/number.proto";
import "envoy/type/matcher/v3/string.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/matcher/v3;matcherv3";
option java_multiple_files = true;
option java_outer_classname = "ValueProto";
option java_package = "io.envoyproxy.envoy.type.matcher.v3";
message ValueMatcher {
oneof match_pattern {
NullMatch null_match = 1;
DoubleMatcher double_match = 2;
StringMatcher string_match = 3;
bool bool_match = 4;
bool present_match = 5;
ListMatcher list_match = 6;
OrMatcher or_match = 7;
}
message NullMatch {
}
}
message ListMatcher {
oneof match_pattern {
ValueMatcher one_of = 1;
}
}
message OrMatcher {
repeated ValueMatcher value_matchers = 1;
}
@@ -0,0 +1,48 @@
syntax = "proto3";
package envoy.type.metadata.v3;
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/metadata/v3;metadatav3";
option java_multiple_files = true;
option java_outer_classname = "MetadataProto";
option java_package = "io.envoyproxy.envoy.type.metadata.v3";
message MetadataKey {
string key = 1;
repeated PathSegment path = 2;
message PathSegment {
oneof segment {
string key = 1;
}
}
}
message MetadataKind {
oneof kind {
Request request = 1;
Route route = 2;
Cluster cluster = 3;
Host host = 4;
}
message Request {
}
message Route {
}
message Cluster {
}
message Host {
}
}
@@ -0,0 +1,44 @@
syntax = "proto3";
package envoy.type.tracing.v3;
import "envoy/type/metadata/v3/metadata.proto";
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/tracing/v3;tracingv3";
option java_multiple_files = true;
option java_outer_classname = "CustomTagProto";
option java_package = "io.envoyproxy.envoy.type.tracing.v3";
message CustomTag {
string tag = 1;
oneof type {
Literal literal = 2;
Environment environment = 3;
Header request_header = 4;
Metadata metadata = 5;
}
message Literal {
string value = 1;
}
message Environment {
string name = 1;
string default_value = 2;
}
message Header {
string name = 1;
string default_value = 2;
}
message Metadata {
metadata.v3.MetadataKind kind = 1;
metadata.v3.MetadataKey metadata_key = 2;
string default_value = 3;
}
}
+16
View File
@@ -0,0 +1,16 @@
syntax = "proto3";
package envoy.type.v3;
import "udpa/annotations/status.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3";
option java_multiple_files = true;
option java_outer_classname = "HttpProto";
option java_package = "io.envoyproxy.envoy.type.v3";
enum CodecClientType {
HTTP1 = 0;
HTTP2 = 1;
HTTP3 = 2;
}
@@ -0,0 +1,27 @@
syntax = "proto3";
package envoy.type.v3;
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
import "validate/validate.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3";
option java_multiple_files = true;
option java_outer_classname = "PercentProto";
option java_package = "io.envoyproxy.envoy.type.v3";
message Percent {
double value = 1;
}
message FractionalPercent {
uint32 numerator = 1;
DenominatorType denominator = 2;
enum DenominatorType {
HUNDRED = 0;
TEN_THOUSAND = 1;
MILLION = 2;
}
}
+26
View File
@@ -0,0 +1,26 @@
syntax = "proto3";
package envoy.type.v3;
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3";
option java_multiple_files = true;
option java_outer_classname = "RangeProto";
option java_package = "io.envoyproxy.envoy.type.v3";
message Int64Range {
int64 start = 1;
int64 end = 2;
}
message Int32Range {
int32 start = 1;
int32 end = 2;
}
message DoubleRange {
double start = 1;
double end = 2;
}
@@ -0,0 +1,17 @@
syntax = "proto3";
package envoy.type.v3;
import "udpa/annotations/status.proto";
import "udpa/annotations/versioning.proto";
option go_package = "github.com/envoyproxy/go-control-plane/envoy/type/v3;typev3";
option java_multiple_files = true;
option java_outer_classname = "SemanticVersionProto";
option java_package = "io.envoyproxy.envoy.type.v3";
message SemanticVersion {
uint32 major_number = 1;
uint32 minor_number = 2;
uint32 patch = 3;
}
+22
View File
@@ -0,0 +1,22 @@
syntax = "proto3";
package com.teamspeak.myteamspeak.proto.cloud;
option java_generic_services = true;
option cc_generic_services = true;
option optimize_for = SPEED;
message BadgeList {
int32 version = 1;
int64 updated = 2;
repeated Badge badges = 3;
}
message Badge {
string uuid = 1;
string name = 2;
string url = 3;
string description = 4;
int64 created = 5;
int32 version = 6;
}
@@ -0,0 +1,108 @@
syntax = "proto3";
package google.api.expr.v1alpha1;
import "google/api/expr/v1alpha1/syntax.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/struct.proto";
option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/api/expr/v1alpha1;expr";
option java_multiple_files = true;
option java_outer_classname = "DeclProto";
option java_package = "com.google.api.expr.v1alpha1";
message CheckedExpr {
map<int64, Reference> reference_map = 2;
map<int64, Type> type_map = 3;
SourceInfo source_info = 5;
string expr_version = 6;
Expr expr = 4;
}
message Type {
oneof type_kind {
protobuf.Empty dyn = 1;
protobuf.NullValue null = 2;
PrimitiveType primitive = 3;
PrimitiveType wrapper = 4;
WellKnownType well_known = 5;
ListType list_type = 6;
MapType map_type = 7;
FunctionType function = 8;
string message_type = 9;
string type_param = 10;
Type type = 11;
protobuf.Empty error = 12;
AbstractType abstract_type = 14;
}
message ListType {
Type elem_type = 1;
}
message MapType {
Type key_type = 1;
Type value_type = 2;
}
message FunctionType {
Type result_type = 1;
repeated Type arg_types = 2;
}
message AbstractType {
string name = 1;
repeated Type parameter_types = 2;
}
enum PrimitiveType {
PRIMITIVE_TYPE_UNSPECIFIED = 0;
BOOL = 1;
INT64 = 2;
UINT64 = 3;
DOUBLE = 4;
STRING = 5;
BYTES = 6;
}
enum WellKnownType {
WELL_KNOWN_TYPE_UNSPECIFIED = 0;
ANY = 1;
TIMESTAMP = 2;
DURATION = 3;
}
}
message Decl {
string name = 1;
oneof decl_kind {
IdentDecl ident = 2;
FunctionDecl function = 3;
}
message IdentDecl {
Type type = 1;
Constant value = 2;
string doc = 3;
}
message FunctionDecl {
repeated Overload overloads = 1;
message Overload {
string overload_id = 1;
repeated Type params = 2;
repeated string type_params = 3;
Type result_type = 4;
bool is_instance_function = 5;
string doc = 6;
}
}
}
message Reference {
string name = 1;
repeated string overload_id = 3;
Constant value = 4;
}
@@ -0,0 +1,128 @@
syntax = "proto3";
package google.api.expr.v1alpha1;
import "google/protobuf/duration.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/api/expr/v1alpha1;expr";
option java_multiple_files = true;
option java_outer_classname = "SyntaxProto";
option java_package = "com.google.api.expr.v1alpha1";
message ParsedExpr {
Expr expr = 2;
SourceInfo source_info = 3;
}
message Expr {
int64 id = 2;
oneof expr_kind {
Constant const_expr = 3;
Ident ident_expr = 4;
Select select_expr = 5;
Call call_expr = 6;
CreateList list_expr = 7;
CreateStruct struct_expr = 8;
Comprehension comprehension_expr = 9;
}
message Ident {
string name = 1;
}
message Select {
Expr operand = 1;
string field = 2;
bool test_only = 3;
}
message Call {
Expr target = 1;
string function = 2;
repeated Expr args = 3;
}
message CreateList {
repeated Expr elements = 1;
repeated int32 optional_indices = 2;
}
message CreateStruct {
string message_name = 1;
repeated Entry entries = 2;
message Entry {
int64 id = 1;
Expr value = 4;
bool optional_entry = 5;
oneof key_kind {
string field_key = 2;
Expr map_key = 3;
}
}
}
message Comprehension {
string iter_var = 1;
string iter_var2 = 8;
Expr iter_range = 2;
string accu_var = 3;
Expr accu_init = 4;
Expr loop_condition = 5;
Expr loop_step = 6;
Expr result = 7;
}
}
message Constant {
oneof constant_kind {
protobuf.NullValue null_value = 1;
bool bool_value = 2;
int64 int64_value = 3;
uint64 uint64_value = 4;
double double_value = 5;
string string_value = 6;
bytes bytes_value = 7;
protobuf.Duration duration_value = 8 [deprecated = true];
protobuf.Timestamp timestamp_value = 9 [deprecated = true];
}
}
message SourceInfo {
string syntax_version = 1;
string location = 2;
repeated int32 line_offsets = 3;
map<int64, int32> positions = 4;
map<int64, Expr> macro_calls = 5;
repeated Extension extensions = 6;
message Extension {
string id = 1;
repeated Component affected_components = 2;
enum Component {
COMPONENT_UNSPECIFIED = 0;
COMPONENT_PARSER = 1;
COMPONENT_TYPE_CHECKER = 2;
COMPONENT_RUNTIME = 3;
}
Version version = 3;
message Version {
int64 major = 1;
int64 minor = 2;
}
}
}
message SourcePosition {
string location = 1;
int32 offset = 2;
int32 line = 3;
int32 column = 4;
}
+15
View File
@@ -0,0 +1,15 @@
syntax = "proto3";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option objc_class_prefix = "GPB";
option go_package = "google.golang.org/protobuf/types/known/anypb";
option java_multiple_files = true;
option java_outer_classname = "AnyProto";
option java_package = "com.google.protobuf";
message Any {
string type_url = 1;
bytes value = 2;
}
@@ -0,0 +1,40 @@
syntax = "proto2";
package pb;
import "google/protobuf/descriptor.proto";
message CppFeatures {
optional bool legacy_closed_enum = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "true"
edition: EDITION_LEGACY
, value: "false"
edition: EDITION_PROTO3
], feature_support = edition_introduced: EDITION_2023
edition_deprecated: EDITION_2023
deprecation_warning: "The legacy closed enum behavior in C++ is deprecated and is scheduled to be removed in edition 2025. See http://protobuf.dev/programming-guides/enum/#cpp for more information"
];
optional StringType string_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "STRING"
edition: EDITION_LEGACY
, value: "VIEW"
edition: EDITION_2024
], feature_support = edition_introduced: EDITION_2023
];
enum StringType {
STRING_TYPE_UNKNOWN = 0;
VIEW = 1;
CORD = 2;
STRING = 3;
}
optional bool enum_name_uses_string_view = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, TARGET_TYPE_FILE, edition_defaults = [value: "false"
edition: EDITION_LEGACY
, value: "true"
edition: EDITION_2024
], feature_support = edition_introduced: EDITION_2024
];
}
extend google.protobuf.FeatureSet {
optional CppFeatures cpp = 1000;
}
@@ -0,0 +1,532 @@
syntax = "proto2";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.Reflection";
option objc_class_prefix = "GPB";
option cc_enable_arenas = true;
option go_package = "google.golang.org/protobuf/types/descriptorpb";
option optimize_for = SPEED;
option java_outer_classname = "DescriptorProtos";
option java_package = "com.google.protobuf";
message FileDescriptorSet {
repeated FileDescriptorProto file = 1;
extensions 536000000;
}
message FileDescriptorProto {
optional string name = 1;
optional string package = 2;
repeated string dependency = 3;
repeated int32 public_dependency = 10;
repeated int32 weak_dependency = 11;
repeated string option_dependency = 15;
repeated DescriptorProto message_type = 4;
repeated EnumDescriptorProto enum_type = 5;
repeated ServiceDescriptorProto service = 6;
repeated FieldDescriptorProto extension = 7;
optional FileOptions options = 8;
optional SourceCodeInfo source_code_info = 9;
optional string syntax = 12;
optional Edition edition = 14;
}
message DescriptorProto {
optional string name = 1;
repeated FieldDescriptorProto field = 2;
repeated FieldDescriptorProto extension = 6;
repeated DescriptorProto nested_type = 3;
repeated EnumDescriptorProto enum_type = 4;
repeated ExtensionRange extension_range = 5;
message ExtensionRange {
optional int32 start = 1;
optional int32 end = 2;
optional ExtensionRangeOptions options = 3;
}
repeated OneofDescriptorProto oneof_decl = 8;
optional MessageOptions options = 7;
repeated ReservedRange reserved_range = 9;
message ReservedRange {
optional int32 start = 1;
optional int32 end = 2;
}
repeated string reserved_name = 10;
optional SymbolVisibility visibility = 11;
}
message ExtensionRangeOptions {
repeated UninterpretedOption uninterpreted_option = 999;
repeated Declaration declaration = 2 [retention = RETENTION_SOURCE];
message Declaration {
optional int32 number = 1;
optional string full_name = 2;
optional string type = 3;
optional bool reserved = 5;
optional bool repeated = 6;
reserved 4;
}
optional FeatureSet features = 50;
optional VerificationState verification = 3 [default = UNVERIFIED, retention = RETENTION_SOURCE];
enum VerificationState {
DECLARATION = 0;
UNVERIFIED = 1;
}
extensions 1000 to max;
}
message FieldDescriptorProto {
optional string name = 1;
optional int32 number = 3;
optional Label label = 4;
enum Label {
LABEL_OPTIONAL = 1;
LABEL_REPEATED = 3;
LABEL_REQUIRED = 2;
}
optional Type type = 5;
enum Type {
TYPE_DOUBLE = 1;
TYPE_FLOAT = 2;
TYPE_INT64 = 3;
TYPE_UINT64 = 4;
TYPE_INT32 = 5;
TYPE_FIXED64 = 6;
TYPE_FIXED32 = 7;
TYPE_BOOL = 8;
TYPE_STRING = 9;
TYPE_GROUP = 10;
TYPE_MESSAGE = 11;
TYPE_BYTES = 12;
TYPE_UINT32 = 13;
TYPE_ENUM = 14;
TYPE_SFIXED32 = 15;
TYPE_SFIXED64 = 16;
TYPE_SINT32 = 17;
TYPE_SINT64 = 18;
}
optional string type_name = 6;
optional string extendee = 2;
optional string default_value = 7;
optional int32 oneof_index = 9;
optional string json_name = 10;
optional FieldOptions options = 8;
optional bool proto3_optional = 17;
}
message OneofDescriptorProto {
optional string name = 1;
optional OneofOptions options = 2;
}
message EnumDescriptorProto {
optional string name = 1;
repeated EnumValueDescriptorProto value = 2;
optional EnumOptions options = 3;
repeated EnumReservedRange reserved_range = 4;
message EnumReservedRange {
optional int32 start = 1;
optional int32 end = 2;
}
repeated string reserved_name = 5;
optional SymbolVisibility visibility = 6;
}
message EnumValueDescriptorProto {
optional string name = 1;
optional int32 number = 2;
optional EnumValueOptions options = 3;
}
message ServiceDescriptorProto {
optional string name = 1;
repeated MethodDescriptorProto method = 2;
optional ServiceOptions options = 3;
}
message MethodDescriptorProto {
optional string name = 1;
optional string input_type = 2;
optional string output_type = 3;
optional MethodOptions options = 4;
optional bool client_streaming = 5 [default = false];
optional bool server_streaming = 6 [default = false];
}
message FileOptions {
optional string java_package = 1;
optional string java_outer_classname = 8;
optional bool java_multiple_files = 10 [default = false];
optional bool java_generate_equals_and_hash = 20 [deprecated = true];
optional bool java_string_check_utf8 = 27 [default = false];
optional OptimizeMode optimize_for = 9 [default = SPEED];
enum OptimizeMode {
SPEED = 1;
CODE_SIZE = 2;
LITE_RUNTIME = 3;
}
optional string go_package = 11;
optional bool cc_generic_services = 16 [default = false];
optional bool java_generic_services = 17 [default = false];
optional bool py_generic_services = 18 [default = false];
optional bool deprecated = 23 [default = false];
optional bool cc_enable_arenas = 31 [default = true];
optional string objc_class_prefix = 36;
optional string csharp_namespace = 37;
optional string swift_prefix = 39;
optional string php_class_prefix = 40;
optional string php_namespace = 41;
optional string php_metadata_namespace = 44;
optional string ruby_package = 45;
optional FeatureSet features = 50;
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
reserved 42, 38;
reserved "php_generic_services";
}
message MessageOptions {
optional bool message_set_wire_format = 1 [default = false];
optional bool no_standard_descriptor_accessor = 2 [default = false];
optional bool deprecated = 3 [default = false];
optional bool map_entry = 7;
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
optional FeatureSet features = 12;
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
reserved 4, 5, 6, 8, 9;
}
message FieldOptions {
optional CType ctype = 1 [default = STRING];
enum CType {
STRING = 0;
CORD = 1;
STRING_PIECE = 2;
}
optional bool packed = 2;
optional JSType jstype = 6 [default = JS_NORMAL];
enum JSType {
JS_NORMAL = 0;
JS_STRING = 1;
JS_NUMBER = 2;
}
optional bool lazy = 5 [default = false];
optional bool unverified_lazy = 15 [default = false];
optional bool deprecated = 3 [default = false];
optional bool weak = 10 [default = false, deprecated = true];
optional bool debug_redact = 16 [default = false];
optional OptionRetention retention = 17;
enum OptionRetention {
RETENTION_UNKNOWN = 0;
RETENTION_RUNTIME = 1;
RETENTION_SOURCE = 2;
}
repeated OptionTargetType targets = 19;
enum OptionTargetType {
TARGET_TYPE_UNKNOWN = 0;
TARGET_TYPE_FILE = 1;
TARGET_TYPE_EXTENSION_RANGE = 2;
TARGET_TYPE_MESSAGE = 3;
TARGET_TYPE_FIELD = 4;
TARGET_TYPE_ONEOF = 5;
TARGET_TYPE_ENUM = 6;
TARGET_TYPE_ENUM_ENTRY = 7;
TARGET_TYPE_SERVICE = 8;
TARGET_TYPE_METHOD = 9;
}
repeated EditionDefault edition_defaults = 20;
message EditionDefault {
optional Edition edition = 3;
optional string value = 2;
}
optional FeatureSet features = 21;
optional FeatureSupport feature_support = 22;
message FeatureSupport {
optional Edition edition_introduced = 1;
optional Edition edition_deprecated = 2;
optional string deprecation_warning = 3;
optional Edition edition_removed = 4;
}
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
reserved 4, 18;
}
message OneofOptions {
optional FeatureSet features = 1;
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
}
message EnumOptions {
optional bool allow_alias = 2;
optional bool deprecated = 3 [default = false];
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
optional FeatureSet features = 7;
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
reserved 5;
}
message EnumValueOptions {
optional bool deprecated = 1 [default = false];
optional FeatureSet features = 2;
optional bool debug_redact = 3 [default = false];
optional FieldOptions.FeatureSupport feature_support = 4;
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
}
message ServiceOptions {
optional FeatureSet features = 34;
optional bool deprecated = 33 [default = false];
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
}
message MethodOptions {
optional bool deprecated = 33 [default = false];
optional IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
enum IdempotencyLevel {
IDEMPOTENCY_UNKNOWN = 0;
NO_SIDE_EFFECTS = 1;
IDEMPOTENT = 2;
}
optional FeatureSet features = 35;
repeated UninterpretedOption uninterpreted_option = 999;
extensions 1000 to max;
}
message UninterpretedOption {
repeated NamePart name = 2;
message NamePart {
required string name_part = 1;
required bool is_extension = 2;
}
optional string identifier_value = 3;
optional uint64 positive_int_value = 4;
optional int64 negative_int_value = 5;
optional double double_value = 6;
optional bytes string_value = 7;
optional string aggregate_value = 8;
}
message FeatureSet {
optional FieldPresence field_presence = 1 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "EXPLICIT"
edition: EDITION_LEGACY
, value: "IMPLICIT"
edition: EDITION_PROTO3
, value: "EXPLICIT"
edition: EDITION_2023
], feature_support = edition_introduced: EDITION_2023
];
enum FieldPresence {
FIELD_PRESENCE_UNKNOWN = 0;
EXPLICIT = 1;
IMPLICIT = 2;
LEGACY_REQUIRED = 3;
}
optional EnumType enum_type = 2 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_ENUM, TARGET_TYPE_FILE, edition_defaults = [value: "CLOSED"
edition: EDITION_LEGACY
, value: "OPEN"
edition: EDITION_PROTO3
], feature_support = edition_introduced: EDITION_2023
];
enum EnumType {
ENUM_TYPE_UNKNOWN = 0;
OPEN = 1;
CLOSED = 2;
}
optional RepeatedFieldEncoding repeated_field_encoding = 3 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "EXPANDED"
edition: EDITION_LEGACY
, value: "PACKED"
edition: EDITION_PROTO3
], feature_support = edition_introduced: EDITION_2023
];
enum RepeatedFieldEncoding {
REPEATED_FIELD_ENCODING_UNKNOWN = 0;
PACKED = 1;
EXPANDED = 2;
}
optional Utf8Validation utf8_validation = 4 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "NONE"
edition: EDITION_LEGACY
, value: "VERIFY"
edition: EDITION_PROTO3
], feature_support = edition_introduced: EDITION_2023
];
enum Utf8Validation {
UTF8_VALIDATION_UNKNOWN = 0;
VERIFY = 2;
NONE = 3;
}
optional MessageEncoding message_encoding = 5 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_FIELD, TARGET_TYPE_FILE, edition_defaults = [value: "LENGTH_PREFIXED"
edition: EDITION_LEGACY
], feature_support = edition_introduced: EDITION_2023
];
enum MessageEncoding {
MESSAGE_ENCODING_UNKNOWN = 0;
LENGTH_PREFIXED = 1;
DELIMITED = 2;
}
optional JsonFormat json_format = 6 [retention = RETENTION_RUNTIME, targets = TARGET_TYPE_MESSAGE, TARGET_TYPE_ENUM, TARGET_TYPE_FILE, edition_defaults = [value: "LEGACY_BEST_EFFORT"
edition: EDITION_LEGACY
, value: "ALLOW"
edition: EDITION_PROTO3
], feature_support = edition_introduced: EDITION_2023
];
enum JsonFormat {
JSON_FORMAT_UNKNOWN = 0;
ALLOW = 1;
LEGACY_BEST_EFFORT = 2;
}
optional EnforceNamingStyle enforce_naming_style = 7 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, TARGET_TYPE_EXTENSION_RANGE, TARGET_TYPE_MESSAGE, TARGET_TYPE_FIELD, TARGET_TYPE_ONEOF, TARGET_TYPE_ENUM, TARGET_TYPE_ENUM_ENTRY, TARGET_TYPE_SERVICE, TARGET_TYPE_METHOD, edition_defaults = [value: "STYLE_LEGACY"
edition: EDITION_LEGACY
, value: "STYLE2024"
edition: EDITION_2024
], feature_support = edition_introduced: EDITION_2024
];
enum EnforceNamingStyle {
ENFORCE_NAMING_STYLE_UNKNOWN = 0;
STYLE2024 = 1;
STYLE_LEGACY = 2;
}
optional VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention = RETENTION_SOURCE, targets = TARGET_TYPE_FILE, edition_defaults = [value: "EXPORT_ALL"
edition: EDITION_LEGACY
, value: "EXPORT_TOP_LEVEL"
edition: EDITION_2024
], feature_support = edition_introduced: EDITION_2024
];
extensions 1000 to 9994, 9995 to 9999, 10000;
reserved 999;
message VisibilityFeature {
reserved 1 to max;
enum DefaultSymbolVisibility {
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
EXPORT_ALL = 1;
EXPORT_TOP_LEVEL = 2;
LOCAL_ALL = 3;
STRICT = 4;
}
}
}
message FeatureSetDefaults {
repeated FeatureSetEditionDefault defaults = 1;
message FeatureSetEditionDefault {
optional Edition edition = 3;
optional FeatureSet overridable_features = 4;
optional FeatureSet fixed_features = 5;
reserved 1, 2;
reserved "features";
}
optional Edition minimum_edition = 4;
optional Edition maximum_edition = 5;
}
message SourceCodeInfo {
repeated Location location = 1;
message Location {
repeated int32 path = 1 [packed = true];
repeated int32 span = 2 [packed = true];
optional string leading_comments = 3;
optional string trailing_comments = 4;
repeated string leading_detached_comments = 6;
}
extensions 536000000;
}
message GeneratedCodeInfo {
repeated Annotation annotation = 1;
message Annotation {
repeated int32 path = 1 [packed = true];
optional string source_file = 2;
optional int32 begin = 3;
optional int32 end = 4;
optional Semantic semantic = 5;
enum Semantic {
NONE = 0;
SET = 1;
ALIAS = 2;
}
}
}
enum Edition {
EDITION_UNKNOWN = 0;
EDITION_LEGACY = 900;
EDITION_PROTO2 = 998;
EDITION_PROTO3 = 999;
EDITION_2023 = 1000;
EDITION_2024 = 1001;
EDITION_1_TEST_ONLY = 1;
EDITION_2_TEST_ONLY = 2;
EDITION_99997_TEST_ONLY = 99997;
EDITION_99998_TEST_ONLY = 99998;
EDITION_99999_TEST_ONLY = 99999;
EDITION_MAX = 2147483647;
}
enum SymbolVisibility {
VISIBILITY_UNSET = 0;
VISIBILITY_LOCAL = 1;
VISIBILITY_EXPORT = 2;
}
@@ -0,0 +1,16 @@
syntax = "proto3";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option objc_class_prefix = "GPB";
option cc_enable_arenas = true;
option go_package = "google.golang.org/protobuf/types/known/durationpb";
option java_multiple_files = true;
option java_outer_classname = "DurationProto";
option java_package = "com.google.protobuf";
message Duration {
int64 seconds = 1;
int32 nanos = 2;
}
@@ -0,0 +1,15 @@
syntax = "proto3";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option objc_class_prefix = "GPB";
option cc_enable_arenas = true;
option go_package = "google.golang.org/protobuf/types/known/emptypb";
option java_multiple_files = true;
option java_outer_classname = "EmptyProto";
option java_package = "com.google.protobuf";
message Empty {
}
@@ -0,0 +1,14 @@
syntax = "proto3";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option objc_class_prefix = "GPB";
option go_package = "google.golang.org/protobuf/types/known/sourcecontextpb";
option java_multiple_files = true;
option java_outer_classname = "SourceContextProto";
option java_package = "com.google.protobuf";
message SourceContext {
string file_name = 1;
}
@@ -0,0 +1,34 @@
syntax = "proto3";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option objc_class_prefix = "GPB";
option cc_enable_arenas = true;
option go_package = "google.golang.org/protobuf/types/known/structpb";
option java_multiple_files = true;
option java_outer_classname = "StructProto";
option java_package = "com.google.protobuf";
message Struct {
map<string, Value> fields = 1;
}
message Value {
oneof kind {
NullValue null_value = 1;
double number_value = 2;
string string_value = 3;
bool bool_value = 4;
Struct struct_value = 5;
ListValue list_value = 6;
}
}
message ListValue {
repeated Value values = 1;
}
enum NullValue {
NULL_VALUE = 0;
}
@@ -0,0 +1,16 @@
syntax = "proto3";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option objc_class_prefix = "GPB";
option cc_enable_arenas = true;
option go_package = "google.golang.org/protobuf/types/known/timestamppb";
option java_multiple_files = true;
option java_outer_classname = "TimestampProto";
option java_package = "com.google.protobuf";
message Timestamp {
int64 seconds = 1;
int32 nanos = 2;
}
+92
View File
@@ -0,0 +1,92 @@
syntax = "proto3";
package google.protobuf;
import "google/protobuf/any.proto";
import "google/protobuf/source_context.proto";
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option objc_class_prefix = "GPB";
option cc_enable_arenas = true;
option go_package = "google.golang.org/protobuf/types/known/typepb";
option java_multiple_files = true;
option java_outer_classname = "TypeProto";
option java_package = "com.google.protobuf";
message Type {
string name = 1;
repeated Field fields = 2;
repeated string oneofs = 3;
repeated Option options = 4;
SourceContext source_context = 5;
Syntax syntax = 6;
string edition = 7;
}
message Field {
Kind kind = 1;
enum Kind {
TYPE_UNKNOWN = 0;
TYPE_DOUBLE = 1;
TYPE_FLOAT = 2;
TYPE_INT64 = 3;
TYPE_UINT64 = 4;
TYPE_INT32 = 5;
TYPE_FIXED64 = 6;
TYPE_FIXED32 = 7;
TYPE_BOOL = 8;
TYPE_STRING = 9;
TYPE_GROUP = 10;
TYPE_MESSAGE = 11;
TYPE_BYTES = 12;
TYPE_UINT32 = 13;
TYPE_ENUM = 14;
TYPE_SFIXED32 = 15;
TYPE_SFIXED64 = 16;
TYPE_SINT32 = 17;
TYPE_SINT64 = 18;
}
Cardinality cardinality = 2;
enum Cardinality {
CARDINALITY_UNKNOWN = 0;
CARDINALITY_OPTIONAL = 1;
CARDINALITY_REQUIRED = 2;
CARDINALITY_REPEATED = 3;
}
int32 number = 3;
string name = 4;
string type_url = 6;
int32 oneof_index = 7;
bool packed = 8;
repeated Option options = 9;
string json_name = 10;
string default_value = 11;
}
message Enum {
string name = 1;
repeated EnumValue enumvalue = 2;
repeated Option options = 3;
SourceContext source_context = 4;
Syntax syntax = 5;
string edition = 6;
}
message EnumValue {
string name = 1;
int32 number = 2;
repeated Option options = 3;
}
message Option {
string name = 1;
Any value = 2;
}
enum Syntax {
SYNTAX_PROTO2 = 0;
SYNTAX_PROTO3 = 1;
SYNTAX_EDITIONS = 2;
}
@@ -0,0 +1,47 @@
syntax = "proto3";
package google.protobuf;
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
option objc_class_prefix = "GPB";
option cc_enable_arenas = true;
option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
option java_multiple_files = true;
option java_outer_classname = "WrappersProto";
option java_package = "com.google.protobuf";
message DoubleValue {
double value = 1;
}
message FloatValue {
float value = 1;
}
message Int64Value {
int64 value = 1;
}
message UInt64Value {
uint64 value = 1;
}
message Int32Value {
int32 value = 1;
}
message UInt32Value {
uint32 value = 1;
}
message BoolValue {
bool value = 1;
}
message StringValue {
string value = 1;
}
message BytesValue {
bytes value = 1;
}
+18
View File
@@ -0,0 +1,18 @@
syntax = "proto3";
package google.rpc;
import "google/protobuf/any.proto";
option objc_class_prefix = "RPC";
option cc_enable_arenas = true;
option go_package = "google.golang.org/genproto/googleapis/rpc/status;status";
option java_multiple_files = true;
option java_outer_classname = "StatusProto";
option java_package = "com.google.rpc";
message Status {
int32 code = 1;
string message = 2;
repeated protobuf.Any details = 3;
}
+80
View File
@@ -0,0 +1,80 @@
syntax = "proto3";
package com.teamspeak.myteamspeak.proto.addon;
option java_generic_services = true;
option cc_generic_services = true;
option optimize_for = SPEED;
service UserAddonService {
rpc requestDownload(GetDownload) returns (Download);
}
message GetDownload {
string addonUUID = 1;
int32 currentVersion = 2;
Platform platform = 3;
ClientApi clientapi = 4;
ClientApi minClientapi = 5;
}
message Download {
FileData downloadInfo = 1;
int32 currentVersion = 2;
ReturnCode returnCode = 3;
repeated string addonList = 4;
string hostUrl = 5;
}
message ClientApi {
int32 plugin = 1;
int32 style = 2;
int32 soundpack = 3;
int32 translation = 4;
int32 iconpack = 5;
}
message FileData {
string url = 1;
int32 size = 2;
string sha1 = 3;
}
enum ApiType {
UNKNOWN_APITYPE = 0;
PLUGIN = 1;
STYLE = 2;
SOUNDPACK = 3;
TRANSLATION = 4;
ICONPACK = 5;
GROUPADDON = 6;
}
enum ReturnCode {
UNKNOWN_RETURNCODE = 0;
ADDON_NOT_FOUND = 1;
PLATFORM_NOT_FOUND = 2;
UPTODATE = 3;
UPDATE = 4;
GROUP = 5;
}
enum Platform {
UNKNOWN_PLATFORM = 0;
WINDOWS_X86 = 1;
WINDOWS_X86_64 = 2;
LINUX_X86 = 3;
LINUX_X86_64 = 4;
OSX_X86 = 5;
OSX_X86_64 = 6;
}
enum Status {
UNKNOWN_STATUS = 0;
DRAFT = 1;
PENDING = 2;
APPROVED = 3;
REJECTED = 4;
REVIEW = 5;
TRASHED = 6;
}
@@ -0,0 +1,44 @@
syntax = "proto3";
package com.teamspeak.myteamspeak.proto;
import "google/protobuf/any.proto";
option java_generic_services = true;
option cc_generic_services = true;
option optimize_for = SPEED;
message AvatarData {
AvatarInfo info = 1;
uint64 timestamp = 2;
bytes sign = 3;
google.protobuf.Any optional = 4;
}
message OptionalAvatarDataContactInfo {
bytes mytsid = 1;
bytes user_cert = 2;
}
message AvatarInfo {
repeated AvatarMap map = 1;
message AvatarMap {
AvatarState state = 1;
string name = 2;
}
}
enum AvatarError {
AVATAR_ERROR_INVALID = 0;
AVATAR_ERROR_OK = 1;
AVATAR_ERROR_CRITICAL = 2;
AVATAR_SESSION_INVALID = 3;
}
enum AvatarState {
AVATAR_STATE_INVALID = 0;
AVATAR_STATE_DND = 1;
AVATAR_STATE_ONLINE = 2;
AVATAR_STATE_AWAY = 3;
AVATAR_STATE_OFFLINE = 4;
}
Loaded 100 of 185 files, more files were not shown because too many files have changed in this diff. Show more