Class protos.google.cloud.edgecontainer.v1.UpgradeClusterRequest (0.3.0)

Represents an UpgradeClusterRequest.

Package

@google-cloud/edgecontainer

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.edgecontainer.v1.IUpgradeClusterRequest);

Constructs a new UpgradeClusterRequest.

Parameter
NameDescription
properties IUpgradeClusterRequest

Properties to set

Properties

name

public name: string;

UpgradeClusterRequest name.

requestId

public requestId: string;

UpgradeClusterRequest requestId.

schedule

public schedule: (google.cloud.edgecontainer.v1.UpgradeClusterRequest.Schedule|keyof typeof google.cloud.edgecontainer.v1.UpgradeClusterRequest.Schedule);

UpgradeClusterRequest schedule.

targetVersion

public targetVersion: string;

UpgradeClusterRequest targetVersion.

Methods

create(properties)

public static create(properties?: google.cloud.edgecontainer.v1.IUpgradeClusterRequest): google.cloud.edgecontainer.v1.UpgradeClusterRequest;

Creates a new UpgradeClusterRequest instance using the specified properties.

Parameter
NameDescription
properties IUpgradeClusterRequest

Properties to set

Returns
TypeDescription
UpgradeClusterRequest

UpgradeClusterRequest instance

decode(reader, length)

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

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

UpgradeClusterRequest

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
UpgradeClusterRequest

UpgradeClusterRequest

encode(message, writer)

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

Encodes the specified UpgradeClusterRequest message. Does not implicitly messages.

Parameters
NameDescription
message IUpgradeClusterRequest

UpgradeClusterRequest 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.edgecontainer.v1.IUpgradeClusterRequest, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IUpgradeClusterRequest

UpgradeClusterRequest 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.edgecontainer.v1.UpgradeClusterRequest;

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

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

Plain object

Returns
TypeDescription
UpgradeClusterRequest

UpgradeClusterRequest

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for UpgradeClusterRequest

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message UpgradeClusterRequest

UpgradeClusterRequest

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies an UpgradeClusterRequest 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