public static class LanguageServiceStubSettings.Builder extends StubSettings.Builder<LanguageServiceStubSettings,LanguageServiceStubSettings.Builder>
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
protected |
Builder(ClientContext clientContext) |
protected |
Builder(LanguageServiceStubSettings settings) |
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.
|
LanguageServiceStubSettings.Builder |
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.
|
LanguageServiceStubSettings |
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.
|
com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> |
unaryMethodSettingsBuilders() |
applyToAllUnaryMethods, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setHeaderProvider, setInternalHeaderProvider, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setTracerFactory, setTransportChannelProvider, toString
protected Builder()
protected Builder(ClientContext clientContext)
protected Builder(LanguageServiceStubSettings settings)
public LanguageServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater) throws Exception
Note: This method does not support applying settings to streaming methods.
Exception
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
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 LanguageServiceStubSettings build() throws IOException
build
in class StubSettings.Builder<LanguageServiceStubSettings,LanguageServiceStubSettings.Builder>
IOException
Copyright © 2019 Google LLC. All rights reserved.