@Generated(value="by gapic-generator-java") public class SpeechStubSettings extends com.google.api.gax.rpc.StubSettings<SpeechStubSettings>
SpeechStub.
The default instance has everything set to sensible defaults:
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the total timeout of getRecognizer to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
SpeechStubSettings.Builder speechSettingsBuilder = SpeechStubSettings.newBuilder();
speechSettingsBuilder
.getRecognizerSettings()
.setRetrySettings(
speechSettingsBuilder
.getRecognizerSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
SpeechStubSettings speechSettings = speechSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
SpeechStubSettings.Builder
Builder for SpeechStubSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
SpeechStubSettings(SpeechStubSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.rpc.OperationCallSettings<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata> |
batchRecognizeOperationSettings()
Returns the object with the settings used for calls to batchRecognize.
|
com.google.api.gax.rpc.UnaryCallSettings<BatchRecognizeRequest,com.google.longrunning.Operation> |
batchRecognizeSettings()
Returns the object with the settings used for calls to batchRecognize.
|
com.google.api.gax.rpc.OperationCallSettings<CreateCustomClassRequest,CustomClass,OperationMetadata> |
createCustomClassOperationSettings()
Returns the object with the settings used for calls to createCustomClass.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateCustomClassRequest,com.google.longrunning.Operation> |
createCustomClassSettings()
Returns the object with the settings used for calls to createCustomClass.
|
com.google.api.gax.rpc.OperationCallSettings<CreatePhraseSetRequest,PhraseSet,OperationMetadata> |
createPhraseSetOperationSettings()
Returns the object with the settings used for calls to createPhraseSet.
|
com.google.api.gax.rpc.UnaryCallSettings<CreatePhraseSetRequest,com.google.longrunning.Operation> |
createPhraseSetSettings()
Returns the object with the settings used for calls to createPhraseSet.
|
com.google.api.gax.rpc.OperationCallSettings<CreateRecognizerRequest,Recognizer,OperationMetadata> |
createRecognizerOperationSettings()
Returns the object with the settings used for calls to createRecognizer.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateRecognizerRequest,com.google.longrunning.Operation> |
createRecognizerSettings()
Returns the object with the settings used for calls to createRecognizer.
|
SpeechStub |
createStub() |
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultGrpcApiClientHeaderProviderBuilder() |
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultHttpJsonApiClientHeaderProviderBuilder() |
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.OperationCallSettings<DeleteCustomClassRequest,CustomClass,OperationMetadata> |
deleteCustomClassOperationSettings()
Returns the object with the settings used for calls to deleteCustomClass.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteCustomClassRequest,com.google.longrunning.Operation> |
deleteCustomClassSettings()
Returns the object with the settings used for calls to deleteCustomClass.
|
com.google.api.gax.rpc.OperationCallSettings<DeletePhraseSetRequest,PhraseSet,OperationMetadata> |
deletePhraseSetOperationSettings()
Returns the object with the settings used for calls to deletePhraseSet.
|
com.google.api.gax.rpc.UnaryCallSettings<DeletePhraseSetRequest,com.google.longrunning.Operation> |
deletePhraseSetSettings()
Returns the object with the settings used for calls to deletePhraseSet.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteRecognizerRequest,Recognizer,OperationMetadata> |
deleteRecognizerOperationSettings()
Returns the object with the settings used for calls to deleteRecognizer.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteRecognizerRequest,com.google.longrunning.Operation> |
deleteRecognizerSettings()
Returns the object with the settings used for calls to deleteRecognizer.
|
com.google.api.gax.rpc.UnaryCallSettings<GetConfigRequest,Config> |
getConfigSettings()
Returns the object with the settings used for calls to getConfig.
|
com.google.api.gax.rpc.UnaryCallSettings<GetCustomClassRequest,CustomClass> |
getCustomClassSettings()
Returns the object with the settings used for calls to getCustomClass.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static String |
getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> |
getLocationSettings()
Returns the object with the settings used for calls to getLocation.
|
com.google.api.gax.rpc.UnaryCallSettings<GetPhraseSetRequest,PhraseSet> |
getPhraseSetSettings()
Returns the object with the settings used for calls to getPhraseSet.
|
com.google.api.gax.rpc.UnaryCallSettings<GetRecognizerRequest,Recognizer> |
getRecognizerSettings()
Returns the object with the settings used for calls to getRecognizer.
|
String |
getServiceName()
Returns the default service name.
|
com.google.api.gax.rpc.PagedCallSettings<ListCustomClassesRequest,ListCustomClassesResponse,SpeechClient.ListCustomClassesPagedResponse> |
listCustomClassesSettings()
Returns the object with the settings used for calls to listCustomClasses.
|
com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,SpeechClient.ListLocationsPagedResponse> |
listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
|
com.google.api.gax.rpc.PagedCallSettings<ListPhraseSetsRequest,ListPhraseSetsResponse,SpeechClient.ListPhraseSetsPagedResponse> |
listPhraseSetsSettings()
Returns the object with the settings used for calls to listPhraseSets.
|
com.google.api.gax.rpc.PagedCallSettings<ListRecognizersRequest,ListRecognizersResponse,SpeechClient.ListRecognizersPagedResponse> |
listRecognizersSettings()
Returns the object with the settings used for calls to listRecognizers.
|
static SpeechStubSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static SpeechStubSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
static SpeechStubSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
com.google.api.gax.rpc.UnaryCallSettings<RecognizeRequest,RecognizeResponse> |
recognizeSettings()
Returns the object with the settings used for calls to recognize.
|
com.google.api.gax.rpc.StreamingCallSettings<StreamingRecognizeRequest,StreamingRecognizeResponse> |
streamingRecognizeSettings()
Returns the object with the settings used for calls to streamingRecognize.
|
SpeechStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.OperationCallSettings<UndeleteCustomClassRequest,CustomClass,OperationMetadata> |
undeleteCustomClassOperationSettings()
Returns the object with the settings used for calls to undeleteCustomClass.
|
com.google.api.gax.rpc.UnaryCallSettings<UndeleteCustomClassRequest,com.google.longrunning.Operation> |
undeleteCustomClassSettings()
Returns the object with the settings used for calls to undeleteCustomClass.
|
com.google.api.gax.rpc.OperationCallSettings<UndeletePhraseSetRequest,PhraseSet,OperationMetadata> |
undeletePhraseSetOperationSettings()
Returns the object with the settings used for calls to undeletePhraseSet.
|
com.google.api.gax.rpc.UnaryCallSettings<UndeletePhraseSetRequest,com.google.longrunning.Operation> |
undeletePhraseSetSettings()
Returns the object with the settings used for calls to undeletePhraseSet.
|
com.google.api.gax.rpc.OperationCallSettings<UndeleteRecognizerRequest,Recognizer,OperationMetadata> |
undeleteRecognizerOperationSettings()
Returns the object with the settings used for calls to undeleteRecognizer.
|
com.google.api.gax.rpc.UnaryCallSettings<UndeleteRecognizerRequest,com.google.longrunning.Operation> |
undeleteRecognizerSettings()
Returns the object with the settings used for calls to undeleteRecognizer.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateConfigRequest,Config> |
updateConfigSettings()
Returns the object with the settings used for calls to updateConfig.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateCustomClassRequest,CustomClass,OperationMetadata> |
updateCustomClassOperationSettings()
Returns the object with the settings used for calls to updateCustomClass.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateCustomClassRequest,com.google.longrunning.Operation> |
updateCustomClassSettings()
Returns the object with the settings used for calls to updateCustomClass.
|
com.google.api.gax.rpc.OperationCallSettings<UpdatePhraseSetRequest,PhraseSet,OperationMetadata> |
updatePhraseSetOperationSettings()
Returns the object with the settings used for calls to updatePhraseSet.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdatePhraseSetRequest,com.google.longrunning.Operation> |
updatePhraseSetSettings()
Returns the object with the settings used for calls to updatePhraseSet.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateRecognizerRequest,Recognizer,OperationMetadata> |
updateRecognizerOperationSettings()
Returns the object with the settings used for calls to updateRecognizer.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateRecognizerRequest,com.google.longrunning.Operation> |
updateRecognizerSettings()
Returns the object with the settings used for calls to updateRecognizer.
|
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toStringprotected SpeechStubSettings(SpeechStubSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.UnaryCallSettings<CreateRecognizerRequest,com.google.longrunning.Operation> createRecognizerSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateRecognizerRequest,Recognizer,OperationMetadata> createRecognizerOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListRecognizersRequest,ListRecognizersResponse,SpeechClient.ListRecognizersPagedResponse> listRecognizersSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetRecognizerRequest,Recognizer> getRecognizerSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateRecognizerRequest,com.google.longrunning.Operation> updateRecognizerSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateRecognizerRequest,Recognizer,OperationMetadata> updateRecognizerOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteRecognizerRequest,com.google.longrunning.Operation> deleteRecognizerSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteRecognizerRequest,Recognizer,OperationMetadata> deleteRecognizerOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UndeleteRecognizerRequest,com.google.longrunning.Operation> undeleteRecognizerSettings()
public com.google.api.gax.rpc.OperationCallSettings<UndeleteRecognizerRequest,Recognizer,OperationMetadata> undeleteRecognizerOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<RecognizeRequest,RecognizeResponse> recognizeSettings()
public com.google.api.gax.rpc.StreamingCallSettings<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognizeSettings()
public com.google.api.gax.rpc.UnaryCallSettings<BatchRecognizeRequest,com.google.longrunning.Operation> batchRecognizeSettings()
public com.google.api.gax.rpc.OperationCallSettings<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata> batchRecognizeOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetConfigRequest,Config> getConfigSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateConfigRequest,Config> updateConfigSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateCustomClassRequest,com.google.longrunning.Operation> createCustomClassSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateCustomClassRequest,CustomClass,OperationMetadata> createCustomClassOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListCustomClassesRequest,ListCustomClassesResponse,SpeechClient.ListCustomClassesPagedResponse> listCustomClassesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetCustomClassRequest,CustomClass> getCustomClassSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateCustomClassRequest,com.google.longrunning.Operation> updateCustomClassSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateCustomClassRequest,CustomClass,OperationMetadata> updateCustomClassOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteCustomClassRequest,com.google.longrunning.Operation> deleteCustomClassSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteCustomClassRequest,CustomClass,OperationMetadata> deleteCustomClassOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UndeleteCustomClassRequest,com.google.longrunning.Operation> undeleteCustomClassSettings()
public com.google.api.gax.rpc.OperationCallSettings<UndeleteCustomClassRequest,CustomClass,OperationMetadata> undeleteCustomClassOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreatePhraseSetRequest,com.google.longrunning.Operation> createPhraseSetSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreatePhraseSetRequest,PhraseSet,OperationMetadata> createPhraseSetOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListPhraseSetsRequest,ListPhraseSetsResponse,SpeechClient.ListPhraseSetsPagedResponse> listPhraseSetsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetPhraseSetRequest,PhraseSet> getPhraseSetSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdatePhraseSetRequest,com.google.longrunning.Operation> updatePhraseSetSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdatePhraseSetRequest,PhraseSet,OperationMetadata> updatePhraseSetOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeletePhraseSetRequest,com.google.longrunning.Operation> deletePhraseSetSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeletePhraseSetRequest,PhraseSet,OperationMetadata> deletePhraseSetOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UndeletePhraseSetRequest,com.google.longrunning.Operation> undeletePhraseSetSettings()
public com.google.api.gax.rpc.OperationCallSettings<UndeletePhraseSetRequest,PhraseSet,OperationMetadata> undeletePhraseSetOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,SpeechClient.ListLocationsPagedResponse> listLocationsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location> getLocationSettings()
public SpeechStub createStub() throws IOException
IOExceptionpublic String getServiceName()
getServiceName in class com.google.api.gax.rpc.StubSettings<SpeechStubSettings>public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static String getDefaultMtlsEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static SpeechStubSettings.Builder newBuilder()
public static SpeechStubSettings.Builder newHttpJsonBuilder()
public static SpeechStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public SpeechStubSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.StubSettings<SpeechStubSettings>Copyright © 2024 Google LLC. All rights reserved.