Class PatchJobs.YumSettings.Builder (2.16.0)

public static final class PatchJobs.YumSettings.Builder extends GeneratedMessageV3.Builder<PatchJobs.YumSettings.Builder> implements PatchJobs.YumSettingsOrBuilder

Yum patching is performed by executing yum update. Additional options can be set to control how this is executed. Note that not all settings are supported on all platforms.

Protobuf type google.cloud.osconfig.v1.YumSettings

Static Methods

getDescriptor()

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

Methods

addAllExcludes(Iterable<String> values)

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

List of packages to exclude from update. These packages are excluded by using the yum --exclude flag.

repeated string excludes = 3;

Parameter
NameDescription
valuesIterable<String>

The excludes to add.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

addAllExclusivePackages(Iterable<String> values)

public PatchJobs.YumSettings.Builder addAllExclusivePackages(Iterable<String> values)

An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.

repeated string exclusive_packages = 4;

Parameter
NameDescription
valuesIterable<String>

The exclusivePackages to add.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

addExcludes(String value)

public PatchJobs.YumSettings.Builder addExcludes(String value)

List of packages to exclude from update. These packages are excluded by using the yum --exclude flag.

repeated string excludes = 3;

Parameter
NameDescription
valueString

The excludes to add.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

addExcludesBytes(ByteString value)

public PatchJobs.YumSettings.Builder addExcludesBytes(ByteString value)

List of packages to exclude from update. These packages are excluded by using the yum --exclude flag.

repeated string excludes = 3;

Parameter
NameDescription
valueByteString

The bytes of the excludes to add.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

addExclusivePackages(String value)

public PatchJobs.YumSettings.Builder addExclusivePackages(String value)

An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.

repeated string exclusive_packages = 4;

Parameter
NameDescription
valueString

The exclusivePackages to add.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

addExclusivePackagesBytes(ByteString value)

public PatchJobs.YumSettings.Builder addExclusivePackagesBytes(ByteString value)

An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.

repeated string exclusive_packages = 4;

Parameter
NameDescription
valueByteString

The bytes of the exclusivePackages to add.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearExcludes()

public PatchJobs.YumSettings.Builder clearExcludes()

List of packages to exclude from update. These packages are excluded by using the yum --exclude flag.

repeated string excludes = 3;

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

clearExclusivePackages()

public PatchJobs.YumSettings.Builder clearExclusivePackages()

An exclusive list of packages to be updated. These are the only packages that will be updated. If these packages are not installed, they will be ignored. This field must not be specified with any other patch configuration fields.

repeated string exclusive_packages = 4;

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearMinimal()

public PatchJobs.YumSettings.Builder clearMinimal()

Will cause patch to run yum update-minimal instead.

bool minimal = 2;

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchJobs.YumSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor