Class PatchJobs.ZypperSettings.Builder (2.10.0)

public static final class PatchJobs.ZypperSettings.Builder extends GeneratedMessageV3.Builder<PatchJobs.ZypperSettings.Builder> implements PatchJobs.ZypperSettingsOrBuilder

Zypper patching is performed by running zypper patch. See also https://en.opensuse.org/SDB:Zypper_manual.

Protobuf type google.cloud.osconfig.v1beta.ZypperSettings

Static Methods

getDescriptor()

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

Methods

addAllCategories(Iterable<String> values)

public PatchJobs.ZypperSettings.Builder addAllCategories(Iterable<String> values)

Install only patches with these categories. Common categories include security, recommended, and feature.

repeated string categories = 3;

Parameter
NameDescription
valuesIterable<String>

The categories to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addAllExcludes(Iterable<String> values)

public PatchJobs.ZypperSettings.Builder addAllExcludes(Iterable<String> values)

List of patches to exclude from update.

repeated string excludes = 5;

Parameter
NameDescription
valuesIterable<String>

The excludes to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addAllExclusivePatches(Iterable<String> values)

public PatchJobs.ZypperSettings.Builder addAllExclusivePatches(Iterable<String> values)

An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:<patch_name>' command. This field must not be used with any other patch configuration fields.

repeated string exclusive_patches = 6;

Parameter
NameDescription
valuesIterable<String>

The exclusivePatches to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addAllSeverities(Iterable<String> values)

public PatchJobs.ZypperSettings.Builder addAllSeverities(Iterable<String> values)

Install only patches with these severities. Common severities include critical, important, moderate, and low.

repeated string severities = 4;

Parameter
NameDescription
valuesIterable<String>

The severities to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addCategories(String value)

public PatchJobs.ZypperSettings.Builder addCategories(String value)

Install only patches with these categories. Common categories include security, recommended, and feature.

repeated string categories = 3;

Parameter
NameDescription
valueString

The categories to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addCategoriesBytes(ByteString value)

public PatchJobs.ZypperSettings.Builder addCategoriesBytes(ByteString value)

Install only patches with these categories. Common categories include security, recommended, and feature.

repeated string categories = 3;

Parameter
NameDescription
valueByteString

The bytes of the categories to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addExcludes(String value)

public PatchJobs.ZypperSettings.Builder addExcludes(String value)

List of patches to exclude from update.

repeated string excludes = 5;

Parameter
NameDescription
valueString

The excludes to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addExcludesBytes(ByteString value)

public PatchJobs.ZypperSettings.Builder addExcludesBytes(ByteString value)

List of patches to exclude from update.

repeated string excludes = 5;

Parameter
NameDescription
valueByteString

The bytes of the excludes to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addExclusivePatches(String value)

public PatchJobs.ZypperSettings.Builder addExclusivePatches(String value)

An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:<patch_name>' command. This field must not be used with any other patch configuration fields.

repeated string exclusive_patches = 6;

Parameter
NameDescription
valueString

The exclusivePatches to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addExclusivePatchesBytes(ByteString value)

public PatchJobs.ZypperSettings.Builder addExclusivePatchesBytes(ByteString value)

An exclusive list of patches to be updated. These are the only patches that will be installed using 'zypper patch patch:<patch_name>' command. This field must not be used with any other patch configuration fields.

repeated string exclusive_patches = 6;

Parameter
NameDescription
valueByteString

The bytes of the exclusivePatches to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSeverities(String value)

public PatchJobs.ZypperSettings.Builder addSeverities(String value)

Install only patches with these severities. Common severities include critical, important, moderate, and low.

repeated string severities = 4;

Parameter
NameDescription
valueString

The severities to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addSeveritiesBytes(ByteString value)

public PatchJobs.ZypperSettings.Builder addSeveritiesBytes(ByteString value)

Install only patches with these severities. Common severities include critical, important, moderate, and low.

repeated string severities = 4;

Parameter
NameDescription
valueByteString

The bytes of the severities to add.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

build()

public PatchJobs.ZypperSettings build()
Returns
TypeDescription
PatchJobs.ZypperSettings

buildPartial()

public PatchJobs.ZypperSettings buildPartial()
Returns
TypeDescription
PatchJobs.ZypperSettings

clear()

public PatchJobs.ZypperSettings.Builder clear()
Returns
TypeDescription
PatchJobs.ZypperSettings.Builder
Overrides

clearCategories()