Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.Package
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.osconfig.v1beta.GuestPolicies.Package
-
- All Implemented Interfaces:
GuestPolicies.PackageOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- GuestPolicies
public static final class GuestPolicies.Package extends com.google.protobuf.GeneratedMessageV3 implements GuestPolicies.PackageOrBuilder
Package is a reference to the software package to be installed or removed. The agent on the VM instance uses the system package manager to apply the config. These are the commands that the agent uses to install or remove packages. Apt install: `apt-get update && apt-get -y install package1 package2 package3` remove: `apt-get -y remove package1 package2 package3` Yum install: `yum -y install package1 package2 package3` remove: `yum -y remove package1 package2 package3` Zypper install: `zypper install package1 package2 package3` remove: `zypper rm package1 package2` Googet install: `googet -noconfirm install package1 package2 package3` remove: `googet -noconfirm remove package1 package2 package3`
Protobuf typegoogle.cloud.osconfig.v1beta.Package- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGuestPolicies.Package.BuilderPackage is a reference to the software package to be installed or removed.static classGuestPolicies.Package.ManagerTypes of package managers that may be used to manage this package.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intDESIRED_STATE_FIELD_NUMBERstatic intMANAGER_FIELD_NUMBERstatic intNAME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static GuestPolicies.PackagegetDefaultInstance()GuestPolicies.PackagegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()GuestPolicies.DesiredStategetDesiredState()The desired_state the agent should maintain for this package.intgetDesiredStateValue()The desired_state the agent should maintain for this package.GuestPolicies.Package.ManagergetManager()Type of package manager that can be used to install this package.intgetManagerValue()Type of package manager that can be used to install this package.StringgetName()Required.com.google.protobuf.ByteStringgetNameBytes()Required.com.google.protobuf.Parser<GuestPolicies.Package>getParserForType()intgetSerializedSize()inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static GuestPolicies.Package.BuildernewBuilder()static GuestPolicies.Package.BuildernewBuilder(GuestPolicies.Package prototype)GuestPolicies.Package.BuildernewBuilderForType()protected GuestPolicies.Package.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static GuestPolicies.PackageparseDelimitedFrom(InputStream input)static GuestPolicies.PackageparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GuestPolicies.PackageparseFrom(byte[] data)static GuestPolicies.PackageparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GuestPolicies.PackageparseFrom(com.google.protobuf.ByteString data)static GuestPolicies.PackageparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GuestPolicies.PackageparseFrom(com.google.protobuf.CodedInputStream input)static GuestPolicies.PackageparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GuestPolicies.PackageparseFrom(InputStream input)static GuestPolicies.PackageparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static GuestPolicies.PackageparseFrom(ByteBuffer data)static GuestPolicies.PackageparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<GuestPolicies.Package>parser()GuestPolicies.Package.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESIRED_STATE_FIELD_NUMBER
public static final int DESIRED_STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MANAGER_FIELD_NUMBER
public static final int MANAGER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
Required. The name of the package. A package is uniquely identified for conflict validation by checking the package name and the manager(s) that the package targets.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceGuestPolicies.PackageOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Required. The name of the package. A package is uniquely identified for conflict validation by checking the package name and the manager(s) that the package targets.
string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceGuestPolicies.PackageOrBuilder- Returns:
- The bytes for name.
-
getDesiredStateValue
public int getDesiredStateValue()
The desired_state the agent should maintain for this package. The default is to ensure the package is installed.
.google.cloud.osconfig.v1beta.DesiredState desired_state = 2;- Specified by:
getDesiredStateValuein interfaceGuestPolicies.PackageOrBuilder- Returns:
- The enum numeric value on the wire for desiredState.
-
getDesiredState
public GuestPolicies.DesiredState getDesiredState()
The desired_state the agent should maintain for this package. The default is to ensure the package is installed.
.google.cloud.osconfig.v1beta.DesiredState desired_state = 2;- Specified by:
getDesiredStatein interfaceGuestPolicies.PackageOrBuilder- Returns:
- The desiredState.
-
getManagerValue
public int getManagerValue()
Type of package manager that can be used to install this package. If a system does not have the package manager, the package is not installed or removed no error message is returned. By default, or if you specify `ANY`, the agent attempts to install and remove this package using the default package manager. This is useful when creating a policy that applies to different types of systems. The default behavior is ANY.
.google.cloud.osconfig.v1beta.Package.Manager manager = 3;- Specified by:
getManagerValuein interfaceGuestPolicies.PackageOrBuilder- Returns:
- The enum numeric value on the wire for manager.
-
getManager
public GuestPolicies.Package.Manager getManager()
Type of package manager that can be used to install this package. If a system does not have the package manager, the package is not installed or removed no error message is returned. By default, or if you specify `ANY`, the agent attempts to install and remove this package using the default package manager. This is useful when creating a policy that applies to different types of systems. The default behavior is ANY.
.google.cloud.osconfig.v1beta.Package.Manager manager = 3;- Specified by:
getManagerin interfaceGuestPolicies.PackageOrBuilder- Returns:
- The manager.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static GuestPolicies.Package parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Package parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Package parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Package parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Package parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Package parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.Package parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GuestPolicies.Package parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GuestPolicies.Package parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static GuestPolicies.Package parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static GuestPolicies.Package parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static GuestPolicies.Package parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public GuestPolicies.Package.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static GuestPolicies.Package.Builder newBuilder()
-
newBuilder
public static GuestPolicies.Package.Builder newBuilder(GuestPolicies.Package prototype)
-
toBuilder
public GuestPolicies.Package.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GuestPolicies.Package.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static GuestPolicies.Package getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<GuestPolicies.Package> parser()
-
getParserForType
public com.google.protobuf.Parser<GuestPolicies.Package> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public GuestPolicies.Package getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-