Class GuestPolicies.GuestPolicy.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<GuestPolicies.GuestPolicy.Builder>
com.google.cloud.osconfig.v1beta.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.GeneratedMessage.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 Details

    • getDescriptor

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

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

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public GuestPolicies.GuestPolicy.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<GuestPolicies.GuestPolicy.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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

       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.
    • getDescription

      public String getDescription()
       Description of the guest policy. Length of the description is limited
       to 1024 characters.
       
      string description = 2;
      Specified by:
      getDescription in interface GuestPolicies.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:
      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

       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

       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

       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
    • getPackagesList

      public List<GuestPolicies.Package> getPackagesList()
       The software packages to be managed by this policy.
       
      repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      Specified by:
      getPackagesList in interface GuestPolicies.GuestPolicyOrBuilder
    • getPackagesCount

      public int getPackagesCount()
       The software packages to be managed by this policy.
       
      repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      Specified by:
      getPackagesCount in interface GuestPolicies.GuestPolicyOrBuilder
    • getPackages

      public GuestPolicies.Package getPackages(int index)
       The software packages to be managed by this policy.
       
      repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      Specified by:
      getPackages in interface GuestPolicies.GuestPolicyOrBuilder
    • setPackages

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

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

       The software packages to be managed by this policy.
       
      repeated .google.cloud.osconfig.v1beta.Package packages = 7;
    • addPackages

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

       The software packages to be managed by this policy.
       
      repeated .google.cloud.osconfig.v1beta.Package packages = 7;
    • addPackages

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

      public GuestPolicies.GuestPolicy.Builder addAllPackages(Iterable<? extends GuestPolicies.Package> values)
       The software packages to be managed by this policy.
       
      repeated .google.cloud.osconfig.v1beta.Package packages = 7;
    • 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;
    • getPackagesOrBuilder

      public GuestPolicies.PackageOrBuilder getPackagesOrBuilder(int index)
       The software packages to be managed by this policy.
       
      repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      Specified by:
      getPackagesOrBuilder in interface GuestPolicies.GuestPolicyOrBuilder
    • getPackagesOrBuilderList

      public List<? extends GuestPolicies.PackageOrBuilder> getPackagesOrBuilderList()
       The software packages to be managed by this policy.
       
      repeated .google.cloud.osconfig.v1beta.Package packages = 7;
      Specified by:
      getPackagesOrBuilderList in interface GuestPolicies.GuestPolicyOrBuilder
    • 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

       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
    • 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:
      getPackageRepositoriesOrBuilderList 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;
    • getRecipesList

      public List<GuestPolicies.SoftwareRecipe> getRecipesList()
       A list of Recipes to install on the VM instance.
       
      repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      Specified by:
      getRecipesList in interface GuestPolicies.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:
      getRecipesCount in interface GuestPolicies.GuestPolicyOrBuilder
    • getRecipes

      public GuestPolicies.SoftwareRecipe getRecipes(int index)
       A list of Recipes to install on the VM instance.
       
      repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      Specified by:
      getRecipes in interface GuestPolicies.GuestPolicyOrBuilder
    • setRecipes

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

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

       A list of Recipes to install on the VM instance.
       
      repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
    • addRecipes

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

       A list of Recipes to install on the VM instance.
       
      repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
    • addRecipes

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

       A list of Recipes to install on the VM instance.
       
      repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
    • 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;
    • getRecipesOrBuilder

      public GuestPolicies.SoftwareRecipeOrBuilder getRecipesOrBuilder(int index)
       A list of Recipes to install on the VM instance.
       
      repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      Specified by:
      getRecipesOrBuilder in interface GuestPolicies.GuestPolicyOrBuilder
    • getRecipesOrBuilderList

      public List<? extends GuestPolicies.SoftwareRecipeOrBuilder> getRecipesOrBuilderList()
       A list of Recipes to install on the VM instance.
       
      repeated .google.cloud.osconfig.v1beta.SoftwareRecipe recipes = 9;
      Specified by:
      getRecipesOrBuilderList in interface GuestPolicies.GuestPolicyOrBuilder
    • 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

       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.