Class UpgradeOccurrence.Builder (2.31.0)

public static final class UpgradeOccurrence.Builder extends GeneratedMessageV3.Builder<UpgradeOccurrence.Builder> implements UpgradeOccurrenceOrBuilder

An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). For Windows, both distribution and windows_update contain information for the Windows update.

Protobuf type grafeas.v1.UpgradeOccurrence

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpgradeOccurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UpgradeOccurrence.Builder
Overrides

build()

public UpgradeOccurrence build()
Returns
TypeDescription
UpgradeOccurrence

buildPartial()

public UpgradeOccurrence buildPartial()
Returns
TypeDescription
UpgradeOccurrence

clear()

public UpgradeOccurrence.Builder clear()
Returns
TypeDescription
UpgradeOccurrence.Builder
Overrides

clearDistribution()

public UpgradeOccurrence.Builder clearDistribution()

Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.

.grafeas.v1.UpgradeDistribution distribution = 4;

Returns
TypeDescription
UpgradeOccurrence.Builder

clearField(Descriptors.FieldDescriptor field)

public UpgradeOccurrence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UpgradeOccurrence.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpgradeOccurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UpgradeOccurrence.Builder
Overrides

clearPackage()

public UpgradeOccurrence.Builder clearPackage()

Required for non-Windows OS. The package this Upgrade is for.

string package = 1;

Returns
TypeDescription
UpgradeOccurrence.Builder

This builder for chaining.

clearParsedVersion()

public UpgradeOccurrence.Builder clearParsedVersion()

Required for non-Windows OS. The version of the package in a machine + human readable form.

.grafeas.v1.Version parsed_version = 3;

Returns
TypeDescription
UpgradeOccurrence.Builder

clearWindowsUpdate()

public UpgradeOccurrence.Builder clearWindowsUpdate()

Required for Windows OS. Represents the metadata about the Windows update.

.grafeas.v1.WindowsUpdate windows_update = 5;

Returns
TypeDescription
UpgradeOccurrence.Builder

clone()

public UpgradeOccurrence.Builder clone()
Returns
TypeDescription
UpgradeOccurrence.Builder
Overrides

getDefaultInstanceForType()

public UpgradeOccurrence getDefaultInstanceForType()
Returns
TypeDescription
UpgradeOccurrence

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDistribution()

public UpgradeDistribution getDistribution()

Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.

.grafeas.v1.UpgradeDistribution distribution = 4;

Returns
TypeDescription