Class protos.google.cloud.dataproc.v1.RuntimeConfig (5.12.0)

Represents a RuntimeConfig.

Package

@google-cloud/dataproc

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.dataproc.v1.IRuntimeConfig);

Constructs a new RuntimeConfig.

Parameter
Name Description
properties IRuntimeConfig

Properties to set

Properties

autotuningConfig

public autotuningConfig?: (google.cloud.dataproc.v1.IAutotuningConfig|null);

RuntimeConfig autotuningConfig.

cohort

public cohort: string;

RuntimeConfig cohort.

containerImage

public containerImage: string;

RuntimeConfig containerImage.

properties

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

RuntimeConfig properties.

repositoryConfig

public repositoryConfig?: (google.cloud.dataproc.v1.IRepositoryConfig|null);

RuntimeConfig repositoryConfig.

version

public version: string;

RuntimeConfig version.

Methods

create(properties)

public static create(properties?: google.cloud.dataproc.v1.IRuntimeConfig): google.cloud.dataproc.v1.RuntimeConfig;

Creates a new RuntimeConfig instance using the specified properties.

Parameter
Name Description
properties IRuntimeConfig

Properties to set

Returns
Type Description
RuntimeConfig

RuntimeConfig instance

decode(reader, length)

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

Decodes a RuntimeConfig message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
RuntimeConfig

RuntimeConfig

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
RuntimeConfig

RuntimeConfig

encode(message, writer)

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

Encodes the specified RuntimeConfig message. Does not implicitly messages.

Parameters
Name Description
message IRuntimeConfig

RuntimeConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.dataproc.v1.IRuntimeConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IRuntimeConfig

RuntimeConfig message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.dataproc.v1.RuntimeConfig;

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

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
RuntimeConfig

RuntimeConfig

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for RuntimeConfig

Parameter
Name Description
typeUrlPrefix string

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

Returns
Type Description
string

The default type url

toJSON()

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

Converts this RuntimeConfig to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message RuntimeConfig

RuntimeConfig

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a RuntimeConfig message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not