Class OSPolicy.Resource.PackageResource (2.16.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
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