Class Inventory.WindowsUpdatePackage.Builder (2.11.0)

public static final class Inventory.WindowsUpdatePackage.Builder extends GeneratedMessageV3.Builder<Inventory.WindowsUpdatePackage.Builder> implements Inventory.WindowsUpdatePackageOrBuilder

Details related to a Windows Update package. Field data and names are taken from Windows Update API IUpdate Interface: https://docs.microsoft.com/en-us/windows/win32/api/_wua/ Descriptive fields like title, and description are localized based on the locale of the VM being updated.

Protobuf type google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage

Static Methods

getDescriptor()

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

Methods

addAllCategories(Iterable<? extends Inventory.WindowsUpdatePackage.WindowsUpdateCategory> values)

public Inventory.WindowsUpdatePackage.Builder addAllCategories(Iterable<? extends Inventory.WindowsUpdatePackage.WindowsUpdateCategory> values)

The categories that are associated with this update package.

repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory>
Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

addAllKbArticleIds(Iterable<String> values)

public Inventory.WindowsUpdatePackage.Builder addAllKbArticleIds(Iterable<String> values)

A collection of Microsoft Knowledge Base article IDs that are associated with the update package.

repeated string kb_article_ids = 4;

Parameter
NameDescription
valuesIterable<String>

The kbArticleIds to add.

Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

This builder for chaining.

addAllMoreInfoUrls(Iterable<String> values)

public Inventory.WindowsUpdatePackage.Builder addAllMoreInfoUrls(Iterable<String> values)

A collection of URLs that provide more information about the update package.

repeated string more_info_urls = 5;

Parameter
NameDescription
valuesIterable<String>

The moreInfoUrls to add.

Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

This builder for chaining.

addCategories(Inventory.WindowsUpdatePackage.WindowsUpdateCategory value)

public Inventory.WindowsUpdatePackage.Builder addCategories(Inventory.WindowsUpdatePackage.WindowsUpdateCategory value)

The categories that are associated with this update package.

repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;

Parameter
NameDescription
valueInventory.WindowsUpdatePackage.WindowsUpdateCategory
Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

addCategories(Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder builderForValue)

public Inventory.WindowsUpdatePackage.Builder addCategories(Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder builderForValue)

The categories that are associated with this update package.

repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;

Parameter
NameDescription
builderForValueInventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder
Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

addCategories(int index, Inventory.WindowsUpdatePackage.WindowsUpdateCategory value)

public Inventory.WindowsUpdatePackage.Builder addCategories(int index, Inventory.WindowsUpdatePackage.WindowsUpdateCategory value)

The categories that are associated with this update package.

repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;

Parameters
NameDescription
indexint
valueInventory.WindowsUpdatePackage.WindowsUpdateCategory
Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

addCategories(int index, Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder builderForValue)

public Inventory.WindowsUpdatePackage.Builder addCategories(int index, Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder builderForValue)

The categories that are associated with this update package.

repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;

Parameters
NameDescription
indexint
builderForValueInventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder
Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

addCategoriesBuilder()

public Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder addCategoriesBuilder()

The categories that are associated with this update package.

repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;

Returns
TypeDescription
Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder

addCategoriesBuilder(int index)

public Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder addCategoriesBuilder(int index)

The categories that are associated with this update package.

repeated .google.cloud.osconfig.v1.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;

Parameter
NameDescription
indexint
Returns
TypeDescription
Inventory.WindowsUpdatePackage.WindowsUpdateCategory.Builder

addKbArticleIds(String value)

public Inventory.WindowsUpdatePackage.Builder addKbArticleIds(String value)

A collection of Microsoft Knowledge Base article IDs that are associated with the update package.

repeated string kb_article_ids = 4;

Parameter
NameDescription
valueString

The kbArticleIds to add.

Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

This builder for chaining.

addKbArticleIdsBytes(ByteString value)

public Inventory.WindowsUpdatePackage.Builder addKbArticleIdsBytes(ByteString value)

A collection of Microsoft Knowledge Base article IDs that are associated with the update package.

repeated string kb_article_ids = 4;

Parameter
NameDescription
valueByteString

The bytes of the kbArticleIds to add.

Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

This builder for chaining.

addMoreInfoUrls(String value)

public Inventory.WindowsUpdatePackage.Builder addMoreInfoUrls(String value)

A collection of URLs that provide more information about the update package.

repeated string more_info_urls = 5;

Parameter
NameDescription
valueString

The moreInfoUrls to add.

Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

This builder for chaining.

addMoreInfoUrlsBytes(ByteString value)

public Inventory.WindowsUpdatePackage.Builder addMoreInfoUrlsBytes(ByteString value)

A collection of URLs that provide more information about the update package.

repeated string more_info_urls = 5;

Parameter
NameDescription
valueByteString

The bytes of the moreInfoUrls to add.

Returns
TypeDescription
Inventory.WindowsUpdatePackage.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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