Class LanguageServiceSettings.Builder (2.12.0)

publicstaticclass LanguageServiceSettings.BuilderextendsClientSettings.Builder<LanguageServiceSettings,LanguageServiceSettings.Builder>

Builder for LanguageServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > LanguageServiceSettings.Builder

Inherited Members

Constructors

Builder()

protectedBuilder()

Builder(ClientContext clientContext)

protectedBuilder(ClientContextclientContext)
Parameter
Name Description
clientContext ClientContext

Builder(LanguageServiceSettings settings)

protectedBuilder(LanguageServiceSettingssettings)
Parameter
Name Description

Builder(LanguageServiceStubSettings.Builder stubSettings)

protectedBuilder(LanguageServiceStubSettings.BuilderstubSettings)
Parameter
Name Description

Methods

analyzeEntitiesSettings()

publicUnaryCallSettings.Builder<AnalyzeEntitiesRequest,AnalyzeEntitiesResponse>analyzeEntitiesSettings()

Returns the builder for the settings used for calls to analyzeEntities.

Returns
Type Description

analyzeEntitySentimentSettings()

publicUnaryCallSettings.Builder<AnalyzeEntitySentimentRequest,AnalyzeEntitySentimentResponse>analyzeEntitySentimentSettings()

Returns the builder for the settings used for calls to analyzeEntitySentiment.

Returns
Type Description

analyzeSentimentSettings()

publicUnaryCallSettings.Builder<AnalyzeSentimentRequest,AnalyzeSentimentResponse>analyzeSentimentSettings()

Returns the builder for the settings used for calls to analyzeSentiment.

Returns
Type Description

analyzeSyntaxSettings()

publicUnaryCallSettings.Builder<AnalyzeSyntaxRequest,AnalyzeSyntaxResponse>analyzeSyntaxSettings()

Returns the builder for the settings used for calls to analyzeSyntax.

Returns
Type Description

annotateTextSettings()

publicUnaryCallSettings.Builder<AnnotateTextRequest,AnnotateTextResponse>annotateTextSettings()

Returns the builder for the settings used for calls to annotateText.

Returns
Type Description

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

publicLanguageServiceSettings.BuilderapplyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void>settingsUpdater)

Applies the given settings updater function to all of the unary API methods in this service.

Note: This method does not support applying settings to streaming methods.

Parameter
Name Description
settingsUpdater ApiFunction<Builder<?,?>,java.lang.Void>
Returns
Type Description

build()

publicLanguageServiceSettingsbuild()
Returns
Type Description
Overrides Exceptions
Type Description

classifyTextSettings()

publicUnaryCallSettings.Builder<ClassifyTextRequest,ClassifyTextResponse>classifyTextSettings()

Returns the builder for the settings used for calls to classifyText.

Returns
Type Description

getStubSettingsBuilder()

publicLanguageServiceStubSettings.BuildergetStubSettingsBuilder()
Returns
Type Description

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.