The CatalogServiceConnection
object for CatalogServiceClient
.
This interface defines virtual methods for each of the user-facing overload sets in CatalogServiceClient
. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type CatalogServiceClient
.
To create a concrete instance, see MakeCatalogServiceConnection()
.
For mocking, see retail_v2_mocks::MockCatalogServiceConnection
.
Functions
virtual options()
Returns | |
---|---|
Type | Description |
Options |
virtual ListCatalogs(google::cloud::retail::v2::ListCatalogsRequest)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::ListCatalogsRequest
|
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::retail::v2::Catalog > |
virtual UpdateCatalog(google::cloud::retail::v2::UpdateCatalogRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::UpdateCatalogRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::retail::v2::Catalog > |
virtual SetDefaultBranch(google::cloud::retail::v2::SetDefaultBranchRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::SetDefaultBranchRequest const &
|
Returns | |
---|---|
Type | Description |
Status |
virtual GetDefaultBranch(google::cloud::retail::v2::GetDefaultBranchRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::GetDefaultBranchRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::retail::v2::GetDefaultBranchResponse > |
virtual GetCompletionConfig(google::cloud::retail::v2::GetCompletionConfigRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::GetCompletionConfigRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::retail::v2::CompletionConfig > |
virtual UpdateCompletionConfig(google::cloud::retail::v2::UpdateCompletionConfigRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::UpdateCompletionConfigRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::retail::v2::CompletionConfig > |
virtual GetAttributesConfig(google::cloud::retail::v2::GetAttributesConfigRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::GetAttributesConfigRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::retail::v2::AttributesConfig > |
virtual UpdateAttributesConfig(google::cloud::retail::v2::UpdateAttributesConfigRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::UpdateAttributesConfigRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::retail::v2::AttributesConfig > |
virtual AddCatalogAttribute(google::cloud::retail::v2::AddCatalogAttributeRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::AddCatalogAttributeRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::retail::v2::AttributesConfig > |
virtual RemoveCatalogAttribute(google::cloud::retail::v2::RemoveCatalogAttributeRequest const &)
Parameter | |
---|---|
Name | Description |
request |
google::cloud::retail::v2::RemoveCatalogAttributeRequest const &
|
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::retail::v2::AttributesConfig > |
virtual ReplaceCatalogAttribute(google::cloud::retail::v2::ReplaceCatalogAttributeRequest const &)
Parameter |
---|