Optional. Required. The field to update. You can update one of the following fields in a subscription: * * expire_time: The timestamp when the subscription expires. * * ttl: The time-to-live (TTL) or duration of the subscription.
↳ validate_only
bool
Optional. If set to true, validates and previews the request, but doesn't update the subscription.
getSubscription
Required. The subscription to update.
The subscription's name field is used to identify the subscription to
update.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Apps Events Subscriptions V1 Client - Class UpdateSubscriptionRequest (0.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.3.1 (latest)](/php/docs/reference/apps-events-subscriptions/latest/V1.UpdateSubscriptionRequest)\n- [0.3.0](/php/docs/reference/apps-events-subscriptions/0.3.0/V1.UpdateSubscriptionRequest)\n- [0.2.1](/php/docs/reference/apps-events-subscriptions/0.2.1/V1.UpdateSubscriptionRequest)\n- [0.1.6](/php/docs/reference/apps-events-subscriptions/0.1.6/V1.UpdateSubscriptionRequest) \nReference documentation and code samples for the Google Apps Events Subscriptions V1 Client class UpdateSubscriptionRequest.\n\nThe request message for\n[SubscriptionsService.UpdateSubscription](/php/docs/reference/apps-events-subscriptions/latest/V1.Client.SubscriptionsServiceClient#_Google_Apps_Events_Subscriptions_V1_Client_SubscriptionsServiceClient__updateSubscription__).\n\nGenerated from protobuf message `google.apps.events.subscriptions.v1.UpdateSubscriptionRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Events \\\\ Subscriptions \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSubscription\n\nRequired. The subscription to update.\n\nThe subscription's `name` field is used to identify the subscription to\nupdate.\n\n### hasSubscription\n\n### clearSubscription\n\n### setSubscription\n\nRequired. The subscription to update.\n\nThe subscription's `name` field is used to identify the subscription to\nupdate.\n\n### getUpdateMask\n\nOptional. Required. The field to update.\n\nYou can update one of the following fields in a subscription:\n\n- [`expire_time`](/php/docs/reference/apps-events-subscriptions/latest/V1.Subscription#_Google_Apps_Events_Subscriptions_V1_Subscription__getExpireTime__): The timestamp when the subscription expires.\n- [`ttl`](/php/docs/reference/apps-events-subscriptions/latest/V1.Subscription#_Google_Apps_Events_Subscriptions_V1_Subscription__getTtl__): The time-to-live (TTL) or duration of the subscription.\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nOptional. Required. The field to update.\n\nYou can update one of the following fields in a subscription:\n\n- [`expire_time`](/php/docs/reference/apps-events-subscriptions/latest/V1.Subscription#_Google_Apps_Events_Subscriptions_V1_Subscription__getExpireTime__): The timestamp when the subscription expires.\n- [`ttl`](/php/docs/reference/apps-events-subscriptions/latest/V1.Subscription#_Google_Apps_Events_Subscriptions_V1_Subscription__getTtl__): The time-to-live (TTL) or duration of the subscription.\n\n### getValidateOnly\n\nOptional. If set to `true`, validates and previews the request, but doesn't\nupdate the subscription.\n\n### setValidateOnly\n\nOptional. If set to `true`, validates and previews the request, but doesn't\nupdate the subscription.\n\n### static::build"]]