Class protos.google.container.v1beta1.DatabaseEncryption.OperationError (5.17.0)

Represents an OperationError.

Package

@google-cloud/container

Constructors

(constructor)(properties)

constructor(properties?: google.container.v1beta1.DatabaseEncryption.IOperationError);

Constructs a new OperationError.

Parameter
Name Description
properties IOperationError

Properties to set

Properties

errorMessage

public errorMessage: string;

OperationError errorMessage.

keyName

public keyName: string;

OperationError keyName.

timestamp

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

OperationError timestamp.

Methods

create(properties)

public static create(properties?: google.container.v1beta1.DatabaseEncryption.IOperationError): google.container.v1beta1.DatabaseEncryption.OperationError;

Creates a new OperationError instance using the specified properties.

Parameter
Name Description
properties IOperationError

Properties to set

Returns
Type Description
OperationError

OperationError instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.container.v1beta1.DatabaseEncryption.OperationError;

Decodes an OperationError 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
OperationError

OperationError

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.container.v1beta1.DatabaseEncryption.OperationError;

Decodes an OperationError message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
OperationError

OperationError

encode(message, writer)

public static encode(message: google.container.v1beta1.DatabaseEncryption.IOperationError, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified OperationError message. Does not implicitly messages.

Parameters
Name Description
message IOperationError

OperationError 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.container.v1beta1.DatabaseEncryption.IOperationError, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IOperationError

OperationError 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.container.v1beta1.DatabaseEncryption.OperationError;

Creates an OperationError 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
OperationError

OperationError

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for OperationError

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 OperationError to JSON.

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

JSON object

toObject(message, options)

public static toObject(message: google.container.v1beta1.DatabaseEncryption.OperationError, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
Name Description
message OperationError

OperationError

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 an OperationError 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