public static final class DevicePolicy.Builder extends GeneratedMessageV3.Builder<DevicePolicy.Builder> implements DevicePolicyOrBuilder
`DevicePolicy` specifies device specific restrictions necessary to acquire a
given access level. A `DevicePolicy` specifies requirements for requests from
devices to be granted access levels, it does not do any enforcement on the
device. `DevicePolicy` acts as an AND over all specified fields, and each
repeated field is an OR over its elements. Any unset fields are ignored. For
example, if the proto is { os_type : DESKTOP_WINDOWS, os_type :
DESKTOP_LINUX, encryption_status: ENCRYPTED}, then the DevicePolicy will be
true for requests originating from encrypted Linux desktops and encrypted
Windows desktops.
Protobuf type google.identity.accesscontextmanager.v1.DevicePolicy| Modifier and Type | Method and Description |
|---|---|
DevicePolicy.Builder |
addAllAllowedDeviceManagementLevels(Iterable<? extends DeviceManagementLevel> values)
Allowed device management levels, an empty list allows all management
levels.
|
DevicePolicy.Builder |
addAllAllowedDeviceManagementLevelsValue(Iterable<Integer> values)
Allowed device management levels, an empty list allows all management
levels.
|
DevicePolicy.Builder |
addAllAllowedEncryptionStatuses(Iterable<? extends DeviceEncryptionStatus> values)
Allowed encryptions statuses, an empty list allows all statuses.
|
DevicePolicy.Builder |
addAllAllowedEncryptionStatusesValue(Iterable<Integer> values)
Allowed encryptions statuses, an empty list allows all statuses.
|
DevicePolicy.Builder |
addAllOsConstraints(Iterable<? extends OsConstraint> values)
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
addAllowedDeviceManagementLevels(DeviceManagementLevel value)
Allowed device management levels, an empty list allows all management
levels.
|
DevicePolicy.Builder |
addAllowedDeviceManagementLevelsValue(int value)
Allowed device management levels, an empty list allows all management
levels.
|
DevicePolicy.Builder |
addAllowedEncryptionStatuses(DeviceEncryptionStatus value)
Allowed encryptions statuses, an empty list allows all statuses.
|
DevicePolicy.Builder |
addAllowedEncryptionStatusesValue(int value)
Allowed encryptions statuses, an empty list allows all statuses.
|
DevicePolicy.Builder |
addOsConstraints(int index,
OsConstraint.Builder builderForValue)
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
addOsConstraints(int index,
OsConstraint value)
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
addOsConstraints(OsConstraint.Builder builderForValue)
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
addOsConstraints(OsConstraint value)
Allowed OS versions, an empty list allows all types and all versions.
|
OsConstraint.Builder |
addOsConstraintsBuilder()
Allowed OS versions, an empty list allows all types and all versions.
|
OsConstraint.Builder |
addOsConstraintsBuilder(int index)
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
DevicePolicy |
build() |
DevicePolicy |
buildPartial() |
DevicePolicy.Builder |
clear() |
DevicePolicy.Builder |
clearAllowedDeviceManagementLevels()
Allowed device management levels, an empty list allows all management
levels.
|
DevicePolicy.Builder |
clearAllowedEncryptionStatuses()
Allowed encryptions statuses, an empty list allows all statuses.
|
DevicePolicy.Builder |
clearField(Descriptors.FieldDescriptor field) |
DevicePolicy.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
DevicePolicy.Builder |
clearOsConstraints()
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
clearRequireAdminApproval()
Whether the device needs to be approved by the customer admin.
|
DevicePolicy.Builder |
clearRequireCorpOwned()
Whether the device needs to be corp owned.
|
DevicePolicy.Builder |
clearRequireScreenlock()
Whether or not screenlock is required for the DevicePolicy to be true.
|
DevicePolicy.Builder |
clone() |
DeviceManagementLevel |
getAllowedDeviceManagementLevels(int index)
Allowed device management levels, an empty list allows all management
levels.
|
int |
getAllowedDeviceManagementLevelsCount()
Allowed device management levels, an empty list allows all management
levels.
|
List<DeviceManagementLevel> |
getAllowedDeviceManagementLevelsList()
Allowed device management levels, an empty list allows all management
levels.
|
int |
getAllowedDeviceManagementLevelsValue(int index)
Allowed device management levels, an empty list allows all management
levels.
|
List<Integer> |
getAllowedDeviceManagementLevelsValueList()
Allowed device management levels, an empty list allows all management
levels.
|
DeviceEncryptionStatus |
getAllowedEncryptionStatuses(int index)
Allowed encryptions statuses, an empty list allows all statuses.
|
int |
getAllowedEncryptionStatusesCount()
Allowed encryptions statuses, an empty list allows all statuses.
|
List<DeviceEncryptionStatus> |
getAllowedEncryptionStatusesList()
Allowed encryptions statuses, an empty list allows all statuses.
|
int |
getAllowedEncryptionStatusesValue(int index)
Allowed encryptions statuses, an empty list allows all statuses.
|
List<Integer> |
getAllowedEncryptionStatusesValueList()
Allowed encryptions statuses, an empty list allows all statuses.
|
DevicePolicy |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
OsConstraint |
getOsConstraints(int index)
Allowed OS versions, an empty list allows all types and all versions.
|
OsConstraint.Builder |
getOsConstraintsBuilder(int index)
Allowed OS versions, an empty list allows all types and all versions.
|
List<OsConstraint.Builder> |
getOsConstraintsBuilderList()
Allowed OS versions, an empty list allows all types and all versions.
|
int |
getOsConstraintsCount()
Allowed OS versions, an empty list allows all types and all versions.
|
List<OsConstraint> |
getOsConstraintsList()
Allowed OS versions, an empty list allows all types and all versions.
|
OsConstraintOrBuilder |
getOsConstraintsOrBuilder(int index)
Allowed OS versions, an empty list allows all types and all versions.
|
List<? extends OsConstraintOrBuilder> |
getOsConstraintsOrBuilderList()
Allowed OS versions, an empty list allows all types and all versions.
|
boolean |
getRequireAdminApproval()
Whether the device needs to be approved by the customer admin.
|
boolean |
getRequireCorpOwned()
Whether the device needs to be corp owned.
|
boolean |
getRequireScreenlock()
Whether or not screenlock is required for the DevicePolicy to be true.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DevicePolicy.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
DevicePolicy.Builder |
mergeFrom(DevicePolicy other) |
DevicePolicy.Builder |
mergeFrom(Message other) |
DevicePolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
DevicePolicy.Builder |
removeOsConstraints(int index)
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
setAllowedDeviceManagementLevels(int index,
DeviceManagementLevel value)
Allowed device management levels, an empty list allows all management
levels.
|
DevicePolicy.Builder |
setAllowedDeviceManagementLevelsValue(int index,
int value)
Allowed device management levels, an empty list allows all management
levels.
|
DevicePolicy.Builder |
setAllowedEncryptionStatuses(int index,
DeviceEncryptionStatus value)
Allowed encryptions statuses, an empty list allows all statuses.
|
DevicePolicy.Builder |
setAllowedEncryptionStatusesValue(int index,
int value)
Allowed encryptions statuses, an empty list allows all statuses.
|
DevicePolicy.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
DevicePolicy.Builder |
setOsConstraints(int index,
OsConstraint.Builder builderForValue)
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
setOsConstraints(int index,
OsConstraint value)
Allowed OS versions, an empty list allows all types and all versions.
|
DevicePolicy.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
DevicePolicy.Builder |
setRequireAdminApproval(boolean value)
Whether the device needs to be approved by the customer admin.
|
DevicePolicy.Builder |
setRequireCorpOwned(boolean value)
Whether the device needs to be corp owned.
|
DevicePolicy.Builder |
setRequireScreenlock(boolean value)
Whether or not screenlock is required for the DevicePolicy to be true.
|
DevicePolicy.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic DevicePolicy build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic DevicePolicy buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic DevicePolicy.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<DevicePolicy.Builder>public DevicePolicy.Builder mergeFrom(DevicePolicy other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public DevicePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<DevicePolicy.Builder>IOExceptionpublic boolean getRequireScreenlock()
Whether or not screenlock is required for the DevicePolicy to be true. Defaults to `false`.
bool require_screenlock = 1;getRequireScreenlock in interface DevicePolicyOrBuilderpublic DevicePolicy.Builder setRequireScreenlock(boolean value)
Whether or not screenlock is required for the DevicePolicy to be true. Defaults to `false`.
bool require_screenlock = 1;value - The requireScreenlock to set.public DevicePolicy.Builder clearRequireScreenlock()
Whether or not screenlock is required for the DevicePolicy to be true. Defaults to `false`.
bool require_screenlock = 1;public List<DeviceEncryptionStatus> getAllowedEncryptionStatusesList()
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
getAllowedEncryptionStatusesList in interface DevicePolicyOrBuilderpublic int getAllowedEncryptionStatusesCount()
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
getAllowedEncryptionStatusesCount in interface DevicePolicyOrBuilderpublic DeviceEncryptionStatus getAllowedEncryptionStatuses(int index)
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
getAllowedEncryptionStatuses in interface DevicePolicyOrBuilderindex - The index of the element to return.public DevicePolicy.Builder setAllowedEncryptionStatuses(int index, DeviceEncryptionStatus value)
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
index - The index to set the value at.value - The allowedEncryptionStatuses to set.public DevicePolicy.Builder addAllowedEncryptionStatuses(DeviceEncryptionStatus value)
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
value - The allowedEncryptionStatuses to add.public DevicePolicy.Builder addAllAllowedEncryptionStatuses(Iterable<? extends DeviceEncryptionStatus> values)
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
values - The allowedEncryptionStatuses to add.public DevicePolicy.Builder clearAllowedEncryptionStatuses()
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
public List<Integer> getAllowedEncryptionStatusesValueList()
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
getAllowedEncryptionStatusesValueList in interface DevicePolicyOrBuilderpublic int getAllowedEncryptionStatusesValue(int index)
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
getAllowedEncryptionStatusesValue in interface DevicePolicyOrBuilderindex - The index of the value to return.public DevicePolicy.Builder setAllowedEncryptionStatusesValue(int index, int value)
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
index - The index of the value to return.public DevicePolicy.Builder addAllowedEncryptionStatusesValue(int value)
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
value - The enum numeric value on the wire for allowedEncryptionStatuses to add.public DevicePolicy.Builder addAllAllowedEncryptionStatusesValue(Iterable<Integer> values)
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
values - The enum numeric values on the wire for allowedEncryptionStatuses to add.public List<OsConstraint> getOsConstraintsList()
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
getOsConstraintsList in interface DevicePolicyOrBuilderpublic int getOsConstraintsCount()
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
getOsConstraintsCount in interface DevicePolicyOrBuilderpublic 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;
getOsConstraints in interface DevicePolicyOrBuilderpublic DevicePolicy.Builder setOsConstraints(int index, OsConstraint value)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public DevicePolicy.Builder setOsConstraints(int index, OsConstraint.Builder builderForValue)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public DevicePolicy.Builder addOsConstraints(OsConstraint value)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public DevicePolicy.Builder addOsConstraints(int index, OsConstraint value)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public DevicePolicy.Builder addOsConstraints(OsConstraint.Builder builderForValue)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public DevicePolicy.Builder addOsConstraints(int index, OsConstraint.Builder builderForValue)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public DevicePolicy.Builder addAllOsConstraints(Iterable<? extends OsConstraint> values)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public DevicePolicy.Builder clearOsConstraints()
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public DevicePolicy.Builder removeOsConstraints(int index)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public OsConstraint.Builder getOsConstraintsBuilder(int index)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public 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;
getOsConstraintsOrBuilder in interface DevicePolicyOrBuilderpublic 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;
getOsConstraintsOrBuilderList in interface DevicePolicyOrBuilderpublic OsConstraint.Builder addOsConstraintsBuilder()
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public OsConstraint.Builder addOsConstraintsBuilder(int index)
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public List<OsConstraint.Builder> getOsConstraintsBuilderList()
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
public 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;
getAllowedDeviceManagementLevelsList in interface DevicePolicyOrBuilderpublic int getAllowedDeviceManagementLevelsCount()
Allowed device management levels, an empty list allows all management levels.
repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
getAllowedDeviceManagementLevelsCount in interface DevicePolicyOrBuilderpublic 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;
getAllowedDeviceManagementLevels in interface DevicePolicyOrBuilderindex - The index of the element to return.public DevicePolicy.Builder setAllowedDeviceManagementLevels(int index, DeviceManagementLevel value)
Allowed device management levels, an empty list allows all management levels.
repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
index - The index to set the value at.value - The allowedDeviceManagementLevels to set.public DevicePolicy.Builder addAllowedDeviceManagementLevels(DeviceManagementLevel value)
Allowed device management levels, an empty list allows all management levels.
repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
value - The allowedDeviceManagementLevels to add.public DevicePolicy.Builder addAllAllowedDeviceManagementLevels(Iterable<? extends DeviceManagementLevel> values)
Allowed device management levels, an empty list allows all management levels.
repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
values - The allowedDeviceManagementLevels to add.public DevicePolicy.Builder clearAllowedDeviceManagementLevels()
Allowed device management levels, an empty list allows all management levels.
repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
public 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;
getAllowedDeviceManagementLevelsValueList in interface DevicePolicyOrBuilderpublic 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;
getAllowedDeviceManagementLevelsValue in interface DevicePolicyOrBuilderindex - The index of the value to return.public DevicePolicy.Builder setAllowedDeviceManagementLevelsValue(int index, int value)
Allowed device management levels, an empty list allows all management levels.
repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
index - The index of the value to return.public DevicePolicy.Builder addAllowedDeviceManagementLevelsValue(int value)
Allowed device management levels, an empty list allows all management levels.
repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
value - The enum numeric value on the wire for allowedDeviceManagementLevels to add.public DevicePolicy.Builder addAllAllowedDeviceManagementLevelsValue(Iterable<Integer> values)
Allowed device management levels, an empty list allows all management levels.
repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6;
values - The enum numeric values on the wire for allowedDeviceManagementLevels to add.public boolean getRequireAdminApproval()
Whether the device needs to be approved by the customer admin.
bool require_admin_approval = 7;getRequireAdminApproval in interface DevicePolicyOrBuilderpublic DevicePolicy.Builder setRequireAdminApproval(boolean value)
Whether the device needs to be approved by the customer admin.
bool require_admin_approval = 7;value - The requireAdminApproval to set.public DevicePolicy.Builder clearRequireAdminApproval()
Whether the device needs to be approved by the customer admin.
bool require_admin_approval = 7;public boolean getRequireCorpOwned()
Whether the device needs to be corp owned.
bool require_corp_owned = 8;getRequireCorpOwned in interface DevicePolicyOrBuilderpublic DevicePolicy.Builder setRequireCorpOwned(boolean value)
Whether the device needs to be corp owned.
bool require_corp_owned = 8;value - The requireCorpOwned to set.public DevicePolicy.Builder clearRequireCorpOwned()
Whether the device needs to be corp owned.
bool require_corp_owned = 8;public final DevicePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<DevicePolicy.Builder>public final DevicePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<DevicePolicy.Builder>Copyright © 2021 Google LLC. All rights reserved.