google-api-client 0.42.1 → 0.42.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +76 -0
  3. data/generated/google/apis/admob_v1.rb +1 -1
  4. data/generated/google/apis/admob_v1/classes.rb +3 -1
  5. data/generated/google/apis/apigee_v1.rb +1 -1
  6. data/generated/google/apis/apigee_v1/classes.rb +6 -12
  7. data/generated/google/apis/apigee_v1/representations.rb +1 -2
  8. data/generated/google/apis/apigee_v1/service.rb +18 -5
  9. data/generated/google/apis/appengine_v1.rb +1 -1
  10. data/generated/google/apis/appengine_v1/service.rb +6 -3
  11. data/generated/google/apis/appengine_v1beta.rb +1 -1
  12. data/generated/google/apis/appengine_v1beta/service.rb +6 -2
  13. data/generated/google/apis/appsmarket_v2.rb +1 -1
  14. data/generated/google/apis/bigquery_v2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2/classes.rb +198 -3
  16. data/generated/google/apis/bigquery_v2/representations.rb +70 -0
  17. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  18. data/generated/google/apis/bigtableadmin_v1/classes.rb +267 -0
  19. data/generated/google/apis/bigtableadmin_v1/representations.rb +100 -0
  20. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  21. data/generated/google/apis/bigtableadmin_v2/classes.rb +355 -0
  22. data/generated/google/apis/bigtableadmin_v2/representations.rb +146 -0
  23. data/generated/google/apis/bigtableadmin_v2/service.rb +298 -0
  24. data/generated/google/apis/books_v1.rb +1 -1
  25. data/generated/google/apis/books_v1/classes.rb +140 -159
  26. data/generated/google/apis/books_v1/service.rb +47 -49
  27. data/generated/google/apis/chat_v1.rb +1 -1
  28. data/generated/google/apis/chat_v1/classes.rb +19 -0
  29. data/generated/google/apis/chat_v1/representations.rb +13 -0
  30. data/generated/google/apis/chat_v1/service.rb +39 -0
  31. data/generated/google/apis/chromeuxreport_v1.rb +1 -1
  32. data/generated/google/apis/chromeuxreport_v1/classes.rb +22 -0
  33. data/generated/google/apis/chromeuxreport_v1/representations.rb +2 -0
  34. data/generated/google/apis/{cloudfunctions_v1beta2.rb → cloudasset_v1p5beta1.rb} +9 -9
  35. data/generated/google/apis/cloudasset_v1p5beta1/classes.rb +1537 -0
  36. data/generated/google/apis/cloudasset_v1p5beta1/representations.rb +399 -0
  37. data/generated/google/apis/cloudasset_v1p5beta1/service.rb +129 -0
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  40. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  41. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  42. data/generated/google/apis/cloudfunctions_v1/classes.rb +0 -45
  43. data/generated/google/apis/cloudfunctions_v1/representations.rb +0 -17
  44. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  45. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +503 -754
  46. data/generated/google/apis/cloudresourcemanager_v1/service.rb +198 -249
  47. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  48. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +258 -429
  49. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +136 -178
  50. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +258 -414
  52. data/generated/google/apis/cloudresourcemanager_v2/service.rb +96 -129
  53. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  54. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +258 -414
  55. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +96 -129
  56. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  57. data/generated/google/apis/cloudscheduler_v1/classes.rb +11 -0
  58. data/generated/google/apis/cloudscheduler_v1/representations.rb +1 -0
  59. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  60. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +11 -0
  61. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +1 -0
  62. data/generated/google/apis/cloudshell_v1.rb +1 -1
  63. data/generated/google/apis/cloudshell_v1/classes.rb +2 -2
  64. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  65. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +8 -5
  66. data/generated/google/apis/content_v2.rb +1 -1
  67. data/generated/google/apis/content_v2/classes.rb +6 -0
  68. data/generated/google/apis/content_v2/representations.rb +1 -0
  69. data/generated/google/apis/content_v2_1.rb +1 -1
  70. data/generated/google/apis/content_v2_1/classes.rb +6 -0
  71. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  72. data/generated/google/apis/customsearch_v1.rb +1 -1
  73. data/generated/google/apis/customsearch_v1/classes.rb +14 -10
  74. data/generated/google/apis/customsearch_v1/service.rb +6 -6
  75. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  76. data/generated/google/apis/datacatalog_v1beta1/classes.rb +380 -569
  77. data/generated/google/apis/datacatalog_v1beta1/service.rb +319 -440
  78. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  79. data/generated/google/apis/dataflow_v1b3/classes.rb +2 -1
  80. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  81. data/generated/google/apis/dfareporting_v3_4.rb +1 -1
  82. data/generated/google/apis/dfareporting_v3_4/classes.rb +421 -0
  83. data/generated/google/apis/dfareporting_v3_4/representations.rb +182 -0
  84. data/generated/google/apis/dialogflow_v2.rb +1 -1
  85. data/generated/google/apis/dialogflow_v2/classes.rb +148 -35
  86. data/generated/google/apis/dialogflow_v2/representations.rb +15 -0
  87. data/generated/google/apis/dialogflow_v2/service.rb +4 -0
  88. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  89. data/generated/google/apis/dialogflow_v2beta1/classes.rb +164 -36
  90. data/generated/google/apis/dialogflow_v2beta1/representations.rb +15 -0
  91. data/generated/google/apis/dialogflow_v2beta1/service.rb +8 -0
  92. data/generated/google/apis/displayvideo_v1.rb +7 -1
  93. data/generated/google/apis/displayvideo_v1/classes.rb +1666 -1726
  94. data/generated/google/apis/displayvideo_v1/representations.rb +264 -0
  95. data/generated/google/apis/displayvideo_v1/service.rb +1173 -926
  96. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  97. data/generated/google/apis/doubleclicksearch_v2/classes.rb +109 -126
  98. data/generated/google/apis/doubleclicksearch_v2/service.rb +3 -4
  99. data/generated/google/apis/fcm_v1.rb +1 -1
  100. data/generated/google/apis/fcm_v1/classes.rb +245 -393
  101. data/generated/google/apis/fcm_v1/service.rb +5 -6
  102. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  103. data/generated/google/apis/firebase_v1beta1/classes.rb +10 -16
  104. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  105. data/generated/google/apis/firebaseml_v1beta2/classes.rb +9 -0
  106. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
  107. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  108. data/generated/google/apis/games_configuration_v1configuration/service.rb +2 -2
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_management_v1management/service.rb +2 -2
  111. data/generated/google/apis/games_v1.rb +1 -1
  112. data/generated/google/apis/games_v1/classes.rb +1 -1
  113. data/generated/google/apis/games_v1/service.rb +2 -2
  114. data/generated/google/apis/gmail_v1.rb +1 -1
  115. data/generated/google/apis/gmail_v1/classes.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +2 -1
  117. data/generated/google/apis/gmailpostmastertools_v1beta1.rb +4 -1
  118. data/generated/google/apis/monitoring_v1.rb +1 -1
  119. data/generated/google/apis/monitoring_v1/classes.rb +2 -1
  120. data/generated/google/apis/monitoring_v3.rb +1 -1
  121. data/generated/google/apis/monitoring_v3/classes.rb +5 -4
  122. data/generated/google/apis/monitoring_v3/service.rb +5 -4
  123. data/generated/google/apis/osconfig_v1.rb +1 -1
  124. data/generated/google/apis/osconfig_v1/classes.rb +75 -0
  125. data/generated/google/apis/osconfig_v1/representations.rb +35 -0
  126. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  127. data/generated/google/apis/osconfig_v1beta/classes.rb +75 -0
  128. data/generated/google/apis/osconfig_v1beta/representations.rb +35 -0
  129. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  130. data/generated/google/apis/people_v1.rb +1 -1
  131. data/generated/google/apis/people_v1/classes.rb +243 -397
  132. data/generated/google/apis/people_v1/service.rb +156 -384
  133. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  134. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +0 -73
  135. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +0 -32
  136. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +0 -477
  137. data/generated/google/apis/pubsub_v1.rb +1 -1
  138. data/generated/google/apis/pubsub_v1/classes.rb +21 -0
  139. data/generated/google/apis/pubsub_v1/representations.rb +2 -0
  140. data/generated/google/apis/realtimebidding_v1.rb +1 -1
  141. data/generated/google/apis/redis_v1.rb +1 -1
  142. data/generated/google/apis/redis_v1/classes.rb +397 -0
  143. data/generated/google/apis/redis_v1/representations.rb +139 -0
  144. data/generated/google/apis/redis_v1beta1.rb +1 -1
  145. data/generated/google/apis/redis_v1beta1/classes.rb +397 -0
  146. data/generated/google/apis/redis_v1beta1/representations.rb +139 -0
  147. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  148. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  149. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  150. data/generated/google/apis/run_v1.rb +1 -1
  151. data/generated/google/apis/run_v1/classes.rb +835 -1248
  152. data/generated/google/apis/run_v1/service.rb +195 -245
  153. data/generated/google/apis/run_v1alpha1.rb +1 -1
  154. data/generated/google/apis/run_v1alpha1/classes.rb +934 -1331
  155. data/generated/google/apis/run_v1alpha1/service.rb +321 -377
  156. data/generated/google/apis/run_v1beta1.rb +1 -1
  157. data/generated/google/apis/run_v1beta1/classes.rb +209 -276
  158. data/generated/google/apis/run_v1beta1/service.rb +16 -18
  159. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  160. data/generated/google/apis/sasportal_v1alpha1/classes.rb +0 -73
  161. data/generated/google/apis/sasportal_v1alpha1/representations.rb +0 -32
  162. data/generated/google/apis/sasportal_v1alpha1/service.rb +0 -477
  163. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  164. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +2 -2
  165. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +7 -7
  166. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  167. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +1 -1
  168. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  169. data/generated/google/apis/servicenetworking_v1/classes.rb +1 -1
  170. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  171. data/generated/google/apis/servicenetworking_v1beta/classes.rb +1 -1
  172. data/generated/google/apis/serviceusage_v1.rb +1 -1
  173. data/generated/google/apis/serviceusage_v1/classes.rb +1 -1
  174. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  175. data/generated/google/apis/serviceusage_v1beta1/classes.rb +1 -1
  176. data/generated/google/apis/spanner_v1.rb +1 -1
  177. data/generated/google/apis/sql_v1beta4.rb +1 -1
  178. data/generated/google/apis/sql_v1beta4/classes.rb +207 -200
  179. data/generated/google/apis/sql_v1beta4/representations.rb +2 -1
  180. data/generated/google/apis/sql_v1beta4/service.rb +2 -2
  181. data/generated/google/apis/testing_v1.rb +1 -1
  182. data/generated/google/apis/testing_v1/classes.rb +63 -0
  183. data/generated/google/apis/testing_v1/representations.rb +32 -0
  184. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  185. data/generated/google/apis/toolresults_v1beta3/classes.rb +9 -0
  186. data/generated/google/apis/toolresults_v1beta3/representations.rb +1 -0
  187. data/generated/google/apis/toolresults_v1beta3/service.rb +498 -498
  188. data/generated/google/apis/webfonts_v1.rb +1 -1
  189. data/generated/google/apis/webfonts_v1/service.rb +2 -2
  190. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  191. data/generated/google/apis/youtube_partner_v1/classes.rb +637 -761
  192. data/generated/google/apis/youtube_partner_v1/service.rb +511 -651
  193. data/generated/google/apis/youtube_v3.rb +1 -1
  194. data/generated/google/apis/youtube_v3/classes.rb +6 -0
  195. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  196. data/generated/google/apis/youtube_v3/service.rb +32 -32
  197. data/lib/google/apis/version.rb +1 -1
  198. metadata +7 -7
  199. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +0 -848
  200. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +0 -346
  201. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +0 -486
@@ -60,8 +60,7 @@ module Google
60
60
  # @param [Fixnum] row_count
61
61
  # The number of conversions to return per call.
62
62
  # @param [Fixnum] start_date
63
- # First date (inclusive) on which to retrieve conversions. Format is
64
- # yyyymmdd.
63
+ # First date (inclusive) on which to retrieve conversions. Format is yyyymmdd.
65
64
  # @param [Fixnum] start_row
66
65
  # The 0-based starting index for retrieving conversions results.
67
66
  # @param [Fixnum] ad_group_id
@@ -169,8 +168,8 @@ module Google
169
168
  execute_or_queue_command(command, &block)
170
169
  end
171
170
 
172
- # Updates the availabilities of a batch of floodlight activities in
173
- # DoubleClick Search.
171
+ # Updates the availabilities of a batch of floodlight activities in DoubleClick
172
+ # Search.
174
173
  # @param [Google::Apis::DoubleclicksearchV2::UpdateAvailabilityRequest] update_availability_request_object
175
174
  # @param [String] fields
176
175
  # Selector specifying which fields to include in a partial response.
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://firebase.google.com/docs/cloud-messaging
27
27
  module FcmV1
28
28
  VERSION = 'V1'
29
- REVISION = '20200622'
29
+ REVISION = '20200720'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,27 +22,27 @@ module Google
22
22
  module Apis
23
23
  module FcmV1
24
24
 
25
- # Android specific options for messages sent through
26
- # [FCM connection server](https://goo.gl/4GLdUl).
25
+ # Android specific options for messages sent through [FCM connection server](
26
+ # https://goo.gl/4GLdUl).
27
27
  class AndroidConfig
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
- # An identifier of a group of messages that can be collapsed, so that only
31
- # the last message gets sent when delivery can be resumed. A maximum of 4
32
- # different collapse keys is allowed at any given time.
30
+ # An identifier of a group of messages that can be collapsed, so that only the
31
+ # last message gets sent when delivery can be resumed. A maximum of 4 different
32
+ # collapse keys is allowed at any given time.
33
33
  # Corresponds to the JSON property `collapseKey`
