/// <summary>Snippet for GetFeedItemSetAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetFeedItemSetResourceNamesAsync() { // Create client FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync(); // Initialize request argument(s) FeedItemSetName resourceName = FeedItemSetName.FromCustomerFeedFeedItemSet("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_SET_ID]"); // Make the request FeedItemSet response = await feedItemSetServiceClient.GetFeedItemSetAsync(resourceName); }
/// <summary>Snippet for GetFeedItemSetAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task GetFeedItemSetAsync() { // Create client FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/feedItemSets/[FEED_ID]~[FEED_ITEM_SET_ID]"; // Make the request FeedItemSet response = await feedItemSetServiceClient.GetFeedItemSetAsync(resourceName); }
/// <summary>Snippet for MutateFeedItemSetsAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task MutateFeedItemSetsAsync() { // Create client FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <FeedItemSetOperation> operations = new FeedItemSetOperation[] { new FeedItemSetOperation(), }; // Make the request MutateFeedItemSetsResponse response = await feedItemSetServiceClient.MutateFeedItemSetsAsync(customerId, operations); }
/// <summary>Snippet for GetFeedItemSetAsync</summary> public async Task GetFeedItemSetAsync() { // Snippet: GetFeedItemSetAsync(string, CallSettings) // Additional: GetFeedItemSetAsync(string, CancellationToken) // Create client FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync(); // Initialize request argument(s) string resourceName = "customers/[CUSTOMER_ID]/feedItemSets/[FEED_ID]~[FEED_ITEM_SET_ID]"; // Make the request FeedItemSet response = await feedItemSetServiceClient.GetFeedItemSetAsync(resourceName); // End snippet }
/// <summary>Snippet for GetFeedItemSetAsync</summary> public async Task GetFeedItemSetResourceNamesAsync() { // Snippet: GetFeedItemSetAsync(FeedItemSetName, CallSettings) // Additional: GetFeedItemSetAsync(FeedItemSetName, CancellationToken) // Create client FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync(); // Initialize request argument(s) FeedItemSetName resourceName = FeedItemSetName.FromCustomerFeedFeedItemSet("[CUSTOMER_ID]", "[FEED_ID]", "[FEED_ITEM_SET_ID]"); // Make the request FeedItemSet response = await feedItemSetServiceClient.GetFeedItemSetAsync(resourceName); // End snippet }
/// <summary>Snippet for MutateFeedItemSetsAsync</summary> public async Task MutateFeedItemSetsAsync() { // Snippet: MutateFeedItemSetsAsync(string, IEnumerable<FeedItemSetOperation>, CallSettings) // Additional: MutateFeedItemSetsAsync(string, IEnumerable<FeedItemSetOperation>, CancellationToken) // Create client FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync(); // Initialize request argument(s) string customerId = ""; IEnumerable <FeedItemSetOperation> operations = new FeedItemSetOperation[] { new FeedItemSetOperation(), }; // Make the request MutateFeedItemSetsResponse response = await feedItemSetServiceClient.MutateFeedItemSetsAsync(customerId, operations); // End snippet }
/// <summary>Snippet for MutateFeedItemSetsAsync</summary> /// <remarks> /// This snippet has been automatically generated for illustrative purposes only. /// It may require modifications to work in your environment. /// </remarks> public async Task MutateFeedItemSetsRequestObjectAsync() { // Create client FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync(); // Initialize request argument(s) MutateFeedItemSetsRequest request = new MutateFeedItemSetsRequest { CustomerId = "", Operations = { new FeedItemSetOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateFeedItemSetsResponse response = await feedItemSetServiceClient.MutateFeedItemSetsAsync(request); }
/// <summary>Snippet for MutateFeedItemSetsAsync</summary> public async Task MutateFeedItemSetsRequestObjectAsync() { // Snippet: MutateFeedItemSetsAsync(MutateFeedItemSetsRequest, CallSettings) // Additional: MutateFeedItemSetsAsync(MutateFeedItemSetsRequest, CancellationToken) // Create client FeedItemSetServiceClient feedItemSetServiceClient = await FeedItemSetServiceClient.CreateAsync(); // Initialize request argument(s) MutateFeedItemSetsRequest request = new MutateFeedItemSetsRequest { CustomerId = "", Operations = { new FeedItemSetOperation(), }, PartialFailure = false, ValidateOnly = false, }; // Make the request MutateFeedItemSetsResponse response = await feedItemSetServiceClient.MutateFeedItemSetsAsync(request); // End snippet }