private async Task <ProductSet> CreateProductSet(ProductSearchClient client, CreateProductSetsOptions opts) { // Create a product set with the product set specification in the region. var request = new CreateProductSetRequest { // A resource that represents Google Cloud Platform location ParentAsLocationName = new LocationName(opts.ProjectID, opts.ComputeRegion), ProductSetId = opts.ProductSetId, ProductSet = new ProductSet { DisplayName = opts.ProductSetDisplayName } }; // The response is the product set with the `name` populated var response = await client.CreateProductSetAsync(request); return(response); }