Class ReservationServiceStubSettings
java.lang.Object
com.google.api.gax.rpc.StubSettings<ReservationServiceStubSettings>
com.google.cloud.bigquery.reservation.v1.stub.ReservationServiceStubSettings
@Generated("by gapic-generator-java")
public class ReservationServiceStubSettings
extends StubSettings<ReservationServiceStubSettings>
Settings class to configure an instance of
ReservationServiceStub.
The default instance has everything set to sensible defaults:
- The default service address (bigqueryreservation.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 [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of createReservation:
// 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
ReservationServiceStubSettings.Builder reservationServiceSettingsBuilder =
ReservationServiceStubSettings.newBuilder();
reservationServiceSettingsBuilder
.createReservationSettings()
.setRetrySettings(
reservationServiceSettingsBuilder
.createReservationSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
ReservationServiceStubSettings reservationServiceSettings =
reservationServiceSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
retries.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReservationServiceStubSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReservationServiceStubSettings(ReservationServiceStubSettings.Builder settingsBuilder) -
Method Summary
Modifier and TypeMethodDescriptionReturns the object with the settings used for calls to createAssignment.Returns the object with the settings used for calls to createCapacityCommitment.Returns the object with the settings used for calls to createReservationGroup.Returns the object with the settings used for calls to createReservation.Returns a builder for the default credentials for this service.Returns a builder for the default ExecutorProvider for this service.Returns a builder for the default gRPC ChannelProvider for this service.Returns a builder for the default REST ChannelProvider for this service.static TransportChannelProviderUnaryCallSettings<DeleteAssignmentRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteAssignment.UnaryCallSettings<DeleteCapacityCommitmentRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteCapacityCommitment.UnaryCallSettings<DeleteReservationGroupRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteReservationGroup.UnaryCallSettings<DeleteReservationRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteReservation.Returns the object with the settings used for calls to failoverReservation.Returns the object with the settings used for calls to getBiReservation.Returns the object with the settings used for calls to getCapacityCommitment.static StringReturns the default service endpoint.static StringReturns the default mTLS service endpoint.Returns the default service scopes.UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> Returns the object with the settings used for calls to getIamPolicy.protected LibraryMetadataReturns the object with the settings used for calls to getReservationGroup.Returns the object with the settings used for calls to getReservation.Returns the default service name.PagedCallSettings<ListAssignmentsRequest,ListAssignmentsResponse, ReservationServiceClient.ListAssignmentsPagedResponse> Returns the object with the settings used for calls to listAssignments.PagedCallSettings<ListCapacityCommitmentsRequest,ListCapacityCommitmentsResponse, ReservationServiceClient.ListCapacityCommitmentsPagedResponse> Returns the object with the settings used for calls to listCapacityCommitments.PagedCallSettings<ListReservationGroupsRequest,ListReservationGroupsResponse, ReservationServiceClient.ListReservationGroupsPagedResponse> Returns the object with the settings used for calls to listReservationGroups.PagedCallSettings<ListReservationsRequest,ListReservationsResponse, ReservationServiceClient.ListReservationsPagedResponse> Returns the object with the settings used for calls to listReservations.Returns the object with the settings used for calls to mergeCapacityCommitments.Returns the object with the settings used for calls to moveAssignment.Returns a new gRPC builder for this class.newBuilder(ClientContext clientContext) Returns a new builder for this class.Returns a new REST builder for this class.PagedCallSettings<SearchAllAssignmentsRequest,SearchAllAssignmentsResponse, ReservationServiceClient.SearchAllAssignmentsPagedResponse> Returns the object with the settings used for calls to searchAllAssignments.PagedCallSettings<SearchAssignmentsRequest,SearchAssignmentsResponse, ReservationServiceClient.SearchAssignmentsPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> Returns the object with the settings used for calls to setIamPolicy.Returns the object with the settings used for calls to splitCapacityCommitment.UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> Returns the object with the settings used for calls to testIamPermissions.Returns a builder containing all the values of this settings class.Returns the object with the settings used for calls to updateAssignment.Returns the object with the settings used for calls to updateBiReservation.Returns the object with the settings used for calls to updateCapacityCommitment.Returns the object with the settings used for calls to updateReservation.Methods inherited from class com.google.api.gax.rpc.StubSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toString
-
Constructor Details
-
ReservationServiceStubSettings
protected ReservationServiceStubSettings(ReservationServiceStubSettings.Builder settingsBuilder) throws IOException - Throws:
IOException
-
-
Method Details
-
createReservationSettings
Returns the object with the settings used for calls to createReservation. -
listReservationsSettings
public PagedCallSettings<ListReservationsRequest,ListReservationsResponse, listReservationsSettings()ReservationServiceClient.ListReservationsPagedResponse> Returns the object with the settings used for calls to listReservations. -
getReservationSettings
Returns the object with the settings used for calls to getReservation. -
deleteReservationSettings
public UnaryCallSettings<DeleteReservationRequest,com.google.protobuf.Empty> deleteReservationSettings()Returns the object with the settings used for calls to deleteReservation. -
updateReservationSettings
Returns the object with the settings used for calls to updateReservation. -
failoverReservationSettings
Returns the object with the settings used for calls to failoverReservation. -
createCapacityCommitmentSettings
public UnaryCallSettings<CreateCapacityCommitmentRequest,CapacityCommitment> createCapacityCommitmentSettings()Returns the object with the settings used for calls to createCapacityCommitment. -
listCapacityCommitmentsSettings
public PagedCallSettings<ListCapacityCommitmentsRequest,ListCapacityCommitmentsResponse, listCapacityCommitmentsSettings()ReservationServiceClient.ListCapacityCommitmentsPagedResponse> Returns the object with the settings used for calls to listCapacityCommitments. -
getCapacityCommitmentSettings
public UnaryCallSettings<GetCapacityCommitmentRequest,CapacityCommitment> getCapacityCommitmentSettings()Returns the object with the settings used for calls to getCapacityCommitment. -
deleteCapacityCommitmentSettings
public UnaryCallSettings<DeleteCapacityCommitmentRequest,com.google.protobuf.Empty> deleteCapacityCommitmentSettings()Returns the object with the settings used for calls to deleteCapacityCommitment. -
updateCapacityCommitmentSettings
public UnaryCallSettings<UpdateCapacityCommitmentRequest,CapacityCommitment> updateCapacityCommitmentSettings()Returns the object with the settings used for calls to updateCapacityCommitment. -
splitCapacityCommitmentSettings
public UnaryCallSettings<SplitCapacityCommitmentRequest,SplitCapacityCommitmentResponse> splitCapacityCommitmentSettings()Returns the object with the settings used for calls to splitCapacityCommitment. -
mergeCapacityCommitmentsSettings
public UnaryCallSettings<MergeCapacityCommitmentsRequest,CapacityCommitment> mergeCapacityCommitmentsSettings()Returns the object with the settings used for calls to mergeCapacityCommitments. -
createAssignmentSettings
Returns the object with the settings used for calls to createAssignment. -
listAssignmentsSettings
public PagedCallSettings<ListAssignmentsRequest,ListAssignmentsResponse, listAssignmentsSettings()ReservationServiceClient.ListAssignmentsPagedResponse> Returns the object with the settings used for calls to listAssignments. -
deleteAssignmentSettings
public UnaryCallSettings<DeleteAssignmentRequest,com.google.protobuf.Empty> deleteAssignmentSettings()Returns the object with the settings used for calls to deleteAssignment. -
searchAssignmentsSettings
@Deprecated public PagedCallSettings<SearchAssignmentsRequest,SearchAssignmentsResponse, searchAssignmentsSettings()ReservationServiceClient.SearchAssignmentsPagedResponse> Deprecated.This method is deprecated and will be removed in the next major version update.Returns the object with the settings used for calls to searchAssignments. -
searchAllAssignmentsSettings
public PagedCallSettings<SearchAllAssignmentsRequest,SearchAllAssignmentsResponse, searchAllAssignmentsSettings()ReservationServiceClient.SearchAllAssignmentsPagedResponse> Returns the object with the settings used for calls to searchAllAssignments. -
moveAssignmentSettings
Returns the object with the settings used for calls to moveAssignment. -
updateAssignmentSettings
Returns the object with the settings used for calls to updateAssignment. -
getBiReservationSettings
Returns the object with the settings used for calls to getBiReservation. -
updateBiReservationSettings
Returns the object with the settings used for calls to updateBiReservation. -
getIamPolicySettings
public UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()Returns the object with the settings used for calls to getIamPolicy. -
setIamPolicySettings
public UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()Returns the object with the settings used for calls to setIamPolicy. -
testIamPermissionsSettings
public UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()Returns the object with the settings used for calls to testIamPermissions. -
createReservationGroupSettings
public UnaryCallSettings<CreateReservationGroupRequest,ReservationGroup> createReservationGroupSettings()Returns the object with the settings used for calls to createReservationGroup. -
getReservationGroupSettings
Returns the object with the settings used for calls to getReservationGroup. -
deleteReservationGroupSettings
public UnaryCallSettings<DeleteReservationGroupRequest,com.google.protobuf.Empty> deleteReservationGroupSettings()Returns the object with the settings used for calls to deleteReservationGroup. -
listReservationGroupsSettings
public PagedCallSettings<ListReservationGroupsRequest,ListReservationGroupsResponse, listReservationGroupsSettings()ReservationServiceClient.ListReservationGroupsPagedResponse> Returns the object with the settings used for calls to listReservationGroups. -
createStub
- Throws:
IOException
-
getServiceName
Returns the default service name.- Overrides:
getServiceNamein classStubSettings<ReservationServiceStubSettings>
-
defaultExecutorProviderBuilder
Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultMtlsEndpoint
Returns the default mTLS service endpoint. -
getDefaultServiceScopes
Returns the default service scopes. -
defaultCredentialsProviderBuilder
Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
-
defaultGrpcApiClientHeaderProviderBuilder
-
defaultHttpJsonApiClientHeaderProviderBuilder
-
defaultApiClientHeaderProviderBuilder
-
newBuilder
Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Returns a new REST builder for this class. -
newBuilder
Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classStubSettings<ReservationServiceStubSettings>
-
getLibraryMetadata
- Overrides:
getLibraryMetadatain classStubSettings<ReservationServiceStubSettings>
-