@Generated(value="by gapic-generator") public class ProductSearchStubSettings extends StubSettings<ProductSearchStubSettings>
ProductSearchStub
.
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 createProduct to 30 seconds:
ProductSearchStubSettings.Builder productSearchSettingsBuilder =
ProductSearchStubSettings.newBuilder();
productSearchSettingsBuilder.createProductSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
ProductSearchStubSettings productSearchSettings = productSearchSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
ProductSearchStubSettings.Builder
Builder for ProductSearchStubSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
ProductSearchStubSettings(ProductSearchStubSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
UnaryCallSettings<com.google.cloud.vision.v1.AddProductToProductSetRequest,Empty> |
addProductToProductSetSettings()
Returns the object with the settings used for calls to addProductToProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1.CreateProductSetRequest,com.google.cloud.vision.v1.ProductSet> |
createProductSetSettings()
Returns the object with the settings used for calls to createProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1.CreateProductRequest,com.google.cloud.vision.v1.Product> |
createProductSettings()
Returns the object with the settings used for calls to createProduct.
|
UnaryCallSettings<com.google.cloud.vision.v1.CreateReferenceImageRequest,com.google.cloud.vision.v1.ReferenceImage> |
createReferenceImageSettings()
Returns the object with the settings used for calls to createReferenceImage.
|
ProductSearchStub |
createStub() |
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.v1.DeleteProductSetRequest,Empty> |
deleteProductSetSettings()
Returns the object with the settings used for calls to deleteProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1.DeleteProductRequest,Empty> |
deleteProductSettings()
Returns the object with the settings used for calls to deleteProduct.
|
UnaryCallSettings<com.google.cloud.vision.v1.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.v1.GetProductSetRequest,com.google.cloud.vision.v1.ProductSet> |
getProductSetSettings()
Returns the object with the settings used for calls to getProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1.GetProductRequest,com.google.cloud.vision.v1.Product> |
getProductSettings()
Returns the object with the settings used for calls to getProduct.
|
UnaryCallSettings<com.google.cloud.vision.v1.GetReferenceImageRequest,com.google.cloud.vision.v1.ReferenceImage> |
getReferenceImageSettings()
Returns the object with the settings used for calls to getReferenceImage.
|
OperationCallSettings<com.google.cloud.vision.v1.ImportProductSetsRequest,com.google.cloud.vision.v1.ImportProductSetsResponse,com.google.cloud.vision.v1.BatchOperationMetadata> |
importProductSetsOperationSettings()
Returns the object with the settings used for calls to importProductSets.
|
UnaryCallSettings<com.google.cloud.vision.v1.ImportProductSetsRequest,Operation> |
importProductSetsSettings()
Returns the object with the settings used for calls to importProductSets.
|
PagedCallSettings<com.google.cloud.vision.v1.ListProductSetsRequest,com.google.cloud.vision.v1.ListProductSetsResponse,ProductSearchClient.ListProductSetsPagedResponse> |
listProductSetsSettings()
Returns the object with the settings used for calls to listProductSets.
|
PagedCallSettings<com.google.cloud.vision.v1.ListProductsInProductSetRequest,com.google.cloud.vision.v1.ListProductsInProductSetResponse,ProductSearchClient.ListProductsInProductSetPagedResponse> |
listProductsInProductSetSettings()
Returns the object with the settings used for calls to listProductsInProductSet.
|
PagedCallSettings<com.google.cloud.vision.v1.ListProductsRequest,com.google.cloud.vision.v1.ListProductsResponse,ProductSearchClient.ListProductsPagedResponse> |
listProductsSettings()
Returns the object with the settings used for calls to listProducts.
|
PagedCallSettings<com.google.cloud.vision.v1.ListReferenceImagesRequest,com.google.cloud.vision.v1.ListReferenceImagesResponse,ProductSearchClient.ListReferenceImagesPagedResponse> |
listReferenceImagesSettings()
Returns the object with the settings used for calls to listReferenceImages.
|
static ProductSearchStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static ProductSearchStubSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
UnaryCallSettings<com.google.cloud.vision.v1.RemoveProductFromProductSetRequest,Empty> |
removeProductFromProductSetSettings()
Returns the object with the settings used for calls to removeProductFromProductSet.
|
ProductSearchStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<com.google.cloud.vision.v1.UpdateProductSetRequest,com.google.cloud.vision.v1.ProductSet> |
updateProductSetSettings()
Returns the object with the settings used for calls to updateProductSet.
|
UnaryCallSettings<com.google.cloud.vision.v1.UpdateProductRequest,com.google.cloud.vision.v1.Product> |
updateProductSettings()
Returns the object with the settings used for calls to updateProduct.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected ProductSearchStubSettings(ProductSearchStubSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<com.google.cloud.vision.v1.CreateProductRequest,com.google.cloud.vision.v1.Product> createProductSettings()
public PagedCallSettings<com.google.cloud.vision.v1.ListProductsRequest,com.google.cloud.vision.v1.ListProductsResponse,ProductSearchClient.ListProductsPagedResponse> listProductsSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.GetProductRequest,com.google.cloud.vision.v1.Product> getProductSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.UpdateProductRequest,com.google.cloud.vision.v1.Product> updateProductSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.DeleteProductRequest,Empty> deleteProductSettings()
public PagedCallSettings<com.google.cloud.vision.v1.ListReferenceImagesRequest,com.google.cloud.vision.v1.ListReferenceImagesResponse,ProductSearchClient.ListReferenceImagesPagedResponse> listReferenceImagesSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.GetReferenceImageRequest,com.google.cloud.vision.v1.ReferenceImage> getReferenceImageSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.DeleteReferenceImageRequest,Empty> deleteReferenceImageSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.CreateReferenceImageRequest,com.google.cloud.vision.v1.ReferenceImage> createReferenceImageSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.CreateProductSetRequest,com.google.cloud.vision.v1.ProductSet> createProductSetSettings()
public PagedCallSettings<com.google.cloud.vision.v1.ListProductSetsRequest,com.google.cloud.vision.v1.ListProductSetsResponse,ProductSearchClient.ListProductSetsPagedResponse> listProductSetsSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.GetProductSetRequest,com.google.cloud.vision.v1.ProductSet> getProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.UpdateProductSetRequest,com.google.cloud.vision.v1.ProductSet> updateProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.DeleteProductSetRequest,Empty> deleteProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.AddProductToProductSetRequest,Empty> addProductToProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.RemoveProductFromProductSetRequest,Empty> removeProductFromProductSetSettings()
public PagedCallSettings<com.google.cloud.vision.v1.ListProductsInProductSetRequest,com.google.cloud.vision.v1.ListProductsInProductSetResponse,ProductSearchClient.ListProductsInProductSetPagedResponse> listProductsInProductSetSettings()
public UnaryCallSettings<com.google.cloud.vision.v1.ImportProductSetsRequest,Operation> importProductSetsSettings()
@BetaApi(value="The surface for use by generated code is not stable yet and may change in the future.") public OperationCallSettings<com.google.cloud.vision.v1.ImportProductSetsRequest,com.google.cloud.vision.v1.ImportProductSetsResponse,com.google.cloud.vision.v1.BatchOperationMetadata> importProductSetsOperationSettings()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public ProductSearchStub createStub() 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 ProductSearchStubSettings.Builder newBuilder()
public static ProductSearchStubSettings.Builder newBuilder(ClientContext clientContext)
public ProductSearchStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<ProductSearchStubSettings>
Copyright © 2019 Google LLC. All rights reserved.