Class protos.grafeas.v1.UpgradeOccurrence (3.4.6)

Represents an UpgradeOccurrence.

Package

@google-cloud/grafeas!

Constructors

(constructor)(properties)

constructor(properties?: grafeas.v1.IUpgradeOccurrence);

Constructs a new UpgradeOccurrence.

Parameter
NameDescription
properties IUpgradeOccurrence

Properties to set

Properties

distribution

public distribution?: (grafeas.v1.IUpgradeDistribution|null);

UpgradeOccurrence distribution.

Property Value
TypeDescription
(grafeas.v1.IUpgradeDistribution|null)

package

public package: string;

UpgradeOccurrence package.

Property Value
TypeDescription
string

parsedVersion

public parsedVersion?: (grafeas.v1.IVersion|null);

UpgradeOccurrence parsedVersion.

Property Value
TypeDescription
(grafeas.v1.IVersion|null)

windowsUpdate

public windowsUpdate?: (grafeas.v1.IWindowsUpdate|null);

UpgradeOccurrence windowsUpdate.

Property Value
TypeDescription
(grafeas.v1.IWindowsUpdate|null)

Methods

create(properties)

public static create(properties?: grafeas.v1.IUpgradeOccurrence): grafeas.v1.UpgradeOccurrence;

Creates a new UpgradeOccurrence instance using the specified properties.

Parameter
NameDescription
properties IUpgradeOccurrence

Properties to set

Returns
TypeDescription
grafeas.v1.UpgradeOccurrence

UpgradeOccurrence instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): grafeas.v1.UpgradeOccurrence;

Decodes an UpgradeOccurrence message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
grafeas.v1.UpgradeOccurrence

UpgradeOccurrence

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): grafeas.v1.UpgradeOccurrence;

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
grafeas.v1.UpgradeOccurrence

UpgradeOccurrence

encode(message, writer)

public static encode(message: grafeas.v1.IUpgradeOccurrence, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified UpgradeOccurrence message. Does not implicitly messages.

Parameters
NameDescription
message IUpgradeOccurrence

UpgradeOccurrence 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: grafeas.v1.IUpgradeOccurrence, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IUpgradeOccurrence

UpgradeOccurrence 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 }): grafeas.v1.UpgradeOccurrence;

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

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

Plain object

Returns
TypeDescription
grafeas.v1.UpgradeOccurrence

UpgradeOccurrence

toJSON()

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

Converts this UpgradeOccurrence to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: grafeas.v1.UpgradeOccurrence, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
NameDescription
message grafeas.v1.UpgradeOccurrence

UpgradeOccurrence

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