Class OSPolicy.Resource.PackageResource (2.5.2)

Stay organized with collections Save and categorize content based on your preferences.
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.v1alpha.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
TypeDescription
int

DEB_FIELD_NUMBER

public static final int DEB_FIELD_NUMBER
Field Value
TypeDescription
int

DESIRED_STATE_FIELD_NUMBER

public static final int DESIRED_STATE_FIELD_NUMBER
Field Value
TypeDescription
int

GOOGET_FIELD_NUMBER

public static final int GOOGET_FIELD_NUMBER
Field Value
TypeDescription
int

MSI_FIELD_NUMBER

public static final int MSI_FIELD_NUMBER
Field Value
TypeDescription
int

RPM_FIELD_NUMBER

public static final int RPM_FIELD_NUMBER
Field Value
TypeDescription
int

YUM_FIELD_NUMBER

public static final int YUM_FIELD_NUMBER
Field Value
TypeDescription
int

ZYPPER_FIELD_NUMBER

public static final int ZYPPER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OSPolicy.Resource.PackageResource getDefaultInstance()
Returns
TypeDescription
OSPolicy.Resource.PackageResource

getDescriptor()

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

newBuilder()

public static OSPolicy.Resource.PackageResource.Builder newBuilder()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

newBuilder(OSPolicy.Resource.PackageResource prototype)

public static OSPolicy.Resource.PackageResource.Builder newBuilder(OSPolicy.Resource.PackageResource prototype)
Parameter
NameDescription
prototypeOSPolicy.Resource.PackageResource
Returns
TypeDescription
OSPolicy.Resource.PackageResource.Builder

parseDelimitedFrom(InputStream input)

public static OSPolicy.Resource.PackageResource parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OSPolicy.Resource.PackageResource parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OSPolicy.Resource.PackageResource parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OSPolicy.Resource.PackageResource parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OSPolicy.Resource.PackageResource parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OSPolicy.Resource.PackageResource parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OSPolicy.Resource.PackageResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OSPolicy.Resource.PackageResource
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getApt()

public OSPolicy.Resource.PackageResource.APT getApt()

A package managed by Apt.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.APT

The apt.

getAptOrBuilder()

public OSPolicy.Resource.PackageResource.APTOrBuilder getAptOrBuilder()

A package managed by Apt.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.APTOrBuilder

getDeb()

public OSPolicy.Resource.PackageResource.Deb getDeb()

A deb package file.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.Deb

The deb.

getDebOrBuilder()

public OSPolicy.Resource.PackageResource.DebOrBuilder getDebOrBuilder()

A deb package file.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.DebOrBuilder

getDefaultInstanceForType()

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

getDesiredState()

public OSPolicy.Resource.PackageResource.DesiredState getDesiredState()

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

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.DesiredState

The desiredState.

getDesiredStateValue()

public int getDesiredStateValue()

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

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

Returns
TypeDescription
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.v1alpha.OSPolicy.Resource.PackageResource.GooGet googet = 7;

Returns
TypeDescription
OSPolicy.Resource.PackageResource.GooGet

The googet.

getGoogetOrBuilder()

public OSPolicy.Resource.PackageResource.GooGetOrBuilder getGoogetOrBuilder()

A package managed by GooGet.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.GooGetOrBuilder

getMsi()

public OSPolicy.Resource.PackageResource.MSI getMsi()

An MSI package.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSI

The msi.

getMsiOrBuilder()

public OSPolicy.Resource.PackageResource.MSIOrBuilder getMsiOrBuilder()

An MSI package.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.MSIOrBuilder

getParserForType()

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

getRpm()

public OSPolicy.Resource.PackageResource.RPM getRpm()

An rpm package file.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.RPM

The rpm.

getRpmOrBuilder()

public OSPolicy.Resource.PackageResource.RPMOrBuilder getRpmOrBuilder()

An rpm package file.

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

Returns
TypeDescription
OSPolicy.Resource.PackageResource.RPMOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSystemPackageCase()

public OSPolicy.Resource.PackageResource.SystemPackageCase getSystemPackageCase()
Returns
TypeDescription