/// <summary>
 /// </summary>
 /// <param name="while">
 /// </param>
 /// <param name="enum">
 /// </param>
 /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <Response> Method2Async(ResourceName @while, Enum @enum, st::CancellationToken cancellationToken) =>
 Method2Async(@while, @enum, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));
 /// <summary>
 /// </summary>
 /// <param name="while">
 /// </param>
 /// <param name="enum">
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The RPC response.</returns>
 public virtual Response Method2(ResourceName @while, Enum @enum, gaxgrpc::CallSettings callSettings = null) =>
 Method2(new Resource
 {
     WhileAsResourceName = @while,
     Enum = @enum,
 }, callSettings);
 /// <summary>
 /// </summary>
 /// <param name="while">
 /// </param>
 /// <param name="enum">
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <Response> Method2Async(ResourceName @while, Enum @enum, gaxgrpc::CallSettings callSettings = null) =>
 Method2Async(new Resource
 {
     WhileAsResourceName = @while,
     Enum = @enum,
 }, callSettings);
 /// <summary>
 /// </summary>
 /// <param name="event">
 /// </param>
 /// <param name="switch">
 /// </param>
 /// <param name="void">
 /// </param>
 /// <param name="request">
 /// </param>
 /// <param name="types">
 /// </param>
 /// <param name="cancellationToken">A <see cref="st::CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual stt::Task <Response> Method1Async(ResourceName @event, int @switch, Enum @void, string request, string types, st::CancellationToken cancellationToken) =>
 Method1Async(@event, @switch, @void, request, types, gaxgrpc::CallSettings.FromCancellationToken(cancellationToken));