34
34
  # @return [String]
35
35
  attr_accessor :collapse_key
36
36
 
37
- # Arbitrary key/value payload. If present, it will override
38
- # google.firebase.fcm.v1.Message.data.
37
+ # Arbitrary key/value payload. If present, it will override google.firebase.fcm.
38
+ # v1.Message.data.
39
39
  # Corresponds to the JSON property `data`
40
40
  # @return [Hash<String,String>]
41
41
  attr_accessor :data
42
42
 
43
- # If set to true, messages will be allowed to be delivered to the app while
44
- # the device is in direct boot mode. See [Support Direct Boot
45
- # mode](https://developer.android.com/training/articles/direct-boot).
43
+ # If set to true, messages will be allowed to be delivered to the app while the
44
+ # device is in direct boot mode. See [Support Direct Boot mode](https://
45
+ # developer.android.com/training/articles/direct-boot).
46
46
  # Corresponds to the JSON property `directBootOk`
47
47
  # @return [Boolean]
48
48
  attr_accessor :direct_boot_ok
@@ -58,9 +58,8 @@ module Google
58
58
  # @return [Google::Apis::FcmV1::AndroidNotification]
59
59
  attr_accessor :notification
60
60
 
61
- # Message priority. Can take "normal" and "high" values.
62
- # For more information, see [Setting the priority of a
63
- # message](https://goo.gl/GjONJv).
61
+ # Message priority. Can take "normal" and "high" values. For more information,
62
+ # see [Setting the priority of a message](https://goo.gl/GjONJv).
64
63
  # Corresponds to the JSON property `priority`
65
64
  # @return [String]
66
65
  attr_accessor :priority
@@ -71,17 +70,16 @@ module Google
71
70
  # @return [String]
72
71
  attr_accessor :restricted_package_name
73
72
 
74
- # How long (in seconds) the message should be kept in FCM storage if the
75
- # device is offline. The maximum time to live supported is 4 weeks, and the
76
- # default value is 4 weeks if not set. Set it to 0 if want to send the
77
- # message immediately.
78
- # In JSON format, the Duration type is encoded as a string rather than an
79
- # object, where the string ends in the suffix "s" (indicating seconds) and
80
- # is preceded by the number of seconds, with nanoseconds expressed as
73
+ # How long (in seconds) the message should be kept in FCM storage if the device
74
+ # is offline. The maximum time to live supported is 4 weeks, and the default
75
+ # value is 4 weeks if not set. Set it to 0 if want to send the message
76
+ # immediately. In JSON format, the Duration type is encoded as a string rather
77
+ # than an object, where the string ends in the suffix "s" (indicating seconds)
78
+ # and is preceded by the number of seconds, with nanoseconds expressed as
81
79
  # fractional seconds. For example, 3 seconds with 0 nanoseconds should be
82
- # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
83
- # be expressed in JSON format as "3.000000001s". The ttl will be rounded down
84
- # to the nearest second.
80
+ # encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should be
81
+ # expressed in JSON format as "3.000000001s". The ttl will be rounded down to
82
+ # the nearest second.
85
83
  # Corresponds to the JSON property `ttl`
86
84
  # @return [String]
87
85
  attr_accessor :ttl
@@ -126,42 +124,40 @@ module Google
126
124
  class AndroidNotification
127
125
  include Google::Apis::Core::Hashable
128
126
 
129
- # The notification's body text. If present, it will override
130
- # google.firebase.fcm.v1.Notification.body.
127
+ # The notification's body text. If present, it will override google.firebase.fcm.
128
+ # v1.Notification.body.
131
129
  # Corresponds to the JSON property `body`
132
130
  # @return [String]
133
131
  attr_accessor :body
134
132
 
135
133
  # Variable string values to be used in place of the format specifiers in
136
134
  # body_loc_key to use to localize the body text to the user's current
137
- # localization.
138
- # See [Formatting and Styling](https://goo.gl/MalYE3) for more information.
135
+ # localization. See [Formatting and Styling](https://goo.gl/MalYE3) for more
136
+ # information.
139
137
  # Corresponds to the JSON property `bodyLocArgs`
140
138
  # @return [Array<String>]
141
139
  attr_accessor :body_loc_args
142
140
 
143
141
  # The key to the body string in the app's string resources to use to localize
144
- # the body text to the user's current localization.
145
- # See [String Resources](https://goo.gl/NdFZGI) for more information.
142
+ # the body text to the user's current localization. See [String Resources](https:
143
+ # //goo.gl/NdFZGI) for more information.
146
144
  # Corresponds to the JSON property `bodyLocKey`
147
145
  # @return [String]
148
146
  attr_accessor :body_loc_key
149
147
 
150
- # The [notification's channel
151
- # id](https://developer.android.com/guide/topics/ui/notifiers/notifications#
152
- # ManageChannels)
153
- # (new in Android O). The app must create a channel with this channel ID
154
- # before any notification with this channel ID is received. If you don't send
155
- # this channel ID in the request, or if the channel ID provided has not yet
156
- # been created by the app, FCM uses the channel ID specified in the app
157
- # manifest.
148
+ # The [notification's channel id](https://developer.android.com/guide/topics/ui/
149
+ # notifiers/notifications#ManageChannels) (new in Android O). The app must
150
+ # create a channel with this channel ID before any notification with this
151
+ # channel ID is received. If you don't send this channel ID in the request, or
152
+ # if the channel ID provided has not yet been created by the app, FCM uses the
153
+ # channel ID specified in the app manifest.
158
154
  # Corresponds to the JSON property `channelId`
159
155
  # @return [String]
160
156
  attr_accessor :channel_id
161
157
 
162
- # The action associated with a user click on the notification.
163
- # If specified, an activity with a matching intent filter is launched when
164
- # a user clicks on the notification.
158
+ # The action associated with a user click on the notification. If specified, an
159
+ # activity with a matching intent filter is launched when a user clicks on the
160
+ # notification.
165
161
  # Corresponds to the JSON property `clickAction`
166
162
  # @return [String]
167
163
  attr_accessor :click_action
@@ -171,58 +167,52 @@ module Google
171
167
  # @return [String]
172
168
  attr_accessor :color
173
169
 
174
- # If set to true, use the Android framework's default LED light settings for
175
- # the notification. Default values are specified in
176
- # [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
177
- # master/core/res/res/values/config.xml).
178
- # If `default_light_settings` is set to true and `light_settings` is also
179
- # set, the user-specified `light_settings` is used instead of the
180
- # default value.
170
+ # If set to true, use the Android framework's default LED light settings for the
171
+ # notification. Default values are specified in [config.xml](https://android.
172
+ # googlesource.com/platform/frameworks/base/+/master/core/res/res/values/config.
173
+ # xml). If `default_light_settings` is set to true and `light_settings` is also
174
+ # set, the user-specified `light_settings` is used instead of the default value.
181
175
  # Corresponds to the JSON property `defaultLightSettings`
182
176
  # @return [Boolean]
183
177
  attr_accessor :default_light_settings
184
178
  alias_method :default_light_settings?, :default_light_settings
185
179
 
186
- # If set to true, use the Android framework's default sound for the
187
- # notification. Default values are specified in
188
- # [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
189
- # master/core/res/res/values/config.xml).
180
+ # If set to true, use the Android framework's default sound for the notification.
181
+ # Default values are specified in [config.xml](https://android.googlesource.com/
182
+ # platform/frameworks/base/+/master/core/res/res/values/config.xml).
190
183
  # Corresponds to the JSON property `defaultSound`
191
184
  # @return [Boolean]
192
185
  attr_accessor :default_sound
193
186
  alias_method :default_sound?, :default_sound
194
187
 
195
188
  # If set to true, use the Android framework's default vibrate pattern for the
196
- # notification. Default values are specified in
197
- # [config.xml](https://android.googlesource.com/platform/frameworks/base/+/
198
- # master/core/res/res/values/config.xml).
199
- # If `default_vibrate_timings` is set to true and `vibrate_timings` is also
200
- # set, the default value is used instead of the user-specified
201
- # `vibrate_timings`.
189
+ # notification. Default values are specified in [config.xml](https://android.
190
+ # googlesource.com/platform/frameworks/base/+/master/core/res/res/values/config.
191
+ # xml). If `default_vibrate_timings` is set to true and `vibrate_timings` is
192
+ # also set, the default value is used instead of the user-specified `
193
+ # vibrate_timings`.
202
194
  # Corresponds to the JSON property `defaultVibrateTimings`
203
195
  # @return [Boolean]
204
196
  attr_accessor :default_vibrate_timings
205
197
  alias_method :default_vibrate_timings?, :default_vibrate_timings
206
198
 
207
- # Set the time that the event in the notification occurred. Notifications in
208
- # the panel are sorted by this time. A point in time is represented using
209
- # [protobuf.Timestamp](https://developers.google.com/protocol-buffers/docs/
210
- # reference/java/com/google/protobuf/Timestamp).
199
+ # Set the time that the event in the notification occurred. Notifications in the
200
+ # panel are sorted by this time. A point in time is represented using [protobuf.
201
+ # Timestamp](https://developers.google.com/protocol-buffers/docs/reference/java/
202
+ # com/google/protobuf/Timestamp).
211
203
  # Corresponds to the JSON property `eventTime`
212
204
  # @return [String]
213
205
  attr_accessor :event_time
214
206
 
215
- # The notification's icon.
216
- # Sets the notification icon to myicon for drawable resource myicon.
217
- # If you don't send this key in the request, FCM displays the launcher icon
218
- # specified in your app manifest.
207
+ # The notification's icon. Sets the notification icon to myicon for drawable
208
+ # resource myicon. If you don't send this key in the request, FCM displays the
209
+ # launcher icon specified in your app manifest.
219
210
  # Corresponds to the JSON property `icon`
220
211
  # @return [String]
221
212
  attr_accessor :icon
222
213
 
223
- # Contains the URL of an image that is going to be displayed in a
224
- # notification. If present, it will override
225
- # google.firebase.fcm.v1.Notification.image.
214
+ # Contains the URL of an image that is going to be displayed in a notification.
215
+ # If present, it will override google.firebase.fcm.v1.Notification.image.
226
216
  # Corresponds to the JSON property `image`
227
217
  # @return [String]
228
218
  attr_accessor :image
@@ -232,114 +222,107 @@ module Google
232
222
  # @return [Google::Apis::FcmV1::LightSettings]
233
223
  attr_accessor :light_settings
234
224
 
235
- # Set whether or not this notification is relevant only to the current
236
- # device. Some notifications can be bridged to other devices for remote
237
- # display, such as a Wear OS watch. This hint can be set to recommend this
238
- # notification not be bridged. See [Wear OS
239
- # guides](https://developer.android.com/training/wearables/notifications/bridger#
240
- # existing-method-of-preventing-bridging)
225
+ # Set whether or not this notification is relevant only to the current device.
226
+ # Some notifications can be bridged to other devices for remote display, such as
227
+ # a Wear OS watch. This hint can be set to recommend this notification not be
228
+ # bridged. See [Wear OS guides](https://developer.android.com/training/wearables/
229
+ # notifications/bridger#existing-method-of-preventing-bridging)
241
230
  # Corresponds to the JSON property `localOnly`
242
231
  # @return [Boolean]
243
232
  attr_accessor :local_only
244
233
  alias_method :local_only?, :local_only
245
234
 
246
- # Sets the number of items this notification represents. May be displayed as
247
- # a badge count for launchers that support badging.See [Notification
248
- # Badge](https://developer.android.com/training/notify-user/badges).
249
- # For example, this might be useful if you're using just one notification to
250
- # represent multiple new messages but you want the count here to represent
251
- # the number of total new messages.
252
- # If zero or unspecified, systems that support badging use the default, which
253
- # is to increment a number displayed on the long-press menu each time a new
254
- # notification arrives.
235
+ # Sets the number of items this notification represents. May be displayed as a
236
+ # badge count for launchers that support badging.See [Notification Badge](https:/
237
+ # /developer.android.com/training/notify-user/badges). For example, this might
238
+ # be useful if you're using just one notification to represent multiple new
239
+ # messages but you want the count here to represent the number of total new
240
+ # messages. If zero or unspecified, systems that support badging use the default,
241
+ # which is to increment a number displayed on the long-press menu each time a
242
+ # new notification arrives.
255
243
  # Corresponds to the JSON property `notificationCount`
256
244
  # @return [Fixnum]
257
245
  attr_accessor :notification_count
258
246
 
259
- # Set the relative priority for this notification. Priority is an indication
260
- # of how much of the user's attention should be consumed by this
261
- # notification. Low-priority notifications may be hidden from the user in
262
- # certain situations, while the user might be interrupted for a
263
- # higher-priority notification. The effect of setting the same priorities may
264
- # differ slightly on different platforms. Note this priority differs from
265
- # `AndroidMessagePriority`. This priority is processed by the client after
266
- # the message has been delivered, whereas
267
- # [AndroidMessagePriority](https://firebase.google.com/docs/reference/fcm/rest/
268
- # v1/projects.messages#androidmessagepriority)
269
- # is an FCM concept that controls when the message is delivered.
247
+ # Set the relative priority for this notification. Priority is an indication of
248
+ # how much of the user's attention should be consumed by this notification. Low-
249
+ # priority notifications may be hidden from the user in certain situations,
250
+ # while the user might be interrupted for a higher-priority notification. The
251
+ # effect of setting the same priorities may differ slightly on different
252
+ # platforms. Note this priority differs from `AndroidMessagePriority`. This
253
+ # priority is processed by the client after the message has been delivered,
254
+ # whereas [AndroidMessagePriority](https://firebase.google.com/docs/reference/
255
+ # fcm/rest/v1/projects.messages#androidmessagepriority) is an FCM concept that
256
+ # controls when the message is delivered.
270
257
  # Corresponds to the JSON property `notificationPriority`
271
258
  # @return [String]
272
259
  attr_accessor :notification_priority
273
260
 
274
- # The sound to play when the device receives the notification.
275
- # Supports "default" or the filename of a sound resource bundled in the app.
276
- # Sound files must reside in /res/raw/.
261
+ # The sound to play when the device receives the notification. Supports "default"
262
+ # or the filename of a sound resource bundled in the app. Sound files must
263
+ # reside in /res/raw/.
277
264
  # Corresponds to the JSON property `sound`
278
265
  # @return [String]
279
266
  attr_accessor :sound
280
267
 
281
- # When set to false or unset, the notification is automatically
282
- # dismissed when the user clicks it in the panel. When set to true, the
283
- # notification persists even when the user clicks it.
268
+ # When set to false or unset, the notification is automatically dismissed when
269
+ # the user clicks it in the panel. When set to true, the notification persists
270
+ # even when the user clicks it.
284
271
  # Corresponds to the JSON property `sticky`
285
272
  # @return [Boolean]
286
273
  attr_accessor :sticky
287
274
  alias_method :sticky?, :sticky
288
275
 
289
- # Identifier used to replace existing notifications in the notification
290
- # drawer.
291
- # If not specified, each request creates a new notification.
292
- # If specified and a notification with the same tag is already being shown,
293
- # the new notification replaces the existing one in the notification drawer.
276
+ # Identifier used to replace existing notifications in the notification drawer.
277
+ # If not specified, each request creates a new notification. If specified and a
278
+ # notification with the same tag is already being shown, the new notification
279
+ # replaces the existing one in the notification drawer.
294
280
  # Corresponds to the JSON property `tag`
295
281
  # @return [String]
296
282
  attr_accessor :tag
297
283
 
298
- # Sets the "ticker" text, which is sent to accessibility services.
299
- # Prior to API level 21 (`Lollipop`), sets the text that is displayed in the
300
- # status bar when the notification first arrives.
284
+ # Sets the "ticker" text, which is sent to accessibility services. Prior to API
285
+ # level 21 (`Lollipop`), sets the text that is displayed in the status bar when
286
+ # the notification first arrives.
301
287
  # Corresponds to the JSON property `ticker`
302
288
  # @return [String]
303
289
  attr_accessor :ticker
304
290
 
305
- # The notification's title. If present, it will override
306
- # google.firebase.fcm.v1.Notification.title.
291
+ # The notification's title. If present, it will override google.firebase.fcm.v1.
292
+ # Notification.title.
307
293
  # Corresponds to the JSON property `title`
308
294
  # @return [String]
309
295
  attr_accessor :title
310
296
 
311
297
  # Variable string values to be used in place of the format specifiers in
312
298
  # title_loc_key to use to localize the title text to the user's current
313
- # localization.
314
- # See [Formatting and Styling](https://goo.gl/MalYE3) for more information.
299
+ # localization. See [Formatting and Styling](https://goo.gl/MalYE3) for more
300
+ # information.
315
301
  # Corresponds to the JSON property `titleLocArgs`
316
302
  # @return [Array<String>]
317
303
  attr_accessor :title_loc_args
318
304
 
319
- # The key to the title string in the app's string resources to use to
320
- # localize the title text to the user's current localization.
321
- # See [String Resources](https://goo.gl/NdFZGI) for more information.
305
+ # The key to the title string in the app's string resources to use to localize
306
+ # the title text to the user's current localization. See [String Resources](
307
+ # https://goo.gl/NdFZGI) for more information.
322
308
  # Corresponds to the JSON property `titleLocKey`
323
309
  # @return [String]
324
310
  attr_accessor :title_loc_key
325
311
 
326
- # Set the vibration pattern to use. Pass in an array of
327
- # [protobuf.Duration](https://developers.google.com/protocol-buffers/docs/
328
- # reference/google.protobuf#google.protobuf.Duration)
329
- # to turn on or off the vibrator. The first value indicates the `Duration` to
330
- # wait before turning the vibrator on. The next value indicates the
331
- # `Duration` to keep the vibrator on. Subsequent values alternate between
332
- # `Duration` to turn the vibrator off and to turn the vibrator on.
333
- # If `vibrate_timings` is set and `default_vibrate_timings` is set to `true`,
312
+ # Set the vibration pattern to use. Pass in an array of [protobuf.Duration](
313
+ # https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#
314
+ # google.protobuf.Duration) to turn on or off the vibrator. The first value
315
+ # indicates the `Duration` to wait before turning the vibrator on. The next
316
+ # value indicates the `Duration` to keep the vibrator on. Subsequent values
317
+ # alternate between `Duration` to turn the vibrator off and to turn the vibrator
318
+ # on. If `vibrate_timings` is set and `default_vibrate_timings` is set to `true`,
334
319
  # the default value is used instead of the user-specified `vibrate_timings`.
335
320
  # Corresponds to the JSON property `vibrateTimings`
336
321
  # @return [Array<String>]
337
322
  attr_accessor :vibrate_timings
338
323
 
339
- # Set the
340
- # [Notification.visibility](https://developer.android.com/reference/android/app/
341
- # Notification.html#visibility)
342
- # of the notification.
324
+ # Set the [Notification.visibility](https://developer.android.com/reference/
325
+ # android/app/Notification.html#visibility) of the notification.
343
326
  # Corresponds to the JSON property `visibility`
344
327
  # @return [String]
345
328
  attr_accessor :visibility
@@ -387,21 +370,20 @@ module Google
387
370
  # @return [Google::Apis::FcmV1::ApnsFcmOptions]
388
371
  attr_accessor :fcm_options
389
372
 
390
- # HTTP request headers defined in Apple Push Notification Service. Refer to
391
- # [APNs request
392
- # headers](https://developer.apple.com/documentation/usernotifications/
393
- # setting_up_a_remote_notification_server/sending_notification_requests_to_apns)
394
- # for supported headers, e.g. "apns-priority": "10".
373
+ # HTTP request headers defined in Apple Push Notification Service. Refer to [
374
+ # APNs request headers](https://developer.apple.com/documentation/
375
+ # usernotifications/setting_up_a_remote_notification_server/
376
+ # sending_notification_requests_to_apns) for supported headers, e.g. "apns-
377
+ # priority": "10".
395
378
  # Corresponds to the JSON property `headers`
396
379
  # @return [Hash<String,String>]
397
380
  attr_accessor :headers
398
381
 
399
382
  # APNs payload as a JSON object, including both `aps` dictionary and custom
400
- # payload. See [Payload Key
401
- # Reference](https://developer.apple.com/documentation/usernotifications/
402
- # setting_up_a_remote_notification_server/generating_a_remote_notification).
403
- # If present, it overrides google.firebase.fcm.v1.Notification.title
404
- # and google.firebase.fcm.v1.Notification.body.
383
+ # payload. See [Payload Key Reference](https://developer.apple.com/documentation/
384
+ # usernotifications/setting_up_a_remote_notification_server/
385
+ # generating_a_remote_notification). If present, it overrides google.firebase.
386
+ # fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body.
405
387
  # Corresponds to the JSON property `payload`
406
388
  # @return [Hash<String,Object>]
407
389
  attr_accessor :payload
@@ -427,9 +409,8 @@ module Google
427
409
  # @return [String]
428
410
  attr_accessor :analytics_label
429
411
 
430
- # Contains the URL of an image that is going to be displayed in a
431
- # notification. If present, it will override
432
- # google.firebase.fcm.v1.Notification.image.
412
+ # Contains the URL of an image that is going to be displayed in a notification.
413
+ # If present, it will override google.firebase.fcm.v1.Notification.image.
433
414
  # Corresponds to the JSON property `image`
434
415
  # @return [String]
435
416
  attr_accessor :image
@@ -447,122 +428,61 @@ module Google
447
428
 
448
429
  # Represents a color in the RGBA color space. This representation is designed
449
430
  # for simplicity of conversion to/from color representations in various
450
- # languages over compactness; for example, the fields of this representation
451
- # can be trivially provided to the constructor of "java.awt.Color" in Java; it
452
- # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
453
- # method in iOS; and, with just a little work, it can be easily formatted into
454
- # a CSS "rgba()" string in JavaScript, as well.
455
- # Note: this proto does not carry information about the absolute color space
456
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
457
- # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
458
- # space.
459
- # Note: when color equality needs to be decided, implementations, unless
460
- # documented otherwise, will treat two colors to be equal if all their red,
461
- # green, blue and alpha values each differ by at most 1e-5.
462
- # Example (Java):
463
- # import com.google.type.Color;
464
- # // ...
465
- # public static java.awt.Color fromProto(Color protocolor) `
466
- # float alpha = protocolor.hasAlpha()
467
- # ? protocolor.getAlpha().getValue()
468
- # : 1.0;
469
- # return new java.awt.Color(
470
- # protocolor.getRed(),
471
- # protocolor.getGreen(),
472
- # protocolor.getBlue(),
473
- # alpha);
474
- # `
475
- # public static Color toProto(java.awt.Color color) `
476
- # float red = (float) color.getRed();
477
- # float green = (float) color.getGreen();
478
- # float blue = (float) color.getBlue();
479
- # float denominator = 255.0;
480
- # Color.Builder resultBuilder =
481
- # Color
482
- # .newBuilder()
483
- # .setRed(red / denominator)
484
- # .setGreen(green / denominator)
485
- # .setBlue(blue / denominator);
486
- # int alpha = color.getAlpha();
487
- # if (alpha != 255) `
488
- # result.setAlpha(
489
- # FloatValue
490
- # .newBuilder()
491
- # .setValue(((float) alpha) / denominator)
492
- # .build());
493
- # `
494
- # return resultBuilder.build();
495
- # `
496
- # // ...
497
- # Example (iOS / Obj-C):
498
- # // ...
499
- # static UIColor* fromProto(Color* protocolor) `
500
- # float red = [protocolor red];
501
- # float green = [protocolor green];
502
- # float blue = [protocolor blue];
503
- # FloatValue* alpha_wrapper = [protocolor alpha];
504
- # float alpha = 1.0;
505
- # if (alpha_wrapper != nil) `
506
- # alpha = [alpha_wrapper value];
507
- # `
508
- # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
509
- # `
510
- # static Color* toProto(UIColor* color) `
511
- # CGFloat red, green, blue, alpha;
512
- # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
513
- # return nil;
514
- # `
515
- # Color* result = [[Color alloc] init];
516
- # [result setRed:red];
517
- # [result setGreen:green];
518
- # [result setBlue:blue];
519
- # if (alpha <= 0.9999) `
520
- # [result setAlpha:floatWrapperWithValue(alpha)];
521
- # `
522
- # [result autorelease];
523
- # return result;
524
- # `
525
- # // ...
526
- # Example (JavaScript):
527
- # // ...
528
- # var protoToCssColor = function(rgb_color) `
529
- # var redFrac = rgb_color.red || 0.0;
530
- # var greenFrac = rgb_color.green || 0.0;
531
- # var blueFrac = rgb_color.blue || 0.0;
532
- # var red = Math.floor(redFrac * 255);
533
- # var green = Math.floor(greenFrac * 255);
534
- # var blue = Math.floor(blueFrac * 255);
535
- # if (!('alpha' in rgb_color)) `
536
- # return rgbToCssColor_(red, green, blue);
537
- # `
538
- # var alphaFrac = rgb_color.alpha.value || 0.0;
539
- # var rgbParams = [red, green, blue].join(',');
540
- # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
541
- # `;
542
- # var rgbToCssColor_ = function(red, green, blue) `
543
- # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
544
- # var hexString = rgbNumber.toString(16);
545
- # var missingZeros = 6 - hexString.length;
546
- # var resultBuilder = ['#'];
547
- # for (var i = 0; i < missingZeros; i++) `
548
- # resultBuilder.push('0');
549
- # `
550
- # resultBuilder.push(hexString);
551
- # return resultBuilder.join('');
552
- # `;
553
- # // ...
431
+ # languages over compactness; for example, the fields of this representation can
432
+ # be trivially provided to the constructor of "java.awt.Color" in Java; it can
433
+ # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
434
+ # method in iOS; and, with just a little work, it can be easily formatted into a
435
+ # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
436
+ # information about the absolute color space that should be used to interpret
437
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
438
+ # applications SHOULD assume the sRGB color space. Note: when color equality
439
+ # needs to be decided, implementations, unless documented otherwise, will treat
440
+ # two colors to be equal if all their red, green, blue and alpha values each
441
+ # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
442
+ # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
443
+ # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
444
+ # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
445
+ # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
446
+ # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
447
+ # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
448
+ # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
449
+ # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
450
+ # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
451
+ # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
452
+ # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
453
+ # protocolor red]; float green = [protocolor green]; float blue = [protocolor
454
+ # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
455
+ # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
456
+ # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
457
+ # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
458
+ # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
459
+ # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
460
+ # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
461
+ # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
462
+ # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
463
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
464
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
465
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
466
+ # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
467
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
468
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
469
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
470
+ # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
471
+ # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
472
+ # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
473
+ # join(''); `; // ...
554
474
  class Color
555
475
  include Google::Apis::Core::Hashable
556
476
 
557
- # The fraction of this color that should be applied to the pixel. That is,
558
- # the final pixel color is defined by the equation:
559
- # pixel color = alpha * (this color) + (1.0 - alpha) * (background color)
560
- # This means that a value of 1.0 corresponds to a solid color, whereas
561
- # a value of 0.0 corresponds to a completely transparent color. This
562
- # uses a wrapper message rather than a simple float scalar so that it is
563
- # possible to distinguish between a default value and the value being unset.
564
- # If omitted, this color object is to be rendered as a solid color
565
- # (as if the alpha value had been explicitly given with a value of 1.0).
477
+ # The fraction of this color that should be applied to the pixel. That is, the
478
+ # final pixel color is defined by the equation: pixel color = alpha * (this
479
+ # color) + (1.0 - alpha) * (background color) This means that a value of 1.0
480
+ # corresponds to a solid color, whereas a value of 0.0 corresponds to a
481
+ # completely transparent color. This uses a wrapper message rather than a simple
482
+ # float scalar so that it is possible to distinguish between a default value and
483
+ # the value being unset. If omitted, this color object is to be rendered as a
484
+ # solid color (as if the alpha value had been explicitly given with a value of 1.
485
+ # 0).
566
486
  # Corresponds to the JSON property `alpha`
567
487
  # @return [Float]
568
488
  attr_accessor :alpha
@@ -620,126 +540,63 @@ module Google
620
540
 
621
541
  # Represents a color in the RGBA color space. This representation is designed
622
542
  # for simplicity of conversion to/from color representations in various
623
- # languages over compactness; for example, the fields of this representation
624
- # can be trivially provided to the constructor of "java.awt.Color" in Java; it
625
- # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
626
- # method in iOS; and, with just a little work, it can be easily formatted into
627
- # a CSS "rgba()" string in JavaScript, as well.
628
- # Note: this proto does not carry information about the absolute color space
629
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
630
- # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
631
- # space.
632
- # Note: when color equality needs to be decided, implementations, unless
633
- # documented otherwise, will treat two colors to be equal if all their red,
634
- # green, blue and alpha values each differ by at most 1e-5.
635
- # Example (Java):
636
- # import com.google.type.Color;
637
- # // ...
638
- # public static java.awt.Color fromProto(Color protocolor) `
639
- # float alpha = protocolor.hasAlpha()
640
- # ? protocolor.getAlpha().getValue()
641
- # : 1.0;
642
- # return new java.awt.Color(
643
- # protocolor.getRed(),
644
- # protocolor.getGreen(),
645
- # protocolor.getBlue(),
646
- # alpha);
647
- # `
648
- # public static Color toProto(java.awt.Color color) `
649
- # float red = (float) color.getRed();
650
- # float green = (float) color.getGreen();
651
- # float blue = (float) color.getBlue();
652
- # float denominator = 255.0;
653
- # Color.Builder resultBuilder =
654
- # Color
655
- # .newBuilder()
656
- # .setRed(red / denominator)
657
- # .setGreen(green / denominator)
658
- # .setBlue(blue / denominator);
659
- # int alpha = color.getAlpha();
660
- # if (alpha != 255) `
661
- # result.setAlpha(
662
- # FloatValue
663
- # .newBuilder()
664
- # .setValue(((float) alpha) / denominator)
665
- # .build());
666
- # `
667
- # return resultBuilder.build();
668
- # `
669
- # // ...
670
- # Example (iOS / Obj-C):
671
- # // ...
672
- # static UIColor* fromProto(Color* protocolor) `
673
- # float red = [protocolor red];
674
- # float green = [protocolor green];
675
- # float blue = [protocolor blue];
676
- # FloatValue* alpha_wrapper = [protocolor alpha];
677
- # float alpha = 1.0;
678
- # if (alpha_wrapper != nil) `
679
- # alpha = [alpha_wrapper value];
680
- # `
681
- # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
682
- # `
683
- # static Color* toProto(UIColor* color) `
684
- # CGFloat red, green, blue, alpha;
685
- # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
686
- # return nil;
687
- # `
688
- # Color* result = [[Color alloc] init];
689
- # [result setRed:red];
690
- # [result setGreen:green];
691
- # [result setBlue:blue];
692
- # if (alpha <= 0.9999) `
693
- # [result setAlpha:floatWrapperWithValue(alpha)];
694
- # `
695
- # [result autorelease];
696
- # return result;
697
- # `
698
- # // ...
699
- # Example (JavaScript):
700
- # // ...
701
- # var protoToCssColor = function(rgb_color) `
702
- # var redFrac = rgb_color.red || 0.0;
703
- # var greenFrac = rgb_color.green || 0.0;
704
- # var blueFrac = rgb_color.blue || 0.0;
705
- # var red = Math.floor(redFrac * 255);
706
- # var green = Math.floor(greenFrac * 255);
707
- # var blue = Math.floor(blueFrac * 255);
708
- # if (!('alpha' in rgb_color)) `
709
- # return rgbToCssColor_(red, green, blue);
710
- # `
711
- # var alphaFrac = rgb_color.alpha.value || 0.0;
712
- # var rgbParams = [red, green, blue].join(',');
713
- # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
714
- # `;
715
- # var rgbToCssColor_ = function(red, green, blue) `
716
- # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
717
- # var hexString = rgbNumber.toString(16);
718
- # var missingZeros = 6 - hexString.length;
719
- # var resultBuilder = ['#'];
720
- # for (var i = 0; i < missingZeros; i++) `
721
- # resultBuilder.push('0');
722
- # `
723
- # resultBuilder.push(hexString);
724
- # return resultBuilder.join('');
725
- # `;
726
- # // ...
543
+ # languages over compactness; for example, the fields of this representation can
544
+ # be trivially provided to the constructor of "java.awt.Color" in Java; it can
545
+ # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
546
+ # method in iOS; and, with just a little work, it can be easily formatted into a
547
+ # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
548
+ # information about the absolute color space that should be used to interpret
549
+ # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
550
+ # applications SHOULD assume the sRGB color space. Note: when color equality
551
+ # needs to be decided, implementations, unless documented otherwise, will treat
552
+ # two colors to be equal if all their red, green, blue and alpha values each
553
+ # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
554
+ # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
555
+ # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
556
+ # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
557
+ # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
558
+ # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
559
+ # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
560
+ # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
561
+ # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
562
+ # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
563
+ # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
564
+ # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
565
+ # protocolor red]; float green = [protocolor green]; float blue = [protocolor
566
+ # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
567
+ # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
568
+ # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
569
+ # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
570
+ # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
571
+ # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
572
+ # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
573
+ # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
574
+ # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
575
+ # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
576
+ # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
577
+ # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
578
+ # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
579
+ # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
580
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
581
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
582
+ # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
583
+ # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
584
+ # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
585
+ # join(''); `; // ...
727
586
  # Corresponds to the JSON property `color`
728
587
  # @return [Google::Apis::FcmV1::Color]
729
588
  attr_accessor :color
730
589
 
731
590
  # Required. Along with `light_on_duration `, define the blink rate of LED
732
- # flashes. Resolution defined by
733
- # [proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/
734
- # google.protobuf#google.protobuf.Duration)
591
+ # flashes. Resolution defined by [proto.Duration](https://developers.google.com/
592
+ # protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)
735
593
  # Corresponds to the JSON property `lightOffDuration`
736
594
  # @return [String]
737
595
  attr_accessor :light_off_duration
738
596
 
739
597
  # Required. Along with `light_off_duration`, define the blink rate of LED
740
- # flashes. Resolution defined by
741
- # [proto.Duration](https://developers.google.com/protocol-buffers/docs/reference/
742
- # google.protobuf#google.protobuf.Duration)
598
+ # flashes. Resolution defined by [proto.Duration](https://developers.google.com/
599
+ # protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)
743
600
  # Corresponds to the JSON property `lightOnDuration`
744
601
  # @return [String]
745
602
  attr_accessor :light_on_duration
@@ -760,8 +617,8 @@ module Google
760
617
  class Message
761
618
  include Google::Apis::Core::Hashable
762
619
 
763
- # Android specific options for messages sent through
764
- # [FCM connection server](https://goo.gl/4GLdUl).
620
+ # Android specific options for messages sent through [FCM connection server](
621
+ # https://goo.gl/4GLdUl).
765
622
  # Corresponds to the JSON property `android`
766
623
  # @return [Google::Apis::FcmV1::AndroidConfig]
767
624
  attr_accessor :android
@@ -771,14 +628,13 @@ module Google
771
628
  # @return [Google::Apis::FcmV1::ApnsConfig]
772
629
  attr_accessor :apns
773
630
 
774
- # Condition to send a message to,
775
- # e.g. "'foo' in topics && 'bar' in topics".
631
+ # Condition to send a message to, e.g. "'foo' in topics && 'bar' in topics".
776
632
  # Corresponds to the JSON property `condition`
777
633
  # @return [String]
778
634
  attr_accessor :condition
779
635
 
780
- # Input only. Arbitrary key/value payload. The key should not be a reserved
781
- # word ("from", "message_type", or any word starting with "google" or "gcm").
636
+ # Input only. Arbitrary key/value payload. The key should not be a reserved word
637
+ # ("from", "message_type", or any word starting with "google" or "gcm").
782
638
  # Corresponds to the JSON property `data`
783
639
  # @return [Hash<String,String>]
784
640
  attr_accessor :data
@@ -788,8 +644,8 @@ module Google
788
644
  # @return [Google::Apis::FcmV1::FcmOptions]
789
645
  attr_accessor :fcm_options
790
646
 
791
- # Output Only. The identifier of the message sent, in the format of
792
- # `projects/*/messages/`message_id``.
647
+ # Output Only. The identifier of the message sent, in the format of `projects/*/
648
+ # messages/`message_id``.
793
649
  # Corresponds to the JSON property `name`
794
650
  # @return [String]
795
651
  attr_accessor :name
@@ -804,8 +660,8 @@ module Google
804
660
  # @return [String]
805
661
  attr_accessor :token
806
662
 
807
- # Topic name to send a message to, e.g. "weather".
808
- # Note: "/topics/" prefix should not be provided.
663
+ # Topic name to send a message to, e.g. "weather". Note: "/topics/" prefix
664
+ # should not be provided.
809
665
  # Corresponds to the JSON property `topic`
810
666
  # @return [String]
811
667
  attr_accessor :topic
@@ -843,14 +699,12 @@ module Google
843
699
  # @return [String]
844
700
  attr_accessor :body
845
701
 
846
- # Contains the URL of an image that is going to be downloaded on the device
847
- # and displayed in a notification.
848
- # JPEG, PNG, BMP have full support across platforms. Animated GIF and video
849
- # only work on iOS. WebP and HEIF have varying levels of support across
850
- # platforms and platform versions.
851
- # Android has 1MB image size limit.
852
- # Quota usage and implications/costs for hosting image on Firebase Storage:
853
- # https://firebase.google.com/pricing
702
+ # Contains the URL of an image that is going to be downloaded on the device and
703
+ # displayed in a notification. JPEG, PNG, BMP have full support across platforms.
704
+ # Animated GIF and video only work on iOS. WebP and HEIF have varying levels of
705
+ # support across platforms and platform versions. Android has 1MB image size
706
+ # limit. Quota usage and implications/costs for hosting image on Firebase
707
+ # Storage: https://firebase.google.com/pricing
854
708
  # Corresponds to the JSON property `image`
855
709
  # @return [String]
856
710
  attr_accessor :image
@@ -902,8 +756,8 @@ module Google
902
756
  class WebpushConfig
903
757
  include Google::Apis::Core::Hashable
904
758
 
905
- # Arbitrary key/value payload. If present, it will override
906
- # google.firebase.fcm.v1.Message.data.
759
+ # Arbitrary key/value payload. If present, it will override google.firebase.fcm.
760
+ # v1.Message.data.
907
761
  # Corresponds to the JSON property `data`
908
762
  # @return [Hash<String,String>]
909
763
  attr_accessor :data
@@ -913,19 +767,17 @@ module Google
913
767
  # @return [Google::Apis::FcmV1::WebpushFcmOptions]
914
768
  attr_accessor :fcm_options
915
769
 
916
- # HTTP headers defined in webpush protocol. Refer to
917
- # [Webpush protocol](https://tools.ietf.org/html/rfc8030#section-5) for
918
- # supported headers, e.g. "TTL": "15".
770
+ # HTTP headers defined in webpush protocol. Refer to [Webpush protocol](https://
771
+ # tools.ietf.org/html/rfc8030#section-5) for supported headers, e.g. "TTL": "15".
919
772
  # Corresponds to the JSON property `headers`
920
773
  # @return [Hash<String,String>]
921
774
  attr_accessor :headers
922
775
 
923
776
  # Web Notification options as a JSON object. Supports Notification instance
924
- # properties as defined in [Web Notification
925
- # API](https://developer.mozilla.org/en-US/docs/Web/API/Notification). If
926
- # present, "title" and "body" fields override
927
- # [google.firebase.fcm.v1.Notification.title] and
928
- # [google.firebase.fcm.v1.Notification.body].
777
+ # properties as defined in [Web Notification API](https://developer.mozilla.org/
778
+ # en-US/docs/Web/API/Notification). If present, "title" and "body" fields
779
+ # override [google.firebase.fcm.v1.Notification.title] and [google.firebase.fcm.
780
+ # v1.Notification.body].
929
781
  # Corresponds to the JSON property `notification`
930
782
  # @return [Hash<String,Object>]
931
783
  attr_accessor :notification
@@ -952,8 +804,8 @@ module Google
952
804
  # @return [String]
953
805
  attr_accessor :analytics_label
954
806
 
955
- # The link to open when the user clicks on the notification.
956
- # For all URL values, HTTPS is required.
807
+ # The link to open when the user clicks on the notification. For all URL values,
808
+ # HTTPS is required.
957
809
  # Corresponds to the JSON property `link`
958
810
  # @return [String]
959
811
  attr_accessor :link