Class PatchJobs.YumSettings.Builder (2.22.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.v1beta.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
Returns
TypeDescription
PatchJobs.YumSettings.Builder
Overrides

clearSecurity()

public PatchJobs.YumSettings.Builder clearSecurity()

Adds the --security flag to yum update. Not supported on all platforms.

bool security = 1;

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExcludes(int index)

public String getExcludes(int index)

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

repeated string excludes = 3;

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 packages to exclude from update. These packages are excluded by using the yum --exclude flag.

repeated string excludes = 3;

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 packages to exclude from update. These packages are excluded by using the yum --exclude flag.

repeated string excludes = 3;

Returns
TypeDescription
int

The count of excludes.

getExcludesList()

public ProtocolStringList getExcludesList()

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

repeated string excludes = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the excludes.

getExclusivePackages(int index)

public String getExclusivePackages(int index)

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
indexint

The index of the element to return.

Returns
TypeDescription
String

The exclusivePackages at the given index.

getExclusivePackagesBytes(int index)

public ByteString getExclusivePackagesBytes(int index)

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
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the exclusivePackages at the given index.

getExclusivePackagesCount()

public int getExclusivePackagesCount()

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
int

The count of exclusivePackages.

getExclusivePackagesList()

public ProtocolStringList getExclusivePackagesList()

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
ProtocolStringList

A list containing the exclusivePackages.

getMinimal()

public boolean getMinimal()

Will cause patch to run yum update-minimal instead.

bool minimal = 2;

Returns
TypeDescription
boolean

The minimal.

getSecurity()

public boolean getSecurity()

Adds the --security flag to yum update. Not supported on all platforms.

bool security = 1;

Returns
TypeDescription
boolean

The security.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchJobs.YumSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExcludes(int index, String value)

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

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

repeated string excludes = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The excludes to set.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

setExclusivePackages(int index, String value)

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

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The exclusivePackages to set.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setMinimal(boolean value)

public PatchJobs.YumSettings.Builder setMinimal(boolean value)

Will cause patch to run yum update-minimal instead.

bool minimal = 2;

Parameter
NameDescription
valueboolean

The minimal to set.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

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

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

setSecurity(boolean value)

public PatchJobs.YumSettings.Builder setSecurity(boolean value)

Adds the --security flag to yum update. Not supported on all platforms.

bool security = 1;

Parameter
NameDescription
valueboolean

The security to set.

Returns
TypeDescription
PatchJobs.YumSettings.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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