| java.lang.Object | |
| ↳ | com.google.firebase.remoteconfig.Template |
Represents a Remote Config template.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
Template(String etag)
Creates a new
Template. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| boolean | equals(Object o) | ||||||||||
| static Template |
fromJSON(String json)
Creates and returns a new Remote Config template from a JSON string.
| ||||||||||
| List<Condition> |
getConditions()
Gets the list of conditions of the template.
| ||||||||||
| String |
getETag()
Gets the ETag of the template.
| ||||||||||
| Map<String, ParameterGroup> |
getParameterGroups()
Gets the map of parameter groups of the template.
| ||||||||||
| Map<String, Parameter> |
getParameters()
Gets the map of parameters of the template.
| ||||||||||
| Version |
getVersion()
Gets the version information of the template.
| ||||||||||
| int | hashCode() | ||||||||||
| Template |
setConditions(List<Condition> conditions)
Sets the list of conditions of the template.
| ||||||||||
| Template |
setParameterGroups(Map<String, ParameterGroup> parameterGroups)
Sets the map of parameter groups of the template.
| ||||||||||
| Template |
setParameters(Map<String, Parameter> parameters)
Sets the map of parameters of the template.
| ||||||||||
| Template |
setVersion(Version version)
Sets the version information of the template.
| ||||||||||
| String |
toJSON()
Gets the JSON-serializable representation of this template.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates and returns a new Remote Config template from a JSON string.
Input JSON string must contain an etag property to create a valid template.
| json | A non-null JSON string to populate a Remote Config template. |
|---|
Template instance.| FirebaseRemoteConfigException | If the input JSON string is not parsable. |
|---|
Gets the list of conditions of the template.
Gets the ETag of the template.
Gets the map of parameter groups of the template.
Gets the map of parameters of the template.
Gets the version information of the template.
Sets the list of conditions of the template.
| conditions | A non-null list of conditions in descending order by priority. |
|---|
Template instance.
Sets the map of parameter groups of the template.
| parameterGroups | A non-null map of parameter group names to their parameter group instances. |
|---|
Template instance.
Sets the map of parameters of the template.
| parameters | A non-null map of parameter keys to their optional default values and optional conditional values. |
|---|
Template instance.
Gets the JSON-serializable representation of this template.
Template instance.