Class PatchJobs.AptSettings.Builder (2.24.0)

public static final class PatchJobs.AptSettings.Builder extends GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder> implements PatchJobs.AptSettingsOrBuilder

Apt patching is completed by executing apt-get update && apt-get upgrade. Additional options can be set to control how this is executed.

Protobuf type google.cloud.osconfig.v1beta.AptSettings

Static Methods

getDescriptor()

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

Methods

addAllExcludes(Iterable<String> values)

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

List of packages to exclude from update. These packages will be excluded

repeated string excludes = 2;

Parameter
NameDescription
valuesIterable<String>

The excludes to add.

Returns
TypeDescription
PatchJobs.AptSettings.Builder

This builder for chaining.

addAllExclusivePackages(Iterable<String> values)

public PatchJobs.AptSettings.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 cannot be specified with any other patch configuration fields.

repeated string exclusive_packages = 3;

Parameter
NameDescription
valuesIterable<String>

The exclusivePackages to add.

Returns
TypeDescription
PatchJobs.AptSettings.Builder

This builder for chaining.

addExcludes(String value)

public PatchJobs.AptSettings.Builder addExcludes(String value)

List of packages to exclude from update. These packages will be excluded

repeated string excludes = 2;

Parameter
NameDescription
valueString

The excludes to add.

Returns
TypeDescription
PatchJobs.AptSettings.Builder

This builder for chaining.

addExcludesBytes(ByteString value)

public PatchJobs.AptSettings.Builder addExcludesBytes(ByteString value)

List of packages to exclude from update. These packages will be excluded

repeated string excludes = 2;

Parameter
NameDescription
valueByteString

The bytes of the excludes to add.

Returns
TypeDescription
PatchJobs.AptSettings.Builder

This builder for chaining.

addExclusivePackages(String value)

public PatchJobs.AptSettings.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 cannot be specified with any other patch configuration fields.

repeated string exclusive_packages = 3;

Parameter
NameDescription
valueString

The exclusivePackages to add.

Returns
TypeDescription
PatchJobs.AptSettings.Builder

This builder for chaining.

addExclusivePackagesBytes(ByteString value)

public PatchJobs.AptSettings.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 cannot be specified with any other patch configuration fields.

repeated string exclusive_packages = 3;

Parameter
NameDescription
valueByteString

The bytes of the exclusivePackages to add.

Returns
TypeDescription
PatchJobs.AptSettings.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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