public static class LanguageServiceSettings.Builder extends ClientSettings.Builder<LanguageServiceSettings,LanguageServiceSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(LanguageServiceSettings settings) |
protected |
Builder(LanguageServiceStubSettings.Builder stubSettings) |
Modifier and Type | Method and Description |
---|---|
UnaryCallSettings.Builder<com.google.cloud.language.v1.AnalyzeEntitiesRequest,com.google.cloud.language.v1.AnalyzeEntitiesResponse> |
analyzeEntitiesSettings()
Returns the builder for the settings used for calls to analyzeEntities.
|
UnaryCallSettings.Builder<com.google.cloud.language.v1.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1.AnalyzeEntitySentimentResponse> |
analyzeEntitySentimentSettings()
Returns the builder for the settings used for calls to analyzeEntitySentiment.
|
UnaryCallSettings.Builder<com.google.cloud.language.v1.AnalyzeSentimentRequest,com.google.cloud.language.v1.AnalyzeSentimentResponse> |
analyzeSentimentSettings()
Returns the builder for the settings used for calls to analyzeSentiment.
|
UnaryCallSettings.Builder<com.google.cloud.language.v1.AnalyzeSyntaxRequest,com.google.cloud.language.v1.AnalyzeSyntaxResponse> |
analyzeSyntaxSettings()
Returns the builder for the settings used for calls to analyzeSyntax.
|
UnaryCallSettings.Builder<com.google.cloud.language.v1.AnnotateTextRequest,com.google.cloud.language.v1.AnnotateTextResponse> |
annotateTextSettings()
Returns the builder for the settings used for calls to annotateText.
|
LanguageServiceSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
LanguageServiceSettings |
build() |
UnaryCallSettings.Builder<com.google.cloud.language.v1.ClassifyTextRequest,com.google.cloud.language.v1.ClassifyTextResponse> |
classifyTextSettings()
Returns the builder for the settings used for calls to classifyText.
|
LanguageServiceStubSettings.Builder |
getStubSettingsBuilder() |
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(LanguageServiceSettings settings)
protected Builder(LanguageServiceStubSettings.Builder stubSettings)
public LanguageServiceStubSettings.Builder getStubSettingsBuilder()
public LanguageServiceSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public UnaryCallSettings.Builder<com.google.cloud.language.v1.AnalyzeSentimentRequest,com.google.cloud.language.v1.AnalyzeSentimentResponse> analyzeSentimentSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1.AnalyzeEntitiesRequest,com.google.cloud.language.v1.AnalyzeEntitiesResponse> analyzeEntitiesSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1.AnalyzeEntitySentimentResponse> analyzeEntitySentimentSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1.AnalyzeSyntaxRequest,com.google.cloud.language.v1.AnalyzeSyntaxResponse> analyzeSyntaxSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1.ClassifyTextRequest,com.google.cloud.language.v1.ClassifyTextResponse> classifyTextSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1.AnnotateTextRequest,com.google.cloud.language.v1.AnnotateTextResponse> annotateTextSettings()
public LanguageServiceSettings build() throws IOException
build
in class ClientSettings.Builder<LanguageServiceSettings,LanguageServiceSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.