Represents a HomepageService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1.HomepageServicePackage
@google-shopping/accountsConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new HomepageService service.
| Parameters | |
|---|---|
| Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
claimHomepage(request, callback)
public claimHomepage(request: google.shopping.merchant.accounts.v1.IClaimHomepageRequest, callback: google.shopping.merchant.accounts.v1.HomepageService.ClaimHomepageCallback): void;Calls ClaimHomepage.
| Parameters | |
|---|---|
| Name | Description |
request |
IClaimHomepageRequest
ClaimHomepageRequest message or plain object |
callback |
ClaimHomepageCallback
Node-style callback called with the error, if any, and Homepage |
| Returns | |
|---|---|
| Type | Description |
void |
|
claimHomepage(request)
public claimHomepage(request: google.shopping.merchant.accounts.v1.IClaimHomepageRequest): Promise<google.shopping.merchant.accounts.v1.Homepage>;Calls ClaimHomepage.
| Parameter | |
|---|---|
| Name | Description |
request |
IClaimHomepageRequest
ClaimHomepageRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.Homepage> |
Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): HomepageService;Creates new HomepageService 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 |
HomepageService |
RPC service. Useful where requests and/or responses are streamed. |
getHomepage(request, callback)
public getHomepage(request: google.shopping.merchant.accounts.v1.IGetHomepageRequest, callback: google.shopping.merchant.accounts.v1.HomepageService.GetHomepageCallback): void;Calls GetHomepage.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetHomepageRequest
GetHomepageRequest message or plain object |
callback |
GetHomepageCallback
Node-style callback called with the error, if any, and Homepage |
| Returns | |
|---|---|
| Type | Description |
void |
|
getHomepage(request)
public getHomepage(request: google.shopping.merchant.accounts.v1.IGetHomepageRequest): Promise<google.shopping.merchant.accounts.v1.Homepage>;Calls GetHomepage.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetHomepageRequest
GetHomepageRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.Homepage> |
Promise |
unclaimHomepage(request, callback)
public unclaimHomepage(request: google.shopping.merchant.accounts.v1.IUnclaimHomepageRequest, callback: google.shopping.merchant.accounts.v1.HomepageService.UnclaimHomepageCallback): void;Calls UnclaimHomepage.
| Parameters | |
|---|---|
| Name | Description |
request |
IUnclaimHomepageRequest
UnclaimHomepageRequest message or plain object |
callback |
UnclaimHomepageCallback
Node-style callback called with the error, if any, and Homepage |
| Returns | |
|---|---|
| Type | Description |
void |
|
unclaimHomepage(request)
public unclaimHomepage(request: google.shopping.merchant.accounts.v1.IUnclaimHomepageRequest): Promise<google.shopping.merchant.accounts.v1.Homepage>;Calls UnclaimHomepage.
| Parameter | |
|---|---|
| Name | Description |
request |
IUnclaimHomepageRequest
UnclaimHomepageRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.Homepage> |
Promise |
updateHomepage(request, callback)
public updateHomepage(request: google.shopping.merchant.accounts.v1.IUpdateHomepageRequest, callback: google.shopping.merchant.accounts.v1.HomepageService.UpdateHomepageCallback): void;Calls UpdateHomepage.
| Parameters | |
|---|---|
| Name | Description |
request |
IUpdateHomepageRequest
UpdateHomepageRequest message or plain object |
callback |
UpdateHomepageCallback
Node-style callback called with the error, if any, and Homepage |
| Returns | |
|---|---|
| Type | Description |
void |
|
updateHomepage(request)
public updateHomepage(request: google.shopping.merchant.accounts.v1.IUpdateHomepageRequest): Promise<google.shopping.merchant.accounts.v1.Homepage>;Calls UpdateHomepage.
| Parameter | |
|---|---|
| Name | Description |
request |
IUpdateHomepageRequest
UpdateHomepageRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1.Homepage> |
Promise |