Represents a RuleSetService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.contentwarehouse.v1.RuleSetServicePackage
@google-cloud/contentwarehouseConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new RuleSetService 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): RuleSetService;
Creates new RuleSetService 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 |
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 | |
---|---|
Name | Description |
request |
ICreateRuleSetRequest
CreateRuleSetRequest message or plain object |
callback |
CreateRuleSetCallback
Node-style callback called with the error, if any, and RuleSet |
Returns | |
---|---|
Type | Description |
void |
createRuleSet(request)
public createRuleSet(request: google.cloud.contentwarehouse.v1.ICreateRuleSetRequest): Promise<google.cloud.contentwarehouse.v1.RuleSet>;
Calls CreateRuleSet.
Parameter | |
---|---|
Name | Description |
request |
ICreateRuleSetRequest
CreateRuleSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IDeleteRuleSetRequest
DeleteRuleSetRequest message or plain object |
callback |
DeleteRuleSetCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteRuleSet(request)
public deleteRuleSet(request: google.cloud.contentwarehouse.v1.IDeleteRuleSetRequest): Promise<google.protobuf.Empty>;
Calls DeleteRuleSet.
Parameter | |
---|---|
Name | Description |
request |
IDeleteRuleSetRequest
DeleteRuleSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetRuleSetRequest
GetRuleSetRequest message or plain object |
callback |
GetRuleSetCallback
Node-style callback called with the error, if any, and RuleSet |
Returns | |
---|---|
Type | Description |
void |
getRuleSet(request)
public getRuleSet(request: google.cloud.contentwarehouse.v1.IGetRuleSetRequest): Promise<google.cloud.contentwarehouse.v1.RuleSet>;
Calls GetRuleSet.
Parameter | |
---|---|
Name | Description |
request |
IGetRuleSetRequest
GetRuleSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListRuleSetsRequest
ListRuleSetsRequest message or plain object |
callback |
ListRuleSetsCallback
Node-style callback called with the error, if any, and ListRuleSetsResponse |
Returns | |
---|---|
Type | Description |
void |
listRuleSets(request)
public listRuleSets(request: google.cloud.contentwarehouse.v1.IListRuleSetsRequest): Promise<google.cloud.contentwarehouse.v1.ListRuleSetsResponse>;
Calls ListRuleSets.
Parameter | |
---|---|
Name | Description |
request |
IListRuleSetsRequest
ListRuleSetsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IUpdateRuleSetRequest
UpdateRuleSetRequest message or plain object |
callback |
UpdateRuleSetCallback
Node-style callback called with the error, if any, and RuleSet |
Returns | |
---|---|
Type | Description |
void |
updateRuleSet(request)
public updateRuleSet(request: google.cloud.contentwarehouse.v1.IUpdateRuleSetRequest): Promise<google.cloud.contentwarehouse.v1.RuleSet>;
Calls UpdateRuleSet.
Parameter | |
---|---|
Name | Description |
request |
IUpdateRuleSetRequest
UpdateRuleSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.contentwarehouse.v1.RuleSet> | Promise |