# Namespace Google.Api.Gax.Grpc (4.10.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [4.10.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc)
- [4.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.8.0/Google.Api.Gax.Grpc)
- [4.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.4.0/Google.Api.Gax.Grpc)
- [4.3.1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.3.1/Google.Api.Gax.Grpc)
- [4.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.2.0/Google.Api.Gax.Grpc)
- [4.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/4.0.0/Google.Api.Gax.Grpc)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/3.2.0/Google.Api.Gax.Grpc)

## Classes

### [ApiBidirectionalStreamingCall\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ApiBidirectionalStreamingCall-2)

Bridge between a duplex streaming RPC method and higher level
abstractions, applying call settings as required.

### [ApiCall\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ApiCall-2)

Bridge between an RPC method (with synchronous and asynchronous variants) and higher level
abstractions, applying call settings as required.

### [ApiClientStreamingCall\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ApiClientStreamingCall-2)

Bridge between a client streaming RPC method and higher level
abstractions, applying call settings as required.

### [ApiMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ApiMetadata)

Provides metadata about an API. This is expected to be constructed with a single instance
per API; equality is by simple identity.

### [ApiServerStreamingCall\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ApiServerStreamingCall-2)

Bridge between a server streaming RPC method and higher level
abstractions, applying call settings as required.

### [AsyncResponseStream\<TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.AsyncResponseStream-1)

