Represents a SynonymSetService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.contentwarehouse.v1.SynonymSetServicePackage
@google-cloud/contentwarehouseConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new SynonymSetService 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): SynonymSetService;
Creates new SynonymSetService 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 |
SynonymSetService |
RPC service. Useful where requests and/or responses are streamed. |
createSynonymSet(request, callback)
public createSynonymSet(request: google.cloud.contentwarehouse.v1.ICreateSynonymSetRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.CreateSynonymSetCallback): void;
Calls CreateSynonymSet.
Parameters | |
---|---|
Name | Description |
request |
ICreateSynonymSetRequest
CreateSynonymSetRequest message or plain object |
callback |
CreateSynonymSetCallback
Node-style callback called with the error, if any, and SynonymSet |
Returns | |
---|---|
Type | Description |
void |
createSynonymSet(request)
public createSynonymSet(request: google.cloud.contentwarehouse.v1.ICreateSynonymSetRequest): Promise<google.cloud.contentwarehouse.v1.SynonymSet>;
Calls CreateSynonymSet.
Parameter | |
---|---|
Name | Description |
request |
ICreateSynonymSetRequest
CreateSynonymSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.contentwarehouse.v1.SynonymSet> |
Promise |
deleteSynonymSet(request, callback)
public deleteSynonymSet(request: google.cloud.contentwarehouse.v1.IDeleteSynonymSetRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.DeleteSynonymSetCallback): void;
Calls DeleteSynonymSet.
Parameters | |
---|---|
Name | Description |
request |
IDeleteSynonymSetRequest
DeleteSynonymSetRequest message or plain object |
callback |
DeleteSynonymSetCallback
Node-style callback called with the error, if any, and Empty |
Returns | |
---|---|
Type | Description |
void |
deleteSynonymSet(request)
public deleteSynonymSet(request: google.cloud.contentwarehouse.v1.IDeleteSynonymSetRequest): Promise<google.protobuf.Empty>;
Calls DeleteSynonymSet.
Parameter | |
---|---|
Name | Description |
request |
IDeleteSynonymSetRequest
DeleteSynonymSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.protobuf.Empty> |
Promise |
getSynonymSet(request, callback)
public getSynonymSet(request: google.cloud.contentwarehouse.v1.IGetSynonymSetRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.GetSynonymSetCallback): void;
Calls GetSynonymSet.
Parameters | |
---|---|
Name | Description |
request |
IGetSynonymSetRequest
GetSynonymSetRequest message or plain object |
callback |
GetSynonymSetCallback
Node-style callback called with the error, if any, and SynonymSet |
Returns | |
---|---|
Type | Description |
void |
getSynonymSet(request)
public getSynonymSet(request: google.cloud.contentwarehouse.v1.IGetSynonymSetRequest): Promise<google.cloud.contentwarehouse.v1.SynonymSet>;
Calls GetSynonymSet.
Parameter | |
---|---|
Name | Description |
request |
IGetSynonymSetRequest
GetSynonymSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.contentwarehouse.v1.SynonymSet> |
Promise |
listSynonymSets(request, callback)
public listSynonymSets(request: google.cloud.contentwarehouse.v1.IListSynonymSetsRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.ListSynonymSetsCallback): void;
Calls ListSynonymSets.
Parameters | |
---|---|
Name | Description |
request |
IListSynonymSetsRequest
ListSynonymSetsRequest message or plain object |
callback |
ListSynonymSetsCallback
Node-style callback called with the error, if any, and ListSynonymSetsResponse |
Returns | |
---|---|
Type | Description |
void |
listSynonymSets(request)
public listSynonymSets(request: google.cloud.contentwarehouse.v1.IListSynonymSetsRequest): Promise<google.cloud.contentwarehouse.v1.ListSynonymSetsResponse>;
Calls ListSynonymSets.
Parameter | |
---|---|
Name | Description |
request |
IListSynonymSetsRequest
ListSynonymSetsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.contentwarehouse.v1.ListSynonymSetsResponse> |
Promise |
updateSynonymSet(request, callback)
public updateSynonymSet(request: google.cloud.contentwarehouse.v1.IUpdateSynonymSetRequest, callback: google.cloud.contentwarehouse.v1.SynonymSetService.UpdateSynonymSetCallback): void;
Calls UpdateSynonymSet.
Parameters | |
---|---|
Name | Description |
request |
IUpdateSynonymSetRequest
UpdateSynonymSetRequest message or plain object |
callback |
UpdateSynonymSetCallback
Node-style callback called with the error, if any, and SynonymSet |
Returns | |
---|---|
Type | Description |
void |
updateSynonymSet(request)
public updateSynonymSet(request: google.cloud.contentwarehouse.v1.IUpdateSynonymSetRequest): Promise<google.cloud.contentwarehouse.v1.SynonymSet>;
Calls UpdateSynonymSet.
Parameter | |
---|---|
Name | Description |
request |
IUpdateSynonymSetRequest
UpdateSynonymSetRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.contentwarehouse.v1.SynonymSet> |
Promise |