Skip to content

Commit 0790924

Browse files
committed
Add gRPC compatibility constructors
1 parent cbec518 commit 0790924

File tree

46 files changed

+1857
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1857
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.Asset.V1
22+
{
23+
public partial class AssetService
24+
{
25+
public partial class AssetServiceClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public AssetServiceClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.AutoML.V1
22+
{
23+
public partial class AutoMl
24+
{
25+
public partial class AutoMlClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public AutoMlClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
36+
public partial class PredictionService
37+
{
38+
public partial class PredictionServiceClient
39+
{
40+
/// <summary>Creates a new client using a channel.</summary>
41+
/// <param name="channel">The channel to use to make remote calls.</param>
42+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
43+
public PredictionServiceClient(Channel channel) : base(channel)
44+
{
45+
}
46+
}
47+
}
48+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.BigQuery.Connection.V1
22+
{
23+
public partial class ConnectionService
24+
{
25+
public partial class ConnectionServiceClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public ConnectionServiceClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.BigQuery.Reservation.V1
22+
{
23+
public partial class ReservationService
24+
{
25+
public partial class ReservationServiceClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public ReservationServiceClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.BigQuery.Storage.V1
22+
{
23+
public partial class BigQueryRead
24+
{
25+
public partial class BigQueryReadClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public BigQueryReadClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.Bigtable.Admin.V2
22+
{
23+
public partial class BigtableInstanceAdmin
24+
{
25+
public partial class BigtableInstanceAdminClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public BigtableInstanceAdminClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
36+
public partial class BigtableTableAdmin
37+
{
38+
public partial class BigtableTableAdminClient
39+
{
40+
/// <summary>Creates a new client using a channel.</summary>
41+
/// <param name="channel">The channel to use to make remote calls.</param>
42+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
43+
public BigtableTableAdminClient(Channel channel) : base(channel)
44+
{
45+
}
46+
}
47+
}
48+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.Bigtable.V2
22+
{
23+
public partial class Bigtable
24+
{
25+
public partial class BigtableClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public BigtableClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.Billing.V1
22+
{
23+
public partial class CloudBilling
24+
{
25+
public partial class CloudBillingClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public CloudBillingClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
36+
public partial class CloudCatalog
37+
{
38+
public partial class CloudCatalogClient
39+
{
40+
/// <summary>Creates a new client using a channel.</summary>
41+
/// <param name="channel">The channel to use to make remote calls.</param>
42+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
43+
public CloudCatalogClient(Channel channel) : base(channel)
44+
{
45+
}
46+
}
47+
}
48+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.Container.V1
22+
{
23+
public partial class ClusterManager
24+
{
25+
public partial class ClusterManagerClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public ClusterManagerClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// Copyright 2020 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// https://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// Partial class constructors to preserve compatibility when migrating
16+
// from gRPC 1.x to 2.x tooling.
17+
18+
using Grpc.Core;
19+
using System;
20+
21+
namespace Google.Cloud.DataCatalog.V1
22+
{
23+
public partial class DataCatalog
24+
{
25+
public partial class DataCatalogClient
26+
{
27+
/// <summary>Creates a new client using a channel.</summary>
28+
/// <param name="channel">The channel to use to make remote calls.</param>
29+
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
30+
public DataCatalogClient(Channel channel) : base(channel)
31+
{
32+
}
33+
}
34+
}
35+
}

0 commit comments

Comments
 (0)