Class google.cloud.scheduler.v1.PubsubTarget (2.1.1)

Represents a PubsubTarget.

Package

@google-cloud/scheduler!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.scheduler.v1.IPubsubTarget);

Constructs a new PubsubTarget.

Parameter
NameDescription
properties IPubsubTarget

Properties to set

Properties

attributes

public attributes: { [k: string]: string };

PubsubTarget attributes.

Property Value
TypeDescription
{ [k: string]: string }

data

public data: (Uint8Array|string);

PubsubTarget data.

Property Value
TypeDescription
(Uint8Array|string)

topicName

public topicName: string;

PubsubTarget topicName.

Property Value
TypeDescription
string

Methods

create(properties)

public static create(properties?: google.cloud.scheduler.v1.IPubsubTarget): google.cloud.scheduler.v1.PubsubTarget;

Creates a new PubsubTarget instance using the specified properties.

Parameter
NameDescription
properties IPubsubTarget

Properties to set

Returns
TypeDescription
PubsubTarget

PubsubTarget instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.scheduler.v1.PubsubTarget;

Decodes a PubsubTarget 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
PubsubTarget

PubsubTarget

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.scheduler.v1.PubsubTarget;

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
PubsubTarget

PubsubTarget

encode(message, writer)

public static encode(message: google.cloud.scheduler.v1.IPubsubTarget, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified PubsubTarget message. Does not implicitly verify messages.

Parameters
NameDescription
message IPubsubTarget

PubsubTarget 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.scheduler.v1.IPubsubTarget, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IPubsubTarget

PubsubTarget 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.scheduler.v1.PubsubTarget;

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

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

Plain object

Returns
TypeDescription
PubsubTarget

PubsubTarget

toJSON()

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

Converts this PubsubTarget to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message PubsubTarget

PubsubTarget

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