@Generated(value="by gapic-generator") @BetaApi public class DocumentsSettings extends com.google.api.gax.rpc.ClientSettings<DocumentsSettings>
DocumentsClient
.
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:
DocumentsSettings.Builder documentsSettingsBuilder =
DocumentsSettings.newBuilder();
documentsSettingsBuilder.getDocumentSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
DocumentsSettings documentsSettings = documentsSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
DocumentsSettings.Builder
Builder for DocumentsSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
DocumentsSettings(DocumentsSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
static DocumentsSettings |
create(DocumentsStubSettings stub) |
com.google.api.gax.rpc.OperationCallSettings<CreateDocumentRequest,Document,KnowledgeOperationMetadata> |
createDocumentOperationSettings()
Returns the object with the settings used for calls to createDocument.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateDocumentRequest,com.google.longrunning.Operation> |
createDocumentSettings()
Returns the object with the settings used for calls to createDocument.
|
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.OperationCallSettings<DeleteDocumentRequest,Empty,KnowledgeOperationMetadata> |
deleteDocumentOperationSettings()
Returns the object with the settings used for calls to deleteDocument.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteDocumentRequest,com.google.longrunning.Operation> |
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<ListDocumentsRequest,ListDocumentsResponse,DocumentsClient.ListDocumentsPagedResponse> |
listDocumentsSettings()
Returns the object with the settings used for calls to listDocuments.
|
static DocumentsSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static DocumentsSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
com.google.api.gax.rpc.UnaryCallSettings<ReloadDocumentRequest,com.google.longrunning.Operation> |
reloadDocumentSettings()
Returns the object with the settings used for calls to reloadDocument.
|
DocumentsSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> |
updateDocumentOperationSettings()
Returns the object with the settings used for calls to updateDocument.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateDocumentRequest,com.google.longrunning.Operation> |
updateDocumentSettings()
Returns the object with the settings used for calls to updateDocument.
|
protected DocumentsSettings(DocumentsSettings.Builder settingsBuilder) throws IOException
IOException
public com.google.api.gax.rpc.PagedCallSettings<ListDocumentsRequest,ListDocumentsResponse,DocumentsClient.ListDocumentsPagedResponse> listDocumentsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetDocumentRequest,Document> getDocumentSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateDocumentRequest,com.google.longrunning.Operation> createDocumentSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings<CreateDocumentRequest,Document,KnowledgeOperationMetadata> createDocumentOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteDocumentRequest,com.google.longrunning.Operation> deleteDocumentSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings<DeleteDocumentRequest,Empty,KnowledgeOperationMetadata> deleteDocumentOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateDocumentRequest,com.google.longrunning.Operation> updateDocumentSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings<UpdateDocumentRequest,Document,KnowledgeOperationMetadata> updateDocumentOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<ReloadDocumentRequest,com.google.longrunning.Operation> reloadDocumentSettings()
public static final DocumentsSettings create(DocumentsStubSettings stub) 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 DocumentsSettings.Builder newBuilder()
public static DocumentsSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public DocumentsSettings.Builder toBuilder()
toBuilder
in class com.google.api.gax.rpc.ClientSettings<DocumentsSettings>
Copyright © 2019 Google LLC. All rights reserved.