Package com.google.cloud.osconfig.v1
Class PatchJobs.AptSettings.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
- com.google.cloud.osconfig.v1.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.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 typegoogle.cloud.osconfig.v1.AptSettings
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchJobs.AptSettings.BuilderaddAllExcludes(Iterable<String> values)List of packages to exclude from update.PatchJobs.AptSettings.BuilderaddAllExclusivePackages(Iterable<String> values)An exclusive list of packages to be updated.PatchJobs.AptSettings.BuilderaddExcludes(String value)List of packages to exclude from update.PatchJobs.AptSettings.BuilderaddExcludesBytes(com.google.protobuf.ByteString value)List of packages to exclude from update.PatchJobs.AptSettings.BuilderaddExclusivePackages(String value)An exclusive list of packages to be updated.PatchJobs.AptSettings.BuilderaddExclusivePackagesBytes(com.google.protobuf.ByteString value)An exclusive list of packages to be updated.PatchJobs.AptSettings.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.AptSettingsbuild()PatchJobs.AptSettingsbuildPartial()PatchJobs.AptSettings.Builderclear()PatchJobs.AptSettings.BuilderclearExcludes()List of packages to exclude from update.PatchJobs.AptSettings.BuilderclearExclusivePackages()An exclusive list of packages to be updated.PatchJobs.AptSettings.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PatchJobs.AptSettings.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PatchJobs.AptSettings.BuilderclearType()By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.PatchJobs.AptSettings.Builderclone()PatchJobs.AptSettingsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetExcludes(int index)List of packages to exclude from update.com.google.protobuf.ByteStringgetExcludesBytes(int index)List of packages to exclude from update.intgetExcludesCount()List of packages to exclude from update.com.google.protobuf.ProtocolStringListgetExcludesList()List of packages to exclude from update.StringgetExclusivePackages(int index)An exclusive list of packages to be updated.com.google.protobuf.ByteStringgetExclusivePackagesBytes(int index)An exclusive list of packages to be updated.intgetExclusivePackagesCount()An exclusive list of packages to be updated.com.google.protobuf.ProtocolStringListgetExclusivePackagesList()An exclusive list of packages to be updated.PatchJobs.AptSettings.TypegetType()By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.intgetTypeValue()By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PatchJobs.AptSettings.BuildermergeFrom(PatchJobs.AptSettings other)PatchJobs.AptSettings.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PatchJobs.AptSettings.BuildermergeFrom(com.google.protobuf.Message other)PatchJobs.AptSettings.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PatchJobs.AptSettings.BuildersetExcludes(int index, String value)List of packages to exclude from update.PatchJobs.AptSettings.BuildersetExclusivePackages(int index, String value)An exclusive list of packages to be updated.PatchJobs.AptSettings.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.AptSettings.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PatchJobs.AptSettings.BuildersetType(PatchJobs.AptSettings.Type value)By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.PatchJobs.AptSettings.BuildersetTypeValue(int value)By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.PatchJobs.AptSettings.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
getDefaultInstanceForType
public PatchJobs.AptSettings getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.AptSettings build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.AptSettings buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.AptSettings.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
setField
public PatchJobs.AptSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
clearField
public PatchJobs.AptSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
clearOneof
public PatchJobs.AptSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
setRepeatedField
public PatchJobs.AptSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
addRepeatedField
public PatchJobs.AptSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
mergeFrom
public PatchJobs.AptSettings.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.AptSettings.Builder>
-
mergeFrom
public PatchJobs.AptSettings.Builder mergeFrom(PatchJobs.AptSettings other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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.v1.AptSettings.Type type = 1;- Specified by:
getTypeValuein interfacePatchJobs.AptSettingsOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
public PatchJobs.AptSettings.Builder setTypeValue(int value)
By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1.AptSettings.Type type = 1;- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
public PatchJobs.AptSettings.Type getType()
By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1.AptSettings.Type type = 1;- Specified by:
getTypein interfacePatchJobs.AptSettingsOrBuilder- Returns:
- The type.
-
setType
public PatchJobs.AptSettings.Builder setType(PatchJobs.AptSettings.Type value)
By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1.AptSettings.Type type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
public PatchJobs.AptSettings.Builder clearType()
By changing the type to DIST, the patching is performed using `apt-get dist-upgrade` instead.
.google.cloud.osconfig.v1.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
public String getExcludes(int index)
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
public PatchJobs.AptSettings.Builder setExcludes(int index, String value)
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
public PatchJobs.AptSettings.Builder addExcludes(String value)
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
public PatchJobs.AptSettings.Builder addAllExcludes(Iterable<String> values)
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
public PatchJobs.AptSettings.Builder clearExcludes()
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;- Returns:
- This builder for chaining.
-
addExcludesBytes
public PatchJobs.AptSettings.Builder addExcludesBytes(com.google.protobuf.ByteString value)
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
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 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
public PatchJobs.AptSettings.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 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
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;- Parameters:
value- The exclusivePackages to add.- Returns:
- This builder for chaining.
-
addAllExclusivePackages
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;- Parameters:
values- The exclusivePackages to add.- Returns:
- This builder for chaining.
-
clearExclusivePackages
public PatchJobs.AptSettings.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 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.
-
setUnknownFields
public final PatchJobs.AptSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
mergeUnknownFields
public final PatchJobs.AptSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
-
-