# Retail V2 API - Class Google::Cloud::Retail::V2::CatalogService::Rest::ServiceStub (v2.9.0)

2.9.0 (latest) 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.1 0.21.0 0.20.0 0.19.0 0.18.2 0.17.0 0.16.1 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::CatalogService::Rest::ServiceStub.

REST service stub for the CatalogService service.
Service stub contains baseline method implementations
including transcoding, making the REST call, and deserialing the response.

## Inherits

- Object

## Methods

### #add_catalog_attribute

    def add_catalog_attribute(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::AttributesConfig

Baseline implementation for the add_catalog_attribute REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::AddCatalogAttributeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AddCatalogAttributeRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #endpoint

    def endpoint() -> String

The effective endpoint
**Returns**

- (String)

### #get_attributes_config

    def get_attributes_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::AttributesConfig

Baseline implementation for the get_attributes_config REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::GetAttributesConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-GetAttributesConfigRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_completion_config

    def get_completion_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::CompletionConfig

Baseline implementation for the get_completion_config REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::GetCompletionConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-GetCompletionConfigRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::CompletionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompletionConfig))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::CompletionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompletionConfig)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #get_default_branch

    def get_default_branch(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::GetDefaultBranchResponse

Baseline implementation for the get_default_branch REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::GetDefaultBranchRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-GetDefaultBranchRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::GetDefaultBranchResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-GetDefaultBranchResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::GetDefaultBranchResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-GetDefaultBranchResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #list_catalogs

    def list_catalogs(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::ListCatalogsResponse

Baseline implementation for the list_catalogs REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::ListCatalogsRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-ListCatalogsRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::ListCatalogsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-ListCatalogsResponse))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::ListCatalogsResponse](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-ListCatalogsResponse)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #logger

    def logger(stub: false) -> Logger

The logger used for request/response debug logging.
**Returns**

- (Logger)

### #remove_catalog_attribute

    def remove_catalog_attribute(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::AttributesConfig

Baseline implementation for the remove_catalog_attribute REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::RemoveCatalogAttributeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-RemoveCatalogAttributeRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #replace_catalog_attribute

    def replace_catalog_attribute(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::AttributesConfig

Baseline implementation for the replace_catalog_attribute REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::ReplaceCatalogAttributeRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-ReplaceCatalogAttributeRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #set_default_branch

    def set_default_branch(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the set_default_branch REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::SetDefaultBranchRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-SetDefaultBranchRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Protobuf-Empty))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Protobuf::Empty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Protobuf-Empty)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #universe_domain

    def universe_domain() -> String

The effective universe domain
**Returns**

- (String)

### #update_attributes_config

    def update_attributes_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::AttributesConfig

Baseline implementation for the update_attributes_config REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::UpdateAttributesConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-UpdateAttributesConfigRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::AttributesConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-AttributesConfig)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #update_catalog

    def update_catalog(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::Catalog

Baseline implementation for the update_catalog REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::UpdateCatalogRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-UpdateCatalogRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::Catalog](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-Catalog))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::Catalog](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-Catalog)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)

### #update_completion_config

    def update_completion_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Retail::V2::CompletionConfig

Baseline implementation for the update_completion_config REST call
**Parameters**

- **request_pb** ([::Google::Cloud::Retail::V2::UpdateCompletionConfigRequest](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-UpdateCompletionConfigRequest)) --- A request object representing the call parameters. Required.
- **options** (::Gapic::CallOptions) --- Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
**Yields**

- (result, operation) --- Access the result along with the TransportOperation object
**Yield Parameters**

- **result** ([::Google::Cloud::Retail::V2::CompletionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompletionConfig))
- **operation** (::Gapic::Rest::TransportOperation)
**Returns**

- ([::Google::Cloud::Retail::V2::CompletionConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-retail-v2/latest/Google-Cloud-Retail-V2-CompletionConfig)) --- A result object deserialized from the server's reply
**Raises**

- (::ArgumentError)