-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Manual changes for migrating Debugger.V2 to the micro generator
- Loading branch information
Showing
6 changed files
with
151 additions
and
2,673 deletions.
There are no files selected for viewing
1,202 changes: 0 additions & 1,202 deletions
1,202
apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Controller2Client.cs
This file was deleted.
Oops, something went wrong.
63 changes: 63 additions & 0 deletions
63
apis/Google.Cloud.Debugger.V2/Google.Cloud.Debugger.V2/Controller2Settings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright 2019 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. | ||
|
||
using System; | ||
using gaxgrpc = Google.Api.Gax.Grpc; | ||
using grpccore = Grpc.Core; | ||
using sys = System; | ||
|
||
namespace Google.Cloud.Debugger.V2 | ||
{ | ||
// This is a partial class introduced for backward compatibility with earlier versions. | ||
public partial class Controller2Settings | ||
{ | ||
/// <summary> | ||
/// In previous releases, this property returned a filter used by default for "Idempotent" RPC methods. | ||
/// It is now unused, and may not represent the current default behavior. | ||
/// </summary> | ||
[Obsolete("This member is no longer called by other code in this library. Please use the individual CallSettings properties.")] | ||
public static sys::Predicate<grpccore::RpcException> IdempotentRetryFilter { get; } = | ||
gaxgrpc::RetrySettings.FilterForStatusCodes(grpccore::StatusCode.DeadlineExceeded, grpccore::StatusCode.Unavailable); | ||
|
||
/// <summary> | ||
/// In previous releases, this property returned a filter used by default for "NonIdempotent" RPC methods. | ||
/// It is now unused, and may not represent the current default behavior. | ||
/// </summary> | ||
[Obsolete("This member is no longer called by other code in this library. Please use the individual CallSettings properties.")] | ||
public static sys::Predicate<grpccore::RpcException> NonIdempotentRetryFilter { get; } = | ||
gaxgrpc::RetrySettings.FilterForStatusCodes(); | ||
|
||
/// <summary> | ||
/// In previous releases, this method returned the backoff used by default for "Idempotent" RPC methods. | ||
/// It is now unused, and may not represent the current default behavior. | ||
/// </summary> | ||
[Obsolete("This member is no longer called by other code in this library. Please use the individual CallSettings properties.")] | ||
public static gaxgrpc::BackoffSettings GetDefaultRetryBackoff() => new gaxgrpc::BackoffSettings( | ||
delay: sys::TimeSpan.FromMilliseconds(100), | ||
maxDelay: sys::TimeSpan.FromMilliseconds(60000), | ||
delayMultiplier: 1.3 | ||
); | ||
|
||
/// <summary> | ||
/// In previous releases, this method returned the backoff used by default for "NonIdempotent" RPC methods. | ||
/// It is now unused, and may not represent the current default behavior. | ||
/// </summary> | ||
[Obsolete("This member is no longer called by other code in this library. Please use the individual CallSettings properties.")] | ||
public static gaxgrpc::BackoffSettings GetDefaultTimeoutBackoff() => new gaxgrpc::BackoffSettings( | ||
delay: sys::TimeSpan.FromMilliseconds(20000), | ||
maxDelay: sys::TimeSpan.FromMilliseconds(20000), | ||
delayMultiplier: 1.0 | ||
); | ||
} | ||
} |
Oops, something went wrong.