Class HubServiceSettings (1.2.1)

public class HubServiceSettings extends ClientSettings<HubServiceSettings>

Settings class to configure an instance of HubServiceClient.

The default instance has everything set to sensible defaults:

  • The default service address (networkconnectivity.googleapis.com) and default port (443) are used.
  • Credentials are acquired automatically through Application Default Credentials.
  • Retries are configured for idempotent methods but not for non-idempotent methods.

The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.

For example, to set the total timeout of getHub to 30 seconds:


 // This snippet has been automatically generated for illustrative purposes only.
 // It may require modifications to work in your environment.
 HubServiceSettings.Builder hubServiceSettingsBuilder = HubServiceSettings.newBuilder();
 hubServiceSettingsBuilder
     .getHubSettings()
     .setRetrySettings(
         hubServiceSettingsBuilder
             .getHubSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 HubServiceSettings hubServiceSettings = hubServiceSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > HubServiceSettings

Static Methods

create(HubServiceStubSettings stub)

public static final HubServiceSettings create(HubServiceStubSettings stub)
Parameter
NameDescription
stubHubServiceStubSettings
Returns
TypeDescription
HubServiceSettings
Exceptions
TypeDescription
IOException

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static HubServiceSettings.Builder newBuilder()

Returns a new builder for this class.

Returns
TypeDescription
HubServiceSettings.Builder

newBuilder(ClientContext clientContext)

public static HubServiceSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
HubServiceSettings.Builder

Constructors

HubServiceSettings(HubServiceSettings.Builder settingsBuilder)

protected HubServiceSettings(HubServiceSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderHubServiceSettings.Builder

Methods

createHubOperationSettings()

public OperationCallSettings<CreateHubRequest,Hub,OperationMetadata> createHubOperationSettings()

Returns the object with the settings used for calls to createHub.

Returns
TypeDescription
OperationCallSettings<CreateHubRequest,Hub,OperationMetadata>

createHubSettings()

public UnaryCallSettings<CreateHubRequest,Operation> createHubSettings()

Returns the object with the settings used for calls to createHub.

Returns
TypeDescription
UnaryCallSettings<CreateHubRequest,Operation>

createSpokeOperationSettings()

public OperationCallSettings<CreateSpokeRequest,Spoke,OperationMetadata> createSpokeOperationSettings()

Returns the object with the settings used for calls to createSpoke.

Returns
TypeDescription
OperationCallSettings<CreateSpokeRequest,Spoke,OperationMetadata>

createSpokeSettings()

public UnaryCallSettings<CreateSpokeRequest,Operation> createSpokeSettings()

Returns the object with the settings used for calls to createSpoke.

Returns
TypeDescription
UnaryCallSettings<CreateSpokeRequest,Operation>

deleteHubOperationSettings()

public OperationCallSettings<DeleteHubRequest,Empty,OperationMetadata> deleteHubOperationSettings()

Returns the object with the settings used for calls to deleteHub.

Returns
TypeDescription
OperationCallSettings<DeleteHubRequest,Empty,OperationMetadata>

deleteHubSettings()

public UnaryCallSettings<DeleteHubRequest,Operation> deleteHubSettings()

Returns the object with the settings used for calls to deleteHub.

Returns
TypeDescription
UnaryCallSettings<DeleteHubRequest,Operation>

deleteSpokeOperationSettings()

public OperationCallSettings<DeleteSpokeRequest,Empty,OperationMetadata> deleteSpokeOperationSettings()

Returns the object with the settings used for calls to deleteSpoke.

Returns
TypeDescription
OperationCallSettings<DeleteSpokeRequest,Empty,OperationMetadata>

deleteSpokeSettings()

public UnaryCallSettings<DeleteSpokeRequest,Operation> deleteSpokeSettings()

Returns the object with the settings used for calls to deleteSpoke.

Returns
TypeDescription
UnaryCallSettings<DeleteSpokeRequest,Operation>

getHubSettings()

public UnaryCallSettings<GetHubRequest,Hub> getHubSettings()

Returns the object with the settings used for calls to getHub.

Returns
TypeDescription
UnaryCallSettings<GetHubRequest,Hub>

getSpokeSettings()

public UnaryCallSettings<GetSpokeRequest,Spoke> getSpokeSettings()

Returns the object with the settings used for calls to getSpoke.

Returns
TypeDescription
UnaryCallSettings<GetSpokeRequest,Spoke>

listHubsSettings()

public PagedCallSettings<ListHubsRequest,ListHubsResponse,HubServiceClient.ListHubsPagedResponse> listHubsSettings()

Returns the object with the settings used for calls to listHubs.

Returns
TypeDescription
PagedCallSettings<ListHubsRequest,ListHubsResponse,ListHubsPagedResponse>

listSpokesSettings()

public PagedCallSettings<ListSpokesRequest,ListSpokesResponse,HubServiceClient.ListSpokesPagedResponse> listSpokesSettings()

Returns the object with the settings used for calls to listSpokes.

Returns
TypeDescription
PagedCallSettings<ListSpokesRequest,ListSpokesResponse,ListSpokesPagedResponse>

toBuilder()

public HubServiceSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns
TypeDescription
HubServiceSettings.Builder
Overrides

updateHubOperationSettings()

public OperationCallSettings<UpdateHubRequest,Hub,OperationMetadata> updateHubOperationSettings()

Returns the object with the settings used for calls to updateHub.

Returns
TypeDescription
OperationCallSettings<UpdateHubRequest,Hub,OperationMetadata>

updateHubSettings()

public UnaryCallSettings<UpdateHubRequest,Operation> updateHubSettings()

Returns the object with the settings used for calls to updateHub.

Returns
TypeDescription
UnaryCallSettings<UpdateHubRequest,Operation>

updateSpokeOperationSettings()

public OperationCallSettings<UpdateSpokeRequest,Spoke,OperationMetadata> updateSpokeOperationSettings()

Returns the object with the settings used for calls to updateSpoke.

Returns
TypeDescription
OperationCallSettings<UpdateSpokeRequest,Spoke,OperationMetadata>

updateSpokeSettings()

public UnaryCallSettings<UpdateSpokeRequest,Operation> updateSpokeSettings()

Returns the object with the settings used for calls to updateSpoke.

Returns
TypeDescription
UnaryCallSettings<UpdateSpokeRequest,Operation>