Class OSPolicy.Resource.PackageResource.RPM (2.4.3)

public static final class OSPolicy.Resource.PackageResource.RPM extends GeneratedMessageV3 implements OSPolicy.Resource.PackageResource.RPMOrBuilder

An RPM package file. RPM packages only support INSTALLED state.

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

Inheritance

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

Static Fields

PULL_DEPS_FIELD_NUMBER

public static final int PULL_DEPS_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_FIELD_NUMBER

public static final int SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(OSPolicy.Resource.PackageResource.RPM prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getParserForType()

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

getPullDeps()

public boolean getPullDeps()

Whether dependencies should also be installed.

  • install when false: rpm --upgrade --replacepkgs package.rpm
  • install when true: yum -y install package.rpm or zypper -y install package.rpm

bool pull_deps = 2;

Returns
TypeDescription
boolean

The pullDeps.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSource()

public OSPolicy.Resource.File getSource()

Required. An rpm package.

.google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicy.Resource.File

The source.

getSourceOrBuilder()

public OSPolicy.Resource.FileOrBuilder getSourceOrBuilder()

Required. An rpm package.

.google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
OSPolicy.Resource.FileOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSource()

public boolean hasSource()

Required. An rpm package.

.google.cloud.osconfig.v1.OSPolicy.Resource.File source = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the source field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OSPolicy.Resource.PackageResource.RPM.Builder newBuilderForType()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.RPM.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OSPolicy.Resource.PackageResource.RPM.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OSPolicy.Resource.PackageResource.RPM.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OSPolicy.Resource.PackageResource.RPM.Builder toBuilder()
Returns
TypeDescription
OSPolicy.Resource.PackageResource.RPM.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException