google-apis-fcm_v1 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/fcm_v1.rb +1 -1
- data/lib/google/apis/fcm_v1/classes.rb +76 -77
- data/lib/google/apis/fcm_v1/gem_version.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43f98bc63e3614812a522a82dcf468a3f596829be859c1573f9cead86ad82931
|
4
|
+
data.tar.gz: 690cf1f96268789189324e508a41abb39039cad010cbdbe03f2894415ae43e58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8e1028ca891c6ca5c745f8030b1f87b685ee743a006a927e1cde38359f710afabff4b4c5b27193cf7fd281dffbf97e0a12ca9c22a0f0a2ca137c98698ac76e3
|
7
|
+
data.tar.gz: '069f9e70ab8c98fa4f5d6f7d6c69efbef825b6620e3f8154d77c14934802c4702f15f7880bec06ebc4ecaed0a6860e5bfbc2d1999d4600d9d23744b49cbf88ce'
|
data/CHANGELOG.md
CHANGED
data/lib/google/apis/fcm_v1.rb
CHANGED
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V1'
|
32
32
|
|
33
|
-
#
|
33
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
end
|
36
36
|
end
|
@@ -428,61 +428,60 @@ module Google
|
|
428
428
|
|
429
429
|
# Represents a color in the RGBA color space. This representation is designed
|
430
430
|
# for simplicity of conversion to/from color representations in various
|
431
|
-
# languages over compactness
|
432
|
-
# be trivially provided to the constructor of
|
433
|
-
# also be trivially provided to UIColor's
|
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
434
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
435
|
-
# CSS
|
435
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't carry
|
436
436
|
# information about the absolute color space that should be used to interpret
|
437
437
|
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
438
|
-
# applications
|
439
|
-
#
|
440
|
-
#
|
441
|
-
#
|
442
|
-
#
|
443
|
-
# protocolor.
|
444
|
-
#
|
445
|
-
#
|
446
|
-
# float
|
447
|
-
# float
|
448
|
-
#
|
449
|
-
#
|
450
|
-
#
|
451
|
-
#
|
452
|
-
#
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
#
|
438
|
+
# applications should assume the sRGB color space. When color equality needs to
|
439
|
+
# be decided, implementations, unless documented otherwise, treat two colors as
|
440
|
+
# equal if all their red, green, blue, and alpha values each differ by at most
|
441
|
+
# 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
|
442
|
+
# awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
|
443
|
+
# protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
|
444
|
+
# getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
|
445
|
+
# Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
|
446
|
+
# float green = (float) color.getGreen(); float blue = (float) color.getBlue();
|
447
|
+
# float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
|
448
|
+
# setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
|
449
|
+
# denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
|
450
|
+
# setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
|
451
|
+
# build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
|
452
|
+
# . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
|
453
|
+
# float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
|
454
|
+
# alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
|
455
|
+
# nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
|
456
|
+
# green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
|
457
|
+
# CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
|
458
|
+
# blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
|
459
|
+
# result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
|
460
|
+
# = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
|
461
|
+
# autorelease]; return result; ` // ... Example (JavaScript): // ... var
|
462
|
+
# protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
|
463
463
|
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
464
464
|
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
465
465
|
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
466
|
-
#
|
466
|
+
# rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
467
467
|
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
468
|
-
# ', alphaFrac, ')'].join(''); `; var
|
469
|
-
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
470
|
-
#
|
471
|
-
#
|
472
|
-
#
|
473
|
-
#
|
468
|
+
# ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
|
469
|
+
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
|
470
|
+
# = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
|
471
|
+
# resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
|
472
|
+
# push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
|
473
|
+
# / ...
|
474
474
|
class Color
|
475
475
|
include Google::Apis::Core::Hashable
|
476
476
|
|
477
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
|
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
480
|
# corresponds to a solid color, whereas a value of 0.0 corresponds to a
|
481
481
|
# completely transparent color. This uses a wrapper message rather than a simple
|
482
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
|
484
|
-
#
|
485
|
-
# 0).
|
483
|
+
# the value being unset. If omitted, this color object is rendered as a solid
|
484
|
+
# color (as if the alpha value had been explicitly given a value of 1.0).
|
486
485
|
# Corresponds to the JSON property `alpha`
|
487
486
|
# @return [Float]
|
488
487
|
attr_accessor :alpha
|
@@ -540,49 +539,49 @@ module Google
|
|
540
539
|
|
541
540
|
# Represents a color in the RGBA color space. This representation is designed
|
542
541
|
# for simplicity of conversion to/from color representations in various
|
543
|
-
# languages over compactness
|
544
|
-
# be trivially provided to the constructor of
|
545
|
-
# also be trivially provided to UIColor's
|
542
|
+
# languages over compactness. For example, the fields of this representation can
|
543
|
+
# be trivially provided to the constructor of `java.awt.Color` in Java; it can
|
544
|
+
# also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
|
546
545
|
# method in iOS; and, with just a little work, it can be easily formatted into a
|
547
|
-
# CSS
|
546
|
+
# CSS `rgba()` string in JavaScript. This reference page doesn't carry
|
548
547
|
# information about the absolute color space that should be used to interpret
|
549
548
|
# the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
|
550
|
-
# applications
|
551
|
-
#
|
552
|
-
#
|
553
|
-
#
|
554
|
-
#
|
555
|
-
# protocolor.
|
556
|
-
#
|
557
|
-
#
|
558
|
-
# float
|
559
|
-
# float
|
560
|
-
#
|
561
|
-
#
|
562
|
-
#
|
563
|
-
#
|
564
|
-
#
|
565
|
-
#
|
566
|
-
#
|
567
|
-
#
|
568
|
-
#
|
569
|
-
#
|
570
|
-
#
|
571
|
-
#
|
572
|
-
#
|
573
|
-
#
|
574
|
-
#
|
549
|
+
# applications should assume the sRGB color space. When color equality needs to
|
550
|
+
# be decided, implementations, unless documented otherwise, treat two colors as
|
551
|
+
# equal if all their red, green, blue, and alpha values each differ by at most
|
552
|
+
# 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
|
553
|
+
# awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
|
554
|
+
# protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
|
555
|
+
# getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
|
556
|
+
# Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
|
557
|
+
# float green = (float) color.getGreen(); float blue = (float) color.getBlue();
|
558
|
+
# float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
|
559
|
+
# setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
|
560
|
+
# denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
|
561
|
+
# setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
|
562
|
+
# build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
|
563
|
+
# . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
|
564
|
+
# float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
|
565
|
+
# alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
|
566
|
+
# nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
|
567
|
+
# green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
|
568
|
+
# CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
|
569
|
+
# blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
|
570
|
+
# result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
|
571
|
+
# = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
|
572
|
+
# autorelease]; return result; ` // ... Example (JavaScript): // ... var
|
573
|
+
# protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
|
575
574
|
# var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
|
576
575
|
# var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
|
577
576
|
# var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
|
578
|
-
#
|
577
|
+
# rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
|
579
578
|
# 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
|
580
|
-
# ', alphaFrac, ')'].join(''); `; var
|
581
|
-
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
|
582
|
-
#
|
583
|
-
#
|
584
|
-
#
|
585
|
-
#
|
579
|
+
# ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
|
580
|
+
# ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
|
581
|
+
# = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
|
582
|
+
# resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
|
583
|
+
# push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
|
584
|
+
# / ...
|
586
585
|
# Corresponds to the JSON property `color`
|
587
586
|
# @return [Google::Apis::FcmV1::Color]
|
588
587
|
attr_accessor :color
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module FcmV1
|
18
18
|
# Version of the google-apis-fcm_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.4.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210317"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-fcm_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -52,7 +52,7 @@ licenses:
|
|
52
52
|
metadata:
|
53
53
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
54
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-fcm_v1/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-fcm_v1/v0.
|
55
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-fcm_v1/v0.4.0
|
56
56
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-fcm_v1
|
57
57
|
post_install_message:
|
58
58
|
rdoc_options: []
|