@Generated(value="by gapic-generator") @BetaApi public class ProductSearchSettings extends ClientSettings<ProductSearchSettings>
ProductSearchClient
.
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 createProductSet to 30 seconds:
ProductSearchSettings.Builder productSearchSettingsBuilder =
ProductSearchSettings.newBuilder();
productSearchSettingsBuilder.createProductSetSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
ProductSearchSettings productSearchSettings = productSearchSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
ProductSearchSettings.Builder
Builder for ProductSearchSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
ProductSearchSettings(ProductSearchSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest,Empty> |
addProductToProductSetSettings()
Returns the object with the settings used for calls to addProductToProductSet.
|
static ProductSearchSettings |
create(ProductSearchStubSettings stub) |
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.CreateProductSetRequest,com.google.cloud.vision.v1p3beta1.ProductSet> |
createProductSetSettings()
Returns the object with the settings used for calls to createProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.CreateProductRequest,com.google.cloud.vision.v1p3beta1.Product> |
createProductSettings()
Returns the object with the settings used for calls to createProduct.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest,com.google.cloud.vision.v1p3beta1.ReferenceImage> |
createReferenceImageSettings()
Returns the object with the settings used for calls to createReferenceImage.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest,Empty> |
deleteProductSetSettings()
Returns the object with the settings used for calls to deleteProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.DeleteProductRequest,Empty> |
deleteProductSettings()
Returns the object with the settings used for calls to deleteProduct.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest,Empty> |
deleteReferenceImageSettings()
Returns the object with the settings used for calls to deleteReferenceImage.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.GetProductSetRequest,com.google.cloud.vision.v1p3beta1.ProductSet> |
getProductSetSettings()
Returns the object with the settings used for calls to getProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.GetProductRequest,com.google.cloud.vision.v1p3beta1.Product> |
getProductSettings()
Returns the object with the settings used for calls to getProduct.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest,com.google.cloud.vision.v1p3beta1.ReferenceImage> |
getReferenceImageSettings()
Returns the object with the settings used for calls to getReferenceImage.
|
OperationCallSettings<com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse,com.google.cloud.vision.v1p3beta1.BatchOperationMetadata> |
importProductSetsOperationSettings()
Returns the object with the settings used for calls to importProductSets.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,Operation> |
importProductSetsSettings()
Returns the object with the settings used for calls to importProductSets.
|
PagedCallSettings<com.google.cloud.vision.v1p3beta1.ListProductSetsRequest,com.google.cloud.vision.v1p3beta1.ListProductSetsResponse,ProductSearchClient.ListProductSetsPagedResponse> |
listProductSetsSettings()
Returns the object with the settings used for calls to listProductSets.
|
PagedCallSettings<com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest,com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse,ProductSearchClient.ListProductsInProductSetPagedResponse> |
listProductsInProductSetSettings()
Returns the object with the settings used for calls to listProductsInProductSet.
|
PagedCallSettings<com.google.cloud.vision.v1p3beta1.ListProductsRequest,com.google.cloud.vision.v1p3beta1.ListProductsResponse,ProductSearchClient.ListProductsPagedResponse> |
listProductsSettings()
Returns the object with the settings used for calls to listProducts.
|
PagedCallSettings<com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest,com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse,ProductSearchClient.ListReferenceImagesPagedResponse> |
listReferenceImagesSettings()
Returns the object with the settings used for calls to listReferenceImages.
|
static ProductSearchSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static ProductSearchSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest,Empty> |
removeProductFromProductSetSettings()
Returns the object with the settings used for calls to removeProductFromProductSet.
|
ProductSearchSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest,com.google.cloud.vision.v1p3beta1.ProductSet> |
updateProductSetSettings()
Returns the object with the settings used for calls to updateProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1p3beta1.UpdateProductRequest,com.google.cloud.vision.v1p3beta1.Product> |
updateProductSettings()
Returns the object with the settings used for calls to updateProduct.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStubSettings, getTransportChannelProvider, getWatchdogCheckInterval, getWatchdogProvider, toString
protected ProductSearchSettings(ProductSearchSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.CreateProductSetRequest,com.google.cloud.vision.v1p3beta1.ProductSet> createProductSetSettings()
public PagedCallSettings<com.google.cloud.vision.v1p3beta1.ListProductSetsRequest,com.google.cloud.vision.v1p3beta1.ListProductSetsResponse,ProductSearchClient.ListProductSetsPagedResponse> listProductSetsSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.GetProductSetRequest,com.google.cloud.vision.v1p3beta1.ProductSet> getProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.UpdateProductSetRequest,com.google.cloud.vision.v1p3beta1.ProductSet> updateProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.DeleteProductSetRequest,Empty> deleteProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.CreateProductRequest,com.google.cloud.vision.v1p3beta1.Product> createProductSettings()
public PagedCallSettings<com.google.cloud.vision.v1p3beta1.ListProductsRequest,com.google.cloud.vision.v1p3beta1.ListProductsResponse,ProductSearchClient.ListProductsPagedResponse> listProductsSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.GetProductRequest,com.google.cloud.vision.v1p3beta1.Product> getProductSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.UpdateProductRequest,com.google.cloud.vision.v1p3beta1.Product> updateProductSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.DeleteProductRequest,Empty> deleteProductSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.CreateReferenceImageRequest,com.google.cloud.vision.v1p3beta1.ReferenceImage> createReferenceImageSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.DeleteReferenceImageRequest,Empty> deleteReferenceImageSettings()
public PagedCallSettings<com.google.cloud.vision.v1p3beta1.ListReferenceImagesRequest,com.google.cloud.vision.v1p3beta1.ListReferenceImagesResponse,ProductSearchClient.ListReferenceImagesPagedResponse> listReferenceImagesSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.GetReferenceImageRequest,com.google.cloud.vision.v1p3beta1.ReferenceImage> getReferenceImageSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.AddProductToProductSetRequest,Empty> addProductToProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.RemoveProductFromProductSetRequest,Empty> removeProductFromProductSetSettings()
public PagedCallSettings<com.google.cloud.vision.v1p3beta1.ListProductsInProductSetRequest,com.google.cloud.vision.v1p3beta1.ListProductsInProductSetResponse,ProductSearchClient.ListProductsInProductSetPagedResponse> listProductsInProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,Operation> importProductSetsSettings()
@BetaApi(value="The surface for long-running operations is not stable yet and may change in the future.") public OperationCallSettings<com.google.cloud.vision.v1p3beta1.ImportProductSetsRequest,com.google.cloud.vision.v1p3beta1.ImportProductSetsResponse,com.google.cloud.vision.v1p3beta1.BatchOperationMetadata> importProductSetsOperationSettings()
public static final ProductSearchSettings create(ProductSearchStubSettings stub) throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static ProductSearchSettings.Builder newBuilder()
public static ProductSearchSettings.Builder newBuilder(ClientContext clientContext)
public ProductSearchSettings.Builder toBuilder()
toBuilder
in class ClientSettings<ProductSearchSettings>
Copyright © 2019 Google LLC. All rights reserved.