Constructor
new IncidentRole(propertiesopt)
Constructs a new IncidentRole.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.irm.v1alpha2.IIncidentRole |
<optional> |
Properties to set |
- Implements:
-
- IIncidentRole
Members
(static) Type :number
Type enum.
Properties:
Name | Type | Description |
---|---|---|
TYPE_UNSPECIFIED |
number |
TYPE_UNSPECIFIED value |
TYPE_INCIDENT_COMMANDER |
number |
TYPE_INCIDENT_COMMANDER value |
TYPE_COMMUNICATIONS_LEAD |
number |
TYPE_COMMUNICATIONS_LEAD value |
TYPE_OPERATIONS_LEAD |
number |
TYPE_OPERATIONS_LEAD value |
TYPE_EXTERNAL_CUSTOMER_COMMUNICATIONS_LEAD |
number |
TYPE_EXTERNAL_CUSTOMER_COMMUNICATIONS_LEAD value |
TYPE_PRIMARY_ONCALL |
number |
TYPE_PRIMARY_ONCALL value |
TYPE_SECONDARY_ONCALL |
number |
TYPE_SECONDARY_ONCALL value |
TYPE_OTHER |
number |
TYPE_OTHER value |
description :string
IncidentRole description.
title :string
IncidentRole title.
type :google.cloud.irm.v1alpha2.IncidentRole.Type
IncidentRole type.
Methods
(static) create(propertiesopt) → {google.cloud.irm.v1alpha2.IncidentRole}
Creates a new IncidentRole instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.cloud.irm.v1alpha2.IIncidentRole |
<optional> |
Properties to set |
(static) decode(reader, lengthopt) → {google.cloud.irm.v1alpha2.IncidentRole}
Decodes an IncidentRole message from the specified reader or buffer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
|
length |
number |
<optional> |
Message length if known beforehand |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) decodeDelimited(reader) → {google.cloud.irm.v1alpha2.IncidentRole}
Decodes an IncidentRole message from the specified reader or buffer, length delimited.
Parameters:
Name | Type | Description |
---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) encode(message, writeropt) → {$protobuf.Writer}
Encodes the specified IncidentRole message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.irm.v1alpha2.IIncidentRole |
IncidentRole message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}
Encodes the specified IncidentRole message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.irm.v1alpha2.IIncidentRole |
IncidentRole message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
(static) fromObject(object) → {google.cloud.irm.v1alpha2.IncidentRole}
Creates an IncidentRole message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from an IncidentRole message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.cloud.irm.v1alpha2.IncidentRole |
IncidentRole |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
(static) verify(message) → {string|null}
Verifies an IncidentRole message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
toJSON() → {Object.<string, *>}
Converts this IncidentRole to JSON.