Class PatchJobs.ZypperSettings.Builder (2.55.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
Type Description
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
Name Description
values Iterable<String>

The categories to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The excludes to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The exclusivePatches to add.

Returns
Type Description
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
Name Description
values Iterable<String>

The severities to add.

Returns
Type Description
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
Name Description
value String

The categories to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the categories to add.

Returns
Type Description
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
Name Description
value String

The excludes to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the excludes to add.

Returns
Type Description
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
Name Description
value String

The exclusivePatches to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the exclusivePatches to add.

Returns
Type Description
PatchJobs.ZypperSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.ZypperSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The severities to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the severities to add.

Returns
Type Description
PatchJobs.ZypperSettings.Builder

This builder for chaining.

build()

public PatchJobs.ZypperSettings build()
Returns
Type Description
PatchJobs.ZypperSettings

buildPartial()

public PatchJobs.ZypperSettings buildPartial()
Returns
Type Description
PatchJobs.ZypperSettings

clear()

public PatchJobs.ZypperSettings.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
PatchJobs.ZypperSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PatchJobs.ZypperSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PatchJobs.ZypperSettings.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchJobs.ZypperSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
PatchJobs.ZypperSettings.Builder

This builder for chaining.

clone()

public PatchJobs.ZypperSettings.Builder clone()
Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the categories.

getDefaultInstanceForType()

public PatchJobs.ZypperSettings getDefaultInstanceForType()
Returns
Type Description
PatchJobs.ZypperSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getExcludes(int index)

public String getExcludes(int index)

List of patches to exclude from update.

repeated string excludes = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
int

The count of excludes.

getExcludesList()

public ProtocolStringList getExcludesList()

List of patches to exclude from update.

repeated string excludes = 5;

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the severities.

getWithOptional()

public boolean getWithOptional()

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

bool with_optional = 1;

Returns
Type Description
boolean

The withOptional.

getWithUpdate()

public boolean getWithUpdate()

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

bool with_update = 2;

Returns
Type Description
boolean

The withUpdate.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PatchJobs.ZypperSettings other)

public PatchJobs.ZypperSettings.Builder mergeFrom(PatchJobs.ZypperSettings other)
Parameter
Name Description
other PatchJobs.ZypperSettings
Returns
Type Description
PatchJobs.ZypperSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PatchJobs.ZypperSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.ZypperSettings.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PatchJobs.ZypperSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PatchJobs.ZypperSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.ZypperSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The categories to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The excludes to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The exclusivePatches to set.

Returns
Type Description
PatchJobs.ZypperSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.ZypperSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The severities to set.

Returns
Type Description
PatchJobs.ZypperSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.ZypperSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value boolean

The withOptional to set.

Returns
Type Description
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
Name Description
value boolean

The withUpdate to set.

Returns
Type Description
PatchJobs.ZypperSettings.Builder

This builder for chaining.