Class OSPolicy.Resource.PackageResource (2.46.0)

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

A resource that manages a system package.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > OSPolicy.Resource.PackageResource

Static Fields

APT_FIELD_NUMBER

public static final int APT_FIELD_NUMBER
Field Value
Type Description
int

DEB_FIELD_NUMBER

public static final int DEB_FIELD_NUMBER
Field Value
Type Description
int

DESIRED_STATE_FIELD_NUMBER

public static final int DESIRED_STATE_FIELD_NUMBER
Field Value
Type Description
int

GOOGET_FIELD_NUMBER

public static final int GOOGET_FIELD_NUMBER
Field Value
Type Description
int

MSI_FIELD_NUMBER

public static final int MSI_FIELD_NUMBER
Field Value
Type Description
int

RPM_FIELD_NUMBER

public static final int RPM_FIELD_NUMBER
Field Value
Type Description
int

YUM_FIELD_NUMBER

public static final int YUM_FIELD_NUMBER
Field Value
Type Description
int

ZYPPER_FIELD_NUMBER

public static final int ZYPPER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static OSPolicy.Resource.PackageResource getDefaultInstance()
Returns
Type Description
OSPolicy.Resource.PackageResource

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static OSPolicy.Resource.PackageResource.Builder newBuilder()
Returns
Type Description
OSPolicy.Resource.PackageResource.Builder

newBuilder(OSPolicy.Resource.PackageResource prototype)

public static OSPolicy.Resource.PackageResource.Builder newBuilder(OSPolicy.Resource.PackageResource prototype)
Parameter
Name Description
prototype OSPolicy.Resource.PackageResource
Returns
Type Description
OSPolicy.Resource.PackageResource.Builder

parseDelimitedFrom(InputStream input)

public static OSPolicy.Resource.PackageResource parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static OSPolicy.Resource.PackageResource parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OSPolicy.Resource.PackageResource parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OSPolicy.Resource.PackageResource parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static OSPolicy.Resource.PackageResource parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static OSPolicy.Resource.PackageResource parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OSPolicy.Resource.PackageResource
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<OSPolicy.Resource.PackageResource> parser()
Returns
Type Description
Parser<PackageResource>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getApt()

public OSPolicy.Resource.PackageResource.APT getApt()

A package managed by Apt.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.APT

The apt.

getAptOrBuilder()

public OSPolicy.Resource.PackageResource.APTOrBuilder getAptOrBuilder()

A package managed by Apt.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.APTOrBuilder

getDeb()

public OSPolicy.Resource.PackageResource.Deb getDeb()

A deb package file.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.Deb

The deb.

getDebOrBuilder()

public OSPolicy.Resource.PackageResource.DebOrBuilder getDebOrBuilder()

A deb package file.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.DebOrBuilder

getDefaultInstanceForType()

public OSPolicy.Resource.PackageResource getDefaultInstanceForType()
Returns
Type Description
OSPolicy.Resource.PackageResource

getDesiredState()

public OSPolicy.Resource.PackageResource.DesiredState getDesiredState()

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
Type Description
OSPolicy.Resource.PackageResource.DesiredState

The desiredState.

getDesiredStateValue()

public int getDesiredStateValue()

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
Type Description
int

The enum numeric value on the wire for desiredState.

getGooget()

public OSPolicy.Resource.PackageResource.GooGet getGooget()

A package managed by GooGet.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.GooGet

The googet.

getGoogetOrBuilder()

public OSPolicy.Resource.PackageResource.GooGetOrBuilder getGoogetOrBuilder()

A package managed by GooGet.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.GooGetOrBuilder

getMsi()

public OSPolicy.Resource.PackageResource.MSI getMsi()

An MSI package.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.MSI

The msi.

getMsiOrBuilder()

public OSPolicy.Resource.PackageResource.MSIOrBuilder getMsiOrBuilder()

An MSI package.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.MSIOrBuilder

getParserForType()

public Parser<OSPolicy.Resource.PackageResource> getParserForType()
Returns
Type Description
Parser<PackageResource>
Overrides

getRpm()

public OSPolicy.Resource.PackageResource.RPM getRpm()

An rpm package file.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.RPM

The rpm.

getRpmOrBuilder()

public OSPolicy.Resource.PackageResource.RPMOrBuilder getRpmOrBuilder()

An rpm package file.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.RPMOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSystemPackageCase()

public OSPolicy.Resource.PackageResource.SystemPackageCase getSystemPackageCase()
Returns
Type Description
OSPolicy.Resource.PackageResource.SystemPackageCase

getYum()

public OSPolicy.Resource.PackageResource.YUM getYum()

A package managed by YUM.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.YUM

The yum.

getYumOrBuilder()

public OSPolicy.Resource.PackageResource.YUMOrBuilder getYumOrBuilder()

A package managed by YUM.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.YUMOrBuilder

getZypper()

public OSPolicy.Resource.PackageResource.Zypper getZypper()

A package managed by Zypper.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.Zypper

The zypper.

getZypperOrBuilder()

public OSPolicy.Resource.PackageResource.ZypperOrBuilder getZypperOrBuilder()

A package managed by Zypper.

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

Returns
Type Description
OSPolicy.Resource.PackageResource.ZypperOrBuilder

hasApt()

public boolean hasApt()

A package managed by Apt.

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

Returns
Type Description
boolean

Whether the apt field is set.

hasDeb()

public boolean hasDeb()

A deb package file.

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

Returns
Type Description
boolean

Whether the deb field is set.

hasGooget()

public boolean hasGooget()

A package managed by GooGet.

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

Returns
Type Description
boolean

Whether the googet field is set.

hasMsi()

public boolean hasMsi()

An MSI package.

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

Returns
Type Description
boolean

Whether the msi field is set.

hasRpm()

public boolean hasRpm()

An rpm package file.

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

Returns
Type Description
boolean

Whether the rpm field is set.

hasYum()

public boolean hasYum()

A package managed by YUM.

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

Returns
Type Description
boolean

Whether the yum field is set.

hasZypper()

public boolean hasZypper()

A package managed by Zypper.

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

Returns
Type Description
boolean

Whether the zypper field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public OSPolicy.Resource.PackageResource.Builder newBuilderForType()
Returns
Type Description
OSPolicy.Resource.PackageResource.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OSPolicy.Resource.PackageResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
OSPolicy.Resource.PackageResource.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public OSPolicy.Resource.PackageResource.Builder toBuilder()
Returns
Type Description
OSPolicy.Resource.PackageResource.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException