- 1.56.0 (latest)
- 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 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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DevicePolicy.BuilderImplements
DevicePolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllAllowedDeviceManagementLevels(Iterable<? extends DeviceManagementLevel> values)
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.identity.accesscontextmanager.type.DeviceManagementLevel> The allowedDeviceManagementLevels to add. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
addAllAllowedDeviceManagementLevelsValue(Iterable<Integer> values)
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<Integer> The enum numeric values on the wire for allowedDeviceManagementLevels to add. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
addAllAllowedEncryptionStatuses(Iterable<? extends DeviceEncryptionStatus> values)
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.identity.accesscontextmanager.type.DeviceEncryptionStatus> The allowedEncryptionStatuses to add. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
addAllAllowedEncryptionStatusesValue(Iterable<Integer> values)
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<Integer> The enum numeric values on the wire for allowedEncryptionStatuses to add. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
addAllOsConstraints(Iterable<? extends OsConstraint> values)
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;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.identity.accesscontextmanager.v1.OsConstraint> |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
addAllowedDeviceManagementLevels(DeviceManagementLevel value)
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;
Parameter | |
---|---|
Name | Description |
value |
DeviceManagementLevel The allowedDeviceManagementLevels to add. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
addAllowedDeviceManagementLevelsValue(int value)
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;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for allowedDeviceManagementLevels to add. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
addAllowedEncryptionStatuses(DeviceEncryptionStatus value)
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;
Parameter | |
---|---|
Name | Description |
value |
DeviceEncryptionStatus The allowedEncryptionStatuses to add. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
addAllowedEncryptionStatusesValue(int value)
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;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for allowedEncryptionStatuses to add. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
addOsConstraints(OsConstraint value)
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;
Parameter | |
---|---|
Name | Description |
value |
OsConstraint |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
addOsConstraints(OsConstraint.Builder builderForValue)
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;
Parameter | |
---|---|
Name | Description |
builderForValue |
OsConstraint.Builder |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
addOsConstraints(int index, OsConstraint value)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
OsConstraint |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
addOsConstraints(int index, OsConstraint.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
OsConstraint.Builder |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
addOsConstraintsBuilder()
public OsConstraint.Builder addOsConstraintsBuilder()
Allowed OS versions, an empty list allows all types and all versions.
repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3;
Returns | |
---|---|
Type | Description |
OsConstraint.Builder |
addOsConstraintsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
OsConstraint.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DevicePolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
build()
public DevicePolicy build()
Returns | |
---|---|
Type | Description |
DevicePolicy |
buildPartial()
public DevicePolicy buildPartial()
Returns | |
---|---|
Type | Description |
DevicePolicy |
clear()
public DevicePolicy.Builder clear()
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
clearAllowedDeviceManagementLevels()
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;
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
clearAllowedEncryptionStatuses()
public DevicePolicy.Builder clearAllowedEncryptionStatuses()
Allowed encryptions statuses, an empty list allows all statuses.
repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2;
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public DevicePolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DevicePolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
clearOsConstraints()
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;
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
clearRequireAdminApproval()
public DevicePolicy.Builder clearRequireAdminApproval()
Whether the device needs to be approved by the customer admin.
bool require_admin_approval = 7;
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
clearRequireCorpOwned()
public DevicePolicy.Builder clearRequireCorpOwned()
Whether the device needs to be corp owned.
bool require_corp_owned = 8;
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
clearRequireScreenlock()
public DevicePolicy.Builder clearRequireScreenlock()
Whether or not screenlock is required for the DevicePolicy to be true.
Defaults to false
.
bool require_screenlock = 1;
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
clone()
public DevicePolicy.Builder clone()
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
getAllowedDeviceManagementLevels(int index)
public 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 |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
DeviceManagementLevel |
The allowedDeviceManagementLevels at the given index. |
getAllowedDeviceManagementLevelsCount()
public 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 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 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 |
int The 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 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 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 |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
DeviceEncryptionStatus |
The allowedEncryptionStatuses at the given index. |
getAllowedEncryptionStatusesCount()
public 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 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 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 |
int The 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 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. |
getDefaultInstanceForType()
public DevicePolicy getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
DevicePolicy |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getOsConstraints(int index)
public 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 |
getOsConstraintsBuilder(int index)
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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
OsConstraint.Builder |
getOsConstraintsBuilderList()
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;
Returns | |
---|---|
Type | Description |
List<Builder> |
getOsConstraintsCount()
public 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 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 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 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 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 boolean getRequireCorpOwned()
Whether the device needs to be corp owned.
bool require_corp_owned = 8;
Returns | |
---|---|
Type | Description |
boolean |
The requireCorpOwned. |
getRequireScreenlock()
public 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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(DevicePolicy other)
public DevicePolicy.Builder mergeFrom(DevicePolicy other)
Parameter | |
---|---|
Name | Description |
other |
DevicePolicy |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DevicePolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public DevicePolicy.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DevicePolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
removeOsConstraints(int index)
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;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
setAllowedDeviceManagementLevels(int index, DeviceManagementLevel value)
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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
DeviceManagementLevel The allowedDeviceManagementLevels to set. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
setAllowedDeviceManagementLevelsValue(int index, int value)
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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
int The enum numeric value on the wire for allowedDeviceManagementLevels to set. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
setAllowedEncryptionStatuses(int index, DeviceEncryptionStatus value)
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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
DeviceEncryptionStatus The allowedEncryptionStatuses to set. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
setAllowedEncryptionStatusesValue(int index, int value)
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;
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
int The enum numeric value on the wire for allowedEncryptionStatuses to set. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public DevicePolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
setOsConstraints(int index, OsConstraint value)
public 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;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
OsConstraint |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
setOsConstraints(int index, OsConstraint.Builder builderForValue)
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;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
OsConstraint.Builder |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DevicePolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
setRequireAdminApproval(boolean value)
public DevicePolicy.Builder setRequireAdminApproval(boolean value)
Whether the device needs to be approved by the customer admin.
bool require_admin_approval = 7;
Parameter | |
---|---|
Name | Description |
value |
boolean The requireAdminApproval to set. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
setRequireCorpOwned(boolean value)
public DevicePolicy.Builder setRequireCorpOwned(boolean value)
Whether the device needs to be corp owned.
bool require_corp_owned = 8;
Parameter | |
---|---|
Name | Description |
value |
boolean The requireCorpOwned to set. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
setRequireScreenlock(boolean value)
public DevicePolicy.Builder setRequireScreenlock(boolean value)
Whether or not screenlock is required for the DevicePolicy to be true.
Defaults to false
.
bool require_screenlock = 1;
Parameter | |
---|---|
Name | Description |
value |
boolean The requireScreenlock to set. |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final DevicePolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
DevicePolicy.Builder |