Package com.google.cloud.osconfig.v1beta
Class PatchJobs.YumSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.YumSettings.Builder>
com.google.cloud.osconfig.v1beta.PatchJobs.YumSettings.Builder
- All Implemented Interfaces:
PatchJobs.YumSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PatchJobs.YumSettings
public static final class PatchJobs.YumSettings.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllExcludes(Iterable<String> values) List of packages to exclude from update.addAllExclusivePackages(Iterable<String> values) An exclusive list of packages to be updated.addExcludes(String value) List of packages to exclude from update.addExcludesBytes(com.google.protobuf.ByteString value) List of packages to exclude from update.addExclusivePackages(String value) An exclusive list of packages to be updated.addExclusivePackagesBytes(com.google.protobuf.ByteString value) An exclusive list of packages to be updated.build()clear()List of packages to exclude from update.An exclusive list of packages to be updated.Will cause patch to run `yum update-minimal` instead.Adds the `--security` flag to `yum update`.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExcludes(int index) List of packages to exclude from update.com.google.protobuf.ByteStringgetExcludesBytes(int index) List of packages to exclude from update.intList of packages to exclude from update.com.google.protobuf.ProtocolStringListList of packages to exclude from update.getExclusivePackages(int index) An exclusive list of packages to be updated.com.google.protobuf.ByteStringgetExclusivePackagesBytes(int index) An exclusive list of packages to be updated.intAn exclusive list of packages to be updated.com.google.protobuf.ProtocolStringListAn exclusive list of packages to be updated.booleanWill cause patch to run `yum update-minimal` instead.booleanAdds the `--security` flag to `yum update`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PatchJobs.YumSettings other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExcludes(int index, String value) List of packages to exclude from update.setExclusivePackages(int index, String value) An exclusive list of packages to be updated.setMinimal(boolean value) Will cause patch to run `yum update-minimal` instead.setSecurity(boolean value) Adds the `--security` flag to `yum update`.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.YumSettings.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.YumSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.YumSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.YumSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.YumSettings.Builder>
-
mergeFrom
public PatchJobs.YumSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.YumSettings.Builder>- Throws:
IOException
-
getSecurity
public boolean getSecurity()Adds the `--security` flag to `yum update`. Not supported on all platforms.
bool security = 1;- Specified by:
getSecurityin interfacePatchJobs.YumSettingsOrBuilder- Returns:
- The security.
-
setSecurity
Adds the `--security` flag to `yum update`. Not supported on all platforms.
bool security = 1;- Parameters:
value- The security to set.- Returns:
- This builder for chaining.
-
clearSecurity
Adds the `--security` flag to `yum update`. Not supported on all platforms.
bool security = 1;- Returns:
- This builder for chaining.
-
getMinimal
public boolean getMinimal()Will cause patch to run `yum update-minimal` instead.
bool minimal = 2;- Specified by:
getMinimalin interfacePatchJobs.YumSettingsOrBuilder- Returns:
- The minimal.
-
setMinimal
Will cause patch to run `yum update-minimal` instead.
bool minimal = 2;- Parameters:
value- The minimal to set.- Returns:
- This builder for chaining.
-
clearMinimal
Will cause patch to run `yum update-minimal` instead.
bool minimal = 2;- Returns:
- This builder for chaining.
-
getExcludesList
public com.google.protobuf.ProtocolStringList getExcludesList()List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
repeated string excludes = 3;- Specified by:
getExcludesListin interfacePatchJobs.YumSettingsOrBuilder- Returns:
- A list containing the excludes.
-
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;- Specified by:
getExcludesCountin interfacePatchJobs.YumSettingsOrBuilder- Returns:
- The count of excludes.
-
getExcludes
List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
repeated string excludes = 3;- Specified by:
getExcludesin interfacePatchJobs.YumSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The excludes at the given index.
-
getExcludesBytes
public com.google.protobuf.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;- Specified by:
getExcludesBytesin interfacePatchJobs.YumSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the excludes at the given index.
-
setExcludes
List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
repeated string excludes = 3;- Parameters:
index- The index to set the value at.value- The excludes to set.- Returns:
- This builder for chaining.
-
addExcludes
List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
repeated string excludes = 3;- Parameters:
value- The excludes to add.- Returns:
- This builder for chaining.
-
addAllExcludes
List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
repeated string excludes = 3;- Parameters:
values- The excludes to add.- Returns:
- This builder for chaining.
-
clearExcludes
List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
repeated string excludes = 3;- Returns:
- This builder for chaining.
-
addExcludesBytes
List of packages to exclude from update. These packages are excluded by using the yum `--exclude` flag.
repeated string excludes = 3;- Parameters:
value- The bytes of the excludes to add.- Returns:
- This builder for chaining.
-
getExclusivePackagesList
public com.google.protobuf.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;- Specified by:
getExclusivePackagesListin interfacePatchJobs.YumSettingsOrBuilder- Returns:
- A list containing the exclusivePackages.
-
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;- Specified by:
getExclusivePackagesCountin interfacePatchJobs.YumSettingsOrBuilder- Returns:
- The count of exclusivePackages.
-
getExclusivePackages
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;- Specified by:
getExclusivePackagesin interfacePatchJobs.YumSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The exclusivePackages at the given index.
-
getExclusivePackagesBytes
public com.google.protobuf.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;- Specified by:
getExclusivePackagesBytesin interfacePatchJobs.YumSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the exclusivePackages at the given index.
-
setExclusivePackages
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:
index- The index to set the value at.value- The exclusivePackages to set.- Returns:
- This builder for chaining.
-
addExclusivePackages
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:
value- The exclusivePackages to add.- Returns:
- This builder for chaining.
-
addAllExclusivePackages
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:
values- The exclusivePackages to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addExclusivePackagesBytes
public PatchJobs.YumSettings.Builder addExclusivePackagesBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the exclusivePackages to add.- Returns:
- This builder for chaining.
-