Class protos.google.cloud.retail.v2alpha.CatalogService (1.3.0)

Represents a CatalogService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.retail.v2alpha.CatalogService

Package

@google-cloud/retail

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new CatalogService service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

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
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
CatalogService

RPC service. Useful where requests and/or responses are streamed.

getDefaultBranch(request, callback)

public getDefaultBranch(request: google.cloud.retail.v2alpha.IGetDefaultBranchRequest, callback: google.cloud.retail.v2alpha.CatalogService.GetDefaultBranchCallback): void;

Calls GetDefaultBranch.

Parameters
NameDescription
request google.cloud.retail.v2alpha.IGetDefaultBranchRequest

GetDefaultBranchRequest message or plain object

callback google.cloud.retail.v2alpha.CatalogService.GetDefaultBranchCallback

Node-style callback called with the error, if any, and GetDefaultBranchResponse

Returns
TypeDescription
void

getDefaultBranch(request)

public getDefaultBranch(request: google.cloud.retail.v2alpha.IGetDefaultBranchRequest): Promise<google.cloud.retail.v2alpha.GetDefaultBranchResponse>;

Calls GetDefaultBranch.

Parameter
NameDescription
request google.cloud.retail.v2alpha.IGetDefaultBranchRequest

GetDefaultBranchRequest message or plain object

Returns
TypeDescription
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
NameDescription
request google.cloud.retail.v2alpha.IListCatalogsRequest

ListCatalogsRequest message or plain object

callback google.cloud.retail.v2alpha.CatalogService.ListCatalogsCallback

Node-style callback called with the error, if any, and ListCatalogsResponse

Returns
TypeDescription
void

listCatalogs(request)

public listCatalogs(request: google.cloud.retail.v2alpha.IListCatalogsRequest): Promise<google.cloud.retail.v2alpha.ListCatalogsResponse>;

Calls ListCatalogs.

Parameter
NameDescription
request google.cloud.retail.v2alpha.IListCatalogsRequest

ListCatalogsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2alpha.ListCatalogsResponse>

Promise

setDefaultBranch(request, callback)

public setDefaultBranch(request: google.cloud.retail.v2alpha.ISetDefaultBranchRequest, callback: google.cloud.retail.v2alpha.CatalogService.SetDefaultBranchCallback): void;

Calls SetDefaultBranch.

Parameters
NameDescription
request google.cloud.retail.v2alpha.ISetDefaultBranchRequest

SetDefaultBranchRequest message or plain object

callback google.cloud.retail.v2alpha.CatalogService.SetDefaultBranchCallback

Node-style callback called with the error, if any, and Empty

Returns
TypeDescription
void

setDefaultBranch(request)

public setDefaultBranch(request: google.cloud.retail.v2alpha.ISetDefaultBranchRequest): Promise<google.protobuf.Empty>;

Calls SetDefaultBranch.

Parameter
NameDescription
request google.cloud.retail.v2alpha.ISetDefaultBranchRequest

SetDefaultBranchRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

updateCatalog(request, callback)

public updateCatalog(request: google.cloud.retail.v2alpha.IUpdateCatalogRequest, callback: google.cloud.retail.v2alpha.CatalogService.UpdateCatalogCallback): void;

Calls UpdateCatalog.

Parameters
NameDescription
request IUpdateCatalogRequest

UpdateCatalogRequest message or plain object

callback google.cloud.retail.v2alpha.CatalogService.UpdateCatalogCallback

Node-style callback called with the error, if any, and Catalog

Returns
TypeDescription
void

updateCatalog(request)

public updateCatalog(request: google.cloud.retail.v2alpha.IUpdateCatalogRequest): Promise<google.cloud.retail.v2alpha.Catalog>;

Calls UpdateCatalog.

Parameter
NameDescription
request IUpdateCatalogRequest

UpdateCatalogRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.retail.v2alpha.Catalog>

Promise