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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static OSPolicy.Resource.PackageResource.Builder newBuilder()
newBuilder(OSPolicy.Resource.PackageResource prototype)
public static OSPolicy.Resource.PackageResource.Builder newBuilder(OSPolicy.Resource.PackageResource prototype)
public static OSPolicy.Resource.PackageResource parseDelimitedFrom(InputStream input)
public static OSPolicy.Resource.PackageResource parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static OSPolicy.Resource.PackageResource parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.PackageResource parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static OSPolicy.Resource.PackageResource parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.PackageResource parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.PackageResource parseFrom(CodedInputStream input)
public static OSPolicy.Resource.PackageResource parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.PackageResource parseFrom(InputStream input)
public static OSPolicy.Resource.PackageResource parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static OSPolicy.Resource.PackageResource parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static OSPolicy.Resource.PackageResource parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<OSPolicy.Resource.PackageResource> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getApt()
public OSPolicy.Resource.PackageResource.APT getApt()
A package managed by Apt.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT apt = 2;
getAptOrBuilder()
public OSPolicy.Resource.PackageResource.APTOrBuilder getAptOrBuilder()
A package managed by Apt.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT apt = 2;
getDeb()
public OSPolicy.Resource.PackageResource.Deb getDeb()
A deb package file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb deb = 3;
getDebOrBuilder()
public OSPolicy.Resource.PackageResource.DebOrBuilder getDebOrBuilder()
A deb package file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Deb deb = 3;
getDefaultInstanceForType()
public OSPolicy.Resource.PackageResource getDefaultInstanceForType()
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];
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 |
---|
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.v1alpha.OSPolicy.Resource.PackageResource.GooGet googet = 7;
getGoogetOrBuilder()
public OSPolicy.Resource.PackageResource.GooGetOrBuilder getGoogetOrBuilder()
A package managed by GooGet.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.GooGet googet = 7;
getMsi()
public OSPolicy.Resource.PackageResource.MSI getMsi()
An MSI package.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI msi = 8;
getMsiOrBuilder()
public OSPolicy.Resource.PackageResource.MSIOrBuilder getMsiOrBuilder()
An MSI package.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI msi = 8;
getParserForType()
public Parser<OSPolicy.Resource.PackageResource> getParserForType()
Overrides
getRpm()
public OSPolicy.Resource.PackageResource.RPM getRpm()
An rpm package file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM rpm = 6;
getRpmOrBuilder()
public OSPolicy.Resource.PackageResource.RPMOrBuilder getRpmOrBuilder()
An rpm package file.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.RPM rpm = 6;
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getSystemPackageCase()
public OSPolicy.Resource.PackageResource.SystemPackageCase getSystemPackageCase()
getYum()
public OSPolicy.Resource.PackageResource.YUM getYum()
A package managed by YUM.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM yum = 4;
getYumOrBuilder()
public OSPolicy.Resource.PackageResource.YUMOrBuilder getYumOrBuilder()
A package managed by YUM.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.YUM yum = 4;
getZypper()
public OSPolicy.Resource.PackageResource.Zypper getZypper()
A package managed by Zypper.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper zypper = 5;
getZypperOrBuilder()
public OSPolicy.Resource.PackageResource.ZypperOrBuilder getZypperOrBuilder()
A package managed by Zypper.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.Zypper zypper = 5;
hasApt()
A package managed by Apt.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.APT apt = 2;
Returns |
---|
Type | Description |
boolean | Whether the apt field is set.
|
hasDeb()
A deb package file.
.google.cloud.osconfig.v1alpha.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.v1alpha.OSPolicy.Resource.PackageResource.GooGet googet = 7;
Returns |
---|
Type | Description |
boolean | Whether the googet field is set.
|
hasMsi()
An MSI package.
.google.cloud.osconfig.v1alpha.OSPolicy.Resource.PackageResource.MSI msi = 8;
Returns |
---|
Type | Description |
boolean | Whether the msi field is set.
|
hasRpm()
An rpm package file.
.google.cloud.osconfig.v1alpha.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.v1alpha.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.v1alpha.OSPolicy.Resource.PackageResource.Zypper zypper = 5;
Returns |
---|
Type | Description |
boolean | Whether the zypper field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public OSPolicy.Resource.PackageResource.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected OSPolicy.Resource.PackageResource.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public OSPolicy.Resource.PackageResource.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides