@Generated(value="by gapic-generator") @BetaApi public class FirestoreStubSettings extends 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 updateDocument to 30 seconds:
FirestoreStubSettings.Builder firestoreSettingsBuilder =
FirestoreStubSettings.newBuilder();
firestoreSettingsBuilder.updateDocumentSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
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 |
---|---|
ServerStreamingCallSettings<com.google.firestore.v1beta1.BatchGetDocumentsRequest,com.google.firestore.v1beta1.BatchGetDocumentsResponse> |
batchGetDocumentsSettings()
Returns the object with the settings used for calls to batchGetDocuments.
|
UnaryCallSettings<com.google.firestore.v1beta1.BeginTransactionRequest,com.google.firestore.v1beta1.BeginTransactionResponse> |
beginTransactionSettings()
Returns the object with the settings used for calls to beginTransaction.
|
UnaryCallSettings<com.google.firestore.v1beta1.CommitRequest,com.google.firestore.v1beta1.CommitResponse> |
commitSettings()
Returns the object with the settings used for calls to commit.
|
UnaryCallSettings<com.google.firestore.v1beta1.CreateDocumentRequest,com.google.firestore.v1beta1.Document> |
createDocumentSettings()
Returns the object with the settings used for calls to createDocument.
|
FirestoreStub |
createStub() |
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<com.google.firestore.v1beta1.DeleteDocumentRequest,Empty> |
deleteDocumentSettings()
Returns the object with the settings used for calls to deleteDocument.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.firestore.v1beta1.GetDocumentRequest,com.google.firestore.v1beta1.Document> |
getDocumentSettings()
Returns the object with the settings used for calls to getDocument.
|
PagedCallSettings<com.google.firestore.v1beta1.ListCollectionIdsRequest,com.google.firestore.v1beta1.ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> |
listCollectionIdsSettings()
Returns the object with the settings used for calls to listCollectionIds.
|
PagedCallSettings<com.google.firestore.v1beta1.ListDocumentsRequest,com.google.firestore.v1beta1.ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> |
listDocumentsSettings()
Returns the object with the settings used for calls to listDocuments.
|
StreamingCallSettings<com.google.firestore.v1beta1.ListenRequest,com.google.firestore.v1beta1.ListenResponse> |
listenSettings()
Returns the object with the settings used for calls to listen.
|
static FirestoreStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static FirestoreStubSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
UnaryCallSettings<com.google.firestore.v1beta1.RollbackRequest,Empty> |
rollbackSettings()
Returns the object with the settings used for calls to rollback.
|
ServerStreamingCallSettings<com.google.firestore.v1beta1.RunQueryRequest,com.google.firestore.v1beta1.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.
|
UnaryCallSettings<com.google.firestore.v1beta1.UpdateDocumentRequest,com.google.firestore.v1beta1.Document> |
updateDocumentSettings()
Returns the object with the settings used for calls to updateDocument.
|
StreamingCallSettings<com.google.firestore.v1beta1.WriteRequest,com.google.firestore.v1beta1.WriteResponse> |
writeSettings()
Returns the object with the settings used for calls to write.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected FirestoreStubSettings(FirestoreStubSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<com.google.firestore.v1beta1.GetDocumentRequest,com.google.firestore.v1beta1.Document> getDocumentSettings()
public PagedCallSettings<com.google.firestore.v1beta1.ListDocumentsRequest,com.google.firestore.v1beta1.ListDocumentsResponse,FirestoreClient.ListDocumentsPagedResponse> listDocumentsSettings()
public UnaryCallSettings<com.google.firestore.v1beta1.CreateDocumentRequest,com.google.firestore.v1beta1.Document> createDocumentSettings()
public UnaryCallSettings<com.google.firestore.v1beta1.UpdateDocumentRequest,com.google.firestore.v1beta1.Document> updateDocumentSettings()
public UnaryCallSettings<com.google.firestore.v1beta1.DeleteDocumentRequest,Empty> deleteDocumentSettings()
public ServerStreamingCallSettings<com.google.firestore.v1beta1.BatchGetDocumentsRequest,com.google.firestore.v1beta1.BatchGetDocumentsResponse> batchGetDocumentsSettings()
public UnaryCallSettings<com.google.firestore.v1beta1.BeginTransactionRequest,com.google.firestore.v1beta1.BeginTransactionResponse> beginTransactionSettings()
public UnaryCallSettings<com.google.firestore.v1beta1.CommitRequest,com.google.firestore.v1beta1.CommitResponse> commitSettings()
public UnaryCallSettings<com.google.firestore.v1beta1.RollbackRequest,Empty> rollbackSettings()
public ServerStreamingCallSettings<com.google.firestore.v1beta1.RunQueryRequest,com.google.firestore.v1beta1.RunQueryResponse> runQuerySettings()
public StreamingCallSettings<com.google.firestore.v1beta1.WriteRequest,com.google.firestore.v1beta1.WriteResponse> writeSettings()
public StreamingCallSettings<com.google.firestore.v1beta1.ListenRequest,com.google.firestore.v1beta1.ListenResponse> listenSettings()
public PagedCallSettings<com.google.firestore.v1beta1.ListCollectionIdsRequest,com.google.firestore.v1beta1.ListCollectionIdsResponse,FirestoreClient.ListCollectionIdsPagedResponse> listCollectionIdsSettings()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public FirestoreStub createStub() throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static FirestoreStubSettings.Builder newBuilder()
public static FirestoreStubSettings.Builder newBuilder(ClientContext clientContext)
public FirestoreStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<FirestoreStubSettings>
Copyright © 2019 Google LLC. All rights reserved.