Skip to content

Commit

Permalink
chore(oss): correct apache license headers
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt authored and amanda-tarafa committed Oct 3, 2024
1 parent 8570d7e commit b409327
Show file tree
Hide file tree
Showing 69 changed files with 190 additions and 143 deletions.
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -30,4 +31,4 @@ public void TestImportUserEventsBigQueryTable()
Assert.Equal(expectedFailures, result.Metadata.FailureCount);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -31,4 +32,4 @@ public void TestImportUserEventsGcs()
Assert.Equal(expectedFailures, result.Metadata.FailureCount);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -30,4 +31,4 @@ public void TestImportUserEventsInlineSource()
Assert.Equal(expectedFailures, result.Metadata.FailureCount);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -35,4 +35,4 @@ public void TestPurgeUserEvent()
Assert.StartsWith(expectedPurgeResponseName, purgeResponse.Name);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -35,4 +35,4 @@ public void TestRejoinUserEvent()
Assert.StartsWith(expectedRejoinResponseName, rejoinResponse.Name);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -39,4 +39,4 @@ public void TestWriteUserEvent()
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -111,4 +112,4 @@ public static Operation<ImportUserEventsResponse, ImportMetadata> ImportProducts

return result;
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -119,4 +120,4 @@ public static Operation<ImportUserEventsResponse, ImportMetadata> ImportUserEven

return result;
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -136,4 +137,4 @@ public static Operation<ImportUserEventsResponse, ImportMetadata> ImportUserEven

return result;
}
}
}
4 changes: 2 additions & 2 deletions retail/interactive-tutorial/RetailEvents.Samples/Program.cs
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -21,4 +21,4 @@ static void Main(string[] args)
Runner.Program.RunScript(args);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -98,4 +99,4 @@ public static void PerformPurgeUserEventOperation()

PurgeUserEventSample.CallPurgeUserEvents(defaultCatalog);
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -131,4 +132,4 @@ public static void PerformRejoinUserEventsOperation()

RejoinUserEventSample.CallRejoinUserEvents(defaultCatalog);
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -120,4 +121,4 @@ public static void PerformWriteUserEventsOperation()

PurgeUserEventSample.CallPurgeUserEvents(defaultCatalog);
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -38,4 +39,4 @@ public static void PerformCreationOfBigQueryTable()
CreateTestResources.CreateAndPopulateBQTable(EventsDataSet, EventsTable, eventsSchemaFilePath, eventsFilePath);
CreateTestResources.CreateAndPopulateBQTable(EventsDataSet, InvalidEventsTable, eventsSchemaFilePath, invalidEventsFilePath);
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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}";

/// <summary>
/// Create events GCS bucket with data.
/// </summary>
Expand All @@ -43,4 +44,4 @@ public static void PerformCreationOfEventsGcsBucket()
// Upload user_events_some_invalid.json file to a bucket.
CreateTestResources.UploadBlob(createdProductsBucket.Name, invalidEventsFilePath, InvalidEventsFileName);
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -24,4 +25,4 @@ public static void PerformDeletionOfEventsBigQueryTable()
{
RemoveTestResources.DeleteBQDatasetWithData(EventsDataSet);
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -26,4 +27,4 @@ public static void PerformDeletionOfEventsBucketName()

RemoveTestResources.DeleteBucket(eventsBucketName);
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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);
Expand All @@ -47,4 +48,4 @@ public void TestAddFulfillmentPlaces()
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -14,7 +15,7 @@

using Google.Cloud.Retail.V2;
using System;
using Xunit;
using Xunit;

namespace RetailProducts.Samples.Tests
{
Expand All @@ -39,4 +40,4 @@ public void TestCreateProduct()
DeleteProductSample.DeleteRetailProduct(createdProduct.Name);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -74,4 +75,4 @@ public void TestCrudProduct()
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -35,4 +36,4 @@ public void TestDeleteProduct()
Assert.Throws<Grpc.Core.RpcException>(() => GetProductSample.GetRetailProduct(createdProduct.Name));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -43,7 +44,7 @@ public void TestGetProduct()
{
// Delete product.
DeleteProductSample.DeleteRetailProduct(createdProduct.Name);
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -31,4 +32,4 @@ public void TestImportProductsBigQueryTable()
Assert.Equal(expectedFailures, result.Metadata.FailureCount);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -31,4 +32,4 @@ public void TestImportProductsGcs()
Assert.Equal(expectedFailures, result.Metadata.FailureCount);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -30,4 +31,4 @@ public void TestImportProductsInlineSource()
Assert.Equal(expectedFailures, result.Metadata.FailureCount);
}
}
}
}
Loading

0 comments on commit b409327

Please sign in to comment.