- 1.79.0 (latest)
 - 1.77.0
 - 1.76.0
 - 1.75.0
 - 1.74.0
 - 1.73.0
 - 1.71.0
 - 1.69.0
 - 1.68.0
 - 1.65.0
 - 1.64.0
 - 1.63.0
 - 1.61.0
 - 1.60.0
 - 1.59.0
 - 1.58.0
 - 1.57.0
 - 1.56.0
 - 1.55.0
 - 1.54.0
 - 1.53.0
 - 1.52.0
 - 1.50.0
 - 1.49.0
 - 1.48.0
 - 1.47.0
 - 1.46.0
 - 1.45.0
 - 1.44.0
 - 1.43.0
 - 1.42.0
 - 1.41.0
 - 1.40.0
 - 1.38.0
 - 1.37.0
 - 1.36.0
 - 1.35.0
 - 1.34.0
 - 1.33.0
 - 1.32.0
 - 1.31.0
 - 1.30.0
 - 1.29.0
 - 1.28.0
 - 1.25.0
 - 1.24.0
 - 1.23.0
 - 1.22.0
 - 1.21.0
 - 1.20.0
 - 1.19.0
 - 1.18.0
 - 1.17.0
 - 1.16.0
 - 1.15.0
 - 1.14.0
 - 1.13.0
 - 1.12.0
 - 1.11.0
 - 1.10.0
 - 1.9.0
 - 1.8.0
 - 1.7.0
 - 1.6.0
 - 1.5.0
 - 1.4.5
 - 1.3.1
 - 1.2.10
 
public interface DevicePolicyOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAllowedDeviceManagementLevels(int index)
public abstract DeviceManagementLevel getAllowedDeviceManagementLevels(int index)Allowed device management levels, an empty list allows all management levels.
 
 repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the element to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
DeviceManagementLevel | 
        The allowedDeviceManagementLevels at the given index.  | 
      
getAllowedDeviceManagementLevelsCount()
public abstract int getAllowedDeviceManagementLevelsCount()Allowed device management levels, an empty list allows all management levels.
 
 repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
 
| Returns | |
|---|---|
| Type | Description | 
int | 
        The count of allowedDeviceManagementLevels.  | 
      
getAllowedDeviceManagementLevelsList()
public abstract List<DeviceManagementLevel> getAllowedDeviceManagementLevelsList()Allowed device management levels, an empty list allows all management levels.
 
 repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
 
| Returns | |
|---|---|
| Type | Description | 
List<DeviceManagementLevel> | 
        A list containing the allowedDeviceManagementLevels.  | 
      
getAllowedDeviceManagementLevelsValue(int index)
public abstract int getAllowedDeviceManagementLevelsValue(int index)Allowed device management levels, an empty list allows all management levels.
 
 repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the value to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
int | 
        The enum numeric value on the wire of allowedDeviceManagementLevels at the given index.  | 
      
getAllowedDeviceManagementLevelsValueList()
public abstract List<Integer> getAllowedDeviceManagementLevelsValueList()Allowed device management levels, an empty list allows all management levels.
 
 repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
 
| Returns | |
|---|---|
| Type | Description | 
List<Integer> | 
        A list containing the enum numeric values on the wire for allowedDeviceManagementLevels.  | 
      
getAllowedEncryptionStatuses(int index)
public abstract DeviceEncryptionStatus getAllowedEncryptionStatuses(int index)Allowed encryptions statuses, an empty list allows all statuses.
 
 repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the element to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
DeviceEncryptionStatus | 
        The allowedEncryptionStatuses at the given index.  | 
      
getAllowedEncryptionStatusesCount()
public abstract int getAllowedEncryptionStatusesCount()Allowed encryptions statuses, an empty list allows all statuses.
 
 repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
 
| Returns | |
|---|---|
| Type | Description | 
int | 
        The count of allowedEncryptionStatuses.  | 
      
getAllowedEncryptionStatusesList()
public abstract List<DeviceEncryptionStatus> getAllowedEncryptionStatusesList()Allowed encryptions statuses, an empty list allows all statuses.
 
 repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
 
| Returns | |
|---|---|
| Type | Description | 
List<DeviceEncryptionStatus> | 
        A list containing the allowedEncryptionStatuses.  | 
      
getAllowedEncryptionStatusesValue(int index)
public abstract int getAllowedEncryptionStatusesValue(int index)Allowed encryptions statuses, an empty list allows all statuses.
 
 repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the value to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
int | 
        The enum numeric value on the wire of allowedEncryptionStatuses at the given index.  | 
      
getAllowedEncryptionStatusesValueList()
public abstract List<Integer> getAllowedEncryptionStatusesValueList()Allowed encryptions statuses, an empty list allows all statuses.
 
 repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
 
| Returns | |
|---|---|
| Type | Description | 
List<Integer> | 
        A list containing the enum numeric values on the wire for allowedEncryptionStatuses.  | 
      
getOsConstraints(int index)
public abstract OsConstraint getOsConstraints(int index)Allowed OS versions, an empty list allows all types and all versions.
 repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
OsConstraint | 
        |
getOsConstraintsCount()
public abstract int getOsConstraintsCount()Allowed OS versions, an empty list allows all types and all versions.
 repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
| Returns | |
|---|---|
| Type | Description | 
int | 
        |
getOsConstraintsList()
public abstract List<OsConstraint> getOsConstraintsList()Allowed OS versions, an empty list allows all types and all versions.
 repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
| Returns | |
|---|---|
| Type | Description | 
List<OsConstraint> | 
        |
getOsConstraintsOrBuilder(int index)
public abstract OsConstraintOrBuilder getOsConstraintsOrBuilder(int index)Allowed OS versions, an empty list allows all types and all versions.
 repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
OsConstraintOrBuilder | 
        |
getOsConstraintsOrBuilderList()
public abstract List<? extends OsConstraintOrBuilder> getOsConstraintsOrBuilderList()Allowed OS versions, an empty list allows all types and all versions.
 repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
| Returns | |
|---|---|
| Type | Description | 
List<? extends com.google.identity.accesscontextmanager.v1.OsConstraintOrBuilder> | 
        |
getRequireAdminApproval()
public abstract boolean getRequireAdminApproval()Whether the device needs to be approved by the customer admin.
 bool require_admin_approval = 7;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        The requireAdminApproval.  | 
      
getRequireCorpOwned()
public abstract boolean getRequireCorpOwned()Whether the device needs to be corp owned.
 bool require_corp_owned = 8;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        The requireCorpOwned.  | 
      
getRequireScreenlock()
public abstract boolean getRequireScreenlock() Whether or not screenlock is required for the DevicePolicy to be true.
 Defaults to false.
 bool require_screenlock = 1;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        The requireScreenlock.  |