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 type
google.cloud.osconfig.v1.AptSettings| Modifier and Type | Method and Description |
|---|---|
PatchJobs.AptSettings.Builder |
addAllExcludes(Iterable<String> values)
List of packages to exclude from update.
|
PatchJobs.AptSettings.Builder |
addAllExclusivePackages(Iterable<String> values)
An exclusive list of packages to be updated.
|
PatchJobs.AptSettings.Builder |
addExcludes(String value)
List of packages to exclude from update.
|
PatchJobs.AptSettings.Builder |
addExcludesBytes(com.google.protobuf.ByteString value)
List of packages to exclude from update.
|
PatchJobs.AptSettings.Builder |
addExclusivePackages(String value)
An exclusive list of packages to be updated.
|
PatchJobs.AptSettings.Builder |
addExclusivePackagesBytes(com.google.protobuf.ByteString value)
An exclusive list of packages to be updated.
|
PatchJobs.AptSettings.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PatchJobs.AptSettings |
build() |
PatchJobs.AptSettings |
buildPartial() |
PatchJobs.AptSettings.Builder |
clear() |
PatchJobs.AptSettings.Builder |
clearExcludes()
List of packages to exclude from update.
|
PatchJobs.AptSettings.Builder |
clearExclusivePackages()
An exclusive list of packages to be updated.
|
PatchJobs.AptSettings.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PatchJobs.AptSettings.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PatchJobs.AptSettings.Builder |
clearType()
By changing the type to DIST, the patching is performed
using `apt-get dist-upgrade` instead.
|
PatchJobs.AptSettings.Builder |
clone() |
PatchJobs.AptSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getExcludes(int index)
List of packages to exclude from update.
|
com.google.protobuf.ByteString |
getExcludesBytes(int index)
List of packages to exclude from update.
|
int |
getExcludesCount()
List of packages to exclude from update.
|
com.google.protobuf.ProtocolStringList |
getExcludesList()
List of packages to exclude from update.
|
String |
getExclusivePackages(int index)
An exclusive list of packages to be updated.
|
com.google.protobuf.ByteString |
getExclusivePackagesBytes(int index)
An exclusive list of packages to be updated.
|
int |
getExclusivePackagesCount()
An exclusive list of packages to be updated.
|
com.google.protobuf.ProtocolStringList |
getExclusivePackagesList()
An exclusive list of packages to be updated.
|
PatchJobs.AptSettings.Type |
getType()
By changing the type to DIST, the patching is performed
using `apt-get dist-upgrade` instead.
|
int |
getTypeValue()
By changing the type to DIST, the patching is performed
using `apt-get dist-upgrade` instead.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PatchJobs.AptSettings.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PatchJobs.AptSettings.Builder |
mergeFrom(com.google.protobuf.Message other) |
PatchJobs.AptSettings.Builder |
mergeFrom(PatchJobs.AptSettings other) |
PatchJobs.AptSettings.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PatchJobs.AptSettings.Builder |
setExcludes(int index,
String value)
List of packages to exclude from update.
|
PatchJobs.AptSettings.Builder |
setExclusivePackages(int index,
String value)
An exclusive list of packages to be updated.
|
PatchJobs.AptSettings.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PatchJobs.AptSettings.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PatchJobs.AptSettings.Builder |
setType(PatchJobs.AptSettings.Type value)
By changing the type to DIST, the patching is performed
using `apt-get dist-upgrade` instead.
|
PatchJobs.AptSettings.Builder |
setTypeValue(int value)
By changing the type to DIST, the patching is performed
using `apt-get dist-upgrade` instead.
|
PatchJobs.AptSettings.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PatchJobs.AptSettings build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PatchJobs.AptSettings buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PatchJobs.AptSettings.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder mergeFrom(PatchJobs.AptSettings other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public PatchJobs.AptSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.AptSettings.Builder>IOExceptionpublic 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;getTypeValue in interface PatchJobs.AptSettingsOrBuilderpublic 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;value - The enum numeric value on the wire for type to set.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;getType in interface PatchJobs.AptSettingsOrBuilderpublic 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;value - The type to set.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;public com.google.protobuf.ProtocolStringList getExcludesList()
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;getExcludesList in interface PatchJobs.AptSettingsOrBuilderpublic int getExcludesCount()
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;getExcludesCount in interface PatchJobs.AptSettingsOrBuilderpublic String getExcludes(int index)
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;getExcludes in interface PatchJobs.AptSettingsOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getExcludesBytes(int index)
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;getExcludesBytes in interface PatchJobs.AptSettingsOrBuilderindex - The index of the value to return.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;index - The index to set the value at.value - The excludes to set.public PatchJobs.AptSettings.Builder addExcludes(String value)
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;value - The excludes to add.public PatchJobs.AptSettings.Builder addAllExcludes(Iterable<String> values)
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;values - The excludes to add.public PatchJobs.AptSettings.Builder clearExcludes()
List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;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;value - The bytes of the excludes to add.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;getExclusivePackagesList in interface PatchJobs.AptSettingsOrBuilderpublic 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;getExclusivePackagesCount in interface PatchJobs.AptSettingsOrBuilderpublic 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;getExclusivePackages in interface PatchJobs.AptSettingsOrBuilderindex - The index of the element to return.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;getExclusivePackagesBytes in interface PatchJobs.AptSettingsOrBuilderindex - The index of the value to return.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;index - The index to set the value at.value - The exclusivePackages to set.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;value - The exclusivePackages to add.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;values - The exclusivePackages to add.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;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;value - The bytes of the exclusivePackages to add.public final PatchJobs.AptSettings.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>public final PatchJobs.AptSettings.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>Copyright © 2024 Google LLC. All rights reserved.