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.v1beta2.AnalyzeEntitiesRequest,com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse> |
analyzeEntitiesSettings()
Returns the builder for the settings used for calls to analyzeEntities.
|
UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse> |
analyzeEntitySentimentSettings()
Returns the builder for the settings used for calls to analyzeEntitySentiment.
|
UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.AnalyzeSentimentRequest,com.google.cloud.language.v1beta2.AnalyzeSentimentResponse> |
analyzeSentimentSettings()
Returns the builder for the settings used for calls to analyzeSentiment.
|
UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest,com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse> |
analyzeSyntaxSettings()
Returns the builder for the settings used for calls to analyzeSyntax.
|
UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.AnnotateTextRequest,com.google.cloud.language.v1beta2.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.v1beta2.ClassifyTextRequest,com.google.cloud.language.v1beta2.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.v1beta2.AnalyzeSentimentRequest,com.google.cloud.language.v1beta2.AnalyzeSentimentResponse> analyzeSentimentSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.AnalyzeEntitiesRequest,com.google.cloud.language.v1beta2.AnalyzeEntitiesResponse> analyzeEntitiesSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.AnalyzeEntitySentimentRequest,com.google.cloud.language.v1beta2.AnalyzeEntitySentimentResponse> analyzeEntitySentimentSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.AnalyzeSyntaxRequest,com.google.cloud.language.v1beta2.AnalyzeSyntaxResponse> analyzeSyntaxSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.ClassifyTextRequest,com.google.cloud.language.v1beta2.ClassifyTextResponse> classifyTextSettings()
public UnaryCallSettings.Builder<com.google.cloud.language.v1beta2.AnnotateTextRequest,com.google.cloud.language.v1beta2.AnnotateTextResponse> annotateTextSettings()
public LanguageServiceSettings build() throws IOException
build
in class ClientSettings.Builder<LanguageServiceSettings,LanguageServiceSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.