public static class DocumentsSettings.Builder extends ClientSettings.Builder<DocumentsSettings,DocumentsSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(DocumentsSettings settings) |
protected |
Builder(DocumentsStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
DocumentsSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
DocumentsSettings |
build() |
OperationCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest,com.google.cloud.dialogflow.v2beta1.Document,com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata> |
createDocumentOperationSettings()
Returns the builder for the settings used for calls to createDocument.
|
UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest,Operation> |
createDocumentSettings()
Returns the builder for the settings used for calls to createDocument.
|
OperationCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest,Empty,com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata> |
deleteDocumentOperationSettings()
Returns the builder for the settings used for calls to deleteDocument.
|
UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest,Operation> |
deleteDocumentSettings()
Returns the builder for the settings used for calls to deleteDocument.
|
UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.GetDocumentRequest,com.google.cloud.dialogflow.v2beta1.Document> |
getDocumentSettings()
Returns the builder for the settings used for calls to getDocument.
|
DocumentsStubSettings.Builder |
getStubSettingsBuilder() |
PagedCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest,com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse,DocumentsClient.ListDocumentsPagedResponse> |
listDocumentsSettings()
Returns the builder for the settings used for calls to listDocuments.
|
UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest,Operation> |
reloadDocumentSettings()
Returns the builder for the settings used for calls to reloadDocument.
|
UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest,Operation> |
updateDocumentSettings()
Returns the builder for the settings used for calls to updateDocument.
|
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setTransportChannelProvider, setWatchdogCheckInterval, setWatchdogProvider, toString
protected Builder() throws IOException
IOException
protected Builder(ClientContext clientContext)
protected Builder(DocumentsSettings settings)
protected Builder(DocumentsStubSettings.Builder stubSettings)
public DocumentsStubSettings.Builder getStubSettingsBuilder()
public DocumentsSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public PagedCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.ListDocumentsRequest,com.google.cloud.dialogflow.v2beta1.ListDocumentsResponse,DocumentsClient.ListDocumentsPagedResponse> listDocumentsSettings()
public UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.GetDocumentRequest,com.google.cloud.dialogflow.v2beta1.Document> getDocumentSettings()
public UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest,Operation> createDocumentSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.CreateDocumentRequest,com.google.cloud.dialogflow.v2beta1.Document,com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata> createDocumentOperationSettings()
public UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest,Operation> deleteDocumentSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.DeleteDocumentRequest,Empty,com.google.cloud.dialogflow.v2beta1.KnowledgeOperationMetadata> deleteDocumentOperationSettings()
public UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.UpdateDocumentRequest,Operation> updateDocumentSettings()
public UnaryCallSettings.Builder<com.google.cloud.dialogflow.v2beta1.ReloadDocumentRequest,Operation> reloadDocumentSettings()
public DocumentsSettings build() throws IOException
build
in class ClientSettings.Builder<DocumentsSettings,DocumentsSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.