Class protos.google.cloud.tasks.v2beta3.Queue (3.1.1)

Represents a Queue.

Package

@google-cloud/tasks

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.tasks.v2beta3.IQueue);

Constructs a new Queue.

Parameter
NameDescription
properties IQueue

Properties to set

Properties

appEngineHttpQueue

public appEngineHttpQueue?: (google.cloud.tasks.v2beta3.IAppEngineHttpQueue|null);

Queue appEngineHttpQueue.

name

public name: string;

Queue name.

purgeTime

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

Queue purgeTime.

queueType

public queueType?: "appEngineHttpQueue";

Queue queueType.

rateLimits

public rateLimits?: (google.cloud.tasks.v2beta3.IRateLimits|null);

Queue rateLimits.

retryConfig

public retryConfig?: (google.cloud.tasks.v2beta3.IRetryConfig|null);

Queue retryConfig.

stackdriverLoggingConfig

public stackdriverLoggingConfig?: (google.cloud.tasks.v2beta3.IStackdriverLoggingConfig|null);

Queue stackdriverLoggingConfig.

state

public state: (google.cloud.tasks.v2beta3.Queue.State|keyof typeof google.cloud.tasks.v2beta3.Queue.State);

Queue state.

stats

public stats?: (google.cloud.tasks.v2beta3.IQueueStats|null);

Queue stats.

taskTtl

public taskTtl?: (google.protobuf.IDuration|null);

Queue taskTtl.

tombstoneTtl

public tombstoneTtl?: (google.protobuf.IDuration|null);

Queue tombstoneTtl.

type

public type: (google.cloud.tasks.v2beta3.Queue.Type|keyof typeof google.cloud.tasks.v2beta3.Queue.Type);

Queue type.

Methods

create(properties)

public static create(properties?: google.cloud.tasks.v2beta3.IQueue): google.cloud.tasks.v2beta3.Queue;

Creates a new Queue instance using the specified properties.

Parameter
NameDescription
properties IQueue

Properties to set

Returns
TypeDescription
google.cloud.tasks.v2beta3.Queue

Queue instance

decode(reader, length)

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

Decodes a Queue 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.v2beta3.Queue

Queue

decodeDelimited(reader)

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

Decodes a Queue 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.v2beta3.Queue

Queue

encode(message, writer)

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

Encodes the specified Queue message. Does not implicitly messages.

Parameters
NameDescription
message IQueue

Queue 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.v2beta3.IQueue, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IQueue

Queue 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.v2beta3.Queue;

Creates a Queue 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.v2beta3.Queue

Queue

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for Queue

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

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

Converts this Queue to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.tasks.v2beta3.Queue

Queue

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 Queue 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