Ejemplo n.º 1
0
        /// <summary>Snippet for UpdateUnsubscriberAsync</summary>
        public async Task UpdateUnsubscriberAsync()
        {
            // Snippet: UpdateUnsubscriberAsync(Unsubscriber, FieldMask, CallSettings)
            // Additional: UpdateUnsubscriberAsync(Unsubscriber, FieldMask, CancellationToken)
            // Create client
            UnsubscribersClient unsubscribersClient = await UnsubscribersClient.CreateAsync();

            // Initialize request argument(s)
            Unsubscriber unsubscriber = new Unsubscriber();
            FieldMask    updateMask   = new FieldMask();
            // Make the request
            Unsubscriber response = await unsubscribersClient.UpdateUnsubscriberAsync(unsubscriber, updateMask);

            // End snippet
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for UpdateUnsubscriberAsync</summary>
        public async Task UpdateUnsubscriberRequestObjectAsync()
        {
            // Snippet: UpdateUnsubscriberAsync(UpdateUnsubscriberRequest, CallSettings)
            // Additional: UpdateUnsubscriberAsync(UpdateUnsubscriberRequest, CancellationToken)
            // Create client
            UnsubscribersClient unsubscribersClient = await UnsubscribersClient.CreateAsync();

            // Initialize request argument(s)
            UpdateUnsubscriberRequest request = new UpdateUnsubscriberRequest
            {
                Unsubscriber = new Unsubscriber(),
                UpdateMask   = new FieldMask(),
            };
            // Make the request
            Unsubscriber response = await unsubscribersClient.UpdateUnsubscriberAsync(request);

            // End snippet
        }