@Generated(value="by gapic-generator-java") public class FirestoreStubSettings extends com.google.api.gax.rpc.StubSettings<FirestoreStubSettings>
FirestoreStub
.
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 getDocument 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
FirestoreStubSettings.Builder firestoreSettingsBuilder = FirestoreStubSettings.newBuilder();
firestoreSettingsBuilder
.getDocumentSettings()
.setRetrySettings(
firestoreSettingsBuilder
.getDocumentSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
FirestoreStubSettings firestoreSettings = firestoreSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
FirestoreStubSettings.Builder
Builder for FirestoreStubSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
FirestoreStubSettings(FirestoreStubSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
com.google.api.gax.rpc.ServerStreamingCallSettings<BatchGetDocumentsRequest,BatchGetDocumentsResponse> |
batchGetDocumentsSettings()
Returns the object with the settings used for calls to batchGetDocuments.
|
com.google.api.gax.rpc.UnaryCallSettings<BatchWriteRequest,BatchWriteResponse> |
batchWriteSettings()
Returns the object with the settings used for calls to batchWrite.
|
com.google.api.gax.rpc.UnaryCallSettings<BeginTransactionRequest,BeginTransactionResponse> |
beginTransactionSettings()
Returns the object with the settings used for calls to beginTransaction.
|
com.google.api.gax.rpc.UnaryCallSettings<CommitRequest,CommitResponse> |
commitSettings()
Returns the object with the settings used for calls to commit.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateDocumentRequest,Document> |
createDocumentSettings()
Returns the object with the settings used for calls to createDocument.
|
FirestoreStub |
createStub() |
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.rpc.ApiClientHeaderProvider.Builder |
defaultGrpcApiClientHeaderProviderBuilder() |
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultHttpJsonApiClientHeaderProviderBuilder() |
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.UnaryCallSettings<DeleteDocumentRequest,com.google.protobuf.Empty> |
deleteDocumentSettings()
Returns the object with the settings used for calls to deleteDocument.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static String |
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetDocumentRequest,Document> |
getDocumentSettings()
Returns the object with the settings used for calls to getDocument.
|
com.google.api.gax.rpc.PagedCallSettings<ListCollectionIdsRequest,ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsSettings()
Returns the object with the settings used for calls to listCollectionIds.
|
com.google.api.gax.rpc.PagedCallSettings<ListDocumentsRequest,ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsSettings()
Returns the object with the settings used for calls to listDocuments.
|
com.google.api.gax.rpc.StreamingCallSettings<ListenRequest,ListenResponse> |
listenSettings()
Returns the object with the settings used for calls to listen.
|
static FirestoreStubSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static FirestoreStubSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
static FirestoreStubSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
com.google.api.gax.rpc.PagedCallSettings<PartitionQueryRequest,PartitionQueryResponse,FirestoreClient.PartitionQueryPagedResponse> |
partitionQuerySettings()
Returns the object with the settings used for calls to partitionQuery.
|
com.google.api.gax.rpc.UnaryCallSettings<RollbackRequest,com.google.protobuf.Empty> |
rollbackSettings()
Returns the object with the settings used for calls to rollback.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<RunAggregationQueryRequest,RunAggregationQueryResponse> |
runAggregationQuerySettings()
Returns the object with the settings used for calls to runAggregationQuery.
|
com.google.api.gax.rpc.ServerStreamingCallSettings<RunQueryRequest,RunQueryResponse> |
runQuerySettings()
Returns the object with the settings used for calls to runQuery.
|
FirestoreStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateDocumentRequest,Document> |
updateDocumentSettings()
Returns the object with the settings used for calls to updateDocument.
|
com.google.api.gax.rpc.StreamingCallSettings<WriteRequest,WriteResponse> |
writeSettings()
Returns the object with the settings used for calls to write.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected FirestoreStubSettings(FirestoreStubSettings.Builder settingsBuilder) throws IOException
IOException
public com.google.api.gax.rpc.UnaryCallSettings<GetDocumentRequest,Document> getDocumentSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListDocumentsRequest,ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> listDocumentsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateDocumentRequest,Document> updateDocumentSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDocumentRequest,com.google.protobuf.Empty> deleteDocumentSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<BatchGetDocumentsRequest,BatchGetDocumentsResponse> batchGetDocumentsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<BeginTransactionRequest,BeginTransactionResponse> beginTransactionSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CommitRequest,CommitResponse> commitSettings()
public com.google.api.gax.rpc.UnaryCallSettings<RollbackRequest,com.google.protobuf.Empty> rollbackSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<RunQueryRequest,RunQueryResponse> runQuerySettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<RunAggregationQueryRequest,RunAggregationQueryResponse> runAggregationQuerySettings()
public com.google.api.gax.rpc.PagedCallSettings<PartitionQueryRequest,PartitionQueryResponse,FirestoreClient.PartitionQueryPagedResponse> partitionQuerySettings()
public com.google.api.gax.rpc.StreamingCallSettings<WriteRequest,WriteResponse> writeSettings()
public com.google.api.gax.rpc.StreamingCallSettings<ListenRequest,ListenResponse> listenSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListCollectionIdsRequest,ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<BatchWriteRequest,BatchWriteResponse> batchWriteSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateDocumentRequest,Document> createDocumentSettings()
public FirestoreStub createStub() throws IOException
IOException
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static String getDefaultMtlsEndpoint()
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()
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
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 defaultGrpcApiClientHeaderProviderBuilder()
@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 defaultHttpJsonApiClientHeaderProviderBuilder()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static FirestoreStubSettings.Builder newBuilder()
public static FirestoreStubSettings.Builder newHttpJsonBuilder()
public static FirestoreStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public FirestoreStubSettings.Builder toBuilder()
toBuilder
in class com.google.api.gax.rpc.StubSettings<FirestoreStubSettings>
Copyright © 2023 Google LLC. All rights reserved.