target.apidocs.com.google.api.services.androidenterprise.model.AppRestrictionsSchemaRestriction.html Maven / Gradle / Ivy
The newest version!
AppRestrictionsSchemaRestriction (Google Play EMM API v1-rev20241113-2.0.0)
com.google.api.services.androidenterprise.model
Class AppRestrictionsSchemaRestriction
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidenterprise.model.AppRestrictionsSchemaRestriction
-
public final class AppRestrictionsSchemaRestriction
extends com.google.api.client.json.GenericJson
A restriction in the App Restriction Schema represents a piece of configuration that may be pre-
applied.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Google Play EMM API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AppRestrictionsSchemaRestriction()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AppRestrictionsSchemaRestriction
clone()
AppRestrictionsSchemaRestrictionRestrictionValue
getDefaultValue()
The default value of the restriction.
String
getDescription()
A longer description of the restriction, giving more detail of what it affects.
List<String>
getEntry()
For choice or multiselect restrictions, the list of possible entries' human-readable names.
List<String>
getEntryValue()
For choice or multiselect restrictions, the list of possible entries' machine-readable values.
String
getKey()
The unique key that the product uses to identify the restriction, e.g.
List<AppRestrictionsSchemaRestriction>
getNestedRestriction()
For bundle or bundleArray restrictions, the list of nested restrictions.
String
getRestrictionType()
The type of the restriction.
String
getTitle()
The name of the restriction.
AppRestrictionsSchemaRestriction
set(String fieldName,
Object value)
AppRestrictionsSchemaRestriction
setDefaultValue(AppRestrictionsSchemaRestrictionRestrictionValue defaultValue)
The default value of the restriction.
AppRestrictionsSchemaRestriction
setDescription(String description)
A longer description of the restriction, giving more detail of what it affects.
AppRestrictionsSchemaRestriction
setEntry(List<String> entry__)
For choice or multiselect restrictions, the list of possible entries' human-readable names.
AppRestrictionsSchemaRestriction
setEntryValue(List<String> entryValue)
For choice or multiselect restrictions, the list of possible entries' machine-readable values.
AppRestrictionsSchemaRestriction
setKey(String key)
The unique key that the product uses to identify the restriction, e.g.
AppRestrictionsSchemaRestriction
setNestedRestriction(List<AppRestrictionsSchemaRestriction> nestedRestriction)
For bundle or bundleArray restrictions, the list of nested restrictions.
AppRestrictionsSchemaRestriction
setRestrictionType(String restrictionType)
The type of the restriction.
AppRestrictionsSchemaRestriction
setTitle(String title)
The name of the restriction.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getDefaultValue
public AppRestrictionsSchemaRestrictionRestrictionValue getDefaultValue()
The default value of the restriction. bundle and bundleArray restrictions never have a default
value.
- Returns:
- value or
null
for none
-
setDefaultValue
public AppRestrictionsSchemaRestriction setDefaultValue(AppRestrictionsSchemaRestrictionRestrictionValue defaultValue)
The default value of the restriction. bundle and bundleArray restrictions never have a default
value.
- Parameters:
defaultValue
- defaultValue or null
for none
-
getDescription
public String getDescription()
A longer description of the restriction, giving more detail of what it affects.
- Returns:
- value or
null
for none
-
setDescription
public AppRestrictionsSchemaRestriction setDescription(String description)
A longer description of the restriction, giving more detail of what it affects.
- Parameters:
description
- description or null
for none
-
getEntry
public List<String> getEntry()
For choice or multiselect restrictions, the list of possible entries' human-readable names.
- Returns:
- value or
null
for none
-
setEntry
public AppRestrictionsSchemaRestriction setEntry(List<String> entry__)
For choice or multiselect restrictions, the list of possible entries' human-readable names.
- Parameters:
entry__
- entry__ or null
for none
-
getEntryValue
public List<String> getEntryValue()
For choice or multiselect restrictions, the list of possible entries' machine-readable values.
These values should be used in the configuration, either as a single string value for a choice
restriction or in a stringArray for a multiselect restriction.
- Returns:
- value or
null
for none
-
setEntryValue
public AppRestrictionsSchemaRestriction setEntryValue(List<String> entryValue)
For choice or multiselect restrictions, the list of possible entries' machine-readable values.
These values should be used in the configuration, either as a single string value for a choice
restriction or in a stringArray for a multiselect restriction.
- Parameters:
entryValue
- entryValue or null
for none
-
getKey
public String getKey()
The unique key that the product uses to identify the restriction, e.g.
"com.google.android.gm.fieldname".
- Returns:
- value or
null
for none
-
setKey
public AppRestrictionsSchemaRestriction setKey(String key)
The unique key that the product uses to identify the restriction, e.g.
"com.google.android.gm.fieldname".
- Parameters:
key
- key or null
for none
-
getNestedRestriction
public List<AppRestrictionsSchemaRestriction> getNestedRestriction()
For bundle or bundleArray restrictions, the list of nested restrictions. A bundle restriction
is always nested within a bundleArray restriction, and a bundleArray restriction is at most two
levels deep.
- Returns:
- value or
null
for none
-
setNestedRestriction
public AppRestrictionsSchemaRestriction setNestedRestriction(List<AppRestrictionsSchemaRestriction> nestedRestriction)
For bundle or bundleArray restrictions, the list of nested restrictions. A bundle restriction
is always nested within a bundleArray restriction, and a bundleArray restriction is at most two
levels deep.
- Parameters:
nestedRestriction
- nestedRestriction or null
for none
-
getRestrictionType
public String getRestrictionType()
The type of the restriction.
- Returns:
- value or
null
for none
-
setRestrictionType
public AppRestrictionsSchemaRestriction setRestrictionType(String restrictionType)
The type of the restriction.
- Parameters:
restrictionType
- restrictionType or null
for none
-
getTitle
public String getTitle()
The name of the restriction.
- Returns:
- value or
null
for none
-
setTitle
public AppRestrictionsSchemaRestriction setTitle(String title)
The name of the restriction.
- Parameters:
title
- title or null
for none
-
set
public AppRestrictionsSchemaRestriction set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public AppRestrictionsSchemaRestriction clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy