Class PatchJobs.ZypperSettings.Builder (2.4.3)

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()

public PatchJobs.ZypperSettings.Builder clearCategories()

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

repeated string categories = 3;

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

clearExcludes()

public PatchJobs.ZypperSettings.Builder clearExcludes()

List of patches to exclude from update.

repeated string excludes = 5;

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

clearExclusivePatches()

public PatchJobs.ZypperSettings.Builder clearExclusivePatches()

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;

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSeverities()

public PatchJobs.ZypperSettings.Builder clearSeverities()

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

repeated string severities = 4;

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

clearWithOptional()

public PatchJobs.ZypperSettings.Builder clearWithOptional()

Adds the --with-optional flag to zypper patch.

bool with_optional = 1;

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

clearWithUpdate()

public PatchJobs.ZypperSettings.Builder clearWithUpdate()

Adds the --with-update flag, to zypper patch.

bool with_update = 2;

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

clone()

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

getCategories(int index)

public String getCategories(int index)

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

repeated string categories = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The categories at the given index.

getCategoriesBytes(int index)

public ByteString getCategoriesBytes(int index)

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

repeated string categories = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the categories at the given index.

getCategoriesCount()

public int getCategoriesCount()

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

repeated string categories = 3;

Returns
TypeDescription
int

The count of categories.

getCategoriesList()

public ProtocolStringList getCategoriesList()

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

repeated string categories = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the categories.

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExcludes(int index)

public String getExcludes(int index)

List of patches to exclude from update.

repeated string excludes = 5;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The excludes at the given index.

getExcludesBytes(int index)

public ByteString getExcludesBytes(int index)

List of patches to exclude from update.

repeated string excludes = 5;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the excludes at the given index.

getExcludesCount()

public int getExcludesCount()

List of patches to exclude from update.

repeated string excludes = 5;

Returns
TypeDescription
int

The count of excludes.

getExcludesList()

public ProtocolStringList getExcludesList()

List of patches to exclude from update.

repeated string excludes = 5;

Returns
TypeDescription
ProtocolStringList

A list containing the excludes.

getExclusivePatches(int index)

public String getExclusivePatches(int index)

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
indexint

The index of the element to return.

Returns
TypeDescription
String

The exclusivePatches at the given index.

getExclusivePatchesBytes(int index)

public ByteString getExclusivePatchesBytes(int index)

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
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the exclusivePatches at the given index.

getExclusivePatchesCount()

public int getExclusivePatchesCount()

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;

Returns
TypeDescription
int

The count of exclusivePatches.

getExclusivePatchesList()

public ProtocolStringList getExclusivePatchesList()

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;

Returns
TypeDescription
ProtocolStringList

A list containing the exclusivePatches.

getSeverities(int index)

public String getSeverities(int index)

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

repeated string severities = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The severities at the given index.

getSeveritiesBytes(int index)

public ByteString getSeveritiesBytes(int index)

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

repeated string severities = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription