@Generated(value="by gapic-generator") 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 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 |
---|---|
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<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.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.UnaryCallSettings<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.
|
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 builder for this class.
|
static FirestoreStubSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.UnaryCallSettings<RollbackRequest,Empty> |
rollbackSettings()
Returns the object with the settings used for calls to rollback.
|
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.
|
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<CreateDocumentRequest,Document> createDocumentSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateDocumentRequest,Document> updateDocumentSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDocumentRequest,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,Empty> rollbackSettings()
public com.google.api.gax.rpc.ServerStreamingCallSettings<RunQueryRequest,RunQueryResponse> runQuerySettings()
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()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public FirestoreStub createStub() throws IOException
IOException
public 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 FirestoreStubSettings.Builder newBuilder()
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 © 2019 Google LLC. All rights reserved.