Package com.google.cloud.speech.v2.stub
Class SpeechStubSettings
- java.lang.Object
-
- com.google.api.gax.rpc.StubSettings<SpeechStubSettings>
-
- com.google.cloud.speech.v2.stub.SpeechStubSettings
-
@Generated("by gapic-generator-java") public class SpeechStubSettings extends com.google.api.gax.rpc.StubSettings<SpeechStubSettings>
Settings class to configure an instance ofSpeechStub
.The default instance has everything set to sensible defaults:
- The default service address (speech.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
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();
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpeechStubSettings.Builder
Builder for SpeechStubSettings.
-
Constructor Summary
Constructors Modifier Constructor Description protected
SpeechStubSettings(SpeechStubSettings.Builder settingsBuilder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.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.-
Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
-
-
-
-
Constructor Detail
-
SpeechStubSettings
protected SpeechStubSettings(SpeechStubSettings.Builder settingsBuilder) throws IOException
- Throws:
IOException
-
-
Method Detail
-
createRecognizerSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateRecognizerRequest,com.google.longrunning.Operation> createRecognizerSettings()
Returns the object with the settings used for calls to createRecognizer.
-
createRecognizerOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateRecognizerRequest,Recognizer,OperationMetadata> createRecognizerOperationSettings()
Returns the object with the settings used for calls to createRecognizer.
-
listRecognizersSettings
public com.google.api.gax.rpc.PagedCallSettings<ListRecognizersRequest,ListRecognizersResponse,SpeechClient.ListRecognizersPagedResponse> listRecognizersSettings()
Returns the object with the settings used for calls to listRecognizers.
-
getRecognizerSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetRecognizerRequest,Recognizer> getRecognizerSettings()
Returns the object with the settings used for calls to getRecognizer.
-
updateRecognizerSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateRecognizerRequest,com.google.longrunning.Operation> updateRecognizerSettings()
Returns the object with the settings used for calls to updateRecognizer.
-
updateRecognizerOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateRecognizerRequest,Recognizer,OperationMetadata> updateRecognizerOperationSettings()
Returns the object with the settings used for calls to updateRecognizer.
-
deleteRecognizerSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteRecognizerRequest,com.google.longrunning.Operation> deleteRecognizerSettings()
Returns the object with the settings used for calls to deleteRecognizer.
-
deleteRecognizerOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteRecognizerRequest,Recognizer,OperationMetadata> deleteRecognizerOperationSettings()
Returns the object with the settings used for calls to deleteRecognizer.
-
undeleteRecognizerSettings
public com.google.api.gax.rpc.UnaryCallSettings<UndeleteRecognizerRequest,com.google.longrunning.Operation> undeleteRecognizerSettings()
Returns the object with the settings used for calls to undeleteRecognizer.
-
undeleteRecognizerOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UndeleteRecognizerRequest,Recognizer,OperationMetadata> undeleteRecognizerOperationSettings()
Returns the object with the settings used for calls to undeleteRecognizer.
-
recognizeSettings
public com.google.api.gax.rpc.UnaryCallSettings<RecognizeRequest,RecognizeResponse> recognizeSettings()
Returns the object with the settings used for calls to recognize.
-
streamingRecognizeSettings
public com.google.api.gax.rpc.StreamingCallSettings<StreamingRecognizeRequest,StreamingRecognizeResponse> streamingRecognizeSettings()
Returns the object with the settings used for calls to streamingRecognize.
-
batchRecognizeSettings
public com.google.api.gax.rpc.UnaryCallSettings<BatchRecognizeRequest,com.google.longrunning.Operation> batchRecognizeSettings()
Returns the object with the settings used for calls to batchRecognize.
-
batchRecognizeOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<BatchRecognizeRequest,BatchRecognizeResponse,OperationMetadata> batchRecognizeOperationSettings()
Returns the object with the settings used for calls to batchRecognize.
-
getConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetConfigRequest,Config> getConfigSettings()
Returns the object with the settings used for calls to getConfig.
-
updateConfigSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateConfigRequest,Config> updateConfigSettings()
Returns the object with the settings used for calls to updateConfig.
-
createCustomClassSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreateCustomClassRequest,com.google.longrunning.Operation> createCustomClassSettings()
Returns the object with the settings used for calls to createCustomClass.
-
createCustomClassOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreateCustomClassRequest,CustomClass,OperationMetadata> createCustomClassOperationSettings()
Returns the object with the settings used for calls to createCustomClass.
-
listCustomClassesSettings
public com.google.api.gax.rpc.PagedCallSettings<ListCustomClassesRequest,ListCustomClassesResponse,SpeechClient.ListCustomClassesPagedResponse> listCustomClassesSettings()
Returns the object with the settings used for calls to listCustomClasses.
-
getCustomClassSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetCustomClassRequest,CustomClass> getCustomClassSettings()
Returns the object with the settings used for calls to getCustomClass.
-
updateCustomClassSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdateCustomClassRequest,com.google.longrunning.Operation> updateCustomClassSettings()
Returns the object with the settings used for calls to updateCustomClass.
-
updateCustomClassOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdateCustomClassRequest,CustomClass,OperationMetadata> updateCustomClassOperationSettings()
Returns the object with the settings used for calls to updateCustomClass.
-
deleteCustomClassSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeleteCustomClassRequest,com.google.longrunning.Operation> deleteCustomClassSettings()
Returns the object with the settings used for calls to deleteCustomClass.
-
deleteCustomClassOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeleteCustomClassRequest,CustomClass,OperationMetadata> deleteCustomClassOperationSettings()
Returns the object with the settings used for calls to deleteCustomClass.
-
undeleteCustomClassSettings
public com.google.api.gax.rpc.UnaryCallSettings<UndeleteCustomClassRequest,com.google.longrunning.Operation> undeleteCustomClassSettings()
Returns the object with the settings used for calls to undeleteCustomClass.
-
undeleteCustomClassOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UndeleteCustomClassRequest,CustomClass,OperationMetadata> undeleteCustomClassOperationSettings()
Returns the object with the settings used for calls to undeleteCustomClass.
-
createPhraseSetSettings
public com.google.api.gax.rpc.UnaryCallSettings<CreatePhraseSetRequest,com.google.longrunning.Operation> createPhraseSetSettings()
Returns the object with the settings used for calls to createPhraseSet.
-
createPhraseSetOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<CreatePhraseSetRequest,PhraseSet,OperationMetadata> createPhraseSetOperationSettings()
Returns the object with the settings used for calls to createPhraseSet.
-
listPhraseSetsSettings
public com.google.api.gax.rpc.PagedCallSettings<ListPhraseSetsRequest,ListPhraseSetsResponse,SpeechClient.ListPhraseSetsPagedResponse> listPhraseSetsSettings()
Returns the object with the settings used for calls to listPhraseSets.
-
getPhraseSetSettings
public com.google.api.gax.rpc.UnaryCallSettings<GetPhraseSetRequest,PhraseSet> getPhraseSetSettings()
Returns the object with the settings used for calls to getPhraseSet.
-
updatePhraseSetSettings
public com.google.api.gax.rpc.UnaryCallSettings<UpdatePhraseSetRequest,com.google.longrunning.Operation> updatePhraseSetSettings()
Returns the object with the settings used for calls to updatePhraseSet.
-
updatePhraseSetOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UpdatePhraseSetRequest,PhraseSet,OperationMetadata> updatePhraseSetOperationSettings()
Returns the object with the settings used for calls to updatePhraseSet.
-
deletePhraseSetSettings
public com.google.api.gax.rpc.UnaryCallSettings<DeletePhraseSetRequest,com.google.longrunning.Operation> deletePhraseSetSettings()
Returns the object with the settings used for calls to deletePhraseSet.
-
deletePhraseSetOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<DeletePhraseSetRequest,PhraseSet,OperationMetadata> deletePhraseSetOperationSettings()
Returns the object with the settings used for calls to deletePhraseSet.
-
undeletePhraseSetSettings
public com.google.api.gax.rpc.UnaryCallSettings<UndeletePhraseSetRequest,com.google.longrunning.Operation> undeletePhraseSetSettings()
Returns the object with the settings used for calls to undeletePhraseSet.
-
undeletePhraseSetOperationSettings
public com.google.api.gax.rpc.OperationCallSettings<UndeletePhraseSetRequest,PhraseSet,OperationMetadata> undeletePhraseSetOperationSettings()
Returns the object with the settings used for calls to undeletePhraseSet.
-
listLocationsSettings
public 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.
-
getLocationSettings
public 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.
-
createStub
public SpeechStub createStub() throws IOException
- Throws:
IOException
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
-
getDefaultEndpoint
public static String getDefaultEndpoint()
Returns the default service endpoint.
-
getDefaultMtlsEndpoint
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
-
getDefaultServiceScopes
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
-
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
-
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
-
defaultHttpJsonTransportProviderBuilder
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
-
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
-
defaultGrpcApiClientHeaderProviderBuilder
@BetaApi("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()
-
defaultHttpJsonApiClientHeaderProviderBuilder
@BetaApi("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()
-
defaultApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
-
newBuilder
public static SpeechStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
-
newHttpJsonBuilder
public static SpeechStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
-
newBuilder
public static SpeechStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
-
toBuilder
public SpeechStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.- Specified by:
toBuilder
in classcom.google.api.gax.rpc.StubSettings<SpeechStubSettings>
-
-