Represents a CatalogService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.CatalogServicePackage
@google-cloud/retailConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new CatalogService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
addCatalogAttribute(request, callback)
public addCatalogAttribute(request: google.cloud.retail.v2alpha.IAddCatalogAttributeRequest, callback: google.cloud.retail.v2alpha.CatalogService.AddCatalogAttributeCallback): void;Calls AddCatalogAttribute.
| Parameters | |
|---|---|
| Name | Description |
request |
IAddCatalogAttributeRequest
AddCatalogAttributeRequest message or plain object |
callback |
AddCatalogAttributeCallback
Node-style callback called with the error, if any, and AttributesConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
addCatalogAttribute(request)
public addCatalogAttribute(request: google.cloud.retail.v2alpha.IAddCatalogAttributeRequest): Promise<google.cloud.retail.v2alpha.AttributesConfig>;Calls AddCatalogAttribute.
| Parameter | |
|---|---|
| Name | Description |
request |
IAddCatalogAttributeRequest
AddCatalogAttributeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.AttributesConfig> |
Promise |
batchRemoveCatalogAttributes(request, callback)
public batchRemoveCatalogAttributes(request: google.cloud.retail.v2alpha.IBatchRemoveCatalogAttributesRequest, callback: google.cloud.retail.v2alpha.CatalogService.BatchRemoveCatalogAttributesCallback): void;Calls BatchRemoveCatalogAttributes.
| Parameters | |
|---|---|
| Name | Description |
request |
IBatchRemoveCatalogAttributesRequest
BatchRemoveCatalogAttributesRequest message or plain object |
callback |
BatchRemoveCatalogAttributesCallback
Node-style callback called with the error, if any, and BatchRemoveCatalogAttributesResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
batchRemoveCatalogAttributes(request)
public batchRemoveCatalogAttributes(request: google.cloud.retail.v2alpha.IBatchRemoveCatalogAttributesRequest): Promise<google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesResponse>;Calls BatchRemoveCatalogAttributes.
| Parameter | |
|---|---|
| Name | Description |
request |
IBatchRemoveCatalogAttributesRequest
BatchRemoveCatalogAttributesRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.BatchRemoveCatalogAttributesResponse> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): CatalogService;Creates new CatalogService service using the specified rpc implementation.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
| Returns | |
|---|---|
| Type | Description |
CatalogService |
RPC service. Useful where requests and/or responses are streamed. |
getAttributesConfig(request, callback)
public getAttributesConfig(request: google.cloud.retail.v2alpha.IGetAttributesConfigRequest, callback: google.cloud.retail.v2alpha.CatalogService.GetAttributesConfigCallback): void;Calls GetAttributesConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetAttributesConfigRequest
GetAttributesConfigRequest message or plain object |
callback |
GetAttributesConfigCallback
Node-style callback called with the error, if any, and AttributesConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
getAttributesConfig(request)
public getAttributesConfig(request: google.cloud.retail.v2alpha.IGetAttributesConfigRequest): Promise<google.cloud.retail.v2alpha.AttributesConfig>;Calls GetAttributesConfig.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetAttributesConfigRequest
GetAttributesConfigRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.AttributesConfig> |
Promise |
getCompletionConfig(request, callback)
public getCompletionConfig(request: google.cloud.retail.v2alpha.IGetCompletionConfigRequest, callback: google.cloud.retail.v2alpha.CatalogService.GetCompletionConfigCallback): void;Calls GetCompletionConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetCompletionConfigRequest
GetCompletionConfigRequest message or plain object |
callback |
GetCompletionConfigCallback
Node-style callback called with the error, if any, and CompletionConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
getCompletionConfig(request)
public getCompletionConfig(request: google.cloud.retail.v2alpha.IGetCompletionConfigRequest): Promise<google.cloud.retail.v2alpha.CompletionConfig>;Calls GetCompletionConfig.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetCompletionConfigRequest
GetCompletionConfigRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.CompletionConfig> |
Promise |
getDefaultBranch(request, callback)
public getDefaultBranch(request: google.cloud.retail.v2alpha.IGetDefaultBranchRequest, callback: google.cloud.retail.v2alpha.CatalogService.GetDefaultBranchCallback): void;Calls GetDefaultBranch.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetDefaultBranchRequest
GetDefaultBranchRequest message or plain object |
callback |
GetDefaultBranchCallback
Node-style callback called with the error, if any, and GetDefaultBranchResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
getDefaultBranch(request)
public getDefaultBranch(request: google.cloud.retail.v2alpha.IGetDefaultBranchRequest): Promise<google.cloud.retail.v2alpha.GetDefaultBranchResponse>;Calls GetDefaultBranch.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetDefaultBranchRequest
GetDefaultBranchRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.GetDefaultBranchResponse> |
Promise |
listCatalogs(request, callback)
public listCatalogs(request: google.cloud.retail.v2alpha.IListCatalogsRequest, callback: google.cloud.retail.v2alpha.CatalogService.ListCatalogsCallback): void;Calls ListCatalogs.
| Parameters | |
|---|---|
| Name | Description |
request |
IListCatalogsRequest
ListCatalogsRequest message or plain object |
callback |
ListCatalogsCallback
Node-style callback called with the error, if any, and ListCatalogsResponse |
| Returns | |
|---|---|
| Type | Description |
void |
|
listCatalogs(request)
public listCatalogs(request: google.cloud.retail.v2alpha.IListCatalogsRequest): Promise<google.cloud.retail.v2alpha.ListCatalogsResponse>;Calls ListCatalogs.
| Parameter | |
|---|---|
| Name | Description |
request |
IListCatalogsRequest
ListCatalogsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.ListCatalogsResponse> |
Promise |
removeCatalogAttribute(request, callback)
public removeCatalogAttribute(request: google.cloud.retail.v2alpha.IRemoveCatalogAttributeRequest, callback: google.cloud.retail.v2alpha.CatalogService.RemoveCatalogAttributeCallback): void;Calls RemoveCatalogAttribute.
| Parameters | |
|---|---|
| Name | Description |
request |
IRemoveCatalogAttributeRequest
RemoveCatalogAttributeRequest message or plain object |
callback |
RemoveCatalogAttributeCallback
Node-style callback called with the error, if any, and AttributesConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
removeCatalogAttribute(request)
public removeCatalogAttribute(request: google.cloud.retail.v2alpha.IRemoveCatalogAttributeRequest): Promise<google.cloud.retail.v2alpha.AttributesConfig>;Calls RemoveCatalogAttribute.
| Parameter | |
|---|---|
| Name | Description |
request |
IRemoveCatalogAttributeRequest
RemoveCatalogAttributeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.AttributesConfig> |
Promise |
replaceCatalogAttribute(request, callback)
public replaceCatalogAttribute(request: google.cloud.retail.v2alpha.IReplaceCatalogAttributeRequest, callback: google.cloud.retail.v2alpha.CatalogService.ReplaceCatalogAttributeCallback): void;Calls ReplaceCatalogAttribute.
| Parameters | |
|---|---|
| Name | Description |
request |
IReplaceCatalogAttributeRequest
ReplaceCatalogAttributeRequest message or plain object |
callback |
ReplaceCatalogAttributeCallback
Node-style callback called with the error, if any, and AttributesConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
replaceCatalogAttribute(request)
public replaceCatalogAttribute(request: google.cloud.retail.v2alpha.IReplaceCatalogAttributeRequest): Promise<google.cloud.retail.v2alpha.AttributesConfig>;Calls ReplaceCatalogAttribute.
| Parameter | |
|---|---|
| Name | Description |
request |
IReplaceCatalogAttributeRequest
ReplaceCatalogAttributeRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.AttributesConfig> |
Promise |
setDefaultBranch(request, callback)
public setDefaultBranch(request: google.cloud.retail.v2alpha.ISetDefaultBranchRequest, callback: google.cloud.retail.v2alpha.CatalogService.SetDefaultBranchCallback): void;Calls SetDefaultBranch.
| Parameters | |
|---|---|
| Name | Description |
request |
ISetDefaultBranchRequest
SetDefaultBranchRequest message or plain object |
callback |
SetDefaultBranchCallback
Node-style callback called with the error, if any, and Empty |
| Returns | |
|---|---|
| Type | Description |
void |
|
setDefaultBranch(request)
public setDefaultBranch(request: google.cloud.retail.v2alpha.ISetDefaultBranchRequest): Promise<google.protobuf.Empty>;Calls SetDefaultBranch.
| Parameter | |
|---|---|
| Name | Description |
request |
ISetDefaultBranchRequest
SetDefaultBranchRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.protobuf.Empty> |
Promise |
updateAttributesConfig(request, callback)
public updateAttributesConfig(request: google.cloud.retail.v2alpha.IUpdateAttributesConfigRequest, callback: google.cloud.retail.v2alpha.CatalogService.UpdateAttributesConfigCallback): void;Calls UpdateAttributesConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateAttributesConfigRequest
UpdateAttributesConfigRequest message or plain object |
callback |
UpdateAttributesConfigCallback
Node-style callback called with the error, if any, and AttributesConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateAttributesConfig(request)
public updateAttributesConfig(request: google.cloud.retail.v2alpha.IUpdateAttributesConfigRequest): Promise<google.cloud.retail.v2alpha.AttributesConfig>;Calls UpdateAttributesConfig.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateAttributesConfigRequest
UpdateAttributesConfigRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.AttributesConfig> |
Promise |
updateCatalog(request, callback)
public updateCatalog(request: google.cloud.retail.v2alpha.IUpdateCatalogRequest, callback: google.cloud.retail.v2alpha.CatalogService.UpdateCatalogCallback): void;Calls UpdateCatalog.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateCatalogRequest
UpdateCatalogRequest message or plain object |
callback |
UpdateCatalogCallback
Node-style callback called with the error, if any, and Catalog |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateCatalog(request)
public updateCatalog(request: google.cloud.retail.v2alpha.IUpdateCatalogRequest): Promise<google.cloud.retail.v2alpha.Catalog>;Calls UpdateCatalog.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateCatalogRequest
UpdateCatalogRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.Catalog> |
Promise |
updateCompletionConfig(request, callback)
public updateCompletionConfig(request: google.cloud.retail.v2alpha.IUpdateCompletionConfigRequest, callback: google.cloud.retail.v2alpha.CatalogService.UpdateCompletionConfigCallback): void;Calls UpdateCompletionConfig.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateCompletionConfigRequest
UpdateCompletionConfigRequest message or plain object |
callback |
UpdateCompletionConfigCallback
Node-style callback called with the error, if any, and CompletionConfig |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateCompletionConfig(request)
public updateCompletionConfig(request: google.cloud.retail.v2alpha.IUpdateCompletionConfigRequest): Promise<google.cloud.retail.v2alpha.CompletionConfig>;Calls UpdateCompletionConfig.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateCompletionConfigRequest
UpdateCompletionConfigRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.cloud.retail.v2alpha.CompletionConfig> |
Promise |