Class: NamespaceInvalidStateFailure
errordetails.v1.NamespaceInvalidStateFailure
Represents a NamespaceInvalidStateFailure.
Implements
Constructors
constructor
• new NamespaceInvalidStateFailure(properties?
): NamespaceInvalidStateFailure
Constructs a new NamespaceInvalidStateFailure.
Parameters
Name | Type | Description |
---|---|---|
properties? | INamespaceInvalidStateFailure | Properties to set |
Returns
Properties
allowedStates
• allowedStates: NamespaceState
[]
Allowed namespace states for requested operation. For example NAMESPACE_STATE_DELETED is forbidden for most operations but allowed for DescribeNamespace.
Implementation of
INamespaceInvalidStateFailure.allowedStates
namespace
• namespace: string
NamespaceInvalidStateFailure namespace.
Implementation of
INamespaceInvalidStateFailure.namespace
state
• state: NamespaceState
Current state of the requested namespace.
Implementation of
INamespaceInvalidStateFailure.state
Methods
toJSON
▸ toJSON(): Object
Converts this NamespaceInvalidStateFailure to JSON.
Returns
Object
JSON object
create
▸ create(properties?
): NamespaceInvalidStateFailure
Creates a new NamespaceInvalidStateFailure instance using the specified properties.
Parameters
Name | Type | Description |
---|---|---|
properties? | INamespaceInvalidStateFailure | Properties to set |
Returns
NamespaceInvalidStateFailure instance
decode
▸ decode(reader
, length?
): NamespaceInvalidStateFailure
Decodes a NamespaceInvalidStateFailure message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
NamespaceInvalidStateFailure
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited
▸ decodeDelimited(reader
): NamespaceInvalidStateFailure
Decodes a NamespaceInvalidStateFailure message from the specified reader or buffer, length delimited.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
NamespaceInvalidStateFailure
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
encode
▸ encode(message
, writer?
): Writer
Encodes the specified NamespaceInvalidStateFailure message. Does not implicitly temporal.api.errordetails.v1.NamespaceInvalidStateFailure.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | INamespaceInvalidStateFailure | NamespaceInvalidStateFailure message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
encodeDelimited
▸ encodeDelimited(message
, writer?
): Writer
Encodes the specified NamespaceInvalidStateFailure message, length delimited. Does not implicitly temporal.api.errordetails.v1.NamespaceInvalidStateFailure.verify|verify messages.
Parameters
Name | Type | Description |
---|---|---|
message | INamespaceInvalidStateFailure | NamespaceInvalidStateFailure message or plain object to encode |
writer? | Writer | Writer to encode to |
Returns
Writer
Writer
fromObject
▸ fromObject(object
): NamespaceInvalidStateFailure
Creates a NamespaceInvalidStateFailure message from a plain object. Also converts values to their respective internal types.
Parameters
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
NamespaceInvalidStateFailure
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for NamespaceInvalidStateFailure
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your custom typeUrlPrefix(default "type.googleapis.com") |
Returns
string
The default type url
toObject
▸ toObject(message
, options?
): Object
Creates a plain object from a NamespaceInvalidStateFailure message. Also converts values to other types if specified.
Parameters
Name | Type | Description |
---|---|---|
message | NamespaceInvalidStateFailure | NamespaceInvalidStateFailure |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object