Class PatchJobs.ZypperSettings.Builder (2.30.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.v1.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
ByteString

The bytes of the severities at the given index.

getSeveritiesCount()

public int getSeveritiesCount()

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

repeated string severities = 4;

Returns
TypeDescription
int

The count of severities.

getSeveritiesList()

public ProtocolStringList getSeveritiesList()

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

repeated string severities = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the severities.

getWithOptional()

public boolean getWithOptional()

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

bool with_optional = 1;

Returns
TypeDescription
boolean

The withOptional.

getWithUpdate()

public boolean getWithUpdate()

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

bool with_update = 2;

Returns
TypeDescription
boolean

The withUpdate.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchJobs.ZypperSettings other)

public PatchJobs.ZypperSettings.Builder mergeFrom(PatchJobs.ZypperSettings other)
Parameter
NameDescription
otherPatchJobs.ZypperSettings
Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PatchJobs.ZypperSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchJobs.ZypperSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PatchJobs.ZypperSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PatchJobs.ZypperSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.ZypperSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PatchJobs.ZypperSettings.Builder
Overrides

setCategories(int index, String value)

public PatchJobs.ZypperSettings.Builder setCategories(int index, String value)

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

repeated string categories = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The categories to set.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

setExcludes(int index, String value)

public PatchJobs.ZypperSettings.Builder setExcludes(int index, String value)

List of patches to exclude from update.

repeated string excludes = 5;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The excludes to set.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

setExclusivePatches(int index, String value)

public PatchJobs.ZypperSettings.Builder setExclusivePatches(int index, 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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The exclusivePatches to set.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

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

setSeverities(int index, String value)

public PatchJobs.ZypperSettings.Builder setSeverities(int index, String value)

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

repeated string severities = 4;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The severities to set.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.ZypperSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PatchJobs.ZypperSettings.Builder
Overrides

setWithOptional(boolean value)

public PatchJobs.ZypperSettings.Builder setWithOptional(boolean value)

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

bool with_optional = 1;

Parameter
NameDescription
valueboolean

The withOptional to set.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.

setWithUpdate(boolean value)

public PatchJobs.ZypperSettings.Builder setWithUpdate(boolean value)

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

bool with_update = 2;

Parameter
NameDescription
valueboolean

The withUpdate to set.

Returns
TypeDescription
PatchJobs.ZypperSettings.Builder

This builder for chaining.