Skip to main content

Class: ComputeConfigScalingGroup

compute.v1.ComputeConfigScalingGroup

Represents a ComputeConfigScalingGroup.

Implements

Constructors

constructor

new ComputeConfigScalingGroup(properties?): ComputeConfigScalingGroup

Constructs a new ComputeConfigScalingGroup.

Parameters

NameTypeDescription
properties?IComputeConfigScalingGroupProperties to set

Returns

ComputeConfigScalingGroup

Properties

provider

Optional provider: null | IComputeProvider

Stores instructions for a worker control plane controller how to respond to worker lifeycle events.

Implementation of

IComputeConfigScalingGroup.provider


scaler

Optional scaler: null | IComputeScaler

Informs a worker lifecycle controller when and how often to perform certain worker lifecycle actions like starting a serverless worker.

Implementation of

IComputeConfigScalingGroup.scaler


taskQueueTypes

taskQueueTypes: TaskQueueType[]

Optional. The set of task queue types this scaling group serves. If not provided, this scaling group serves all not otherwise defined task types.

Implementation of

IComputeConfigScalingGroup.taskQueueTypes

Methods

toJSON

toJSON(): Object

Converts this ComputeConfigScalingGroup to JSON.

Returns

Object

JSON object


create

create(properties?): ComputeConfigScalingGroup

Creates a new ComputeConfigScalingGroup instance using the specified properties.

Parameters

NameTypeDescription
properties?IComputeConfigScalingGroupProperties to set

Returns

ComputeConfigScalingGroup

ComputeConfigScalingGroup instance


decode

decode(reader, length?): ComputeConfigScalingGroup

Decodes a ComputeConfigScalingGroup message from the specified reader or buffer.

Parameters

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

Returns

ComputeConfigScalingGroup

ComputeConfigScalingGroup

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): ComputeConfigScalingGroup

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

ComputeConfigScalingGroup

ComputeConfigScalingGroup

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 ComputeConfigScalingGroup message. Does not implicitly temporal.api.compute.v1.ComputeConfigScalingGroup.verify|verify messages.

Parameters

NameTypeDescription
messageIComputeConfigScalingGroupComputeConfigScalingGroup message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified ComputeConfigScalingGroup message, length delimited. Does not implicitly temporal.api.compute.v1.ComputeConfigScalingGroup.verify|verify messages.

Parameters

NameTypeDescription
messageIComputeConfigScalingGroupComputeConfigScalingGroup message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): ComputeConfigScalingGroup

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

ComputeConfigScalingGroup

ComputeConfigScalingGroup


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for ComputeConfigScalingGroup

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageComputeConfigScalingGroupComputeConfigScalingGroup
options?IConversionOptionsConversion options

Returns

Object

Plain object