From a9f87693ba8695520619aeab1c4d66e9a895e6c2 Mon Sep 17 00:00:00 2001 From: Ravi Khadiwala Date: Mon, 16 Nov 2026 15:24:35 -0600 Subject: [PATCH] Use 'Metadata' instead of 'header' when describing RPC Metadata --- .../src/main/proto/org/signal/chat/one_time_donations.proto | 4 ++-- .../src/main/proto/org/signal/chat/remote_configuration.proto | 4 ++-- service/src/main/proto/org/signal/chat/subscriptions.proto | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/service/src/main/proto/org/signal/chat/one_time_donations.proto b/service/src/main/proto/org/signal/chat/one_time_donations.proto index 0f04f7ae7..f7d72af1a 100644 --- a/service/src/main/proto/org/signal/chat/one_time_donations.proto +++ b/service/src/main/proto/org/signal/chat/one_time_donations.proto @@ -30,8 +30,8 @@ service OneTimeDonations { // and token. // // The PayPal approval page presented to the user may be localized. Callers - // should set their language preferences via an "Accept-Language" header on - // the request: + // should set their language preferences via gRPC metadata on the request with + // the key "Accept-Language" header: // https://datatracker.ietf.org/doc/html/rfc3282#section-3 rpc CreatePayPalBoost(CreatePayPalBoostRequest) returns (CreatePayPalBoostResponse) {} diff --git a/service/src/main/proto/org/signal/chat/remote_configuration.proto b/service/src/main/proto/org/signal/chat/remote_configuration.proto index ffbfbcdca..819213130 100644 --- a/service/src/main/proto/org/signal/chat/remote_configuration.proto +++ b/service/src/main/proto/org/signal/chat/remote_configuration.proto @@ -25,8 +25,8 @@ service RemoteConfiguration { // Returns detailed information for all configured badges, keyed by badge ID. // // Badge descriptions may contain localized strings. Callers should set their - // language preferences via an "Accept-Language" header on the request - // https://datatracker.ietf.org/doc/html/rfc3282#section-3 + // language preferences via gRPC metadata on the request with the key + // "Accept-Language": https://datatracker.ietf.org/doc/html/rfc3282#section-3 // // Callers may cache a badges result for up to 1 day before checking (via // etag) if there are any new updates. diff --git a/service/src/main/proto/org/signal/chat/subscriptions.proto b/service/src/main/proto/org/signal/chat/subscriptions.proto index 7068ab8aa..95245ca9d 100644 --- a/service/src/main/proto/org/signal/chat/subscriptions.proto +++ b/service/src/main/proto/org/signal/chat/subscriptions.proto @@ -39,8 +39,8 @@ service Subscriptions { // Returns a PayPal billing agreement approval URL and token that can be used to set up PayPal as a payment method. // // The presented billing agreement may be localized. Callers should set their - // language preferences via an "Accept-Language" header on the request: - // https://datatracker.ietf.org/doc/html/rfc3282#section-3 + // language preferences via gRPC metadata on the request with the key + // "Accept-Language": https://datatracker.ietf.org/doc/html/rfc3282#section-3 rpc CreatePayPalPaymentMethod(CreatePayPalPaymentMethodRequest) returns (CreatePayPalPaymentMethodResponse) {} // Sets the default payment method for a subscriber.