Class GuestPolicies.GuestPolicy.Builder

  • All Implemented Interfaces:
    GuestPolicies.GuestPolicyOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    GuestPolicies.GuestPolicy

    public static final class GuestPolicies.GuestPolicy.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.GuestPolicy.Builder>
    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.GuestPolicy.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.GuestPolicy.Builder>
      • getDefaultInstanceForType

        public GuestPolicies.GuestPolicy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public GuestPolicies.GuestPolicy build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public GuestPolicies.GuestPolicy buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public GuestPolicies.GuestPolicy.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.GuestPolicy.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.GuestPolicy.Builder>
      • mergeFrom

        public GuestPolicies.GuestPolicy.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GuestPolicies.GuestPolicy.Builder>
        Throws:
        IOException
      • getName

        public String 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:
        getName in interface GuestPolicies.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:
        getNameBytes in interface GuestPolicies.GuestPolicyOrBuilder
        Returns:
        The bytes for name.
      • setName

        public GuestPolicies.GuestPolicy.Builder setName​(String value)
         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];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public GuestPolicies.GuestPolicy.Builder clearName()
         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];
        Returns:
        This builder for chaining.
      • setNameBytes

        public GuestPolicies.GuestPolicy.Builder setNameBytes​(com.google.protobuf.ByteString value)
         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];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • 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:
        getDescriptionBytes in interface GuestPolicies.GuestPolicyOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public GuestPolicies.GuestPolicy.Builder setDescription​(String value)
         Description of the guest policy. Length of the description is limited
         to 1024 characters.
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public GuestPolicies.GuestPolicy.Builder clearDescription()
         Description of the guest policy. Length of the description is limited
         to 1024 characters.
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public GuestPolicies.GuestPolicy.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Description of the guest policy. Length of the description is limited
         to 1024 characters.
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • 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:
        hasCreateTime in interface GuestPolicies.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:
        getCreateTime in interface GuestPolicies.GuestPolicyOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public GuestPolicies.GuestPolicy.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Time this guest policy was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public GuestPolicies.GuestPolicy.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time this guest policy was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public GuestPolicies.GuestPolicy.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Time this guest policy was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public GuestPolicies.GuestPolicy.Builder clearCreateTime()
         Output only. Time this guest policy was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Time this guest policy was created.
         
        .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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:
        getCreateTimeOrBuilder in interface GuestPolicies.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:
        hasUpdateTime in interface GuestPolicies.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:
        getUpdateTime in interface GuestPolicies.GuestPolicyOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public GuestPolicies.GuestPolicy.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Last time this guest policy was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setUpdateTime

        public GuestPolicies.GuestPolicy.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Last time this guest policy was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeUpdateTime

        public GuestPolicies.GuestPolicy.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         Output only. Last time this guest policy was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearUpdateTime

        public GuestPolicies.GuestPolicy.Builder clearUpdateTime()
         Output only. Last time this guest policy was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         Output only. Last time this guest policy was updated.
         
        .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • 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:
        getUpdateTimeOrBuilder in interface GuestPolicies.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:
        hasAssignment in interface GuestPolicies.GuestPolicyOrBuilder
        Returns:
        Whether the assignment field is set.
      • getAssignment

        public GuestPolicies.Assignment 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:
        getAssignment in interface GuestPolicies.GuestPolicyOrBuilder
        Returns:
        The assignment.
      • setAssignment

        public GuestPolicies.GuestPolicy.Builder setAssignment​(GuestPolicies.Assignment value)
         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];
      • setAssignment

        public GuestPolicies.GuestPolicy.Builder setAssignment​(GuestPolicies.Assignment.Builder builderForValue)
         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];
      • mergeAssignment

        public GuestPolicies.GuestPolicy.Builder mergeAssignment​(GuestPolicies.Assignment value)
         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];
      • clearAssignment

        public GuestPolicies.GuestPolicy.Builder clearAssignment()
         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];
      • getAssignmentBuilder

        public GuestPolicies.Assignment.Builder getAssignmentBuilder()
         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];
      • getAssignmentOrBuilder

        public GuestPolicies.AssignmentOrBuilder 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:
        getAssignmentOrBuilder in interface GuestPolicies.GuestPolicyOrBuilder
      • clearPackages

        public GuestPolicies.GuestPolicy.Builder clearPackages()
         The software packages to be managed by this policy.
         
        repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      • removePackages

        public GuestPolicies.GuestPolicy.Builder removePackages​(int index)
         The software packages to be managed by this policy.
         
        repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      • getPackagesBuilder

        public GuestPolicies.Package.Builder getPackagesBuilder​(int index)
         The software packages to be managed by this policy.
         
        repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      • addPackagesBuilder

        public GuestPolicies.Package.Builder addPackagesBuilder()
         The software packages to be managed by this policy.
         
        repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      • addPackagesBuilder

        public GuestPolicies.Package.Builder addPackagesBuilder​(int index)
         The software packages to be managed by this policy.
         
        repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      • getPackagesBuilderList

        public List<GuestPolicies.Package.Builder> getPackagesBuilderList()
         The software packages to be managed by this policy.
         
        repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      • getPackageRepositoriesList

        public List<GuestPolicies.PackageRepository> 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:
        getPackageRepositoriesList in interface GuestPolicies.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:
        getPackageRepositoriesCount in interface GuestPolicies.GuestPolicyOrBuilder
      • getPackageRepositories

        public GuestPolicies.PackageRepository getPackageRepositories​(int index)
         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:
        getPackageRepositories in interface GuestPolicies.GuestPolicyOrBuilder
      • setPackageRepositories

        public GuestPolicies.GuestPolicy.Builder setPackageRepositories​(int index,
                                                                        GuestPolicies.PackageRepository value)
         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;
      • setPackageRepositories

        public GuestPolicies.GuestPolicy.Builder setPackageRepositories​(int index,
                                                                        GuestPolicies.PackageRepository.Builder builderForValue)
         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;
      • addPackageRepositories

        public GuestPolicies.GuestPolicy.Builder addPackageRepositories​(GuestPolicies.PackageRepository value)
         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;
      • addPackageRepositories

        public GuestPolicies.GuestPolicy.Builder addPackageRepositories​(int index,
                                                                        GuestPolicies.PackageRepository value)
         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;
      • addPackageRepositories

        public GuestPolicies.GuestPolicy.Builder addPackageRepositories​(GuestPolicies.PackageRepository.Builder builderForValue)
         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;
      • addPackageRepositories

        public GuestPolicies.GuestPolicy.Builder addPackageRepositories​(int index,
                                                                        GuestPolicies.PackageRepository.Builder builderForValue)
         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;
      • addAllPackageRepositories

        public GuestPolicies.GuestPolicy.Builder addAllPackageRepositories​(Iterable<? extends GuestPolicies.PackageRepository> values)
         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;
      • clearPackageRepositories

        public GuestPolicies.GuestPolicy.Builder clearPackageRepositories()
         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;
      • removePackageRepositories

        public GuestPolicies.GuestPolicy.Builder removePackageRepositories​(int index)
         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;
      • getPackageRepositoriesBuilder

        public GuestPolicies.PackageRepository.Builder getPackageRepositoriesBuilder​(int index)
         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;
      • getPackageRepositoriesOrBuilder

        public GuestPolicies.PackageRepositoryOrBuilder getPackageRepositoriesOrBuilder​(int index)
         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:
        getPackageRepositoriesOrBuilder in interface GuestPolicies.GuestPolicyOrBuilder
      • addPackageRepositoriesBuilder

        public GuestPolicies.PackageRepository.Builder addPackageRepositoriesBuilder()
         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;
      • addPackageRepositoriesBuilder

        public GuestPolicies.PackageRepository.Builder addPackageRepositoriesBuilder​(int index)
         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;
      • getPackageRepositoriesBuilderList

        public List<GuestPolicies.PackageRepository.Builder> getPackageRepositoriesBuilderList()
         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;
      • clearRecipes

        public GuestPolicies.GuestPolicy.Builder clearRecipes()
         A list of Recipes to install on the VM instance.
         
        repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      • removeRecipes

        public GuestPolicies.GuestPolicy.Builder removeRecipes​(int index)
         A list of Recipes to install on the VM instance.
         
        repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      • getRecipesBuilder

        public GuestPolicies.SoftwareRecipe.Builder getRecipesBuilder​(int index)
         A list of Recipes to install on the VM instance.
         
        repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      • addRecipesBuilder

        public GuestPolicies.SoftwareRecipe.Builder addRecipesBuilder()
         A list of Recipes to install on the VM instance.
         
        repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      • addRecipesBuilder

        public GuestPolicies.SoftwareRecipe.Builder addRecipesBuilder​(int index)
         A list of Recipes to install on the VM instance.
         
        repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      • getRecipesBuilderList

        public List<GuestPolicies.SoftwareRecipe.Builder> getRecipesBuilderList()
         A list of Recipes to install on the VM instance.
         
        repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      • getEtag

        public String 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:
        getEtag in interface GuestPolicies.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:
        getEtagBytes in interface GuestPolicies.GuestPolicyOrBuilder
        Returns:
        The bytes for etag.
      • setEtag

        public GuestPolicies.GuestPolicy.Builder setEtag​(String value)
         The etag for this guest policy.
         If this is provided on update, it must match the server's etag.
         
        string etag = 10;
        Parameters:
        value - The etag to set.
        Returns:
        This builder for chaining.
      • clearEtag

        public GuestPolicies.GuestPolicy.Builder clearEtag()
         The etag for this guest policy.
         If this is provided on update, it must match the server's etag.
         
        string etag = 10;
        Returns:
        This builder for chaining.
      • setEtagBytes

        public GuestPolicies.GuestPolicy.Builder setEtagBytes​(com.google.protobuf.ByteString value)
         The etag for this guest policy.
         If this is provided on update, it must match the server's etag.
         
        string etag = 10;
        Parameters:
        value - The bytes for etag to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final GuestPolicies.GuestPolicy.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.GuestPolicy.Builder>
      • mergeUnknownFields

        public final GuestPolicies.GuestPolicy.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<GuestPolicies.GuestPolicy.Builder>