An adapter from the gRPC stream representation ([IAsyncStreamReader\<T\>](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/IAsyncStreamReader.cs)) to [IAsyncEnumerable\<T\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.iasyncenumerable-1)
and [IAsyncEnumerator\<T\>](https://learn.microsoft.com/dotnet/api/system.collections.generic.iasyncenumerator-1). Note that [GetAsyncEnumerator(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.AsyncResponseStream-1#Google_Api_Gax_Grpc_AsyncResponseStream_1_GetAsyncEnumerator_System_Threading_CancellationToken_) can only
be called once per instance due to the "only iterate once" nature of the response stream.

### [BidirectionalStreamingBase\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingBase-2)

Base class for bidirectional streaming RPC methods. This wraps an underlying call returned by gRPC,
in order to provide a wrapper for the async response stream, allowing users to take advantage
of

    await foreach

support from C# 8 onwards. Additionally, it wraps the request stream in a buffer, allowing multiple requests to be written without waiting for them to be transmitted.

<br />

### [BidirectionalStreamingSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BidirectionalStreamingSettings)

Settings for bidirectional streaming.

### [BufferedClientStreamWriter\<T\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.BufferedClientStreamWriter-1)

A wrapper around [IClientStreamWriter\<T\>](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/IClientStreamWriter.cs) which removes the "one write at a time"
restriction by buffering messages (and the completion signal) up to a given capacity.

### [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings)

Settings to determine how an RPC operates. This type is immutable.

### [CallSettingsExtensions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettingsExtensions)

Extension methods for [CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings).
All methods accept a null first parameter as valid unless stated otherwise.

### [ChannelBaseExtensions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ChannelBaseExtensions)

Extension methods for [ChannelBase](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/ChannelBase.cs).

### [ChannelPool](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ChannelPool)

A pool of channels for the same service, but with potentially different endpoints. Each endpoint
has a single channel. All channels created by this pool use default application credentials.
This class is thread-safe.

### [ClientBuilderBase\<TClient\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientBuilderBase-1)

Base class for API-specific builders.

### [ClientHelper](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientHelper)

Common helper code shared by clients. This class is primarily expected to be used from generated code.

### [ClientHelper.Options](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientHelper.Options)

The options used to construct a [ClientHelper](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientHelper).

### [ClientStreamingBase\<TRequest, TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientStreamingBase-2)

Base class for the client-side streaming RPC methods. This wraps the
request stream in a buffer, allowing multiple requests to be written without waiting for them
to be transmitted.

### [ClientStreamingSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ClientStreamingSettings)

Settings for client streaming.

### [ForwardingCallInvoker\<TSourceRequest\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ForwardingCallInvoker-1)

Non-generic static class just for generic type inference, to make it easier to construct instances
of [ForwardingCallInvoker\<TSourceRequest, TSourceResponse, TTargetRequest, TTargetResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ForwardingCallInvoker-4).

### [GrpcAdapter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcAdapter)

Interoperability layer for different gRPC transports. Concrete subclasses are
[GrpcCoreAdapter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcCoreAdapter), [GrpcNetClientAdapter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcNetClientAdapter) and [RestGrpcAdapter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.Rest.RestGrpcAdapter).

### [GrpcChannelOptions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcChannelOptions)

Portable abstraction of channel options

### [GrpcChannelOptions.CustomOption](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcChannelOptions.CustomOption)

A custom option, with a name and a value of either a 32-bit integer or a string.

### [GrpcCoreAdapter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcCoreAdapter)

Implementation of [GrpcAdapter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcAdapter) for Grpc.Core.

### [GrpcNetClientAdapter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcNetClientAdapter)

Implementation of [GrpcAdapter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcAdapter) for Grpc.Net.Client.

### [GrpcPagedAsyncEnumerable\<TRequest, TResponse, TResource\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcPagedAsyncEnumerable-3)

An asynchronous sequence of resources, obtained lazily via API operations which retrieve a page at a time.

### [GrpcPagedEnumerable\<TRequest, TResponse, TResource\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcPagedEnumerable-3)

A sequence of resources, obtained lazily via API operations which retrieve a page at a time.

### [MonitoredResourceBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.MonitoredResourceBuilder)

Helper methods to build a Google.Api.MonitoredResource instance.
See the [Monitored Resource List](https://cloud.google.com/logging/docs/api/v2/resource-list) for details.

### [RetryAttempt](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetryAttempt)

An attempt at a retriable operation. Use [CreateRetrySequence(RetrySettings, IScheduler, DateTime?, IClock, TimeSpan?)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetryAttempt#Google_Api_Gax_Grpc_RetryAttempt_CreateRetrySequence_Google_Api_Gax_Grpc_RetrySettings_Google_Api_Gax_IScheduler_System_Nullable_System_DateTime__Google_Api_Gax_IClock_System_Nullable_System_TimeSpan__)
or [CreateRetrySequence(RetrySettings, IScheduler, TimeSpan?)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetryAttempt#Google_Api_Gax_Grpc_RetryAttempt_CreateRetrySequence_Google_Api_Gax_Grpc_RetrySettings_Google_Api_Gax_IScheduler_System_Nullable_System_TimeSpan__) to create a sequence of attempts that follow the specified settings.

### [RetrySettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetrySettings)

Settings for retrying RPCs.

### [RoutingHeaderExtractor\<TRequest\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RoutingHeaderExtractor-1)

Collects the explicit routing header extraction instructions and
extracts the routing header value from a specific request
using these instructions.
This class is immutable.

### [RpcExceptionExtensions](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RpcExceptionExtensions)

Utility extension methods to make it easier to retrieve extended error information from an [RpcException](https://github.com/grpc/grpc-dotnet/blob/7c43ddb5d68008782dc0dba2d0feaa3ed91a9fb2/src/Grpc.Core.Api/RpcException.cs).

### [ServerStreamingBase\<TResponse\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServerStreamingBase-1)

Base class for server streaming RPC methods. This wraps an underlying call returned by gRPC,
in order to provide a wrapper for the async response stream, allowing users to take advantage
of

    await foreach

support from C# 8 onwards.

<br />

### [ServiceMetadata](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata)

Provides metadata about a single service within an API.
Often most of these aspects will be the same across multiple services,
but they can be specified with different values in the original proto, so
they are specified individually here. This class is expected to be constructed
with a single instance per service; equality is by simple identity.

### [ServiceSettingsBase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase)

Common settings for all services.

## Interfaces

### [IPageRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest)

A request for a page-streaming operation.

### [IPageResponse\<TResource\>](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageResponse-1)

A response in a page-streaming operation.

### [RetrySettings.IJitter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetrySettings.IJitter)

Provides a mechanism for applying jitter to delays between retries.
See the [BackoffJitter](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.RetrySettings#Google_Api_Gax_Grpc_RetrySettings_BackoffJitter) property for more information.

## Enums

### [GrpcChannelOptions.CustomOption.OptionType](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.GrpcChannelOptions.CustomOption.OptionType)

Possible types of value within a custom option.