Class PredictionServiceStubSettings.Builder
java.lang.Object
com.google.api.gax.rpc.StubSettings.Builder<PredictionServiceStubSettings,PredictionServiceStubSettings.Builder>
com.google.cloud.aiplatform.v1beta1.stub.PredictionServiceStubSettings.Builder
- Enclosing class:
- PredictionServiceStubSettings
public static class PredictionServiceStubSettings.Builder
extends StubSettings.Builder<PredictionServiceStubSettings,PredictionServiceStubSettings.Builder>
Builder for PredictionServiceStubSettings.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()protectedBuilder(ClientContext clientContext) protectedBuilder(PredictionServiceStubSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionapplyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) Applies the given settings updater function to all of the unary API methods in this service.build()Returns the builder for the settings used for calls to chatCompletions.Returns the builder for the settings used for calls to countTokens.Returns the builder for the settings used for calls to directPredict.Returns the builder for the settings used for calls to directRawPredict.Returns the builder for the settings used for calls to embedContent.Returns the builder for the settings used for calls to explain.Returns the builder for the settings used for calls to generateContent.Returns the builder for the settings used for calls to getIamPolicy.Returns the builder for the settings used for calls to getLocation.PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse, PredictionServiceClient.ListLocationsPagedResponse> Returns the builder for the settings used for calls to listLocations.Returns the builder for the settings used for calls to predict.Returns the builder for the settings used for calls to rawPredict.Returns the builder for the settings used for calls to serverStreamingPredict.Returns the builder for the settings used for calls to setIamPolicy.Returns the builder for the settings used for calls to streamDirectPredict.Returns the builder for the settings used for calls to streamDirectRawPredict.Returns the builder for the settings used for calls to streamGenerateContent.Returns the builder for the settings used for calls to streamingPredict.Returns the builder for the settings used for calls to streamingRawPredict.Returns the builder for the settings used for calls to streamRawPredict.Returns the builder for the settings used for calls to testIamPermissions.com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setApiKey, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogCheckIntervalDuration, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, setUniverseDomain, toString
-
Constructor Details
-
Builder
protected Builder() -
Builder
-
Builder
-
-
Method Details
-
applyToAllUnaryMethods
public PredictionServiceStubSettings.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.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders() -
predictSettings
Returns the builder for the settings used for calls to predict. -
rawPredictSettings
Returns the builder for the settings used for calls to rawPredict. -
streamRawPredictSettings
public ServerStreamingCallSettings.Builder<StreamRawPredictRequest,HttpBody> streamRawPredictSettings()Returns the builder for the settings used for calls to streamRawPredict. -
directPredictSettings
public UnaryCallSettings.Builder<DirectPredictRequest,DirectPredictResponse> directPredictSettings()Returns the builder for the settings used for calls to directPredict. -
directRawPredictSettings
public UnaryCallSettings.Builder<DirectRawPredictRequest,DirectRawPredictResponse> directRawPredictSettings()Returns the builder for the settings used for calls to directRawPredict. -
streamDirectPredictSettings
public StreamingCallSettings.Builder<StreamDirectPredictRequest,StreamDirectPredictResponse> streamDirectPredictSettings()Returns the builder for the settings used for calls to streamDirectPredict. -
streamDirectRawPredictSettings
public StreamingCallSettings.Builder<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> streamDirectRawPredictSettings()Returns the builder for the settings used for calls to streamDirectRawPredict. -
streamingPredictSettings
public StreamingCallSettings.Builder<StreamingPredictRequest,StreamingPredictResponse> streamingPredictSettings()Returns the builder for the settings used for calls to streamingPredict. -
serverStreamingPredictSettings
public ServerStreamingCallSettings.Builder<StreamingPredictRequest,StreamingPredictResponse> serverStreamingPredictSettings()Returns the builder for the settings used for calls to serverStreamingPredict. -
streamingRawPredictSettings
public StreamingCallSettings.Builder<StreamingRawPredictRequest,StreamingRawPredictResponse> streamingRawPredictSettings()Returns the builder for the settings used for calls to streamingRawPredict. -
explainSettings
Returns the builder for the settings used for calls to explain. -
countTokensSettings
Returns the builder for the settings used for calls to countTokens. -
generateContentSettings
public UnaryCallSettings.Builder<GenerateContentRequest,GenerateContentResponse> generateContentSettings()Returns the builder for the settings used for calls to generateContent. -
streamGenerateContentSettings
public ServerStreamingCallSettings.Builder<GenerateContentRequest,GenerateContentResponse> streamGenerateContentSettings()Returns the builder for the settings used for calls to streamGenerateContent. -
chatCompletionsSettings
public ServerStreamingCallSettings.Builder<ChatCompletionsRequest,HttpBody> chatCompletionsSettings()Returns the builder for the settings used for calls to chatCompletions. -
embedContentSettings
Returns the builder for the settings used for calls to embedContent. -
listLocationsSettings
public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse, listLocationsSettings()PredictionServiceClient.ListLocationsPagedResponse> Returns the builder for the settings used for calls to listLocations. -
getLocationSettings
Returns the builder for the settings used for calls to getLocation. -
setIamPolicySettings
Returns the builder for the settings used for calls to setIamPolicy. -
getIamPolicySettings
Returns the builder for the settings used for calls to getIamPolicy. -
testIamPermissionsSettings
public UnaryCallSettings.Builder<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsSettings()Returns the builder for the settings used for calls to testIamPermissions. -
build
- Specified by:
buildin classStubSettings.Builder<PredictionServiceStubSettings,PredictionServiceStubSettings.Builder> - Throws:
IOException
-