@Generated(value="by gapic-generator-java") public class HubServiceSettings extends com.google.api.gax.rpc.ClientSettings<HubServiceSettings>
HubServiceClient.
The default instance has everything set to sensible defaults:
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 and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceSettings.Builder hubServiceSettingsBuilder = HubServiceSettings.newBuilder();
hubServiceSettingsBuilder
.getHubSettings()
.setRetrySettings(
hubServiceSettingsBuilder
.getHubSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
HubServiceSettings hubServiceSettings = hubServiceSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
HubServiceSettings.Builder
Builder for HubServiceSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
HubServiceSettings(HubServiceSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.rpc.OperationCallSettings<AcceptHubSpokeRequest,AcceptHubSpokeResponse,OperationMetadata> |
acceptHubSpokeOperationSettings()
Returns the object with the settings used for calls to acceptHubSpoke.
|
com.google.api.gax.rpc.UnaryCallSettings<AcceptHubSpokeRequest,com.google.longrunning.Operation> |
acceptHubSpokeSettings()
Returns the object with the settings used for calls to acceptHubSpoke.
|
static HubServiceSettings |
create(HubServiceStubSettings stub) |
com.google.api.gax.rpc.OperationCallSettings<CreateHubRequest,Hub,OperationMetadata> |
createHubOperationSettings()
Returns the object with the settings used for calls to createHub.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateHubRequest,com.google.longrunning.Operation> |
createHubSettings()
Returns the object with the settings used for calls to createHub.
|
com.google.api.gax.rpc.OperationCallSettings<CreateSpokeRequest,Spoke,OperationMetadata> |
createSpokeOperationSettings()
Returns the object with the settings used for calls to createSpoke.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateSpokeRequest,com.google.longrunning.Operation> |
createSpokeSettings()
Returns the object with the settings used for calls to createSpoke.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.OperationCallSettings<DeleteHubRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteHubOperationSettings()
Returns the object with the settings used for calls to deleteHub.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteHubRequest,com.google.longrunning.Operation> |
deleteHubSettings()
Returns the object with the settings used for calls to deleteHub.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteSpokeRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteSpokeOperationSettings()
Returns the object with the settings used for calls to deleteSpoke.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteSpokeRequest,com.google.longrunning.Operation> |
deleteSpokeSettings()
Returns the object with the settings used for calls to deleteSpoke.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetGroupRequest,Group> |
getGroupSettings()
Returns the object with the settings used for calls to getGroup.
|
com.google.api.gax.rpc.UnaryCallSettings<GetHubRequest,Hub> |
getHubSettings()
Returns the object with the settings used for calls to getHub.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationSettings()
Returns the object with the settings used for calls to getLocation.
|
com.google.api.gax.rpc.UnaryCallSettings<GetRouteRequest,Route> |
getRouteSettings()
Returns the object with the settings used for calls to getRoute.
|
com.google.api.gax.rpc.UnaryCallSettings<GetRouteTableRequest,RouteTable> |
getRouteTableSettings()
Returns the object with the settings used for calls to getRouteTable.
|
com.google.api.gax.rpc.UnaryCallSettings<GetSpokeRequest,Spoke> |
getSpokeSettings()
Returns the object with the settings used for calls to getSpoke.
|
com.google.api.gax.rpc.PagedCallSettings<ListGroupsRequest,ListGroupsResponse,HubServiceClient.ListGroupsPagedResponse> |
listGroupsSettings()
Returns the object with the settings used for calls to listGroups.
|
com.google.api.gax.rpc.PagedCallSettings<ListHubSpokesRequest,ListHubSpokesResponse,HubServiceClient.ListHubSpokesPagedResponse> |
listHubSpokesSettings()
Returns the object with the settings used for calls to listHubSpokes.
|
com.google.api.gax.rpc.PagedCallSettings<ListHubsRequest,ListHubsResponse,HubServiceClient.ListHubsPagedResponse> |
listHubsSettings()
Returns the object with the settings used for calls to listHubs.
|
com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,HubServiceClient.ListLocationsPagedResponse> |
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
|
com.google.api.gax.rpc.PagedCallSettings<ListRoutesRequest,ListRoutesResponse,HubServiceClient.ListRoutesPagedResponse> |
listRoutesSettings()
Returns the object with the settings used for calls to listRoutes.
|
com.google.api.gax.rpc.PagedCallSettings<ListRouteTablesRequest,ListRouteTablesResponse,HubServiceClient.ListRouteTablesPagedResponse> |
listRouteTablesSettings()
Returns the object with the settings used for calls to listRouteTables.
|
com.google.api.gax.rpc.PagedCallSettings<ListSpokesRequest,ListSpokesResponse,HubServiceClient.ListSpokesPagedResponse> |
listSpokesSettings()
Returns the object with the settings used for calls to listSpokes.
|
static HubServiceSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static HubServiceSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.OperationCallSettings<RejectHubSpokeRequest,RejectHubSpokeResponse,OperationMetadata> |
rejectHubSpokeOperationSettings()
Returns the object with the settings used for calls to rejectHubSpoke.
|
com.google.api.gax.rpc.UnaryCallSettings<RejectHubSpokeRequest,com.google.longrunning.Operation> |
rejectHubSpokeSettings()
Returns the object with the settings used for calls to rejectHubSpoke.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
HubServiceSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateHubRequest,Hub,OperationMetadata> |
updateHubOperationSettings()
Returns the object with the settings used for calls to updateHub.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateHubRequest,com.google.longrunning.Operation> |
updateHubSettings()
Returns the object with the settings used for calls to updateHub.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateSpokeRequest,Spoke,OperationMetadata> |
updateSpokeOperationSettings()
Returns the object with the settings used for calls to updateSpoke.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateSpokeRequest,com.google.longrunning.Operation> |
updateSpokeSettings()
Returns the object with the settings used for calls to updateSpoke.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogProvider, toStringprotected HubServiceSettings(HubServiceSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.PagedCallSettings<ListHubsRequest,ListHubsResponse,HubServiceClient.ListHubsPagedResponse> listHubsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetHubRequest,Hub> getHubSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateHubRequest,com.google.longrunning.Operation> createHubSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateHubRequest,Hub,OperationMetadata> createHubOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateHubRequest,com.google.longrunning.Operation> updateHubSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateHubRequest,Hub,OperationMetadata> updateHubOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteHubRequest,com.google.longrunning.Operation> deleteHubSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteHubRequest,com.google.protobuf.Empty,OperationMetadata> deleteHubOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListHubSpokesRequest,ListHubSpokesResponse,HubServiceClient.ListHubSpokesPagedResponse> listHubSpokesSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListSpokesRequest,ListSpokesResponse,HubServiceClient.ListSpokesPagedResponse> listSpokesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetSpokeRequest,Spoke> getSpokeSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateSpokeRequest,com.google.longrunning.Operation> createSpokeSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateSpokeRequest,Spoke,OperationMetadata> createSpokeOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateSpokeRequest,com.google.longrunning.Operation> updateSpokeSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateSpokeRequest,Spoke,OperationMetadata> updateSpokeOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<RejectHubSpokeRequest,com.google.longrunning.Operation> rejectHubSpokeSettings()
public com.google.api.gax.rpc.OperationCallSettings<RejectHubSpokeRequest,RejectHubSpokeResponse,OperationMetadata> rejectHubSpokeOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<AcceptHubSpokeRequest,com.google.longrunning.Operation> acceptHubSpokeSettings()
public com.google.api.gax.rpc.OperationCallSettings<AcceptHubSpokeRequest,AcceptHubSpokeResponse,OperationMetadata> acceptHubSpokeOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteSpokeRequest,com.google.longrunning.Operation> deleteSpokeSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteSpokeRequest,com.google.protobuf.Empty,OperationMetadata> deleteSpokeOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetRouteTableRequest,RouteTable> getRouteTableSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetRouteRequest,Route> getRouteSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListRoutesRequest,ListRoutesResponse,HubServiceClient.ListRoutesPagedResponse> listRoutesSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListRouteTablesRequest,ListRouteTablesResponse,HubServiceClient.ListRouteTablesPagedResponse> listRouteTablesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetGroupRequest,Group> getGroupSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListGroupsRequest,ListGroupsResponse,HubServiceClient.ListGroupsPagedResponse> listGroupsSettings()
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,HubServiceClient.ListLocationsPagedResponse> listLocationsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
public static final HubServiceSettings create(HubServiceStubSettings stub) throws IOException
IOExceptionpublic static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static HubServiceSettings.Builder newBuilder()
public static HubServiceSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public HubServiceSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<HubServiceSettings>Copyright © 2024 Google LLC. All rights reserved.