@Generated(value="by GAPIC v0.0.5") @ExperimentalApi public class ImageAnnotatorSettings extends com.google.api.gax.grpc.ClientSettings
ImageAnnotatorClient.
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 batchAnnotateImages to 30 seconds:
ImageAnnotatorSettings.Builder imageAnnotatorSettingsBuilder =
ImageAnnotatorSettings.defaultBuilder();
imageAnnotatorSettingsBuilder.batchAnnotateImagesSettings().getRetrySettingsBuilder()
.setTotalTimeout(Duration.standardSeconds(30));
ImageAnnotatorSettings imageAnnotatorSettings = imageAnnotatorSettingsBuilder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageAnnotatorSettings.Builder
Builder for ImageAnnotatorSettings.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.gax.grpc.SimpleCallSettings<com.google.cloud.vision.v1.BatchAnnotateImagesRequest,com.google.cloud.vision.v1.BatchAnnotateImagesResponse> |
batchAnnotateImagesSettings()
Returns the object with the settings used for calls to batchAnnotateImages.
|
static ImageAnnotatorSettings.Builder |
defaultBuilder()
Returns a builder for this class with recommended defaults.
|
static com.google.api.gax.grpc.InstantiatingChannelProvider.Builder |
defaultChannelProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.grpc.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static com.google.common.collect.ImmutableList<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
static ImageAnnotatorSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
ImageAnnotatorSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
public com.google.api.gax.grpc.SimpleCallSettings<com.google.cloud.vision.v1.BatchAnnotateImagesRequest,com.google.cloud.vision.v1.BatchAnnotateImagesResponse> batchAnnotateImagesSettings()
public static com.google.api.gax.grpc.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static com.google.common.collect.ImmutableList<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingChannelProvider.Builder defaultChannelProviderBuilder()
public static ImageAnnotatorSettings.Builder defaultBuilder()
public static ImageAnnotatorSettings.Builder newBuilder()
public ImageAnnotatorSettings.Builder toBuilder()
Copyright © 2017 Google. All rights reserved.