Class ReservationServiceStubSettings (2.43.0)

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 total timeout of createReservation 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
 ReservationServiceStubSettings.Builder reservationServiceSettingsBuilder =
     ReservationServiceStubSettings.newBuilder();
 reservationServiceSettingsBuilder
     .createReservationSettings()
     .setRetrySettings(
         reservationServiceSettingsBuilder
             .createReservationSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 ReservationServiceStubSettings reservationServiceSettings =
     reservationServiceSettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > ReservationServiceStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
Type Description
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
Type Description
Builder

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
Type Description
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
Type Description
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
Type Description
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns
Type Description
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
Type Description
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
Type Description
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
Type Description
List<String>

newBuilder()

public static ReservationServiceStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
Type Description
ReservationServiceStubSettings.Builder

newBuilder(ClientContext clientContext)

public static ReservationServiceStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
Name Description
clientContext ClientContext
Returns
Type Description
ReservationServiceStubSettings.Builder

newHttpJsonBuilder()

public static ReservationServiceStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
Type Description
ReservationServiceStubSettings.Builder

Constructors

ReservationServiceStubSettings(ReservationServiceStubSettings.Builder settingsBuilder)

protected ReservationServiceStubSettings(ReservationServiceStubSettings.Builder settingsBuilder)
Parameter
Name Description
settingsBuilder ReservationServiceStubSettings.Builder

Methods

createAssignmentSettings()

public UnaryCallSettings<CreateAssignmentRequest,Assignment> createAssignmentSettings()

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

Returns
Type Description
UnaryCallSettings<CreateAssignmentRequest,Assignment>

createCapacityCommitmentSettings()

public UnaryCallSettings<CreateCapacityCommitmentRequest,CapacityCommitment> createCapacityCommitmentSettings()

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

Returns
Type Description
UnaryCallSettings<CreateCapacityCommitmentRequest,CapacityCommitment>

createReservationSettings()

public UnaryCallSettings<CreateReservationRequest,Reservation> createReservationSettings()

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

Returns
Type Description
UnaryCallSettings<CreateReservationRequest,Reservation>

createStub()

public ReservationServiceStub createStub()
Returns
Type Description
ReservationServiceStub
Exceptions
Type Description
IOException

deleteAssignmentSettings()

public UnaryCallSettings<DeleteAssignmentRequest,Empty> deleteAssignmentSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteAssignmentRequest,Empty>

deleteCapacityCommitmentSettings()

public UnaryCallSettings<DeleteCapacityCommitmentRequest,Empty> deleteCapacityCommitmentSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteCapacityCommitmentRequest,Empty>

deleteReservationSettings()

public UnaryCallSettings<DeleteReservationRequest,Empty> deleteReservationSettings()

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

Returns
Type Description
UnaryCallSettings<DeleteReservationRequest,Empty>

getBiReservationSettings()

public UnaryCallSettings<GetBiReservationRequest,BiReservation> getBiReservationSettings()

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

Returns
Type Description
UnaryCallSettings<GetBiReservationRequest,BiReservation>

getCapacityCommitmentSettings()

public UnaryCallSettings<GetCapacityCommitmentRequest,CapacityCommitment> getCapacityCommitmentSettings()

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

Returns
Type Description
UnaryCallSettings<GetCapacityCommitmentRequest,CapacityCommitment>

getReservationSettings()

public UnaryCallSettings<GetReservationRequest,Reservation> getReservationSettings()

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

Returns
Type Description
UnaryCallSettings<GetReservationRequest,Reservation>

getServiceName()

public String getServiceName()

Returns the default service name.

Returns
Type Description
String
Overrides

listAssignmentsSettings()

public PagedCallSettings<ListAssignmentsRequest,ListAssignmentsResponse,ReservationServiceClient.ListAssignmentsPagedResponse> listAssignmentsSettings()

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

Returns
Type Description
PagedCallSettings<ListAssignmentsRequest,ListAssignmentsResponse,ListAssignmentsPagedResponse>

listCapacityCommitmentsSettings()

public PagedCallSettings<ListCapacityCommitmentsRequest,ListCapacityCommitmentsResponse,ReservationServiceClient.ListCapacityCommitmentsPagedResponse> listCapacityCommitmentsSettings()

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

Returns
Type Description
PagedCallSettings<ListCapacityCommitmentsRequest,ListCapacityCommitmentsResponse,ListCapacityCommitmentsPagedResponse>

listReservationsSettings()

public PagedCallSettings<ListReservationsRequest,ListReservationsResponse,ReservationServiceClient.ListReservationsPagedResponse> listReservationsSettings()

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

Returns
Type Description
PagedCallSettings<ListReservationsRequest,ListReservationsResponse,ListReservationsPagedResponse>

mergeCapacityCommitmentsSettings()

public UnaryCallSettings<MergeCapacityCommitmentsRequest,CapacityCommitment> mergeCapacityCommitmentsSettings()

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

Returns
Type Description
UnaryCallSettings<MergeCapacityCommitmentsRequest,CapacityCommitment>

moveAssignmentSettings()

public UnaryCallSettings<MoveAssignmentRequest,Assignment> moveAssignmentSettings()

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

Returns
Type Description
UnaryCallSettings<MoveAssignmentRequest,Assignment>

searchAllAssignmentsSettings()

public PagedCallSettings<SearchAllAssignmentsRequest,SearchAllAssignmentsResponse,ReservationServiceClient.SearchAllAssignmentsPagedResponse> searchAllAssignmentsSettings()

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

Returns
Type Description
PagedCallSettings<SearchAllAssignmentsRequest,SearchAllAssignmentsResponse,SearchAllAssignmentsPagedResponse>

searchAssignmentsSettings() (deprecated)

public PagedCallSettings<SearchAssignmentsRequest,SearchAssignmentsResponse,ReservationServiceClient.SearchAssignmentsPagedResponse> searchAssignmentsSettings()

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.

Returns
Type Description
PagedCallSettings<SearchAssignmentsRequest,SearchAssignmentsResponse,SearchAssignmentsPagedResponse>

splitCapacityCommitmentSettings()

public UnaryCallSettings<SplitCapacityCommitmentRequest,SplitCapacityCommitmentResponse> splitCapacityCommitmentSettings()

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

Returns
Type Description
UnaryCallSettings<SplitCapacityCommitmentRequest,SplitCapacityCommitmentResponse>

toBuilder()

public ReservationServiceStubSettings.Builder toBuilder()

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

Returns
Type Description
ReservationServiceStubSettings.Builder
Overrides

updateAssignmentSettings()

public UnaryCallSettings<UpdateAssignmentRequest,Assignment> updateAssignmentSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateAssignmentRequest,Assignment>

updateBiReservationSettings()

public UnaryCallSettings<UpdateBiReservationRequest,BiReservation> updateBiReservationSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateBiReservationRequest,BiReservation>

updateCapacityCommitmentSettings()

public UnaryCallSettings<UpdateCapacityCommitmentRequest,CapacityCommitment> updateCapacityCommitmentSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateCapacityCommitmentRequest,CapacityCommitment>

updateReservationSettings()

public UnaryCallSettings<UpdateReservationRequest,Reservation> updateReservationSettings()

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

Returns
Type Description
UnaryCallSettings<UpdateReservationRequest,Reservation>