Constructor
new RealmsService(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new RealmsService service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
createRealm(request, callback) → {undefined}
Calls CreateRealm.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.ICreateRealmRequest |
CreateRealmRequest message or plain object |
callback |
google.cloud.gaming.v1.RealmsService.CreateRealmCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
createRealm(request) → {Promise.<google.longrunning.Operation>}
Calls CreateRealm.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.ICreateRealmRequest |
CreateRealmRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
deleteRealm(request, callback) → {undefined}
Calls DeleteRealm.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IDeleteRealmRequest |
DeleteRealmRequest message or plain object |
callback |
google.cloud.gaming.v1.RealmsService.DeleteRealmCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
deleteRealm(request) → {Promise.<google.longrunning.Operation>}
Calls DeleteRealm.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IDeleteRealmRequest |
DeleteRealmRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
getRealm(request, callback) → {undefined}
Calls GetRealm.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IGetRealmRequest |
GetRealmRequest message or plain object |
callback |
google.cloud.gaming.v1.RealmsService.GetRealmCallback |
Node-style callback called with the error, if any, and Realm |
Returns:
Type | Description |
---|---|
undefined |
getRealm(request) → {Promise.<google.cloud.gaming.v1.Realm>}
Calls GetRealm.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IGetRealmRequest |
GetRealmRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.gaming.v1.Realm> |
Promise |
listRealms(request, callback) → {undefined}
Calls ListRealms.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IListRealmsRequest |
ListRealmsRequest message or plain object |
callback |
google.cloud.gaming.v1.RealmsService.ListRealmsCallback |
Node-style callback called with the error, if any, and ListRealmsResponse |
Returns:
Type | Description |
---|---|
undefined |
listRealms(request) → {Promise.<google.cloud.gaming.v1.ListRealmsResponse>}
Calls ListRealms.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IListRealmsRequest |
ListRealmsRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.gaming.v1.ListRealmsResponse> |
Promise |
previewRealmUpdate(request, callback) → {undefined}
Calls PreviewRealmUpdate.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IPreviewRealmUpdateRequest |
PreviewRealmUpdateRequest message or plain object |
callback |
google.cloud.gaming.v1.RealmsService.PreviewRealmUpdateCallback |
Node-style callback called with the error, if any, and PreviewRealmUpdateResponse |
Returns:
Type | Description |
---|---|
undefined |
previewRealmUpdate(request) → {Promise.<google.cloud.gaming.v1.PreviewRealmUpdateResponse>}
Calls PreviewRealmUpdate.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IPreviewRealmUpdateRequest |
PreviewRealmUpdateRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.cloud.gaming.v1.PreviewRealmUpdateResponse> |
Promise |
updateRealm(request, callback) → {undefined}
Calls UpdateRealm.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IUpdateRealmRequest |
UpdateRealmRequest message or plain object |
callback |
google.cloud.gaming.v1.RealmsService.UpdateRealmCallback |
Node-style callback called with the error, if any, and Operation |
Returns:
Type | Description |
---|---|
undefined |
updateRealm(request) → {Promise.<google.longrunning.Operation>}
Calls UpdateRealm.
Parameters:
Name | Type | Description |
---|---|---|
request |
google.cloud.gaming.v1.IUpdateRealmRequest |
UpdateRealmRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<google.longrunning.Operation> |
Promise |
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {RealmsService}
Creates new RealmsService service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
RealmsService |
RPC service. Useful where requests and/or responses are streamed. |
Type Definitions
CreateRealmCallback(error, responseopt)
Callback as used by createRealm.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
DeleteRealmCallback(error, responseopt)
Callback as used by deleteRealm.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |
GetRealmCallback(error, responseopt)
Callback as used by getRealm.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.gaming.v1.Realm |
<optional> |
Realm |
ListRealmsCallback(error, responseopt)
Callback as used by listRealms.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.gaming.v1.ListRealmsResponse |
<optional> |
ListRealmsResponse |
PreviewRealmUpdateCallback(error, responseopt)
Callback as used by previewRealmUpdate.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.cloud.gaming.v1.PreviewRealmUpdateResponse |
<optional> |
PreviewRealmUpdateResponse |
UpdateRealmCallback(error, responseopt)
Callback as used by updateRealm.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
google.longrunning.Operation |
<optional> |
Operation |