Send feedback
  
   
 
  
    
      Class GuestPolicies.EffectiveGuestPolicy (2.80.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  GuestPolicies . EffectiveGuestPolicy   extends   GeneratedMessageV3   implements   GuestPolicies . EffectiveGuestPolicyOrBuilder  
   The effective guest policy that applies to a VM instance.
 Protobuf type google.cloud.osconfig.v1beta.EffectiveGuestPolicy
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT) 
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int) 
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int) 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
   
  PACKAGES_FIELD_NUMBER 
  
    
public   static   final   int   PACKAGES_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  PACKAGE_REPOSITORIES_FIELD_NUMBER 
  
    
public   static   final   int   PACKAGE_REPOSITORIES_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  SOFTWARE_RECIPES_FIELD_NUMBER 
  
    
public   static   final   int   SOFTWARE_RECIPES_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy . Builder   newBuilder ()  
  
  newBuilder(GuestPolicies.EffectiveGuestPolicy prototype) 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy . Builder   newBuilder ( GuestPolicies . EffectiveGuestPolicy   prototype )  
  
  
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   GuestPolicies . EffectiveGuestPolicy   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<GuestPolicies . EffectiveGuestPolicy >  parser ()  
  
  Methods
   
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   GuestPolicies . EffectiveGuestPolicy   getDefaultInstanceForType ()  
  
  getPackageRepositories(int index) 
  
    
public   GuestPolicies . EffectiveGuestPolicy . SourcedPackageRepository   getPackageRepositories ( int   index )  
   List of package repository configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getPackageRepositoriesCount() 
  
    
public   int   getPackageRepositoriesCount ()  
   List of package repository configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getPackageRepositoriesList() 
  
    
public   List<GuestPolicies . EffectiveGuestPolicy . SourcedPackageRepository >  getPackageRepositoriesList ()  
   List of package repository configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;
 
getPackageRepositoriesOrBuilder(int index) 
  
    
public   GuestPolicies . EffectiveGuestPolicy . SourcedPackageRepositoryOrBuilder   getPackageRepositoriesOrBuilder ( int   index )  
   List of package repository configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getPackageRepositoriesOrBuilderList() 
  
    
public   List <?   extends   GuestPolicies . EffectiveGuestPolicy . SourcedPackageRepositoryOrBuilder >  getPackageRepositoriesOrBuilderList ()  
   List of package repository configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackageRepository package_repositories = 2;
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedPackageRepositoryOrBuilder > 
     
  
  getPackages(int index) 
  
    
public   GuestPolicies . EffectiveGuestPolicy . SourcedPackage   getPackages ( int   index )  
   List of package configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getPackagesCount() 
  
    
public   int   getPackagesCount ()  
   List of package configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getPackagesList() 
  
    
public   List<GuestPolicies . EffectiveGuestPolicy . SourcedPackage >  getPackagesList ()  
   List of package configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;
 
getPackagesOrBuilder(int index) 
  
    
public   GuestPolicies . EffectiveGuestPolicy . SourcedPackageOrBuilder   getPackagesOrBuilder ( int   index )  
   List of package configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getPackagesOrBuilderList() 
  
    
public   List <?   extends   GuestPolicies . EffectiveGuestPolicy . SourcedPackageOrBuilder >  getPackagesOrBuilderList ()  
   List of package configurations assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedPackage packages = 1;
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedPackageOrBuilder > 
     
  
  getParserForType() 
  
    
public   Parser<GuestPolicies . EffectiveGuestPolicy >  getParserForType ()  
  
  Overrides 
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getSoftwareRecipes(int index) 
  
    
public   GuestPolicies . EffectiveGuestPolicy . SourcedSoftwareRecipe   getSoftwareRecipes ( int   index )  
   List of recipes assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getSoftwareRecipesCount() 
  
    
public   int   getSoftwareRecipesCount ()  
   List of recipes assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getSoftwareRecipesList() 
  
    
public   List<GuestPolicies . EffectiveGuestPolicy . SourcedSoftwareRecipe >  getSoftwareRecipesList ()  
   List of recipes assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;
 
getSoftwareRecipesOrBuilder(int index) 
  
    
public   GuestPolicies . EffectiveGuestPolicy . SourcedSoftwareRecipeOrBuilder   getSoftwareRecipesOrBuilder ( int   index )  
   List of recipes assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getSoftwareRecipesOrBuilderList() 
  
    
public   List <?   extends   GuestPolicies . EffectiveGuestPolicy . SourcedSoftwareRecipeOrBuilder >  getSoftwareRecipesOrBuilderList ()  
   List of recipes assigned to the VM instance.
 
 repeated .google.cloud.osconfig.v1beta.EffectiveGuestPolicy.SourcedSoftwareRecipe software_recipes = 3;
 
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.osconfig.v1beta.GuestPolicies.EffectiveGuestPolicy.SourcedSoftwareRecipeOrBuilder > 
     
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   GuestPolicies . EffectiveGuestPolicy . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   GuestPolicies . EffectiveGuestPolicy . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   GuestPolicies . EffectiveGuestPolicy . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]