Package com.google.cloud.osconfig.v1beta
Class PatchJobs.AptSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.AptSettings.Builder>
com.google.cloud.osconfig.v1beta.PatchJobs.AptSettings.Builder
- All Implemented Interfaces:
PatchJobs.AptSettingsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PatchJobs.AptSettings
public static final class PatchJobs.AptSettings.Builder
extends com.google.protobuf.GeneratedMessage.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-
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.By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.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.getType()By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.intBy changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(PatchJobs.AptSettings 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.By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.setTypeValue(int value) By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.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.AptSettings.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.AptSettings.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.AptSettings.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.AptSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.AptSettings.Builder>
-
mergeFrom
public PatchJobs.AptSettings.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.AptSettings.Builder>- Throws:
IOException
-
getTypeValue
public int getTypeValue()By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1beta.AptSettings.Type type = 1;- Specified by:
getTypeValuein interfacePatchJobs.AptSettingsOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1beta.AptSettings.Type type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1beta.AptSettings.Type type = 1;- Specified by:
getTypein interfacePatchJobs.AptSettingsOrBuilder- Returns:
- The type.
-
setType
By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1beta.AptSettings.Type type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1beta.AptSettings.Type type = 1;- Returns:
- This builder for chaining.
-
getExcludesList
public com.google.protobuf.ProtocolStringList getExcludesList()List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;- Specified by:
getExcludesListin interfacePatchJobs.AptSettingsOrBuilder- Returns:
- A list containing the excludes.
-
getExcludesCount
public int getExcludesCount()List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;- Specified by:
getExcludesCountin interfacePatchJobs.AptSettingsOrBuilder- Returns:
- The count of excludes.
-
getExcludes
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;- Specified by:
getExcludesin interfacePatchJobs.AptSettingsOrBuilder- 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 will be excluded
repeated string excludes = 2;- Specified by:
getExcludesBytesin interfacePatchJobs.AptSettingsOrBuilder- 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 will be excluded
repeated string excludes = 2;- 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 will be excluded
repeated string excludes = 2;- Parameters:
value- The excludes to add.- Returns:
- This builder for chaining.
-
addAllExcludes
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;- Parameters:
values- The excludes to add.- Returns:
- This builder for chaining.
-
clearExcludes
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;- Returns:
- This builder for chaining.
-
addExcludesBytes
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;- 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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- Specified by:
getExclusivePackagesListin interfacePatchJobs.AptSettingsOrBuilder- 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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- Specified by:
getExclusivePackagesCountin interfacePatchJobs.AptSettingsOrBuilder- 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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- Specified by:
getExclusivePackagesin interfacePatchJobs.AptSettingsOrBuilder- 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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- Specified by:
getExclusivePackagesBytesin interfacePatchJobs.AptSettingsOrBuilder- 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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- 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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- 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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- 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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- Returns:
- This builder for chaining.
-
addExclusivePackagesBytes
public PatchJobs.AptSettings.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 cannot be specified with any other patch configuration fields.
repeated string exclusive_packages = 3;- Parameters:
value- The bytes of the exclusivePackages to add.- Returns:
- This builder for chaining.
-