Ejemplo n.º 1
0
        /// <summary>Snippet for UpdateFlowAsync</summary>
        public async Task UpdateFlowAsync()
        {
            // Snippet: UpdateFlowAsync(Flow, FieldMask, CallSettings)
            // Additional: UpdateFlowAsync(Flow, FieldMask, CancellationToken)
            // Create client
            FlowsClient flowsClient = await FlowsClient.CreateAsync();

            // Initialize request argument(s)
            Flow      flow       = new Flow();
            FieldMask updateMask = new FieldMask();
            // Make the request
            Flow response = await flowsClient.UpdateFlowAsync(flow, updateMask);

            // End snippet
        }
Ejemplo n.º 2
0
        /// <summary>Snippet for UpdateFlowAsync</summary>
        public async Task UpdateFlowRequestObjectAsync()
        {
            // Snippet: UpdateFlowAsync(UpdateFlowRequest, CallSettings)
            // Additional: UpdateFlowAsync(UpdateFlowRequest, CancellationToken)
            // Create client
            FlowsClient flowsClient = await FlowsClient.CreateAsync();

            // Initialize request argument(s)
            UpdateFlowRequest request = new UpdateFlowRequest
            {
                Flow         = new Flow(),
                UpdateMask   = new FieldMask(),
                LanguageCode = "",
            };
            // Make the request
            Flow response = await flowsClient.UpdateFlowAsync(request);

            // End snippet
        }