Interface GuestPolicies.PackageOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    GuestPolicies.Package, GuestPolicies.Package.Builder
    Enclosing class:
    GuestPolicies

    public static interface GuestPolicies.PackageOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      GuestPolicies.DesiredState getDesiredState()
      The desired_state the agent should maintain for this package.
      int getDesiredStateValue()
      The desired_state the agent should maintain for this package.
      GuestPolicies.Package.Manager getManager()
      Type of package manager that can be used to install this package.
      int getManagerValue()
      Type of package manager that can be used to install this package.
      String getName()
      Required.
      com.google.protobuf.ByteString getNameBytes()
      Required.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getName

        String getName()
         Required. The name of the package. A package is uniquely identified for conflict
         validation by checking the package name and the manager(s) that the
         package targets.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The name.
      • getNameBytes

        com.google.protobuf.ByteString getNameBytes()
         Required. The name of the package. A package is uniquely identified for conflict
         validation by checking the package name and the manager(s) that the
         package targets.
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for name.
      • getDesiredStateValue

        int getDesiredStateValue()
         The desired_state the agent should maintain for this package. The
         default is to ensure the package is installed.
         
        .google.cloud.osconfig.v1beta.DesiredState desired_state = 2;
        Returns:
        The enum numeric value on the wire for desiredState.
      • getDesiredState

        GuestPolicies.DesiredState getDesiredState()
         The desired_state the agent should maintain for this package. The
         default is to ensure the package is installed.
         
        .google.cloud.osconfig.v1beta.DesiredState desired_state = 2;
        Returns:
        The desiredState.
      • getManagerValue

        int getManagerValue()
         Type of package manager that can be used to install this package.
         If a system does not have the package manager, the package is not
         installed or removed no error message is returned. By default,
         or if you specify `ANY`,
         the agent attempts to install and remove this package using the default
         package manager. This is useful when creating a policy that applies to
         different types of systems.
        
         The default behavior is ANY.
         
        .google.cloud.osconfig.v1beta.Package.Manager manager = 3;
        Returns:
        The enum numeric value on the wire for manager.
      • getManager

        GuestPolicies.Package.Manager getManager()
         Type of package manager that can be used to install this package.
         If a system does not have the package manager, the package is not
         installed or removed no error message is returned. By default,
         or if you specify `ANY`,
         the agent attempts to install and remove this package using the default
         package manager. This is useful when creating a policy that applies to
         different types of systems.
        
         The default behavior is ANY.
         
        .google.cloud.osconfig.v1beta.Package.Manager manager = 3;
        Returns:
        The manager.