Package com.google.cloud.retail.v2.stub
Class CompletionServiceStubSettings.Builder
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings.Builder<CompletionServiceStubSettings,CompletionServiceStubSettings.Builder>
-
- com.google.cloud.retail.v2.stub.CompletionServiceStubSettings.Builder
-
- Enclosing class:
- CompletionServiceStubSettings
public static class CompletionServiceStubSettings.Builder extends com.google.api.gax.rpc.StubSettings.Builder<CompletionServiceStubSettings,CompletionServiceStubSettings.Builder>
Builder for CompletionServiceStubSettings.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
protected
Builder(com.google.api.gax.rpc.ClientContext clientContext)
protected
Builder(CompletionServiceStubSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletionServiceStubSettings.Builder
applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
Applies the given settings updater function to all of the unary API methods in this service.CompletionServiceStubSettings
build()
com.google.api.gax.rpc.UnaryCallSettings.Builder<CompleteQueryRequest,CompleteQueryResponse>
completeQuerySettings()
Returns the builder for the settings used for calls to completeQuery.com.google.api.gax.rpc.OperationCallSettings.Builder<ImportCompletionDataRequest,ImportCompletionDataResponse,ImportMetadata>
importCompletionDataOperationSettings()
Returns the builder for the settings used for calls to importCompletionData.com.google.api.gax.rpc.UnaryCallSettings.Builder<ImportCompletionDataRequest,com.google.longrunning.Operation>
importCompletionDataSettings()
Returns the builder for the settings used for calls to importCompletionData.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>>
unaryMethodSettingsBuilders()
-
Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
Builder
protected Builder()
-
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext)
-
Builder
protected Builder(CompletionServiceStubSettings settings)
-
-
Method Detail
-
applyToAllUnaryMethods
public CompletionServiceStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
-
completeQuerySettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<CompleteQueryRequest,CompleteQueryResponse> completeQuerySettings()
Returns the builder for the settings used for calls to completeQuery.
-
importCompletionDataSettings
public com.google.api.gax.rpc.UnaryCallSettings.Builder<ImportCompletionDataRequest,com.google.longrunning.Operation> importCompletionDataSettings()
Returns the builder for the settings used for calls to importCompletionData.
-
importCompletionDataOperationSettings
@BetaApi("The surface for use by generated code is not stable yet and may change in the future.") public com.google.api.gax.rpc.OperationCallSettings.Builder<ImportCompletionDataRequest,ImportCompletionDataResponse,ImportMetadata> importCompletionDataOperationSettings()
Returns the builder for the settings used for calls to importCompletionData.
-
build
public CompletionServiceStubSettings build() throws IOException
- Specified by:
build
in classcom.google.api.gax.rpc.StubSettings.Builder<CompletionServiceStubSettings,CompletionServiceStubSettings.Builder>
- Throws:
IOException
-
-