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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3bf03a730ea74872daa35e6051bb1326b2c36bda53e5a501b081b91dd6119c58
4
- data.tar.gz: 314393229d2674b7d005aa1cc1232cad16a4d8c9416211f52919f88e50d4ecf6
3
+ metadata.gz: 43f98bc63e3614812a522a82dcf468a3f596829be859c1573f9cead86ad82931
4
+ data.tar.gz: 690cf1f96268789189324e508a41abb39039cad010cbdbe03f2894415ae43e58
5
5
  SHA512:
6
- metadata.gz: beb7bfdbb2a9210537dc485d92f4e76c57c8e5563e5df50b824b43c5b7262b6b5922beb9637e956056c1fd28e532942e2eb196d797d4115c3ab48117e6471d38
7
- data.tar.gz: faa20b75e7a87fa9658d6460c76ca8dce3775d48125e9184ade917f07ec6b70bd60bf733d33467779435c6967a8c37bd4e7bfac10b7ab88c8b4b8f42f1f92f10
6
+ metadata.gz: f8e1028ca891c6ca5c745f8030b1f87b685ee743a006a927e1cde38359f710afabff4b4c5b27193cf7fd281dffbf97e0a12ca9c22a0f0a2ca137c98698ac76e3
7
+ data.tar.gz: '069f9e70ab8c98fa4f5d6f7d6c69efbef825b6620e3f8154d77c14934802c4702f15f7880bec06ebc4ecaed0a6860e5bfbc2d1999d4600d9d23744b49cbf88ce'
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-fcm_v1
2
2
 
3
+ ### v0.4.0 (2021-03-20)
4
+
5
+ * Regenerated from discovery document revision 20210317
6
+ * Regenerated using generator version 0.2.0
7
+
3
8
  ### v0.3.0 (2021-03-04)
4
9
 
5
10
  * Unspecified changes
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
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; 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"
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 "rgba()" string in JavaScript, as well. Note: this proto does not carry
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 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;
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
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
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 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(''); `; // ...
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 to be rendered as a
484
- # solid color (as if the alpha value had been explicitly given with a value of 1.
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; 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"
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 "rgba()" string in JavaScript, as well. Note: this proto does not carry
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 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;
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
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
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 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(''); `; // ...
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.3.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.1.2"
22
+ GENERATOR_VERSION = "0.2.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210125"
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.3.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-08 00:00:00.000000000 Z
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.3.0
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: []