Interface OSPolicy.Resource.PackageResourceOrBuilder

    • Method Detail

      • getDesiredStateValue

        int getDesiredStateValue()
         Required. The desired state the agent should maintain for this package.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState desired_state = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The enum numeric value on the wire for desiredState.
      • getDesiredState

        OSPolicy.Resource.PackageResource.DesiredState getDesiredState()
         Required. The desired state the agent should maintain for this package.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.DesiredState desired_state = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The desiredState.
      • hasApt

        boolean hasApt()
         A package managed by Apt.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.APT apt = 2;
        Returns:
        Whether the apt field is set.
      • hasDeb

        boolean hasDeb()
         A deb package file.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Deb deb = 3;
        Returns:
        Whether the deb field is set.
      • hasYum

        boolean hasYum()
         A package managed by YUM.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.YUM yum = 4;
        Returns:
        Whether the yum field is set.
      • hasZypper

        boolean hasZypper()
         A package managed by Zypper.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.Zypper zypper = 5;
        Returns:
        Whether the zypper field is set.
      • hasRpm

        boolean hasRpm()
         An rpm package file.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.RPM rpm = 6;
        Returns:
        Whether the rpm field is set.
      • hasGooget

        boolean hasGooget()
         A package managed by GooGet.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.GooGet googet = 7;
        Returns:
        Whether the googet field is set.
      • hasMsi

        boolean hasMsi()
         An MSI package.
         
        .google.cloud.osconfig.v1.OSPolicy.Resource.PackageResource.MSI msi = 8;
        Returns:
        Whether the msi field is set.