- 2.87.0 (latest)
- 2.85.0
- 2.84.0
- 2.82.0
- 2.80.0
- 2.78.0
- 2.77.0
- 2.76.0
- 2.75.0
- 2.74.0
- 2.72.0
- 2.70.0
- 2.69.0
- 2.66.0
- 2.65.0
- 2.64.0
- 2.62.0
- 2.61.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.6
- 2.4.3
- 2.3.2
public static final class PatchJobs.AptSettings.Builder extends 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.v1.AptSettings
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > PatchJobs.AptSettings.BuilderImplements
PatchJobs.AptSettingsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllExcludes(Iterable<String> values)
public PatchJobs.AptSettings.Builder addAllExcludes(Iterable<String> values)List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The excludes to add. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
addAllExclusivePackages(Iterable<String> values)
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;
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The exclusivePackages to add. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
addExcludes(String value)
public PatchJobs.AptSettings.Builder addExcludes(String value)List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe excludes to add. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
addExcludesBytes(ByteString value)
public PatchJobs.AptSettings.Builder addExcludesBytes(ByteString value)List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the excludes to add. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
addExclusivePackages(String value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe exclusivePackages to add. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
addExclusivePackagesBytes(ByteString value)
public PatchJobs.AptSettings.Builder addExclusivePackagesBytes(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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the exclusivePackages to add. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
build()
public PatchJobs.AptSettings build()| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings |
|
buildPartial()
public PatchJobs.AptSettings buildPartial()| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings |
|
clear()
public PatchJobs.AptSettings.Builder clear()| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
|
clearExcludes()
public PatchJobs.AptSettings.Builder clearExcludes()List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
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 | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
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 | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public PatchJobs.AptSettings getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getExcludes(int index)
public String getExcludes(int index)List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The excludes at the given index. |
getExcludesBytes(int index)
public ByteString getExcludesBytes(int index)List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the excludes at the given index. |
getExcludesCount()
public int getExcludesCount()List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The count of excludes. |
getExcludesList()
public ProtocolStringList getExcludesList()List of packages to exclude from update. These packages will be excluded
repeated string excludes = 2;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the excludes. |
getExclusivePackages(int index)
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;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The exclusivePackages at the given index. |
getExclusivePackagesBytes(int index)
public 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;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the exclusivePackages at the given index. |
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;
| Returns | |
|---|---|
| Type | Description |
int |
The count of exclusivePackages. |
getExclusivePackagesList()
public 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;
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the exclusivePackages. |
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;
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Type |
The type. |
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;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for type. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PatchJobs.AptSettings other)
public PatchJobs.AptSettings.Builder mergeFrom(PatchJobs.AptSettings other)| Parameter | |
|---|---|
| Name | Description |
other |
PatchJobs.AptSettings |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PatchJobs.AptSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PatchJobs.AptSettings.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
|
setExcludes(int index, String value)
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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe excludes to set. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
setExclusivePackages(int index, String value)
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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe exclusivePackages to set. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
setType(PatchJobs.AptSettings.Type value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
PatchJobs.AptSettings.TypeThe type to set. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |
setTypeValue(int value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for type to set. |
| Returns | |
|---|---|
| Type | Description |
PatchJobs.AptSettings.Builder |
This builder for chaining. |