Class OSPolicy.Resource.PackageResource.Builder (2.31.0)

public static final class OSPolicy.Resource.PackageResource.Builder extends GeneratedMessageV3.Builder<OSPolicy.Resource.PackageResource.Builder> implements OSPolicy.Resource.PackageResourceOrBuilder

A resource that manages a system package.

Protobuf type google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OSPolicy.Resource.PackageResource.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder
Overrides

build()

public OSPolicy.Resource.PackageResource build()
Returns
TypeDescription
OSPolicy.Resource.PackageResource

buildPartial()

public OSPolicy.Resource.PackageResource buildPartial()
Returns
TypeDescription
OSPolicy.Resource.PackageResource

clear()

public OSPolicy.Resource.PackageResource.Builder clear()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder
Overrides

clearApt()

public OSPolicy.Resource.PackageResource.Builder clearApt()

A package managed by Apt.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT apt = 2;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

clearDeb()

public OSPolicy.Resource.PackageResource.Builder clearDeb()

A deb package file.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb deb = 3;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

clearDesiredState()

public OSPolicy.Resource.PackageResource.Builder clearDesiredState()

Required. The desired state the agent should maintain for this package.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState desired_state = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OSPolicy.Resource.PackageResource.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder
Overrides

clearGooget()

public OSPolicy.Resource.PackageResource.Builder clearGooget()

A package managed by GooGet.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet googet = 7;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

clearMsi()

public OSPolicy.Resource.PackageResource.Builder clearMsi()

An MSI package.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI msi = 8;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public OSPolicy.Resource.PackageResource.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder
Overrides

clearRpm()

public OSPolicy.Resource.PackageResource.Builder clearRpm()

An rpm package file.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM rpm = 6;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

clearSystemPackage()

public OSPolicy.Resource.PackageResource.Builder clearSystemPackage()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

clearYum()

public OSPolicy.Resource.PackageResource.Builder clearYum()

A package managed by YUM.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM yum = 4;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

clearZypper()

public OSPolicy.Resource.PackageResource.Builder clearZypper()

A package managed by Zypper.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper zypper = 5;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

clone()

public OSPolicy.Resource.PackageResource.Builder clone()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder
Overrides

getApt()

public OSPolicy.Resource.PackageResource.APT getApt()

A package managed by Apt.

.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT apt = 2;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.APT

The apt.

getAptBuilder()

public OSPolicy.Resource.PackageResource.APT.Builder getAptBuilder()

A