Package com.google.cloud.osconfig.v1beta
Class PatchJobs.ZypperSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ZypperSettings.Builder>
com.google.cloud.osconfig.v1beta.PatchJobs.ZypperSettings.Builder
- All Implemented Interfaces:
PatchJobs.ZypperSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PatchJobs.ZypperSettings
public static final class PatchJobs.ZypperSettings.Builder
extends com.google.protobuf.GeneratedMessage.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.v1beta.ZypperSettings-
Method Summary
Modifier and TypeMethodDescriptionaddAllCategories(Iterable<String> values) Install only patches with these categories.addAllExcludes(Iterable<String> values) List of patches to exclude from update.addAllExclusivePatches(Iterable<String> values) An exclusive list of patches to be updated.addAllSeverities(Iterable<String> values) Install only patches with these severities.addCategories(String value) Install only patches with these categories.addCategoriesBytes(com.google.protobuf.ByteString value) Install only patches with these categories.addExcludes(String value) List of patches to exclude from update.addExcludesBytes(com.google.protobuf.ByteString value) List of patches to exclude from update.addExclusivePatches(String value) An exclusive list of patches to be updated.addExclusivePatchesBytes(com.google.protobuf.ByteString value) An exclusive list of patches to be updated.addSeverities(String value) Install only patches with these severities.addSeveritiesBytes(com.google.protobuf.ByteString value) Install only patches with these severities.build()clear()Install only patches with these categories.List of patches to exclude from update.An exclusive list of patches to be updated.Install only patches with these severities.Adds the `--with-optional` flag to `zypper patch`.Adds the `--with-update` flag, to `zypper patch`.getCategories(int index) Install only patches with these categories.com.google.protobuf.ByteStringgetCategoriesBytes(int index) Install only patches with these categories.intInstall only patches with these categories.com.google.protobuf.ProtocolStringListInstall only patches with these categories.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetExcludes(int index) List of patches to exclude from update.com.google.protobuf.ByteStringgetExcludesBytes(int index) List of patches to exclude from update.intList of patches to exclude from update.com.google.protobuf.ProtocolStringListList of patches to exclude from update.getExclusivePatches(int index) An exclusive list of patches to be updated.com.google.protobuf.ByteStringgetExclusivePatchesBytes(int index) An exclusive list of patches to be updated.intAn exclusive list of patches to be updated.com.google.protobuf.ProtocolStringListAn exclusive list of patches to be updated.getSeverities(int index) Install only patches with these severities.com.google.protobuf.ByteStringgetSeveritiesBytes(int index) Install only patches with these severities.intInstall only patches with these severities.com.google.protobuf.ProtocolStringListInstall only patches with these severities.booleanAdds the `--with-optional` flag to `zypper patch`.booleanAdds the `--with-update` flag, to `zypper patch`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCategories(int index, String value) Install only patches with these categories.setExcludes(int index, String value) List of patches to exclude from update.setExclusivePatches(int index, String value) An exclusive list of patches to be updated.setSeverities(int index, String value) Install only patches with these severities.setWithOptional(boolean value) Adds the `--with-optional` flag to `zypper patch`.setWithUpdate(boolean value) Adds the `--with-update` flag, to `zypper patch`.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.ZypperSettings.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.ZypperSettings.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.ZypperSettings.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.ZypperSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.ZypperSettings.Builder>
-
mergeFrom
public PatchJobs.ZypperSettings.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.ZypperSettings.Builder>- Throws:
IOException
-
getWithOptional
public boolean getWithOptional()Adds the `--with-optional` flag to `zypper patch`.
bool with_optional = 1;- Specified by:
getWithOptionalin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- The withOptional.
-
setWithOptional
Adds the `--with-optional` flag to `zypper patch`.
bool with_optional = 1;- Parameters:
value- The withOptional to set.- Returns:
- This builder for chaining.
-
clearWithOptional
Adds the `--with-optional` flag to `zypper patch`.
bool with_optional = 1;- Returns:
- This builder for chaining.
-
getWithUpdate
public boolean getWithUpdate()Adds the `--with-update` flag, to `zypper patch`.
bool with_update = 2;- Specified by:
getWithUpdatein interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- The withUpdate.
-
setWithUpdate
Adds the `--with-update` flag, to `zypper patch`.
bool with_update = 2;- Parameters:
value- The withUpdate to set.- Returns:
- This builder for chaining.
-
clearWithUpdate
Adds the `--with-update` flag, to `zypper patch`.
bool with_update = 2;- Returns:
- This builder for chaining.
-
getCategoriesList
public com.google.protobuf.ProtocolStringList getCategoriesList()Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Specified by:
getCategoriesListin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- A list containing the categories.
-
getCategoriesCount
public int getCategoriesCount()Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Specified by:
getCategoriesCountin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- The count of categories.
-
getCategories
Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Specified by:
getCategoriesin interfacePatchJobs.ZypperSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The categories at the given index.
-
getCategoriesBytes
public com.google.protobuf.ByteString getCategoriesBytes(int index) Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Specified by:
getCategoriesBytesin interfacePatchJobs.ZypperSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the categories at the given index.
-
setCategories
Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Parameters:
index- The index to set the value at.value- The categories to set.- Returns:
- This builder for chaining.
-
addCategories
Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Parameters:
value- The categories to add.- Returns:
- This builder for chaining.
-
addAllCategories
Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Parameters:
values- The categories to add.- Returns:
- This builder for chaining.
-
clearCategories
Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Returns:
- This builder for chaining.
-
addCategoriesBytes
Install only patches with these categories. Common categories include security, recommended, and feature.
repeated string categories = 3;- Parameters:
value- The bytes of the categories to add.- Returns:
- This builder for chaining.
-
getSeveritiesList
public com.google.protobuf.ProtocolStringList getSeveritiesList()Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Specified by:
getSeveritiesListin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- A list containing the severities.
-
getSeveritiesCount
public int getSeveritiesCount()Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Specified by:
getSeveritiesCountin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- The count of severities.
-
getSeverities
Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Specified by:
getSeveritiesin interfacePatchJobs.ZypperSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The severities at the given index.
-
getSeveritiesBytes
public com.google.protobuf.ByteString getSeveritiesBytes(int index) Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Specified by:
getSeveritiesBytesin interfacePatchJobs.ZypperSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the severities at the given index.
-
setSeverities
Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Parameters:
index- The index to set the value at.value- The severities to set.- Returns:
- This builder for chaining.
-
addSeverities
Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Parameters:
value- The severities to add.- Returns:
- This builder for chaining.
-
addAllSeverities
Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Parameters:
values- The severities to add.- Returns:
- This builder for chaining.
-
clearSeverities
Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Returns:
- This builder for chaining.
-
addSeveritiesBytes
Install only patches with these severities. Common severities include critical, important, moderate, and low.
repeated string severities = 4;- Parameters:
value- The bytes of the severities to add.- Returns:
- This builder for chaining.
-
getExcludesList
public com.google.protobuf.ProtocolStringList getExcludesList()List of patches to exclude from update.
repeated string excludes = 5;- Specified by:
getExcludesListin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- A list containing the excludes.
-
getExcludesCount
public int getExcludesCount()List of patches to exclude from update.
repeated string excludes = 5;- Specified by:
getExcludesCountin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- The count of excludes.
-
getExcludes
List of patches to exclude from update.
repeated string excludes = 5;- Specified by:
getExcludesin interfacePatchJobs.ZypperSettingsOrBuilder- 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 patches to exclude from update.
repeated string excludes = 5;- Specified by:
getExcludesBytesin interfacePatchJobs.ZypperSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the excludes at the given index.
-
setExcludes
List of patches to exclude from update.
repeated string excludes = 5;- Parameters:
index- The index to set the value at.value- The excludes to set.- Returns:
- This builder for chaining.
-
addExcludes
List of patches to exclude from update.
repeated string excludes = 5;- Parameters:
value- The excludes to add.- Returns:
- This builder for chaining.
-
addAllExcludes
List of patches to exclude from update.
repeated string excludes = 5;- Parameters:
values- The excludes to add.- Returns:
- This builder for chaining.
-
clearExcludes
List of patches to exclude from update.
repeated string excludes = 5;- Returns:
- This builder for chaining.
-
addExcludesBytes
List of patches to exclude from update.
repeated string excludes = 5;- Parameters:
value- The bytes of the excludes to add.- Returns:
- This builder for chaining.
-
getExclusivePatchesList
public com.google.protobuf.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;- Specified by:
getExclusivePatchesListin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- A list containing the exclusivePatches.
-
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;- Specified by:
getExclusivePatchesCountin interfacePatchJobs.ZypperSettingsOrBuilder- Returns:
- The count of exclusivePatches.
-
getExclusivePatches
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;- Specified by:
getExclusivePatchesin interfacePatchJobs.ZypperSettingsOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The exclusivePatches at the given index.
-
getExclusivePatchesBytes
public com.google.protobuf.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;- Specified by:
getExclusivePatchesBytesin interfacePatchJobs.ZypperSettingsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the exclusivePatches at the given index.
-
setExclusivePatches
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:
index- The index to set the value at.value- The exclusivePatches to set.- Returns:
- This builder for chaining.
-
addExclusivePatches
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:
value- The exclusivePatches to add.- Returns:
- This builder for chaining.
-
addAllExclusivePatches
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:
values- The exclusivePatches to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addExclusivePatchesBytes
public PatchJobs.ZypperSettings.Builder addExclusivePatchesBytes(com.google.protobuf.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;- Parameters:
value- The bytes of the exclusivePatches to add.- Returns:
- This builder for chaining.
-