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
Static Fields
APT_FIELD_NUMBER
public static final int APT_FIELD_NUMBER
Field Value
DEB_FIELD_NUMBER
public static final int DEB_FIELD_NUMBER
Field Value
DESIRED_STATE_FIELD_NUMBER
public static final int DESIRED_STATE_FIELD_NUMBER
Field Value
GOOGET_FIELD_NUMBER
public static final int GOOGET_FIELD_NUMBER
Field Value
MSI_FIELD_NUMBER
public static final int MSI_FIELD_NUMBER
Field Value
RPM_FIELD_NUMBER
public static final int RPM_FIELD_NUMBER
Field Value
YUM_FIELD_NUMBER
public static final int YUM_FIELD_NUMBER
Field Value
ZYPPER_FIELD_NUMBER
public static final int ZYPPER_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static OSPolicy.Resource.PackageResource getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static OSPolicy.Resource.PackageResource.Builder newBuilder()
Returns
newBuilder(OSPolicy.Resource.PackageResource prototype)
public static OSPolicy.Resource.PackageResource.Builder newBuilder(OSPolicy.Resource.PackageResource prototype)
Parameter
Returns
public static OSPolicy.Resource.PackageResource parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static OSPolicy.Resource.PackageResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static OSPolicy.Resource.PackageResource parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.PackageResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static OSPolicy.Resource.PackageResource parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.PackageResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OSPolicy.Resource.PackageResource parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static OSPolicy.Resource.PackageResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static OSPolicy.Resource.PackageResource parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static OSPolicy.Resource.PackageResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static OSPolicy.Resource.PackageResource parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.PackageResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<OSPolicy.Resource.PackageResource> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getApt()
public OSPolicy.Resource.PackageResource.APT getApt()
A package managed by Apt.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT apt = 2;
Returns
getAptOrBuilder()
public OSPolicy.Resource.PackageResource.APTOrBuilder getAptOrBuilder()
A package managed by Apt.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT apt = 2;
Returns
getDeb()
public OSPolicy.Resource.PackageResource.Deb getDeb()
A deb package file.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb deb = 3;
Returns
getDebOrBuilder()
public OSPolicy.Resource.PackageResource.DebOrBuilder getDebOrBuilder()
A deb package file.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb deb = 3;
Returns
getDefaultInstanceForType()
public OSPolicy.Resource.PackageResource getDefaultInstanceForType()
Returns
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
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
getGoogetOrBuilder()
public OSPolicy.Resource.PackageResource.GooGetOrBuilder getGoogetOrBuilder()
A package managed by GooGet.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet googet = 7;
Returns
getMsi()
public OSPolicy.Resource.PackageResource.MSI getMsi()
An MSI package.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI msi = 8;
Returns
getMsiOrBuilder()
public OSPolicy.Resource.PackageResource.MSIOrBuilder getMsiOrBuilder()
An MSI package.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI msi = 8;
Returns
getParserForType()
public Parser<OSPolicy.Resource.PackageResource> getParserForType()
Returns
Overrides
getRpm()
public OSPolicy.Resource.PackageResource.RPM getRpm()
An rpm package file.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM rpm = 6;
Returns
getRpmOrBuilder()
public OSPolicy.Resource.PackageResource.RPMOrBuilder getRpmOrBuilder()
An rpm package file.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM rpm = 6;
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSystemPackageCase()
public OSPolicy.Resource.PackageResource.SystemPackageCase getSystemPackageCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getYum()
public OSPolicy.Resource.PackageResource.YUM getYum()
A package managed by YUM.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM yum = 4;
Returns
getYumOrBuilder()
public OSPolicy.Resource.PackageResource.YUMOrBuilder getYumOrBuilder()
A package managed by YUM.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM yum = 4;
Returns
getZypper()
public OSPolicy.Resource.PackageResource.Zypper getZypper()
A package managed by Zypper.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper zypper = 5;
Returns
getZypperOrBuilder()
public OSPolicy.Resource.PackageResource.ZypperOrBuilder getZypperOrBuilder()
A package managed by Zypper.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper zypper = 5;
Returns
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()
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()
An MSI package.
.google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI msi = 8;
Returns
Type | Description |
boolean | Whether the msi field is set.
|
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()
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public OSPolicy.Resource.PackageResource.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OSPolicy.Resource.PackageResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public OSPolicy.Resource.PackageResource.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions