mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
update all json files
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
},
|
||||
"id": "fcm:v1",
|
||||
"kind": "discovery#restDescription",
|
||||
"mtlsRootUrl": "https://fcm.mtls.googleapis.com/",
|
||||
"name": "fcm",
|
||||
"ownerDomain": "google.com",
|
||||
"ownerName": "Google",
|
||||
@@ -141,7 +142,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"revision": "20190703",
|
||||
"revision": "20200406",
|
||||
"rootUrl": "https://fcm.googleapis.com/",
|
||||
"schemas": {
|
||||
"AndroidConfig": {
|
||||
@@ -159,6 +160,10 @@
|
||||
"description": "Arbitrary key/value payload. If present, it will override\ngoogle.firebase.fcm.v1.Message.data.",
|
||||
"type": "object"
|
||||
},
|
||||
"directBootOk": {
|
||||
"description": "If set to true, messages will be allowed to be delivered to the app while\nthe device is in direct boot mode. See [Support Direct Boot\nmode](https://developer.android.com/training/articles/direct-boot).",
|
||||
"type": "boolean"
|
||||
},
|
||||
"fcmOptions": {
|
||||
"$ref": "AndroidFcmOptions",
|
||||
"description": "Options for features provided by the FCM SDK for Android."
|
||||
@@ -233,18 +238,80 @@
|
||||
"description": "The notification's icon color, expressed in #rrggbb format.",
|
||||
"type": "string"
|
||||
},
|
||||
"defaultLightSettings": {
|
||||
"description": "If set to true, use the Android framework's default LED light settings for\nthe notification. Default values are specified in\n[config.xml](https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/values/config.xml).\nIf `default_light_settings` is set to true and `light_settings` is also\nset, the user-specified `light_settings` is used instead of the\ndefault value.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"defaultSound": {
|
||||
"description": "If set to true, use the Android framework's default sound for the\nnotification. Default values are specified in\n[config.xml](https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/values/config.xml).",
|
||||
"type": "boolean"
|
||||
},
|
||||
"defaultVibrateTimings": {
|
||||
"description": "If set to true, use the Android framework's default vibrate pattern for the\nnotification. Default values are specified in\n[config.xml](https://android.googlesource.com/platform/frameworks/base/+/master/core/res/res/values/config.xml).\nIf `default_vibrate_timings` is set to true and `vibrate_timings` is also\nset, the default value is used instead of the user-specified\n`vibrate_timings`.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"eventTime": {
|
||||
"description": "Set the time that the event in the notification occurred. Notifications in\nthe panel are sorted by this time. A point in time is represented using\n[protobuf.Timestamp](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/Timestamp).",
|
||||
"format": "google-datetime",
|
||||
"type": "string"
|
||||
},
|
||||
"icon": {
|
||||
"description": "The notification's icon.\nSets the notification icon to myicon for drawable resource myicon.\nIf you don't send this key in the request, FCM displays the launcher icon\nspecified in your app manifest.",
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"description": "Contains the URL of an image that is going to be displayed in a\nnotification. If present, it will override\ngoogle.firebase.fcm.v1.Notification.image.",
|
||||
"type": "string"
|
||||
},
|
||||
"lightSettings": {
|
||||
"$ref": "LightSettings",
|
||||
"description": "Settings to control the notification's LED blinking rate and color if LED\nis available on the device. The total blinking time is controlled by the\nOS."
|
||||
},
|
||||
"localOnly": {
|
||||
"description": "Set whether or not this notification is relevant only to the current\ndevice. Some notifications can be bridged to other devices for remote\ndisplay, such as a Wear OS watch. This hint can be set to recommend this\nnotification not be bridged. See [Wear OS\nguides](https://developer.android.com/training/wearables/notifications/bridger#existing-method-of-preventing-bridging)",
|
||||
"type": "boolean"
|
||||
},
|
||||
"notificationCount": {
|
||||
"description": "Sets the number of items this notification represents. May be displayed as\na badge count for launchers that support badging.See [Notification\nBadge](https://developer.android.com/training/notify-user/badges).\nFor example, this might be useful if you're using just one notification to\nrepresent multiple new messages but you want the count here to represent\nthe number of total new messages.\nIf zero or unspecified, systems that support badging use the default, which\nis to increment a number displayed on the long-press menu each time a new\nnotification arrives.",
|
||||
"format": "int32",
|
||||
"type": "integer"
|
||||
},
|
||||
"notificationPriority": {
|
||||
"description": "Set the relative priority for this notification. Priority is an indication\nof how much of the user's attention should be consumed by this\nnotification. Low-priority notifications may be hidden from the user in\ncertain situations, while the user might be interrupted for a\nhigher-priority notification. The effect of setting the same priorities may\ndiffer slightly on different platforms. Note this priority differs from\n`AndroidMessagePriority`. This priority is processed by the client after\nthe message has been delivered, whereas\n[AndroidMessagePriority](https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#androidmessagepriority)\nis an FCM concept that controls when the message is delivered.",
|
||||
"enum": [
|
||||
"PRIORITY_UNSPECIFIED",
|
||||
"PRIORITY_MIN",
|
||||
"PRIORITY_LOW",
|
||||
"PRIORITY_DEFAULT",
|
||||
"PRIORITY_HIGH",
|
||||
"PRIORITY_MAX"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"If priority is unspecified, notification priority is set to\n`PRIORITY_DEFAULT`.",
|
||||
"Lowest notification priority. Notifications with this `PRIORITY_MIN`\nmight not be shown to the user except under special circumstances,\nsuch as detailed notification logs.",
|
||||
"Lower notification priority. The UI may choose to show the notifications\nsmaller, or at a different position in the list, compared with\nnotifications with `PRIORITY_DEFAULT`.",
|
||||
"Default notification priority. If the application does not prioritize its\nown notifications, use this value for all notifications.",
|
||||
"Higher notification priority. Use this for more important notifications\nor alerts. The UI may choose to show these notifications larger, or at a\ndifferent position in the notification lists, compared with notifications\nwith `PRIORITY_DEFAULT`.",
|
||||
"Highest notification priority. Use this for the application's most\nimportant items that require the user's prompt attention or input."
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"sound": {
|
||||
"description": "The sound to play when the device receives the notification.\nSupports \"default\" or the filename of a sound resource bundled in the app.\nSound files must reside in /res/raw/.",
|
||||
"type": "string"
|
||||
},
|
||||
"sticky": {
|
||||
"description": "When set to false or unset, the notification is automatically\ndismissed when the user clicks it in the panel. When set to true, the\nnotification persists even when the user clicks it.",
|
||||
"type": "boolean"
|
||||
},
|
||||
"tag": {
|
||||
"description": "Identifier used to replace existing notifications in the notification\ndrawer.\nIf not specified, each request creates a new notification.\nIf specified and a notification with the same tag is already being shown,\nthe new notification replaces the existing one in the notification drawer.",
|
||||
"type": "string"
|
||||
},
|
||||
"ticker": {
|
||||
"description": "Sets the \"ticker\" text, which is sent to accessibility services.\nPrior to API level 21 (`Lollipop`), sets the text that is displayed in the\nstatus bar when the notification first arrives.",
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"description": "The notification's title. If present, it will override\ngoogle.firebase.fcm.v1.Notification.title.",
|
||||
"type": "string"
|
||||
@@ -259,6 +326,30 @@
|
||||
"titleLocKey": {
|
||||
"description": "The key to the title string in the app's string resources to use to\nlocalize the title text to the user's current localization.\nSee [String Resources](https://goo.gl/NdFZGI) for more information.",
|
||||
"type": "string"
|
||||
},
|
||||
"vibrateTimings": {
|
||||
"description": "Set the vibration pattern to use. Pass in an array of\n[protobuf.Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)\nto turn on or off the vibrator. The first value indicates the `Duration` to\nwait before turning the vibrator on. The next value indicates the\n`Duration` to keep the vibrator on. Subsequent values alternate between\n`Duration` to turn the vibrator off and to turn the vibrator on.\nIf `vibrate_timings` is set and `default_vibrate_timings` is set to `true`,\nthe default value is used instead of the user-specified `vibrate_timings`.",
|
||||
"items": {
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"visibility": {
|
||||
"description": "Set the\n[Notification.visibility](https://developer.android.com/reference/android/app/Notification.html#visibility)\nof the notification.",
|
||||
"enum": [
|
||||
"VISIBILITY_UNSPECIFIED",
|
||||
"PRIVATE",
|
||||
"PUBLIC",
|
||||
"SECRET"
|
||||
],
|
||||
"enumDescriptions": [
|
||||
"If unspecified, default to `Visibility.PRIVATE`.",
|
||||
"Show this notification on all lockscreens, but conceal sensitive or\nprivate information on secure lockscreens.",
|
||||
"Show this notification in its entirety on all lockscreens.",
|
||||
"Do not reveal any part of this notification on a secure lockscreen."
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -275,7 +366,7 @@
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "HTTP request headers defined in Apple Push Notification Service. Refer to\n[APNs request headers](https://goo.gl/C6Yhia) for\nsupported headers, e.g. \"apns-priority\": \"10\".",
|
||||
"description": "HTTP request headers defined in Apple Push Notification Service. Refer to\n[APNs request\nheaders](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns)\nfor supported headers, e.g. \"apns-priority\": \"10\".",
|
||||
"type": "object"
|
||||
},
|
||||
"payload": {
|
||||
@@ -283,7 +374,7 @@
|
||||
"description": "Properties of the object.",
|
||||
"type": "any"
|
||||
},
|
||||
"description": "APNs payload as a JSON object, including both `aps` dictionary and custom\npayload. See [Payload Key Reference](https://goo.gl/32Pl5W).\nIf present, it overrides google.firebase.fcm.v1.Notification.title\nand google.firebase.fcm.v1.Notification.body.",
|
||||
"description": "APNs payload as a JSON object, including both `aps` dictionary and custom\npayload. See [Payload Key\nReference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification).\nIf present, it overrides google.firebase.fcm.v1.Notification.title\nand google.firebase.fcm.v1.Notification.body.",
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
@@ -296,6 +387,37 @@
|
||||
"analyticsLabel": {
|
||||
"description": "Label associated with the message's analytics data.",
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"description": "Contains the URL of an image that is going to be displayed in a\nnotification. If present, it will override\ngoogle.firebase.fcm.v1.Notification.image.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Color": {
|
||||
"description": "Represents a color in the RGBA color space. This representation is designed\nfor simplicity of conversion to/from color representations in various\nlanguages over compactness; for example, the fields of this representation\ncan be trivially provided to the constructor of \"java.awt.Color\" in Java; it\ncan also be trivially provided to UIColor's \"+colorWithRed:green:blue:alpha\"\nmethod in iOS; and, with just a little work, it can be easily formatted into\na CSS \"rgba()\" string in JavaScript, as well.\n\nNote: this proto does not carry information about the absolute color space\nthat should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,\nDCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color\nspace.\n\nExample (Java):\n\n import com.google.type.Color;\n\n // ...\n public static java.awt.Color fromProto(Color protocolor) {\n float alpha = protocolor.hasAlpha()\n ? protocolor.getAlpha().getValue()\n : 1.0;\n\n return new java.awt.Color(\n protocolor.getRed(),\n protocolor.getGreen(),\n protocolor.getBlue(),\n alpha);\n }\n\n public static Color toProto(java.awt.Color color) {\n float red = (float) color.getRed();\n float green = (float) color.getGreen();\n float blue = (float) color.getBlue();\n float denominator = 255.0;\n Color.Builder resultBuilder =\n Color\n .newBuilder()\n .setRed(red / denominator)\n .setGreen(green / denominator)\n .setBlue(blue / denominator);\n int alpha = color.getAlpha();\n if (alpha != 255) {\n result.setAlpha(\n FloatValue\n .newBuilder()\n .setValue(((float) alpha) / denominator)\n .build());\n }\n return resultBuilder.build();\n }\n // ...\n\nExample (iOS / Obj-C):\n\n // ...\n static UIColor* fromProto(Color* protocolor) {\n float red = [protocolor red];\n float green = [protocolor green];\n float blue = [protocolor blue];\n FloatValue* alpha_wrapper = [protocolor alpha];\n float alpha = 1.0;\n if (alpha_wrapper != nil) {\n alpha = [alpha_wrapper value];\n }\n return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];\n }\n\n static Color* toProto(UIColor* color) {\n CGFloat red, green, blue, alpha;\n if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {\n return nil;\n }\n Color* result = [[Color alloc] init];\n [result setRed:red];\n [result setGreen:green];\n [result setBlue:blue];\n if (alpha <= 0.9999) {\n [result setAlpha:floatWrapperWithValue(alpha)];\n }\n [result autorelease];\n return result;\n }\n // ...\n\n Example (JavaScript):\n\n // ...\n\n var protoToCssColor = function(rgb_color) {\n var redFrac = rgb_color.red || 0.0;\n var greenFrac = rgb_color.green || 0.0;\n var blueFrac = rgb_color.blue || 0.0;\n var red = Math.floor(redFrac * 255);\n var green = Math.floor(greenFrac * 255);\n var blue = Math.floor(blueFrac * 255);\n\n if (!('alpha' in rgb_color)) {\n return rgbToCssColor_(red, green, blue);\n }\n\n var alphaFrac = rgb_color.alpha.value || 0.0;\n var rgbParams = [red, green, blue].join(',');\n return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');\n };\n\n var rgbToCssColor_ = function(red, green, blue) {\n var rgbNumber = new Number((red << 16) | (green << 8) | blue);\n var hexString = rgbNumber.toString(16);\n var missingZeros = 6 - hexString.length;\n var resultBuilder = ['#'];\n for (var i = 0; i < missingZeros; i++) {\n resultBuilder.push('0');\n }\n resultBuilder.push(hexString);\n return resultBuilder.join('');\n };\n\n // ...",
|
||||
"id": "Color",
|
||||
"properties": {
|
||||
"alpha": {
|
||||
"description": "The fraction of this color that should be applied to the pixel. That is,\nthe final pixel color is defined by the equation:\n\n pixel color = alpha * (this color) + (1.0 - alpha) * (background color)\n\nThis means that a value of 1.0 corresponds to a solid color, whereas\na value of 0.0 corresponds to a completely transparent color. This\nuses a wrapper message rather than a simple float scalar so that it is\npossible to distinguish between a default value and the value being unset.\nIf omitted, this color object is to be rendered as a solid color\n(as if the alpha value had been explicitly given with a value of 1.0).",
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
},
|
||||
"blue": {
|
||||
"description": "The amount of blue in the color as a value in the interval [0, 1].",
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
},
|
||||
"green": {
|
||||
"description": "The amount of green in the color as a value in the interval [0, 1].",
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
},
|
||||
"red": {
|
||||
"description": "The amount of red in the color as a value in the interval [0, 1].",
|
||||
"format": "float",
|
||||
"type": "number"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
@@ -311,6 +433,27 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"LightSettings": {
|
||||
"description": "Settings to control notification LED.",
|
||||
"id": "LightSettings",
|
||||
"properties": {
|
||||
"color": {
|
||||
"$ref": "Color",
|
||||
"description": "Required. Set `color` of the LED with\n[google.type.Color](https://github.com/googleapis/googleapis/blob/master/google/type/color.proto)."
|
||||
},
|
||||
"lightOffDuration": {
|
||||
"description": "Required. Along with `light_on_duration `, define the blink rate of LED\nflashes. Resolution defined by\n[proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
},
|
||||
"lightOnDuration": {
|
||||
"description": "Required. Along with `light_off_duration`, define the blink rate of LED\nflashes. Resolution defined by\n[proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)",
|
||||
"format": "google-duration",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"Message": {
|
||||
"description": "Message to send by Firebase Cloud Messaging Service.",
|
||||
"id": "Message",
|
||||
@@ -331,7 +474,7 @@
|
||||
"additionalProperties": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": "Input only. Arbitrary key/value payload.",
|
||||
"description": "Input only. Arbitrary key/value payload. The key should not be a reserved\nword (\"from\", \"message_type\", or any word starting with \"google\" or \"gcm\").",
|
||||
"type": "object"
|
||||
},
|
||||
"fcmOptions": {
|
||||
@@ -369,6 +512,10 @@
|
||||
"description": "The notification's body text.",
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"description": "Contains the URL of an image that is going to be downloaded on the device\nand displayed in a notification.\nJPEG, PNG, BMP have full support across platforms. Animated GIF and video\nonly work on iOS. WebP and HEIF have varying levels of support across\nplatforms and platform versions.\nAndroid has 1MB image size limit.\nQuota usage and implications/costs for hosting image on Firebase Storage:\nhttps://firebase.google.com/pricing",
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"description": "The notification's title.",
|
||||
"type": "string"
|
||||
@@ -428,6 +575,10 @@
|
||||
"description": "Options for features provided by the FCM SDK for Web.",
|
||||
"id": "WebpushFcmOptions",
|
||||
"properties": {
|
||||
"analyticsLabel": {
|
||||
"description": "Label associated with the message's analytics data.",
|
||||
"type": "string"
|
||||
},
|
||||
"link": {
|
||||
"description": "The link to open when the user clicks on the notification.\nFor all URL values, HTTPS is required.",
|
||||
"type": "string"
|
||||
|
||||
Reference in New Issue
Block a user