Class protos.google.cloud.tasks.v2.ResumeQueueRequest (5.5.2)

Represents a ResumeQueueRequest.

Package

@google-cloud/tasks

Constructors

(constructor)(properties)

constructor(properties?:google.cloud.tasks.v2.IResumeQueueRequest);

Constructs a new ResumeQueueRequest.

Parameter
NameDescription
propertiesIResumeQueueRequest

Properties to set

Properties

name

publicname:string;

ResumeQueueRequest name.

Methods

create(properties)

publicstaticcreate(properties?:google.cloud.tasks.v2.IResumeQueueRequest):google.cloud.tasks.v2.ResumeQueueRequest;

Creates a new ResumeQueueRequest instance using the specified properties.

Parameter
NameDescription
propertiesIResumeQueueRequest

Properties to set

Returns
TypeDescription
ResumeQueueRequest

ResumeQueueRequest instance

decode(reader, length)

publicstaticdecode(reader:($protobuf.Reader|Uint8Array),length?:number):google.cloud.tasks.v2.ResumeQueueRequest;

Decodes a ResumeQueueRequest message from the specified reader or buffer.

Parameters
NameDescription
reader(Reader|Uint8Array)

Reader or buffer to decode from

lengthnumber

Message length if known beforehand

Returns
TypeDescription
ResumeQueueRequest

ResumeQueueRequest

decodeDelimited(reader)

publicstaticdecodeDelimited(reader:($protobuf.Reader|Uint8Array)):google.cloud.tasks.v2.ResumeQueueRequest;

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

Parameter
NameDescription
reader(Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
ResumeQueueRequest

ResumeQueueRequest

encode(message, writer)

publicstaticencode(message:google.cloud.tasks.v2.IResumeQueueRequest,writer?:$protobuf.Writer):$protobuf.Writer;

Encodes the specified ResumeQueueRequest message. Does not implicitly messages.

Parameters
NameDescription
messageIResumeQueueRequest

ResumeQueueRequest message or plain object to encode

writer$protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

publicstaticencodeDelimited(message:google.cloud.tasks.v2.IResumeQueueRequest,writer?:$protobuf.Writer):$protobuf.Writer;

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

Parameters
NameDescription
messageIResumeQueueRequest

ResumeQueueRequest message or plain object to encode

writer$protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

publicstaticfromObject(object:{[k:string]:any}):google.cloud.tasks.v2.ResumeQueueRequest;

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

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

Plain object

Returns
TypeDescription
ResumeQueueRequest

ResumeQueueRequest

getTypeUrl(typeUrlPrefix)

publicstaticgetTypeUrl(typeUrlPrefix?:string):string;

Gets the default type url for ResumeQueueRequest

Parameter
NameDescription
typeUrlPrefixstring

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

Returns
TypeDescription
string

The default type url

toJSON()

publictoJSON():{[k:string]:any};

Converts this ResumeQueueRequest to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

publicstatictoObject(message:google.cloud.tasks.v2.ResumeQueueRequest,options?:$protobuf.IConversionOptions):{[k:string]:any};

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

Parameters
NameDescription
messageResumeQueueRequest

ResumeQueueRequest

options$protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

publicstaticverify(message:{[k:string]:any}):(string|null);

Verifies a ResumeQueueRequest 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