Skip to main content

Class: CreateCustomRoleResponse

cloudservice.v1.CreateCustomRoleResponse

Represents a CreateCustomRoleResponse.

Properties

asyncOperation

Optional asyncOperation: null | $Properties

The async operation.


roleId

roleId: string

The ID of the custom role created.

Methods

toJSON

toJSON(): Object

Converts this CreateCustomRoleResponse to JSON.

Returns

Object

JSON object


create

create(properties?): CreateCustomRoleResponse & $Properties

Creates a new CreateCustomRoleResponse instance using the specified properties.

Parameters

NameTypeDescription
properties?$PropertiesProperties to set

Returns

CreateCustomRoleResponse & $Properties

CreateCustomRoleResponse instance

create(properties?): CreateCustomRoleResponse

Parameters

NameType
properties?$Properties

Returns

CreateCustomRoleResponse


decode

decode(reader, length?): CreateCustomRoleResponse & $Properties

Decodes a CreateCustomRoleResponse message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

CreateCustomRoleResponse & $Properties

CreateCustomRoleResponse

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): CreateCustomRoleResponse & $Properties

Decodes a CreateCustomRoleResponse message from the specified reader or buffer, length delimited.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

CreateCustomRoleResponse & $Properties

CreateCustomRoleResponse

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 CreateCustomRoleResponse message. Does not implicitly temporal.api.cloud.cloudservice.v1.CreateCustomRoleResponse.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesCreateCustomRoleResponse message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified CreateCustomRoleResponse message, length delimited. Does not implicitly temporal.api.cloud.cloudservice.v1.CreateCustomRoleResponse.verify|verify messages.

Parameters

NameTypeDescription
message$PropertiesCreateCustomRoleResponse message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): CreateCustomRoleResponse

Creates a CreateCustomRoleResponse message from a plain object. Also converts values to their respective internal types.

Parameters

NameTypeDescription
objectObjectPlain object

Returns

CreateCustomRoleResponse

CreateCustomRoleResponse


toObject

toObject(message, options?): Object

Creates a plain object from a CreateCustomRoleResponse message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageCreateCustomRoleResponseCreateCustomRoleResponse
options?IConversionOptionsConversion options

Returns

Object

Plain object