public MapField<string, string> Attributes { get; }
Endpoint configuration attributes that can be used to control different
aspects of the message delivery.
The only currently supported attribute is x-goog-version, which you can
use to change the format of the pushed message. This attribute
indicates the version of the data expected by the endpoint. This
controls the shape of the pushed message (i.e., its fields and metadata).
If not present during the CreateSubscription call, it will default to
the version of the Pub/Sub API used to make such call. If not present in a
ModifyPushConfig call, its value will not be changed. GetSubscription
calls will always return a valid version, even if the subscription was
created without this attribute.
The only supported values for the x-goog-version attribute are:
v1beta1: uses the push format defined in the v1beta1 Pub/Sub API.
v1 or v1beta2: uses the push format defined in the v1 Pub/Sub API.
For example:
<pre><code>attributes { "x-goog-version": "v1" } </code></pre>
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003ePushConfig\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.PubSub.V1\u003c/code\u003e namespace, specifically version 2.7.0, which is used for configuring push delivery endpoints for messages.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePushConfig\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing capabilities for message handling, equality checks, deep cloning, and buffer-based operations.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers constructors for creating new instances, either default or by copying from an existing \u003ccode\u003ePushConfig\u003c/code\u003e object, and exposes properties like \u003ccode\u003eAttributes\u003c/code\u003e for configuring message delivery attributes, \u003ccode\u003eAuthenticationMethodCase\u003c/code\u003e for choosing authentication methods, \u003ccode\u003eOidcToken\u003c/code\u003e for attaching OIDC JWT tokens, and \u003ccode\u003ePushEndpoint\u003c/code\u003e for setting the message destination URL.\u003c/p\u003e\n"],["\u003cp\u003eThe content provides a comprehensive list of earlier versions, starting from 2.3.0 all the way up to the latest version 3.23.0, all relating to the \u003ccode\u003ePushConfig\u003c/code\u003e in different versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttributes\u003c/code\u003e property of the class allows for the management of the endpoint's message delivery, with the only supported attribute being \u003ccode\u003ex-goog-version\u003c/code\u003e to help control the pushed message format.\u003c/p\u003e\n"]]],[],null,[]]