Class protos.google.shopping.merchant.accounts.v1beta.ProgramsService (2.2.0)

Represents a ProgramsService

Inheritance

$protobuf.rpc.Service > protos.google.shopping.merchant.accounts.v1beta.ProgramsService

Package

@google-shopping/accounts

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ProgramsService 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): ProgramsService;

Creates new ProgramsService 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
ProgramsService

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

disableProgram(request, callback)

public disableProgram(request: google.shopping.merchant.accounts.v1beta.IDisableProgramRequest, callback: google.shopping.merchant.accounts.v1beta.ProgramsService.DisableProgramCallback): void;

Calls DisableProgram.

Parameters
Name Description
request IDisableProgramRequest

DisableProgramRequest message or plain object

callback DisableProgramCallback

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

Returns
Type Description
void

disableProgram(request)

public disableProgram(request: google.shopping.merchant.accounts.v1beta.IDisableProgramRequest): Promise<google.shopping.merchant.accounts.v1beta.Program>;

Calls DisableProgram.

Parameter
Name Description
request IDisableProgramRequest

DisableProgramRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.Program>

Promise

enableProgram(request, callback)

public enableProgram(request: google.shopping.merchant.accounts.v1beta.IEnableProgramRequest, callback: google.shopping.merchant.accounts.v1beta.ProgramsService.EnableProgramCallback): void;

Calls EnableProgram.

Parameters
Name Description
request IEnableProgramRequest

EnableProgramRequest message or plain object

callback EnableProgramCallback

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

Returns
Type Description
void

enableProgram(request)

public enableProgram(request: google.shopping.merchant.accounts.v1beta.IEnableProgramRequest): Promise<google.shopping.merchant.accounts.v1beta.Program>;

Calls EnableProgram.

Parameter
Name Description
request IEnableProgramRequest

EnableProgramRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.Program>

Promise

getProgram(request, callback)

public getProgram(request: google.shopping.merchant.accounts.v1beta.IGetProgramRequest, callback: google.shopping.merchant.accounts.v1beta.ProgramsService.GetProgramCallback): void;

Calls GetProgram.

Parameters
Name Description
request IGetProgramRequest

GetProgramRequest message or plain object

callback GetProgramCallback

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

Returns
Type Description
void

getProgram(request)

public getProgram(request: google.shopping.merchant.accounts.v1beta.IGetProgramRequest): Promise<google.shopping.merchant.accounts.v1beta.Program>;

Calls GetProgram.

Parameter
Name Description
request IGetProgramRequest

GetProgramRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.Program>

Promise

listPrograms(request, callback)

public listPrograms(request: google.shopping.merchant.accounts.v1beta.IListProgramsRequest, callback: google.shopping.merchant.accounts.v1beta.ProgramsService.ListProgramsCallback): void;

Calls ListPrograms.

Parameters
Name Description
request IListProgramsRequest

ListProgramsRequest message or plain object

callback ListProgramsCallback

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

Returns
Type Description
void

listPrograms(request)

public listPrograms(request: google.shopping.merchant.accounts.v1beta.IListProgramsRequest): Promise<google.shopping.merchant.accounts.v1beta.ListProgramsResponse>;

Calls ListPrograms.

Parameter
Name Description
request IListProgramsRequest

ListProgramsRequest message or plain object

Returns
Type Description
Promise<google.shopping.merchant.accounts.v1beta.ListProgramsResponse>

Promise