Represents a ShippingSettingsService
Inheritance
$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1beta.ShippingSettingsServicePackage
@google-shopping/accountsConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new ShippingSettingsService service.
| Parameters | |
|---|---|
| Name | Description |
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): ShippingSettingsService;Creates new ShippingSettingsService 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 |
ShippingSettingsService |
RPC service. Useful where requests and/or responses are streamed. |
getShippingSettings(request, callback)
public getShippingSettings(request: google.shopping.merchant.accounts.v1beta.IGetShippingSettingsRequest, callback: google.shopping.merchant.accounts.v1beta.ShippingSettingsService.GetShippingSettingsCallback): void;Calls GetShippingSettings.
| Parameters | |
|---|---|
| Name | Description |
request |
IGetShippingSettingsRequest
GetShippingSettingsRequest message or plain object |
callback |
GetShippingSettingsCallback
Node-style callback called with the error, if any, and ShippingSettings |
| Returns | |
|---|---|
| Type | Description |
void |
|
getShippingSettings(request)
public getShippingSettings(request: google.shopping.merchant.accounts.v1beta.IGetShippingSettingsRequest): Promise<google.shopping.merchant.accounts.v1beta.ShippingSettings>;Calls GetShippingSettings.
| Parameter | |
|---|---|
| Name | Description |
request |
IGetShippingSettingsRequest
GetShippingSettingsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1beta.ShippingSettings> |
Promise |
insertShippingSettings(request, callback)
public insertShippingSettings(request: google.shopping.merchant.accounts.v1beta.IInsertShippingSettingsRequest, callback: google.shopping.merchant.accounts.v1beta.ShippingSettingsService.InsertShippingSettingsCallback): void;Calls InsertShippingSettings.
| Parameters | |
|---|---|
| Name | Description |
request |
IInsertShippingSettingsRequest
InsertShippingSettingsRequest message or plain object |
callback |
InsertShippingSettingsCallback
Node-style callback called with the error, if any, and ShippingSettings |
| Returns | |
|---|---|
| Type | Description |
void |
|
insertShippingSettings(request)
public insertShippingSettings(request: google.shopping.merchant.accounts.v1beta.IInsertShippingSettingsRequest): Promise<google.shopping.merchant.accounts.v1beta.ShippingSettings>;Calls InsertShippingSettings.
| Parameter | |
|---|---|
| Name | Description |
request |
IInsertShippingSettingsRequest
InsertShippingSettingsRequest message or plain object |
| Returns | |
|---|---|
| Type | Description |
Promise<google.shopping.merchant.accounts.v1beta.ShippingSettings> |
Promise |