diff --git a/error-reporting/api/ErrorReportingSample/ErrorReportingSample.cs b/error-reporting/api/ErrorReportingSample/ErrorReportingSample.cs index 6845a49f0bf..3cfb18bce8b 100644 --- a/error-reporting/api/ErrorReportingSample/ErrorReportingSample.cs +++ b/error-reporting/api/ErrorReportingSample/ErrorReportingSample.cs @@ -1,5 +1,5 @@ /** - * Copyright 2016 Google Inc. All Rights Reserved. + * Copyright 2016 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsBigQueryTableTest.cs b/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsBigQueryTableTest.cs index cf1bf99ad4a..be25c9cfb47 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsBigQueryTableTest.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsBigQueryTableTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,4 +31,4 @@ public void TestImportUserEventsBigQueryTable() Assert.Equal(expectedFailures, result.Metadata.FailureCount); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsGcsTest.cs b/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsGcsTest.cs index 2e39db4f1df..2bba7febaeb 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsGcsTest.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsGcsTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,4 +32,4 @@ public void TestImportUserEventsGcs() Assert.Equal(expectedFailures, result.Metadata.FailureCount); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsInlineSourceTest.cs b/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsInlineSourceTest.cs index 093f6db4cde..ac4776eef07 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsInlineSourceTest.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples.Tests/ImportUserEventsInlineSourceTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,4 +31,4 @@ public void TestImportUserEventsInlineSource() Assert.Equal(expectedFailures, result.Metadata.FailureCount); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples.Tests/PurgeUserEventTest.cs b/retail/interactive-tutorial/RetailEvents.Samples.Tests/PurgeUserEventTest.cs index eed35e6aba6..9669a22a859 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples.Tests/PurgeUserEventTest.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples.Tests/PurgeUserEventTest.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,4 +35,4 @@ public void TestPurgeUserEvent() Assert.StartsWith(expectedPurgeResponseName, purgeResponse.Name); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples.Tests/RejoinUserEventTest.cs b/retail/interactive-tutorial/RetailEvents.Samples.Tests/RejoinUserEventTest.cs index e8e50d1d88b..e729dd64eea 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples.Tests/RejoinUserEventTest.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples.Tests/RejoinUserEventTest.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,4 +35,4 @@ public void TestRejoinUserEvent() Assert.StartsWith(expectedRejoinResponseName, rejoinResponse.Name); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples.Tests/WriteUserEventTest.cs b/retail/interactive-tutorial/RetailEvents.Samples.Tests/WriteUserEventTest.cs index e0c8412be4c..4c4857e0b51 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples.Tests/WriteUserEventTest.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples.Tests/WriteUserEventTest.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,4 +39,4 @@ public void TestWriteUserEvent() } } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsBigQuerySample.cs b/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsBigQuerySample.cs index 2261ea2b515..f4e2f201ebd 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsBigQuerySample.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsBigQuerySample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -111,4 +112,4 @@ public static Operation ImportProducts return result; } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsGcsSample.cs b/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsGcsSample.cs index d625152fa42..944a4434666 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsGcsSample.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsGcsSample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -119,4 +120,4 @@ public static Operation ImportUserEven return result; } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsInlineSourceSample.cs b/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsInlineSourceSample.cs index 97885fdfaab..eb6f4574574 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsInlineSourceSample.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/ImportUserEventsInlineSourceSample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -136,4 +137,4 @@ public static Operation ImportUserEven return result; } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/Program.cs b/retail/interactive-tutorial/RetailEvents.Samples/Program.cs index 27a801b6346..b8d031d0c9e 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/Program.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/Program.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,4 +21,4 @@ static void Main(string[] args) Runner.Program.RunScript(args); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/PurgeUserEventSample.cs b/retail/interactive-tutorial/RetailEvents.Samples/PurgeUserEventSample.cs index 2bde55bbe05..ff93d317ff9 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/PurgeUserEventSample.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/PurgeUserEventSample.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -98,4 +99,4 @@ public static void PerformPurgeUserEventOperation() PurgeUserEventSample.CallPurgeUserEvents(defaultCatalog); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/RejoinUserEventSample.cs b/retail/interactive-tutorial/RetailEvents.Samples/RejoinUserEventSample.cs index 66bb0ff71ac..76e62d677ca 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/RejoinUserEventSample.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/RejoinUserEventSample.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -131,4 +132,4 @@ public static void PerformRejoinUserEventsOperation() RejoinUserEventSample.CallRejoinUserEvents(defaultCatalog); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/WriteUserEventSample.cs b/retail/interactive-tutorial/RetailEvents.Samples/WriteUserEventSample.cs index 49aa050d8ed..7231ff8d3a2 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/WriteUserEventSample.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/WriteUserEventSample.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -120,4 +121,4 @@ public static void PerformWriteUserEventsOperation() PurgeUserEventSample.CallPurgeUserEvents(defaultCatalog); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsCreateBigQueryTable.cs b/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsCreateBigQueryTable.cs index fcb18298e2e..cc23db8280d 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsCreateBigQueryTable.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsCreateBigQueryTable.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,4 +39,4 @@ public static void PerformCreationOfBigQueryTable() CreateTestResources.CreateAndPopulateBQTable(EventsDataSet, EventsTable, eventsSchemaFilePath, eventsFilePath); CreateTestResources.CreateAndPopulateBQTable(EventsDataSet, InvalidEventsTable, eventsSchemaFilePath, invalidEventsFilePath); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsCreateGcsBucket.cs b/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsCreateGcsBucket.cs index 6b62d0c6ac0..096342886b8 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsCreateGcsBucket.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsCreateGcsBucket.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -27,7 +28,7 @@ public static class EventsCreateGcsBucket private static readonly string invalidEventsFilePath = Path.Combine(CreateTestResources.GetSolutionDirectoryFullName(), $"TestResourcesSetupCleanup/resources/{InvalidEventsFileName}"); private static readonly string projectId = Environment.GetEnvironmentVariable("GOOGLE_PROJECT_ID"); private static readonly string bucketName = $"{projectId}_events_{requestTimeStamp}"; - + /// /// Create events GCS bucket with data. /// @@ -43,4 +44,4 @@ public static void PerformCreationOfEventsGcsBucket() // Upload user_events_some_invalid.json file to a bucket. CreateTestResources.UploadBlob(createdProductsBucket.Name, invalidEventsFilePath, InvalidEventsFileName); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsDeleteBigQueryTable.cs b/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsDeleteBigQueryTable.cs index 9befec9f6b4..24321b9eaf3 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsDeleteBigQueryTable.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsDeleteBigQueryTable.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,4 +25,4 @@ public static void PerformDeletionOfEventsBigQueryTable() { RemoveTestResources.DeleteBQDatasetWithData(EventsDataSet); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsDeleteGcsBucket.cs b/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsDeleteGcsBucket.cs index 170d8d9f7c5..1309a1a8734 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsDeleteGcsBucket.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/setup/EventsDeleteGcsBucket.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -26,4 +27,4 @@ public static void PerformDeletionOfEventsBucketName() RemoveTestResources.DeleteBucket(eventsBucketName); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailEvents.Samples/setup/UpdateUserEventsJson.cs b/retail/interactive-tutorial/RetailEvents.Samples/setup/UpdateUserEventsJson.cs index 74a11c548ba..f44d9180dae 100644 --- a/retail/interactive-tutorial/RetailEvents.Samples/setup/UpdateUserEventsJson.cs +++ b/retail/interactive-tutorial/RetailEvents.Samples/setup/UpdateUserEventsJson.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/AddFulfillmentPlacesTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/AddFulfillmentPlacesTest.cs index dfc96c9ae91..0cd7e77a456 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/AddFulfillmentPlacesTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/AddFulfillmentPlacesTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -28,7 +29,7 @@ public void TestAddFulfillmentPlaces() // Create product. Product createdProduct = CreateProductSample.CreateRetailProductWithFulfillment(projectId); - try + try { // Add fulfillment places to product. AddFulfillmentPlacesSample.AddFulfillment(createdProduct.Name); @@ -47,4 +48,4 @@ public void TestAddFulfillmentPlaces() } } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/CreateProductTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/CreateProductTest.cs index 862abfcd261..e38505c4d44 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/CreateProductTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/CreateProductTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,7 +15,7 @@ using Google.Cloud.Retail.V2; using System; -using Xunit; +using Xunit; namespace RetailProducts.Samples.Tests { @@ -39,4 +40,4 @@ public void TestCreateProduct() DeleteProductSample.DeleteRetailProduct(createdProduct.Name); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/CrudProductTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/CrudProductTest.cs index 5ddd5ffacfd..0ed7a9c5d4d 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/CrudProductTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/CrudProductTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -74,4 +75,4 @@ public void TestCrudProduct() } } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/DeleteProductTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/DeleteProductTest.cs index 22964e57028..d1c49f14c5e 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/DeleteProductTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/DeleteProductTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,4 +36,4 @@ public void TestDeleteProduct() Assert.Throws(() => GetProductSample.GetRetailProduct(createdProduct.Name)); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/GetProductTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/GetProductTest.cs index 7af1f335a20..e7d216c115a 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/GetProductTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/GetProductTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -43,7 +44,7 @@ public void TestGetProduct() { // Delete product. DeleteProductSample.DeleteRetailProduct(createdProduct.Name); - } + } } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsBigQueryTableTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsBigQueryTableTest.cs index f14654f9a9e..ad1613e6025 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsBigQueryTableTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsBigQueryTableTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,4 +32,4 @@ public void TestImportProductsBigQueryTable() Assert.Equal(expectedFailures, result.Metadata.FailureCount); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsGcsTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsGcsTest.cs index 342fd58b639..66d0532feaa 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsGcsTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsGcsTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,4 +32,4 @@ public void TestImportProductsGcs() Assert.Equal(expectedFailures, result.Metadata.FailureCount); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsInlineSourceTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsInlineSourceTest.cs index 49998b0df0f..d12289a7891 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsInlineSourceTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/ImportProductsInlineSourceTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,4 +31,4 @@ public void TestImportProductsInlineSource() Assert.Equal(expectedFailures, result.Metadata.FailureCount); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/RemoveFulfillmentInfoTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/RemoveFulfillmentInfoTest.cs index f9cba2584c5..3e3829c7032 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/RemoveFulfillmentInfoTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/RemoveFulfillmentInfoTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -49,4 +50,4 @@ public void TestRemoveFulfillmentPlaces() } } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/SetInventoryTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/SetInventoryTest.cs index 2b2c0432473..611f6ebdcba 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/SetInventoryTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/SetInventoryTest.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -44,9 +45,9 @@ public void TestSetInventory() } finally { - // Delete product. + // Delete product. DeleteProductSample.DeleteRetailProduct(createdProduct.Name); } } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples.Tests/UpdateProductTest.cs b/retail/interactive-tutorial/RetailProducts.Samples.Tests/UpdateProductTest.cs index 34aff37ed38..3a35bb1b4ee 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples.Tests/UpdateProductTest.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples.Tests/UpdateProductTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -46,4 +47,4 @@ public void TestUpdateProduct() } } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/AddFulfillmentPlacesSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/AddFulfillmentPlacesSample.cs index e739e9c5af7..45e2f7c78b8 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/AddFulfillmentPlacesSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/AddFulfillmentPlacesSample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -88,4 +89,4 @@ public static void PerformAddFulfillment() // Delete product. DeleteProductSample.DeleteRetailProduct(createdProduct.Name); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/CreateProductSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/CreateProductSample.cs index ed8fef5cbac..0f8850250f3 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/CreateProductSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/CreateProductSample.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -124,4 +125,4 @@ public static void PerformCreateProductOperation() // Delete created product. DeleteProductSample.DeleteRetailProduct(createdProduct.Name); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/CrudProductSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/CrudProductSample.cs index e48b954577a..0f3cefcc280 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/CrudProductSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/CrudProductSample.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/retail/interactive-tutorial/RetailProducts.Samples/DeleteProductSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/DeleteProductSample.cs index 662a51c9c26..2b6f6a21d88 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/DeleteProductSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/DeleteProductSample.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -55,7 +56,7 @@ public static void DeleteRetailProduct(string productName) Console.WriteLine($"Deleting product:"); client.DeleteProduct(deleteProductRequest); - + Console.WriteLine($"Product {productName} was deleted"); Console.WriteLine(); } @@ -77,4 +78,4 @@ public static void PerformDeleteProductOperation() // Delete created product. DeleteProductSample.DeleteRetailProduct(createdProduct.Name); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/GetProductSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/GetProductSample.cs index d756d92301f..213f0d334dc 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/GetProductSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/GetProductSample.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -84,4 +85,4 @@ public static void PerformGetProductOperation() // Delete created product. DeleteProductSample.DeleteRetailProduct(retrievedProduct.Name); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsBigQueryTableSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsBigQueryTableSample.cs index 40cac36a378..d59b74f9f93 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsBigQueryTableSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsBigQueryTableSample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -114,4 +115,4 @@ public static Operation ImportProductsFr return result; } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsGcsSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsGcsSample.cs index 228a8b32c1b..85bdcad9f76 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsGcsSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsGcsSample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -125,4 +126,4 @@ public static Operation ImportProductsFr return result; } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsInlineSourceSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsInlineSourceSample.cs index a4e2fa3b7e0..a43342bb50a 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsInlineSourceSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/ImportProductsInlineSourceSample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -202,4 +203,4 @@ public static Operation ImportProductsFr return result; } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/Program.cs b/retail/interactive-tutorial/RetailProducts.Samples/Program.cs index 2990bc35023..065883a0703 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/Program.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/Program.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/retail/interactive-tutorial/RetailProducts.Samples/RemoveFulfillmentPlacesSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/RemoveFulfillmentPlacesSample.cs index 80affaf34a4..938abc240b9 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/RemoveFulfillmentPlacesSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/RemoveFulfillmentPlacesSample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -87,4 +88,4 @@ public static void PerformAddRemoveFulfillment() // Delete product. DeleteProductSample.DeleteRetailProduct(createdProduct.Name); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/SetInventorySample.cs b/retail/interactive-tutorial/RetailProducts.Samples/SetInventorySample.cs index 3ccfce30dec..db1bb14acce 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/SetInventorySample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/SetInventorySample.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -129,4 +130,4 @@ public static void PerformSetInventoryOperation() // Delete product. DeleteProductSample.DeleteRetailProduct(createdProduct.Name); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/UpdateProductSample.cs b/retail/interactive-tutorial/RetailProducts.Samples/UpdateProductSample.cs index f56dac21741..9316a68516b 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/UpdateProductSample.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/UpdateProductSample.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -114,4 +115,4 @@ public static void PerformUpdateProductOperation() // Delete updated product. DeleteProductSample.DeleteRetailProduct(updatedProduct.Name); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsCreateBigQueryTable.cs b/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsCreateBigQueryTable.cs index 7ce7f639032..fa2c0e83d1d 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsCreateBigQueryTable.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsCreateBigQueryTable.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,4 +39,4 @@ public static void PerformCreationOfBigQueryTable() CreateTestResources.CreateAndPopulateBQTable(ProductDataSet, ProductTable, productSchemaFilePath, productFilePath); CreateTestResources.CreateAndPopulateBQTable(ProductDataSet, InvalidProductTable, productSchemaFilePath, invalidProductFilePath); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsCreateGcsBucket.cs b/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsCreateGcsBucket.cs index 2cf1fdaa934..598da1f4924 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsCreateGcsBucket.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsCreateGcsBucket.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -43,4 +44,4 @@ public static void PerformCreationOfGcsBucket() // Upload products_some_invalid.json file to a bucket. CreateTestResources.UploadBlob(createdProductsBucket.Name, invalidProductFilePath, InvalidProductFileName); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsDeleteBigQueryTable.cs b/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsDeleteBigQueryTable.cs index acaa379448b..b8887e6cee0 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsDeleteBigQueryTable.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsDeleteBigQueryTable.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,4 +25,4 @@ public static void PerformDeletionOfProductsBigQueryTable() { RemoveTestResources.DeleteBQDatasetWithData(ProductDataSet); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsDeleteGcsBucket.cs b/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsDeleteGcsBucket.cs index def2b202b14..42ebbe2f5c0 100644 --- a/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsDeleteGcsBucket.cs +++ b/retail/interactive-tutorial/RetailProducts.Samples/setup/ProductsDeleteGcsBucket.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -26,4 +27,4 @@ public static void PerformDeletionOfProductsGcsBucket() RemoveTestResources.DeleteBucket(productsBucketName); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchSimpleQueryTest.cs b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchSimpleQueryTest.cs index f099b34d302..ad2ad0d5769 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchSimpleQueryTest.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchSimpleQueryTest.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,4 +29,4 @@ public void TestSearchSimpleQuery() Assert.Contains(firstPage, result => result.Product.Title.Contains(ExpectedProductTitle)); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithBoostSpecTest.cs b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithBoostSpecTest.cs index e5b0cbdf60e..a668e99751b 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithBoostSpecTest.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithBoostSpecTest.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,4 +29,4 @@ public void TestSearchWithBoostSpec() Assert.Contains(firstPage, result => result.Product.Title.Contains(ExpectedProductTitle)); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithFacetSpecTest.cs b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithFacetSpecTest.cs index fde80479254..3f6c7ae8c65 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithFacetSpecTest.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithFacetSpecTest.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,4 +31,4 @@ public void TestSearchWithFacetSpec() Assert.Contains(firstPage, result => result.Product.Title.Contains(ExpectedProductTitle)); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithFilteringTest.cs b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithFilteringTest.cs index 09165a2d1dd..164d747c888 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithFilteringTest.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithFilteringTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -31,4 +32,4 @@ public void TestSearchWithFiltering() Assert.Contains(firstPage, result => result.Product.ColorInfo.ColorFamilies.Contains(ExpectedProductColor)); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithOrderingTest.cs b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithOrderingTest.cs index 03c9bf56460..7fb97688ef4 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithOrderingTest.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithOrderingTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -30,4 +31,4 @@ public void TestSearchWithOrdering() Assert.True(firstProduct.PriceInfo.Price >= secondProduct.PriceInfo.Price); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithPaginationTest.cs b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithPaginationTest.cs index 2831fa1b2aa..d9a4a1474dc 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithPaginationTest.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithPaginationTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithQueryExpansionTest.cs b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithQueryExpansionTest.cs index ebdcc6f83d1..52cb02d4500 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithQueryExpansionTest.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples.Tests/SearchWithQueryExpansionTest.cs @@ -1,4 +1,5 @@ -// Copyright 2021 Google Inc. All Rights Reserved. +// Copyright 2021 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,7 +24,7 @@ public class SearchWithQueryExpansionTest public void TestSearchWithQueryExpansion() { const string ExpectedProductTitle = "Google Youth Hero Tee Grey"; - + var firstPage = SearchWithQueryExpansionTutorial.Search().First(); Assert.True(firstPage.QueryExpansionInfo.ExpandedQuery); diff --git a/retail/interactive-tutorial/RetailSearch.Samples/Program.cs b/retail/interactive-tutorial/RetailSearch.Samples/Program.cs index c299c637273..49b14ac87df 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples/Program.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples/Program.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,4 +21,4 @@ static void Main(string[] args) Runner.Program.RunScript(args); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples/SearchSimpleQuerySample.cs b/retail/interactive-tutorial/RetailSearch.Samples/SearchSimpleQuerySample.cs index e434340b69e..0591f1589e7 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples/SearchSimpleQuerySample.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples/SearchSimpleQuerySample.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -66,7 +66,7 @@ public IEnumerable Search(string projectId) SearchRequest searchRequest = GetSearchRequest(query, projectId); IEnumerable searchResultPages = client.Search(searchRequest).AsRawResponses(); SearchResponse firstPage = searchResultPages.First(); - + if (firstPage.TotalSize == 0) { Console.WriteLine("The search operation returned no matching results."); @@ -105,4 +105,4 @@ public static IEnumerable Search() var sample = new SearchSimpleQuerySample(); return sample.Search(projectId); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithBoostSpecSample.cs b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithBoostSpecSample.cs index f6995b1d2d8..598b4d5d677 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithBoostSpecSample.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithBoostSpecSample.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -122,4 +122,4 @@ public static IEnumerable Search() var sample = new SearchWithBoostSpecSample(); return sample.Search(projectId); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithFacetSpecSample.cs b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithFacetSpecSample.cs index ad9705fcaba..0ffd1a3132f 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithFacetSpecSample.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithFacetSpecSample.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -133,4 +133,4 @@ public static IEnumerable Search() var sample = new SearchWithFacetSpecSample(); return sample.Search(projectId); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithFilteringSample.cs b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithFilteringSample.cs index 190bca6b1fa..68b2585dd13 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithFilteringSample.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithFilteringSample.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -109,4 +109,4 @@ public static IEnumerable Search() var sample = new SearchWithFilteringSample(); return sample.Search(projectId); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithOrderingSample.cs b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithOrderingSample.cs index a52c99b67b7..f73411fbe03 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithOrderingSample.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithOrderingSample.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -108,4 +108,4 @@ public static IEnumerable Search() var sample = new SearchWithOrderingSample(); return sample.Search(projectId); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithPaginationSample.cs b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithPaginationSample.cs index b535a559950..f4a18f47c6f 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithPaginationSample.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithPaginationSample.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -117,4 +117,4 @@ public static IEnumerable Search() var sample = new SearchWithPaginationSample(); return sample.Search(projectId); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithQueryExpansionSample.cs b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithQueryExpansionSample.cs index 21b2c170f1d..fd28608acfa 100644 --- a/retail/interactive-tutorial/RetailSearch.Samples/SearchWithQueryExpansionSample.cs +++ b/retail/interactive-tutorial/RetailSearch.Samples/SearchWithQueryExpansionSample.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,7 +23,7 @@ /// /// Search with query expansion sample class. /// -public class SearchWithQueryExpansionSample +public class SearchWithQueryExpansionSample { /// /// Get search request. @@ -33,7 +33,7 @@ public class SearchWithQueryExpansionSample /// The current project id. /// The search request. private static SearchRequest GetSearchRequest(string query, SearchRequest.Types.QueryExpansionSpec.Types.Condition condition, string projectId) - { + { string defaultSearchPlacement = $"projects/{projectId}/locations/global/catalogs/default_catalog/placements/default_search"; var searchRequest = new SearchRequest() @@ -109,4 +109,4 @@ public static IEnumerable Search() var sample = new SearchWithQueryExpansionSample(); return sample.Search(projectId); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/Runner/Attributes/ExampleAttribute.cs b/retail/interactive-tutorial/Runner/Attributes/ExampleAttribute.cs index 31edcbd7cd0..cb543cdeca8 100644 --- a/retail/interactive-tutorial/Runner/Attributes/ExampleAttribute.cs +++ b/retail/interactive-tutorial/Runner/Attributes/ExampleAttribute.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,4 +37,4 @@ public string Name get; } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/Runner/Attributes/ExampleAttributeHelper.cs b/retail/interactive-tutorial/Runner/Attributes/ExampleAttributeHelper.cs index c00cb0d705b..9136da5d2fd 100644 --- a/retail/interactive-tutorial/Runner/Attributes/ExampleAttributeHelper.cs +++ b/retail/interactive-tutorial/Runner/Attributes/ExampleAttributeHelper.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -53,4 +53,4 @@ public static void ExecuteExampleMethod(MethodInfo method) method.Invoke(null, null); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/Runner/Program.cs b/retail/interactive-tutorial/Runner/Program.cs index 526fcf3e1ac..caa5bbceb01 100644 --- a/retail/interactive-tutorial/Runner/Program.cs +++ b/retail/interactive-tutorial/Runner/Program.cs @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC. All Rights Reserved. +// Copyright 2022 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/retail/interactive-tutorial/TestResourcesSetupCleanup/CreateTestResources.cs b/retail/interactive-tutorial/TestResourcesSetupCleanup/CreateTestResources.cs index a21eafa91f9..4b647e1982d 100644 --- a/retail/interactive-tutorial/TestResourcesSetupCleanup/CreateTestResources.cs +++ b/retail/interactive-tutorial/TestResourcesSetupCleanup/CreateTestResources.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -352,4 +353,4 @@ public static void PerformCreationOfTestResources() CreateTestResources.CreateAndPopulateBQTable(EventsDataSet, EventsTable, eventsSchemaFilePath, eventsFilePath); CreateTestResources.CreateAndPopulateBQTable(EventsDataSet, InvalidEventsTable, eventsSchemaFilePath, invalidEventsFilePath); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/TestResourcesSetupCleanup/Program.cs b/retail/interactive-tutorial/TestResourcesSetupCleanup/Program.cs index 089fa715813..734e15f7b55 100644 --- a/retail/interactive-tutorial/TestResourcesSetupCleanup/Program.cs +++ b/retail/interactive-tutorial/TestResourcesSetupCleanup/Program.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -23,4 +24,4 @@ static void Main(string[] args) Runner.Program.RunScript(args); } } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/TestResourcesSetupCleanup/RemoveTestResources.cs b/retail/interactive-tutorial/TestResourcesSetupCleanup/RemoveTestResources.cs index ed732af111b..35553e6e921 100644 --- a/retail/interactive-tutorial/TestResourcesSetupCleanup/RemoveTestResources.cs +++ b/retail/interactive-tutorial/TestResourcesSetupCleanup/RemoveTestResources.cs @@ -1,4 +1,5 @@ -// Copyright 2022 Google Inc. All Rights Reserved. +// Copyright 2022 Google Inc. + // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -137,4 +138,4 @@ public static void PerformDeletionOfTestResources() // Delete all products from the Retail catalog RemoveTestResources.DeleteAllProducts(); } -} \ No newline at end of file +} diff --git a/retail/interactive-tutorial/user_environment_setup.sh b/retail/interactive-tutorial/user_environment_setup.sh index 535bb3907e3..a520504ec91 100644 --- a/retail/interactive-tutorial/user_environment_setup.sh +++ b/retail/interactive-tutorial/user_environment_setup.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2022 Google Inc. All Rights Reserved. +# Copyright 2022 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -36,7 +36,7 @@ echo $email # Check if user has service account active if [ -z "$email" ] then - # Create a new service account + # Create a new service account timestamp=$(date +%s) service_account_id="service-acc-$timestamp" echo "Service Account: $service_account_id" @@ -69,7 +69,7 @@ then gcloud projects add-iam-policy-binding "$project_id" --member="serviceAccount:$service_account_id@$project_id.iam.gserviceaccount.com" --role=roles/"${role}" done echo "Wait ~60 seconds to be sure the appropriate roles have been assigned to your service account" - sleep 60 + sleep 60 fi # Upload your service account key file. @@ -93,4 +93,4 @@ done echo "=========================================" echo "The Google Cloud setup is completed." echo "Please proceed with the Tutorial steps" -echo "=========================================" \ No newline at end of file +echo "=========================================" diff --git a/retail/interactive-tutorial/user_import_data_to_catalog.sh b/retail/interactive-tutorial/user_import_data_to_catalog.sh index 2cd90415f78..4fe8314caf1 100644 --- a/retail/interactive-tutorial/user_import_data_to_catalog.sh +++ b/retail/interactive-tutorial/user_import_data_to_catalog.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2022 Google Inc. All Rights Reserved. +# Copyright 2022 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -39,4 +39,4 @@ dotnet run -- ImportProductsGcsTutorial echo "=====================================" echo "Your Retail catalog is ready to use!" -echo "=====================================" \ No newline at end of file +echo "====================================="