Konsola git

RemoteConfig

A RemoteConfig represents a Remote Config template.

A project's Remote Config template is evaluated during each application instance's fetch.

The resolved value of a parameter is determined as follows:

Given the conditional values that refer to true conditions for the application instance, the parameter's resolved value is the conditional value whose name is the earliest in the conditions list.

Else, if the parameter has a default value, the resolved value is set to the default value.

Else, the parameter has no value and is omitted from the result that the application instance fetches.

For example, assume we have parameter key fruit, with default value pear and conditional value submap {"is_ios": "apple", "is_in_20_percent": "banana"} where "is_ios" and "is_20_percent" are names of conditions in the ordered condition list. The value of fruit would evaluate to apple if is_ios is true. Otherwise, if is_in_20_percent is true, fruit would evaluate to banana, and if is_ios and is_in_20_percent are both false, fruit would evaluate to pear. If no default value were specified, and is_ios and is_in_20_percent were both false, no value for fruit would be returned from the Remote Config server to the client.

Once a project's Remote Config template has been published via a successful projects.updateRemoteConfig call, clients can fetch these parameter values and display them to users.

JSON representation
{
  "conditions": [
    {
      object(RemoteConfigCondition)
    }
  ],
  "parameters": {
    string: {
      object(RemoteConfigParameter)
    },
    ...
  },
  "version": {
    object(Version)
  }
}
Fields
conditions[]

object(RemoteConfigCondition)

A list of conditions in descending order by priority.

The values of the google.firebase.remoteconfig.v1.RemoteConfigCondition.name entries must be unique.

parameters

map (key: string, value: object(RemoteConfigParameter))

Map of parameter keys to their optional default values and optional conditional values.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

version

object(Version)

Output only, except for the version description. Metadata associated with a particular version of a template. A version's description field may be specified in projects.updateRemoteConfig calls.

RemoteConfigCondition

A condition targeting a specific group of users. A list of these conditions make up part of a RemoteConfig object.

JSON representation
{
  "name": string,
  "expression": string,
  "tagColor": enum(ConditionDisplayColor)
}
Fields
name

string

Required. A non-empty and unique name of this condition.

expression

string

Required. The logic of this condition.

See the documentation regarding Condition Expressions for the expected syntax of this field.

tagColor

enum(ConditionDisplayColor)

Optional. The color associated with this condition for display purposes in the Firebase Console. Not specifying this value or having "CONDITION_DISPLAY_COLOR_UNSPECIFIED" results in the Console picking an arbitrary color to associate with the condition.

ConditionDisplayColor

List of colors that are associated with Conditions for display purposes.

Enums
CONDITION_DISPLAY_COLOR_UNSPECIFIED
BLUE Blue
BROWN Brown
CYAN Cyan
DEEP_ORANGE aka "Red Orange"
GREEN Green
INDIGO Indigo
LIME Lime
ORANGE Orange
PINK Pink
PURPLE Purple
TEAL Teal