Class protos.google.cloud.dataproc.v1beta2.ClusterOperationMetadata

Represents a ClusterOperationMetadata.

Package

@google-cloud/dataproc!

Constructors

(constructor)(properties)

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

Constructs a new ClusterOperationMetadata.

Parameter
TypeNameDescription
IClusterOperationMetadataproperties

Properties to set

Properties

clusterName

public clusterName: string;

ClusterOperationMetadata clusterName.

Property Value
TypeDescription
string

clusterUuid

public clusterUuid: string;

ClusterOperationMetadata clusterUuid.

Property Value
TypeDescription
string

description

public description: string;

ClusterOperationMetadata description.

Property Value
TypeDescription
string

labels

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

ClusterOperationMetadata labels.

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

operationType

public operationType: string;

ClusterOperationMetadata operationType.

Property Value
TypeDescription
string

status

public status?: (google.cloud.dataproc.v1beta2.IClusterOperationStatus|null);

ClusterOperationMetadata status.

Property Value
TypeDescription
(google.cloud.dataproc.v1beta2.IClusterOperationStatus|null)

statusHistory

public statusHistory: google.cloud.dataproc.v1beta2.IClusterOperationStatus[];

ClusterOperationMetadata statusHistory.

Property Value
TypeDescription
google.cloud.dataproc.v1beta2.IClusterOperationStatus[]

warnings

public warnings: string[];

ClusterOperationMetadata warnings.

Property Value
TypeDescription
string[]

Methods

create(properties)

public static create(properties?: google.cloud.dataproc.v1beta2.IClusterOperationMetadata): google.cloud.dataproc.v1beta2.ClusterOperationMetadata;

Creates a new ClusterOperationMetadata instance using the specified properties.

Parameter
TypeNameDescription
IClusterOperationMetadataproperties

Properties to set

Returns
TypeDescription
google.cloud.dataproc.v1beta2.ClusterOperationMetadata

ClusterOperationMetadata instance

decode(reader, length)

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

Decodes a ClusterOperationMetadata message from the specified reader or buffer.

Parameters
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

numberlength

Message length if known beforehand

Returns
TypeDescription
google.cloud.dataproc.v1beta2.ClusterOperationMetadata

ClusterOperationMetadata

decodeDelimited(reader)

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

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

Parameter
TypeNameDescription
($protobuf.Reader|Uint8Array)reader

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.dataproc.v1beta2.ClusterOperationMetadata

ClusterOperationMetadata

encode(message, writer)

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

Encodes the specified ClusterOperationMetadata message. Does not implicitly messages.

Parameters
TypeNameDescription
IClusterOperationMetadatamessage

ClusterOperationMetadata message or plain object to encode

$protobuf.Writerwriter

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

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

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

Parameters
TypeNameDescription
IClusterOperationMetadatamessage

ClusterOperationMetadata message or plain object to encode

$protobuf.Writerwriter

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

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

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

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

Plain object

Returns
TypeDescription
google.cloud.dataproc.v1beta2.ClusterOperationMetadata

ClusterOperationMetadata

toJSON()

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

Converts this ClusterOperationMetadata to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
TypeNameDescription
google.cloud.dataproc.v1beta2.ClusterOperationMetadatamessage

ClusterOperationMetadata

$protobuf.IConversionOptionsoptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a ClusterOperationMetadata message.

Parameter
TypeNameDescription
{ [k: string]: any }message

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not