Class protos.google.cloud.tasks.v2beta2.QueueStats (2.4.2)

Represents a QueueStats.

Package

@google-cloud/tasks

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.tasks.v2beta2.IQueueStats);

Constructs a new QueueStats.

Parameter
NameDescription
properties IQueueStats

Properties to set

Properties

concurrentDispatchesCount

public concurrentDispatchesCount: (number|Long|string);

QueueStats concurrentDispatchesCount.

effectiveExecutionRate

public effectiveExecutionRate: number;

QueueStats effectiveExecutionRate.

executedLastMinuteCount

public executedLastMinuteCount: (number|Long|string);

QueueStats executedLastMinuteCount.

oldestEstimatedArrivalTime

public oldestEstimatedArrivalTime?: (google.protobuf.ITimestamp|null);

QueueStats oldestEstimatedArrivalTime.

tasksCount

public tasksCount: (number|Long|string);

QueueStats tasksCount.

Methods

create(properties)

public static create(properties?: google.cloud.tasks.v2beta2.IQueueStats): google.cloud.tasks.v2beta2.QueueStats;

Creates a new QueueStats instance using the specified properties.

Parameter
NameDescription
properties IQueueStats

Properties to set

Returns
TypeDescription
google.cloud.tasks.v2beta2.QueueStats

QueueStats instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.tasks.v2beta2.QueueStats;

Decodes a QueueStats message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.tasks.v2beta2.QueueStats

QueueStats

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.tasks.v2beta2.QueueStats;

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.tasks.v2beta2.QueueStats

QueueStats

encode(message, writer)

public static encode(message: google.cloud.tasks.v2beta2.IQueueStats, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified QueueStats message. Does not implicitly messages.

Parameters
NameDescription
message IQueueStats

QueueStats message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.tasks.v2beta2.IQueueStats, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified QueueStats message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IQueueStats

QueueStats message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.tasks.v2beta2.QueueStats;

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

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.tasks.v2beta2.QueueStats

QueueStats

toJSON()

public toJSON(): { [k: string]: any };

Converts this QueueStats to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.tasks.v2beta2.QueueStats, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
NameDescription
message google.cloud.tasks.v2beta2.QueueStats

QueueStats

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a QueueStats message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not