Package com.google.cloud.osconfig.v1beta
Class GuestPolicies.GuestPolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1beta.GuestPolicies.GuestPolicy
- All Implemented Interfaces:
GuestPolicies.GuestPolicyOrBuilder,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.GuestPolicy
extends com.google.protobuf.GeneratedMessage
implements GuestPolicies.GuestPolicyOrBuilder
An OS Config resource representing a guest configuration policy. These policies represent the desired state for VM instance guest environments including packages to install or remove, package repository configurations, and software to install.Protobuf type
google.cloud.osconfig.v1beta.GuestPolicy- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn OS Config resource representing a guest configuration policy.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanRequired.Required.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static GuestPolicies.GuestPolicyDescription of the guest policy.com.google.protobuf.ByteStringDescription of the guest policy.static final com.google.protobuf.Descriptors.DescriptorgetEtag()The etag for this guest policy.com.google.protobuf.ByteStringThe etag for this guest policy.getName()Required.com.google.protobuf.ByteStringRequired.getPackageRepositories(int index) A list of package repositories to configure on the VM instance.intA list of package repositories to configure on the VM instance.A list of package repositories to configure on the VM instance.getPackageRepositoriesOrBuilder(int index) A list of package repositories to configure on the VM instance.List<? extends GuestPolicies.PackageRepositoryOrBuilder>A list of package repositories to configure on the VM instance.getPackages(int index) The software packages to be managed by this policy.intThe software packages to be managed by this policy.The software packages to be managed by this policy.getPackagesOrBuilder(int index) The software packages to be managed by this policy.List<? extends GuestPolicies.PackageOrBuilder>The software packages to be managed by this policy.com.google.protobuf.Parser<GuestPolicies.GuestPolicy>getRecipes(int index) A list of Recipes to install on the VM instance.intA list of Recipes to install on the VM instance.A list of Recipes to install on the VM instance.getRecipesOrBuilder(int index) A list of Recipes to install on the VM instance.List<? extends GuestPolicies.SoftwareRecipeOrBuilder>A list of Recipes to install on the VM instance.intcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanRequired.booleanOutput only.inthashCode()booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(GuestPolicies.GuestPolicy prototype) protected GuestPolicies.GuestPolicy.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static GuestPolicies.GuestPolicyparseDelimitedFrom(InputStream input) static GuestPolicies.GuestPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.GuestPolicyparseFrom(byte[] data) static GuestPolicies.GuestPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.GuestPolicyparseFrom(com.google.protobuf.ByteString data) static GuestPolicies.GuestPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.GuestPolicyparseFrom(com.google.protobuf.CodedInputStream input) static GuestPolicies.GuestPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.GuestPolicyparseFrom(InputStream input) static GuestPolicies.GuestPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static GuestPolicies.GuestPolicyparseFrom(ByteBuffer data) static GuestPolicies.GuestPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<GuestPolicies.GuestPolicy>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
ASSIGNMENT_FIELD_NUMBER
public static final int ASSIGNMENT_FIELD_NUMBER- See Also:
-
PACKAGES_FIELD_NUMBER
public static final int PACKAGES_FIELD_NUMBER- See Also:
-
PACKAGE_REPOSITORIES_FIELD_NUMBER
public static final int PACKAGE_REPOSITORIES_FIELD_NUMBER- See Also:
-
RECIPES_FIELD_NUMBER
public static final int RECIPES_FIELD_NUMBER- See Also:
-
ETAG_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Required. Unique name of the resource in this project using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNamein interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Unique name of the resource in this project using one of the following forms: `projects/{project_number}/guestPolicies/{guest_policy_id}`.string name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNameBytesin interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The bytes for name.
-
getDescription
Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;- Specified by:
getDescriptionin interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()Description of the guest policy. Length of the description is limited to 1024 characters.
string description = 2;- Specified by:
getDescriptionBytesin interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The bytes for description.
-
hasCreateTime
public boolean hasCreateTime()Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time this guest policy was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceGuestPolicies.GuestPolicyOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Last time this guest policy was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceGuestPolicies.GuestPolicyOrBuilder
-
hasAssignment
public boolean hasAssignment()Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service [handles assignment conflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts).
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasAssignmentin interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- Whether the assignment field is set.
-
getAssignment
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service [handles assignment conflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts).
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAssignmentin interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The assignment.
-
getAssignmentOrBuilder
Required. Specifies the VM instances that are assigned to this policy. This allows you to target sets or groups of VM instances by different parameters such as labels, names, OS, or zones. If left empty, all VM instances underneath this policy are targeted. At the same level in the resource hierarchy (that is within a project), the service prevents the creation of multiple policies that conflict with each other. For more information, see how the service [handles assignment conflicts](/compute/docs/os-config-management/create-guest-policy#handle-conflicts).
.google.cloud.osconfig.v1beta.Assignment assignment = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getAssignmentOrBuilderin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackagesList
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;- Specified by:
getPackagesListin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackagesOrBuilderList
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;- Specified by:
getPackagesOrBuilderListin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackagesCount
public int getPackagesCount()The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;- Specified by:
getPackagesCountin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackages
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;- Specified by:
getPackagesin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackagesOrBuilder
The software packages to be managed by this policy.
repeated .google.cloud.osconfig.v1beta.Package packages = 7;- Specified by:
getPackagesOrBuilderin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackageRepositoriesList
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;- Specified by:
getPackageRepositoriesListin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackageRepositoriesOrBuilderList
public List<? extends GuestPolicies.PackageRepositoryOrBuilder> getPackageRepositoriesOrBuilderList()A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;- Specified by:
getPackageRepositoriesOrBuilderListin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackageRepositoriesCount
public int getPackageRepositoriesCount()A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;- Specified by:
getPackageRepositoriesCountin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackageRepositories
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;- Specified by:
getPackageRepositoriesin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getPackageRepositoriesOrBuilder
A list of package repositories to configure on the VM instance. This is done before any other configs are applied so they can use these repos. Package repositories are only configured if the corresponding package manager(s) are available.
repeated .google.cloud.osconfig.v1beta.PackageRepository package_repositories = 8;- Specified by:
getPackageRepositoriesOrBuilderin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getRecipesList
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;- Specified by:
getRecipesListin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getRecipesOrBuilderList
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;- Specified by:
getRecipesOrBuilderListin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getRecipesCount
public int getRecipesCount()A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;- Specified by:
getRecipesCountin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getRecipes
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;- Specified by:
getRecipesin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getRecipesOrBuilder
A list of Recipes to install on the VM instance.
repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;- Specified by:
getRecipesOrBuilderin interfaceGuestPolicies.GuestPolicyOrBuilder
-
getEtag
The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;- Specified by:
getEtagin interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()The etag for this guest policy. If this is provided on update, it must match the server's etag.
string etag = 10;- Specified by:
getEtagBytesin interfaceGuestPolicies.GuestPolicyOrBuilder- Returns:
- The bytes for etag.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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.GuestPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.GuestPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.GuestPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.GuestPolicy 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.GuestPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static GuestPolicies.GuestPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static GuestPolicies.GuestPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static GuestPolicies.GuestPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static GuestPolicies.GuestPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static GuestPolicies.GuestPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected GuestPolicies.GuestPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-