Skip to content

Commit

Permalink
Add gRPC compatibility constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jskeet committed Sep 28, 2020
1 parent cbec518 commit 0790924
Show file tree
Hide file tree
Showing 46 changed files with 1,857 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.Asset.V1
{
public partial class AssetService
{
public partial class AssetServiceClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public AssetServiceClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.AutoML.V1
{
public partial class AutoMl
{
public partial class AutoMlClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public AutoMlClient(Channel channel) : base(channel)
{
}
}
}

public partial class PredictionService
{
public partial class PredictionServiceClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public PredictionServiceClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.BigQuery.Connection.V1
{
public partial class ConnectionService
{
public partial class ConnectionServiceClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public ConnectionServiceClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.BigQuery.Reservation.V1
{
public partial class ReservationService
{
public partial class ReservationServiceClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public ReservationServiceClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.BigQuery.Storage.V1
{
public partial class BigQueryRead
{
public partial class BigQueryReadClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public BigQueryReadClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.Bigtable.Admin.V2
{
public partial class BigtableInstanceAdmin
{
public partial class BigtableInstanceAdminClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public BigtableInstanceAdminClient(Channel channel) : base(channel)
{
}
}
}

public partial class BigtableTableAdmin
{
public partial class BigtableTableAdminClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public BigtableTableAdminClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.Bigtable.V2
{
public partial class Bigtable
{
public partial class BigtableClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public BigtableClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.Billing.V1
{
public partial class CloudBilling
{
public partial class CloudBillingClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public CloudBillingClient(Channel channel) : base(channel)
{
}
}
}

public partial class CloudCatalog
{
public partial class CloudCatalogClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public CloudCatalogClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.Container.V1
{
public partial class ClusterManager
{
public partial class ClusterManagerClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public ClusterManagerClient(Channel channel) : base(channel)
{
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

// Partial class constructors to preserve compatibility when migrating
// from gRPC 1.x to 2.x tooling.

using Grpc.Core;
using System;

namespace Google.Cloud.DataCatalog.V1
{
public partial class DataCatalog
{
public partial class DataCatalogClient
{
/// <summary>Creates a new client using a channel.</summary>
/// <param name="channel">The channel to use to make remote calls.</param>
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public DataCatalogClient(Channel channel) : base(channel)
{
}
}
}
}
Loading

0 comments on commit 0790924

Please sign in to comment.