Class protos.google.cloud.vmmigration.v1.MigrationError (3.0.2)

Represents a MigrationError.

Package

@google-cloud/vmmigration

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.vmmigration.v1.IMigrationError);

Constructs a new MigrationError.

Parameter
NameDescription
properties IMigrationError

Properties to set

Properties

actionItem

public actionItem?: (google.rpc.ILocalizedMessage|null);

MigrationError actionItem.

code

public code: (google.cloud.vmmigration.v1.MigrationError.ErrorCode|keyof typeof google.cloud.vmmigration.v1.MigrationError.ErrorCode);

MigrationError code.

errorMessage

public errorMessage?: (google.rpc.ILocalizedMessage|null);

MigrationError errorMessage.

errorTime

public errorTime?: (google.protobuf.ITimestamp|null);

MigrationError errorTime.

public helpLinks: google.rpc.Help.ILink[];

MigrationError helpLinks.

Methods

create(properties)

public static create(properties?: google.cloud.vmmigration.v1.IMigrationError): google.cloud.vmmigration.v1.MigrationError;

Creates a new MigrationError instance using the specified properties.

Parameter
NameDescription
properties IMigrationError

Properties to set

Returns
TypeDescription
MigrationError

MigrationError instance

decode(reader, length)

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

Decodes a MigrationError message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
MigrationError

MigrationError

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
MigrationError

MigrationError

encode(message, writer)

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

Encodes the specified MigrationError message. Does not implicitly messages.

Parameters
NameDescription
message IMigrationError

MigrationError 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.vmmigration.v1.IMigrationError, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IMigrationError

MigrationError 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.vmmigration.v1.MigrationError;

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

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

Plain object

Returns
TypeDescription
MigrationError

MigrationError

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for MigrationError

Parameter
NameDescription
typeUrlPrefix string

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

Returns
TypeDescription
string

The default type url

toJSON()

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

Converts this MigrationError to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message MigrationError

MigrationError

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