Class protos.google.cloud.contentwarehouse.v1.RuleSetService (1.7.0)

Represents a RuleSetService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.contentwarehouse.v1.RuleSetService

Package

@google-cloud/contentwarehouse

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

createRuleSet(request, callback)

public createRuleSet(request: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.CreateRuleSetCallback): void;

Calls CreateRuleSet.

Parameters
NameDescription
request ICreateRuleSetRequest

CreateRuleSetRequest message or plain object

callback CreateRuleSetCallback

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

Returns
TypeDescription
void

createRuleSet(request)

public createRuleSet(request: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest): Promise<google.cloud.contentwarehouse.v1.RuleSet>;

Calls CreateRuleSet.

Parameter
NameDescription
request ICreateRuleSetRequest

CreateRuleSetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.RuleSet>

Promise

deleteRuleSet(request, callback)

public deleteRuleSet(request: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.DeleteRuleSetCallback): void;

Calls DeleteRuleSet.

Parameters
NameDescription
request IDeleteRuleSetRequest

DeleteRuleSetRequest message or plain object

callback DeleteRuleSetCallback

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

Returns
TypeDescription
void

deleteRuleSet(request)

public deleteRuleSet(request: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest): Promise<google.protobuf.Empty>;

Calls DeleteRuleSet.

Parameter
NameDescription
request IDeleteRuleSetRequest

DeleteRuleSetRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getRuleSet(request, callback)

public getRuleSet(request: google.cloud.contentwarehouse.v1.IGetRuleSetRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.GetRuleSetCallback): void;

Calls GetRuleSet.

Parameters
NameDescription
request IGetRuleSetRequest

GetRuleSetRequest message or plain object

callback GetRuleSetCallback

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

Returns
TypeDescription
void

getRuleSet(request)

public getRuleSet(request: google.cloud.contentwarehouse.v1.IGetRuleSetRequest): Promise<google.cloud.contentwarehouse.v1.RuleSet>;

Calls GetRuleSet.

Parameter
NameDescription
request IGetRuleSetRequest

GetRuleSetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.RuleSet>

Promise

listRuleSets(request, callback)

public listRuleSets(request: google.cloud.contentwarehouse.v1.IListRuleSetsRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.ListRuleSetsCallback): void;

Calls ListRuleSets.

Parameters
NameDescription
request IListRuleSetsRequest

ListRuleSetsRequest message or plain object

callback ListRuleSetsCallback

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

Returns
TypeDescription
void

listRuleSets(request)

public listRuleSets(request: google.cloud.contentwarehouse.v1.IListRuleSetsRequest): Promise<google.cloud.contentwarehouse.v1.ListRuleSetsResponse>;

Calls ListRuleSets.

Parameter
NameDescription
request IListRuleSetsRequest

ListRuleSetsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.ListRuleSetsResponse>

Promise

updateRuleSet(request, callback)

public updateRuleSet(request: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest, callback: google.cloud.contentwarehouse.v1.RuleSetService.UpdateRuleSetCallback): void;

Calls UpdateRuleSet.

Parameters
NameDescription
request IUpdateRuleSetRequest

UpdateRuleSetRequest message or plain object

callback UpdateRuleSetCallback

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

Returns
TypeDescription
void

updateRuleSet(request)

public updateRuleSet(request: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest): Promise<google.cloud.contentwarehouse.v1.RuleSet>;

Calls UpdateRuleSet.

Parameter
NameDescription
request IUpdateRuleSetRequest

UpdateRuleSetRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.contentwarehouse.v1.RuleSet>

Promise