public final class DevicePolicy extends GeneratedMessageV3 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 | Class and Description |
|---|---|
static class |
DevicePolicy.Builder
`DevicePolicy` specifies device specific restrictions necessary to acquire a
given access level.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameterAbstractMessageLite.InternalOneOfEnum| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOWED_DEVICE_MANAGEMENT_LEVELS_FIELD_NUMBER |
static int |
ALLOWED_ENCRYPTION_STATUSES_FIELD_NUMBER |
static int |
OS_CONSTRAINTS_FIELD_NUMBER |
static int |
REQUIRE_ADMIN_APPROVAL_FIELD_NUMBER |
static int |
REQUIRE_CORP_OWNED_FIELD_NUMBER |
static int |
REQUIRE_SCREENLOCK_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static DevicePolicy |
getDefaultInstance() |
DevicePolicy |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
OsConstraint |
getOsConstraints(int index)
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.
|
Parser<DevicePolicy> |
getParserForType() |
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.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DevicePolicy.Builder |
newBuilder() |
static DevicePolicy.Builder |
newBuilder(DevicePolicy prototype) |
DevicePolicy.Builder |
newBuilderForType() |
protected DevicePolicy.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) |
static DevicePolicy |
parseDelimitedFrom(InputStream input) |
static DevicePolicy |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DevicePolicy |
parseFrom(byte[] data) |
static DevicePolicy |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DevicePolicy |
parseFrom(ByteBuffer data) |
static DevicePolicy |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static DevicePolicy |
parseFrom(ByteString data) |
static DevicePolicy |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DevicePolicy |
parseFrom(CodedInputStream input) |
static DevicePolicy |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DevicePolicy |
parseFrom(InputStream input) |
static DevicePolicy |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DevicePolicy> |
parser() |
DevicePolicy.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int REQUIRE_SCREENLOCK_FIELD_NUMBER
public static final int ALLOWED_ENCRYPTION_STATUSES_FIELD_NUMBER
public static final int OS_CONSTRAINTS_FIELD_NUMBER
public static final int ALLOWED_DEVICE_MANAGEMENT_LEVELS_FIELD_NUMBER
public static final int REQUIRE_ADMIN_APPROVAL_FIELD_NUMBER
public static final int REQUIRE_CORP_OWNED_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class GeneratedMessageV3public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public 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 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 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 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 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 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 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<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 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 boolean getRequireAdminApproval()
Whether the device needs to be approved by the customer admin.
bool require_admin_approval = 7;getRequireAdminApproval in interface DevicePolicyOrBuilderpublic boolean getRequireCorpOwned()
Whether the device needs to be corp owned.
bool require_corp_owned = 8;getRequireCorpOwned in interface DevicePolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static DevicePolicy parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DevicePolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DevicePolicy parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DevicePolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DevicePolicy parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DevicePolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DevicePolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static DevicePolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DevicePolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DevicePolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DevicePolicy parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static DevicePolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DevicePolicy.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static DevicePolicy.Builder newBuilder()
public static DevicePolicy.Builder newBuilder(DevicePolicy prototype)
public DevicePolicy.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected DevicePolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static DevicePolicy getDefaultInstance()
public static Parser<DevicePolicy> parser()
public Parser<DevicePolicy> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public DevicePolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderCopyright © 2021 Google LLC. All rights reserved.