Class GenerativeQuestionServiceSettings.Builder (2.57.0)

public static class GenerativeQuestionServiceSettings.Builder extends ClientSettings.Builder<GenerativeQuestionServiceSettings,GenerativeQuestionServiceSettings.Builder>

Builder for GenerativeQuestionServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > GenerativeQuestionServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(GenerativeQuestionServiceSettings settings)

protected Builder(GenerativeQuestionServiceSettings settings)
Parameter
Name Description
settings GenerativeQuestionServiceSettings

Builder(GenerativeQuestionServiceStubSettings.Builder stubSettings)

protected Builder(GenerativeQuestionServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings GenerativeQuestionServiceStubSettings.Builder

Methods

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

public GenerativeQuestionServiceSettings.Builder applyToAllUnaryMethods(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
GenerativeQuestionServiceSettings.Builder

batchUpdateGenerativeQuestionConfigsSettings()

public UnaryCallSettings.Builder<BatchUpdateGenerativeQuestionConfigsRequest,BatchUpdateGenerativeQuestionConfigsResponse> batchUpdateGenerativeQuestionConfigsSettings()

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

Returns
Type Description
Builder<BatchUpdateGenerativeQuestionConfigsRequest,BatchUpdateGenerativeQuestionConfigsResponse>

build()

public GenerativeQuestionServiceSettings build()
Returns
Type Description
GenerativeQuestionServiceSettings
Overrides
Exceptions
Type Description
IOException

getGenerativeQuestionsFeatureConfigSettings()

public UnaryCallSettings.Builder<GetGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig> getGenerativeQuestionsFeatureConfigSettings()

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

Returns
Type Description
Builder<GetGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig>

getStubSettingsBuilder()

public GenerativeQuestionServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
GenerativeQuestionServiceStubSettings.Builder

listGenerativeQuestionConfigsSettings()

public UnaryCallSettings.Builder<ListGenerativeQuestionConfigsRequest,ListGenerativeQuestionConfigsResponse> listGenerativeQuestionConfigsSettings()

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

Returns
Type Description
Builder<ListGenerativeQuestionConfigsRequest,ListGenerativeQuestionConfigsResponse>

updateGenerativeQuestionConfigSettings()

public UnaryCallSettings.Builder<UpdateGenerativeQuestionConfigRequest,GenerativeQuestionConfig> updateGenerativeQuestionConfigSettings()

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

Returns
Type Description
Builder<UpdateGenerativeQuestionConfigRequest,GenerativeQuestionConfig>

updateGenerativeQuestionsFeatureConfigSettings()

public UnaryCallSettings.Builder<UpdateGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig> updateGenerativeQuestionsFeatureConfigSettings()

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

Returns
Type Description
Builder<UpdateGenerativeQuestionsFeatureConfigRequest,GenerativeQuestionsFeatureConfig>