Class GrpcTransportOptions (2.40.0)

public class GrpcTransportOptions implements TransportOptions

Class representing service options for those services that use gRPC as the transport layer.

Inheritance

Object > GrpcTransportOptions

Implements

TransportOptions

Static Methods

newBuilder()

public static GrpcTransportOptions.Builder newBuilder()
Returns
Type Description
GrpcTransportOptions.Builder

setUpChannelProvider(InstantiatingGrpcChannelProvider.Builder providerBuilder, ServiceOptions<?,?> serviceOptions)

public static TransportChannelProvider setUpChannelProvider(InstantiatingGrpcChannelProvider.Builder providerBuilder, ServiceOptions<?,?> serviceOptions)

Returns a channel provider from the given default provider.

Parameters
Name Description
providerBuilder Builder
serviceOptions ServiceOptions<?,?>
Returns
Type Description
TransportChannelProvider

setUpCredentialsProvider(ServiceOptions<?,?> serviceOptions)

public static CredentialsProvider setUpCredentialsProvider(ServiceOptions<?,?> serviceOptions)
Parameter
Name Description
serviceOptions ServiceOptions<?,?>
Returns
Type Description
CredentialsProvider

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApiCallSettings(RetrySettings retrySettings) (deprecated)

public UnaryCallSettings.Builder getApiCallSettings(RetrySettings retrySettings)

Returns a builder for API call settings.

Parameter
Name Description
retrySettings RetrySettings
Returns
Type Description
Builder

getExecutorFactory()

public GrpcTransportOptions.ExecutorFactory<ScheduledExecutorService> getExecutorFactory()

Returns a scheduled executor service provider.

Returns
Type Description
ExecutorFactory<ScheduledExecutorService>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toBuilder()

public GrpcTransportOptions.Builder toBuilder()
Returns
Type Description
GrpcTransportOptions.Builder