Class protos.google.cloud.dataproc.v1beta2.YarnApplication (2.4.4)

Represents a YarnApplication.

Package

@google-cloud/dataproc!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.dataproc.v1beta2.IYarnApplication);

Constructs a new YarnApplication.

Parameter
NameDescription
properties IYarnApplication

Properties to set

Properties

name

public name: string;

YarnApplication name.

Property Value
TypeDescription
string

progress

public progress: number;

YarnApplication progress.

Property Value
TypeDescription
number

state

public state: (google.cloud.dataproc.v1beta2.YarnApplication.State|keyof typeof google.cloud.dataproc.v1beta2.YarnApplication.State);

YarnApplication state.

Property Value
TypeDescription
(google.cloud.dataproc.v1beta2.YarnApplication.State|keyof typeof google.cloud.dataproc.v1beta2.YarnApplication.State)

trackingUrl

public trackingUrl: string;

YarnApplication trackingUrl.

Property Value
TypeDescription
string

Methods

create(properties)

public static create(properties?: google.cloud.dataproc.v1beta2.IYarnApplication): google.cloud.dataproc.v1beta2.YarnApplication;

Creates a new YarnApplication instance using the specified properties.

Parameter
NameDescription
properties IYarnApplication

Properties to set

Returns
TypeDescription
google.cloud.dataproc.v1beta2.YarnApplication

YarnApplication instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataproc.v1beta2.YarnApplication;

Decodes a YarnApplication 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.dataproc.v1beta2.YarnApplication

YarnApplication

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataproc.v1beta2.YarnApplication;

Decodes a YarnApplication 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.dataproc.v1beta2.YarnApplication

YarnApplication

encode(message, writer)

public static encode(message: google.cloud.dataproc.v1beta2.IYarnApplication, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified YarnApplication message. Does not implicitly messages.

Parameters
NameDescription
message IYarnApplication

YarnApplication 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.dataproc.v1beta2.IYarnApplication, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IYarnApplication

YarnApplication 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.dataproc.v1beta2.YarnApplication;

Creates a YarnApplication 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.dataproc.v1beta2.YarnApplication

YarnApplication

toJSON()

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

Converts this YarnApplication to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.dataproc.v1beta2.YarnApplication

YarnApplication

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