google-apis-sheets_v4 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0d29d24be92b6d76699c95e398511dea0d543cfbd759d15c695b49c0be98ff2
4
- data.tar.gz: 64844e39c44d5bf5c63786874ab2a3b96de8a4e285b8d63dfcceb2ab8ab9959b
3
+ metadata.gz: 662bd6d22a36875a6282bc3a0f2d4cf0aa1557cc7f21b4096dcf1e53e03bbb4c
4
+ data.tar.gz: 7b401c6ff3e098904f8f8e39d3b51585704921e362a72d8955429b918881f9b3
5
5
  SHA512:
6
- metadata.gz: 3b85f7efb8dc5fa180245ab61fdc1190b3c5e83866a0239c8ae92b64aaaf9b8c5f71ffd4ef97d08e428e7f893ed178dab5995eb09501a29ca722f8eeb124bd1c
7
- data.tar.gz: 2ce685de4d66edc17ad38cf6b5d6caaa8d0ccc6aab13feb60a2c14cca6ec22fa5fcfda76cfdf788515309db8440951f35dbfac52e196670bf9c182bb715dbb6a
6
+ metadata.gz: 1bf00fcb7b37c9893e0fcade36d377f6c37cadaaf8472544c27eac0de7569fb2b3cac8e7a360dda735367f52b02e7506a93f363871f69d88589ca4301dc74b3a
7
+ data.tar.gz: 89dc66badfdea9aad810a25415d7c5aee0d88d50758a20da7fec3b1ccbc342c118cd49f0fa314108ba645ab956369ef214c2d58104e39f112e8f388e7a3a598e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sheets_v4
2
2
 
3
+ ### v0.4.0 (2021-03-23)
4
+
5
+ * Regenerated from discovery document revision 20210316
6
+
3
7
  ### v0.3.0 (2021-03-18)
4
8
 
5
9
  * Regenerated from discovery document revision 20210309
@@ -676,49 +676,49 @@ module Google
676
676
 
677
677
  # Represents a color in the RGBA color space. This representation is designed
678
678
  # for simplicity of conversion to/from color representations in various
679
- # languages over compactness; for example, the fields of this representation can
680
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
681
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
679
+ # languages over compactness. For example, the fields of this representation can
680
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
681
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
682
682
  # method in iOS; and, with just a little work, it can be easily formatted into a
683
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
683
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
684
684
  # information about the absolute color space that should be used to interpret
685
685
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
686
- # applications SHOULD assume the sRGB color space. Note: when color equality
687
- # needs to be decided, implementations, unless documented otherwise, will treat
688
- # two colors to be equal if all their red, green, blue and alpha values each
689
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
690
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
691
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
692
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
693
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
694
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
695
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
696
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
697
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
698
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
699
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
700
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
701
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
702
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
703
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
704
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
705
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
706
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
707
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
708
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
709
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
710
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
686
+ # applications should assume the sRGB color space. When color equality needs to
687
+ # be decided, implementations, unless documented otherwise, treat two colors as
688
+ # equal if all their red, green, blue, and alpha values each differ by at most
689
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
690
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
691
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
692
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
693
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
694
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
695
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
696
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
697
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
698
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
699
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
700
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
701
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
702
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
703
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
704
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
705
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
706
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
707
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
708
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
709
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
710
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
711
711
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
712
712
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
713
713
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
714
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
714
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
715
715
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
716
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
717
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
718
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
719
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
720
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
721
- # join(''); `; // ...
716
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
717
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
718
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
719
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
720
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
721
+ # / ...
722
722
  # Corresponds to the JSON property `firstBandColor`
723
723
  # @return [Google::Apis::SheetsV4::Color]
724
724
  attr_accessor :first_band_color
@@ -730,49 +730,49 @@ module Google
730
730
 
731
731
  # Represents a color in the RGBA color space. This representation is designed
732
732
  # for simplicity of conversion to/from color representations in various
733
- # languages over compactness; for example, the fields of this representation can
734
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
735
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
733
+ # languages over compactness. For example, the fields of this representation can
734
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
735
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
736
736
  # method in iOS; and, with just a little work, it can be easily formatted into a
737
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
737
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
738
738
  # information about the absolute color space that should be used to interpret
739
739
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
740
- # applications SHOULD assume the sRGB color space. Note: when color equality
741
- # needs to be decided, implementations, unless documented otherwise, will treat
742
- # two colors to be equal if all their red, green, blue and alpha values each
743
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
744
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
745
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
746
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
747
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
748
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
749
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
750
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
751
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
752
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
753
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
754
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
755
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
756
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
757
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
758
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
759
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
760
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
761
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
762
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
763
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
764
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
740
+ # applications should assume the sRGB color space. When color equality needs to
741
+ # be decided, implementations, unless documented otherwise, treat two colors as
742
+ # equal if all their red, green, blue, and alpha values each differ by at most
743
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
744
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
745
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
746
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
747
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
748
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
749
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
750
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
751
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
752
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
753
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
754
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
755
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
756
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
757
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
758
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
759
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
760
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
761
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
762
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
763
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
764
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
765
765
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
766
766
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
767
767
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
768
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
768
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
769
769
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
770
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
771
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
772
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
773
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
774
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
775
- # join(''); `; // ...
770
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
771
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
772
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
773
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
774
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
775
+ # / ...
776
776
  # Corresponds to the JSON property `footerColor`
777
777
  # @return [Google::Apis::SheetsV4::Color]
778
778
  attr_accessor :footer_color
@@ -784,49 +784,49 @@ module Google
784
784
 
785
785
  # Represents a color in the RGBA color space. This representation is designed
786
786
  # for simplicity of conversion to/from color representations in various
787
- # languages over compactness; for example, the fields of this representation can
788
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
789
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
787
+ # languages over compactness. For example, the fields of this representation can
788
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
789
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
790
790
  # method in iOS; and, with just a little work, it can be easily formatted into a
791
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
791
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
792
792
  # information about the absolute color space that should be used to interpret
793
793
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
794
- # applications SHOULD assume the sRGB color space. Note: when color equality
795
- # needs to be decided, implementations, unless documented otherwise, will treat
796
- # two colors to be equal if all their red, green, blue and alpha values each
797
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
798
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
799
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
800
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
801
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
802
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
803
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
804
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
805
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
806
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
807
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
808
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
809
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
810
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
811
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
812
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
813
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
814
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
815
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
816
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
817
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
818
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
794
+ # applications should assume the sRGB color space. When color equality needs to
795
+ # be decided, implementations, unless documented otherwise, treat two colors as
796
+ # equal if all their red, green, blue, and alpha values each differ by at most
797
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
798
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
799
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
800
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
801
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
802
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
803
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
804
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
805
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
806
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
807
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
808
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
809
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
810
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
811
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
812
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
813
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
814
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
815
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
816
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
817
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
818
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
819
819
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
820
820
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
821
821
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
822
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
822
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
823
823
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
824
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
825
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
826
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
827
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
828
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
829
- # join(''); `; // ...
824
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
825
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
826
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
827
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
828
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
829
+ # / ...
830
830
  # Corresponds to the JSON property `headerColor`
831
831
  # @return [Google::Apis::SheetsV4::Color]
832
832
  attr_accessor :header_color
@@ -838,49 +838,49 @@ module Google
838
838
 
839
839
  # Represents a color in the RGBA color space. This representation is designed
840
840
  # for simplicity of conversion to/from color representations in various
841
- # languages over compactness; for example, the fields of this representation can
842
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
843
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
841
+ # languages over compactness. For example, the fields of this representation can
842
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
843
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
844
844
  # method in iOS; and, with just a little work, it can be easily formatted into a
845
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
845
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
846
846
  # information about the absolute color space that should be used to interpret
847
847
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
848
- # applications SHOULD assume the sRGB color space. Note: when color equality
849
- # needs to be decided, implementations, unless documented otherwise, will treat
850
- # two colors to be equal if all their red, green, blue and alpha values each
851
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
852
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
853
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
854
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
855
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
856
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
857
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
858
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
859
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
860
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
861
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
862
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
863
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
864
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
865
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
866
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
867
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
868
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
869
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
870
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
871
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
872
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
848
+ # applications should assume the sRGB color space. When color equality needs to
849
+ # be decided, implementations, unless documented otherwise, treat two colors as
850
+ # equal if all their red, green, blue, and alpha values each differ by at most
851
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
852
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
853
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
854
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
855
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
856
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
857
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
858
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
859
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
860
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
861
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
862
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
863
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
864
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
865
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
866
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
867
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
868
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
869
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
870
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
871
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
872
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
873
873
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
874
874
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
875
875
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
876
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
876
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
877
877
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
878
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
879
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
880
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
881
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
882
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
883
- # join(''); `; // ...
878
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
879
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
880
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
881
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
882
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
883
+ # / ...
884
884
  # Corresponds to the JSON property `secondBandColor`
885
885
  # @return [Google::Apis::SheetsV4::Color]
886
886
  attr_accessor :second_band_color
@@ -923,49 +923,49 @@ module Google
923
923
 
924
924
  # Represents a color in the RGBA color space. This representation is designed
925
925
  # for simplicity of conversion to/from color representations in various
926
- # languages over compactness; for example, the fields of this representation can
927
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
928
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
926
+ # languages over compactness. For example, the fields of this representation can
927
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
928
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
929
929
  # method in iOS; and, with just a little work, it can be easily formatted into a
930
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
930
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
931
931
  # information about the absolute color space that should be used to interpret
932
932
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
933
- # applications SHOULD assume the sRGB color space. Note: when color equality
934
- # needs to be decided, implementations, unless documented otherwise, will treat
935
- # two colors to be equal if all their red, green, blue and alpha values each
936
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
937
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
938
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
939
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
940
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
941
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
942
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
943
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
944
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
945
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
946
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
947
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
948
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
949
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
950
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
951
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
952
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
953
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
954
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
955
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
956
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
957
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
933
+ # applications should assume the sRGB color space. When color equality needs to
934
+ # be decided, implementations, unless documented otherwise, treat two colors as
935
+ # equal if all their red, green, blue, and alpha values each differ by at most
936
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
937
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
938
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
939
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
940
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
941
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
942
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
943
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
944
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
945
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
946
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
947
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
948
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
949
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
950
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
951
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
952
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
953
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
954
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
955
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
956
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
957
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
958
958
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
959
959
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
960
960
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
961
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
961
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
962
962
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
963
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
964
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
965
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
966
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
967
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
968
- # join(''); `; // ...
963
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
964
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
965
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
966
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
967
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
968
+ # / ...
969
969
  # Corresponds to the JSON property `negativeColor`
970
970
  # @return [Google::Apis::SheetsV4::Color]
971
971
  attr_accessor :negative_color
@@ -982,49 +982,49 @@ module Google
982
982
 
983
983
  # Represents a color in the RGBA color space. This representation is designed
984
984
  # for simplicity of conversion to/from color representations in various
985
- # languages over compactness; for example, the fields of this representation can
986
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
987
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
985
+ # languages over compactness. For example, the fields of this representation can
986
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
987
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
988
988
  # method in iOS; and, with just a little work, it can be easily formatted into a
989
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
989
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
990
990
  # information about the absolute color space that should be used to interpret
991
991
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
992
- # applications SHOULD assume the sRGB color space. Note: when color equality
993
- # needs to be decided, implementations, unless documented otherwise, will treat
994
- # two colors to be equal if all their red, green, blue and alpha values each
995
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
996
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
997
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
998
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
999
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
1000
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
1001
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
1002
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
1003
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
1004
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
1005
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
1006
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
1007
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
1008
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
1009
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
1010
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
1011
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
1012
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
1013
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
1014
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
1015
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
1016
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
992
+ # applications should assume the sRGB color space. When color equality needs to
993
+ # be decided, implementations, unless documented otherwise, treat two colors as
994
+ # equal if all their red, green, blue, and alpha values each differ by at most
995
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
996
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
997
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
998
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
999
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1000
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1001
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1002
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1003
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1004
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1005
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1006
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1007
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1008
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1009
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1010
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1011
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1012
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1013
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1014
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1015
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1016
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1017
1017
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1018
1018
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1019
1019
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1020
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1020
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1021
1021
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
1022
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
1023
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
1024
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
1025
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
1026
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
1027
- # join(''); `; // ...
1022
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1023
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1024
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1025
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1026
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1027
+ # / ...
1028
1028
  # Corresponds to the JSON property `positiveColor`
1029
1029
  # @return [Google::Apis::SheetsV4::Color]
1030
1030
  attr_accessor :positive_color
@@ -1139,49 +1139,49 @@ module Google
1139
1139
 
1140
1140
  # Represents a color in the RGBA color space. This representation is designed
1141
1141
  # for simplicity of conversion to/from color representations in various
1142
- # languages over compactness; for example, the fields of this representation can
1143
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
1144
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1142
+ # languages over compactness. For example, the fields of this representation can
1143
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1144
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1145
1145
  # method in iOS; and, with just a little work, it can be easily formatted into a
1146
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
1146
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
1147
1147
  # information about the absolute color space that should be used to interpret
1148
1148
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
1149
- # applications SHOULD assume the sRGB color space. Note: when color equality
1150
- # needs to be decided, implementations, unless documented otherwise, will treat
1151
- # two colors to be equal if all their red, green, blue and alpha values each
1152
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
1153
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
1154
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
1155
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
1156
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
1157
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
1158
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
1159
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
1160
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
1161
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
1162
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
1163
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
1164
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
1165
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
1166
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
1167
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
1168
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
1169
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
1170
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
1171
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
1172
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
1173
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1149
+ # applications should assume the sRGB color space. When color equality needs to
1150
+ # be decided, implementations, unless documented otherwise, treat two colors as
1151
+ # equal if all their red, green, blue, and alpha values each differ by at most
1152
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
1153
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
1154
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
1155
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
1156
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1157
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1158
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1159
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1160
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1161
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1162
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1163
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1164
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1165
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1166
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1167
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1168
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1169
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1170
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1171
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1172
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1173
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1174
1174
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1175
1175
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1176
1176
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1177
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1177
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1178
1178
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
1179
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
1180
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
1181
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
1182
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
1183
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
1184
- # join(''); `; // ...
1179
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1180
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1181
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1182
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1183
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1184
+ # / ...
1185
1185
  # Corresponds to the JSON property `color`
1186
1186
  # @return [Google::Apis::SheetsV4::Color]
1187
1187
  attr_accessor :color
@@ -1413,49 +1413,49 @@ module Google
1413
1413
 
1414
1414
  # Represents a color in the RGBA color space. This representation is designed
1415
1415
  # for simplicity of conversion to/from color representations in various
1416
- # languages over compactness; for example, the fields of this representation can
1417
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
1418
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1416
+ # languages over compactness. For example, the fields of this representation can
1417
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
1418
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
1419
1419
  # method in iOS; and, with just a little work, it can be easily formatted into a
1420
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
1420
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
1421
1421
  # information about the absolute color space that should be used to interpret
1422
1422
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
1423
- # applications SHOULD assume the sRGB color space. Note: when color equality
1424
- # needs to be decided, implementations, unless documented otherwise, will treat
1425
- # two colors to be equal if all their red, green, blue and alpha values each
1426
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
1427
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
1428
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
1429
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
1430
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
1431
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
1432
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
1433
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
1434
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
1435
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
1436
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
1437
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
1438
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
1439
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
1440
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
1441
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
1442
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
1443
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
1444
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
1445
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
1446
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
1447
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1423
+ # applications should assume the sRGB color space. When color equality needs to
1424
+ # be decided, implementations, unless documented otherwise, treat two colors as
1425
+ # equal if all their red, green, blue, and alpha values each differ by at most
1426
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
1427
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
1428
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
1429
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
1430
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
1431
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
1432
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
1433
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
1434
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
1435
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
1436
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
1437
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
1438
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
1439
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
1440
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
1441
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
1442
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
1443
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
1444
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
1445
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
1446
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
1447
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
1448
1448
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
1449
1449
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
1450
1450
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
1451
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1451
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
1452
1452
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
1453
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
1454
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
1455
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
1456
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
1457
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
1458
- # join(''); `; // ...
1453
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
1454
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
1455
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
1456
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
1457
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
1458
+ # / ...
1459
1459
  # Corresponds to the JSON property `color`
1460
1460
  # @return [Google::Apis::SheetsV4::Color]
1461
1461
  attr_accessor :color
@@ -2105,49 +2105,49 @@ module Google
2105
2105
 
2106
2106
  # Represents a color in the RGBA color space. This representation is designed
2107
2107
  # for simplicity of conversion to/from color representations in various
2108
- # languages over compactness; for example, the fields of this representation can
2109
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
2110
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2108
+ # languages over compactness. For example, the fields of this representation can
2109
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
2110
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
2111
2111
  # method in iOS; and, with just a little work, it can be easily formatted into a
2112
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
2112
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
2113
2113
  # information about the absolute color space that should be used to interpret
2114
2114
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
2115
- # applications SHOULD assume the sRGB color space. Note: when color equality
2116
- # needs to be decided, implementations, unless documented otherwise, will treat
2117
- # two colors to be equal if all their red, green, blue and alpha values each
2118
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
2119
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
2120
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
2121
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
2122
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
2123
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
2124
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
2125
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
2126
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
2127
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
2128
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
2129
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
2130
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
2131
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
2132
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
2133
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
2134
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
2135
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
2136
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
2137
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
2138
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
2139
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2115
+ # applications should assume the sRGB color space. When color equality needs to
2116
+ # be decided, implementations, unless documented otherwise, treat two colors as
2117
+ # equal if all their red, green, blue, and alpha values each differ by at most
2118
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
2119
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
2120
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
2121
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
2122
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
2123
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
2124
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
2125
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
2126
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
2127
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
2128
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
2129
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
2130
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
2131
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
2132
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
2133
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
2134
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
2135
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
2136
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
2137
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
2138
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
2139
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2140
2140
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
2141
2141
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
2142
2142
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
2143
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2143
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2144
2144
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
2145
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
2146
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
2147
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
2148
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
2149
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
2150
- # join(''); `; // ...
2145
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
2146
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
2147
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
2148
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
2149
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
2150
+ # / ...
2151
2151
  # Corresponds to the JSON property `color`
2152
2152
  # @return [Google::Apis::SheetsV4::Color]
2153
2153
  attr_accessor :color
@@ -2224,49 +2224,49 @@ module Google
2224
2224
 
2225
2225
  # Represents a color in the RGBA color space. This representation is designed
2226
2226
  # for simplicity of conversion to/from color representations in various
2227
- # languages over compactness; for example, the fields of this representation can
2228
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
2229
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2227
+ # languages over compactness. For example, the fields of this representation can
2228
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
2229
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
2230
2230
  # method in iOS; and, with just a little work, it can be easily formatted into a
2231
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
2231
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
2232
2232
  # information about the absolute color space that should be used to interpret
2233
2233
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
2234
- # applications SHOULD assume the sRGB color space. Note: when color equality
2235
- # needs to be decided, implementations, unless documented otherwise, will treat
2236
- # two colors to be equal if all their red, green, blue and alpha values each
2237
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
2238
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
2239
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
2240
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
2241
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
2242
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
2243
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
2244
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
2245
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
2246
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
2247
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
2248
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
2249
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
2250
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
2251
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
2252
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
2253
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
2254
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
2255
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
2256
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
2257
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
2258
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2234
+ # applications should assume the sRGB color space. When color equality needs to
2235
+ # be decided, implementations, unless documented otherwise, treat two colors as
2236
+ # equal if all their red, green, blue, and alpha values each differ by at most
2237
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
2238
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
2239
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
2240
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
2241
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
2242
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
2243
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
2244
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
2245
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
2246
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
2247
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
2248
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
2249
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
2250
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
2251
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
2252
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
2253
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
2254
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
2255
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
2256
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
2257
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
2258
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2259
2259
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
2260
2260
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
2261
2261
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
2262
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2262
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2263
2263
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
2264
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
2265
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
2266
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
2267
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
2268
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
2269
- # join(''); `; // ...
2264
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
2265
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
2266
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
2267
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
2268
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
2269
+ # / ...
2270
2270
  # Corresponds to the JSON property `bubbleBorderColor`
2271
2271
  # @return [Google::Apis::SheetsV4::Color]
2272
2272
  attr_accessor :bubble_border_color
@@ -2560,49 +2560,49 @@ module Google
2560
2560
 
2561
2561
  # Represents a color in the RGBA color space. This representation is designed
2562
2562
  # for simplicity of conversion to/from color representations in various
2563
- # languages over compactness; for example, the fields of this representation can
2564
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
2565
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2563
+ # languages over compactness. For example, the fields of this representation can
2564
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
2565
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
2566
2566
  # method in iOS; and, with just a little work, it can be easily formatted into a
2567
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
2567
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
2568
2568
  # information about the absolute color space that should be used to interpret
2569
2569
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
2570
- # applications SHOULD assume the sRGB color space. Note: when color equality
2571
- # needs to be decided, implementations, unless documented otherwise, will treat
2572
- # two colors to be equal if all their red, green, blue and alpha values each
2573
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
2574
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
2575
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
2576
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
2577
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
2578
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
2579
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
2580
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
2581
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
2582
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
2583
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
2584
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
2585
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
2586
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
2587
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
2588
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
2589
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
2590
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
2591
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
2592
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
2593
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
2594
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2570
+ # applications should assume the sRGB color space. When color equality needs to
2571
+ # be decided, implementations, unless documented otherwise, treat two colors as
2572
+ # equal if all their red, green, blue, and alpha values each differ by at most
2573
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
2574
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
2575
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
2576
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
2577
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
2578
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
2579
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
2580
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
2581
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
2582
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
2583
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
2584
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
2585
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
2586
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
2587
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
2588
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
2589
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
2590
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
2591
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
2592
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
2593
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
2594
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2595
2595
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
2596
2596
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
2597
2597
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
2598
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2598
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2599
2599
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
2600
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
2601
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
2602
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
2603
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
2604
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
2605
- # join(''); `; // ...
2600
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
2601
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
2602
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
2603
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
2604
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
2605
+ # / ...
2606
2606
  # Corresponds to the JSON property `backgroundColor`
2607
2607
  # @return [Google::Apis::SheetsV4::Color]
2608
2608
  attr_accessor :background_color
@@ -2913,49 +2913,49 @@ module Google
2913
2913
 
2914
2914
  # Represents a color in the RGBA color space. This representation is designed
2915
2915
  # for simplicity of conversion to/from color representations in various
2916
- # languages over compactness; for example, the fields of this representation can
2917
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
2918
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
2916
+ # languages over compactness. For example, the fields of this representation can
2917
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
2918
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
2919
2919
  # method in iOS; and, with just a little work, it can be easily formatted into a
2920
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
2920
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
2921
2921
  # information about the absolute color space that should be used to interpret
2922
2922
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
2923
- # applications SHOULD assume the sRGB color space. Note: when color equality
2924
- # needs to be decided, implementations, unless documented otherwise, will treat
2925
- # two colors to be equal if all their red, green, blue and alpha values each
2926
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
2927
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
2928
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
2929
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
2930
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
2931
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
2932
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
2933
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
2934
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
2935
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
2936
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
2937
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
2938
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
2939
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
2940
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
2941
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
2942
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
2943
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
2944
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
2945
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
2946
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
2947
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2923
+ # applications should assume the sRGB color space. When color equality needs to
2924
+ # be decided, implementations, unless documented otherwise, treat two colors as
2925
+ # equal if all their red, green, blue, and alpha values each differ by at most
2926
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
2927
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
2928
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
2929
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
2930
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
2931
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
2932
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
2933
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
2934
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
2935
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
2936
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
2937
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
2938
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
2939
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
2940
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
2941
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
2942
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
2943
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
2944
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
2945
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
2946
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
2947
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
2948
2948
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
2949
2949
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
2950
2950
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
2951
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2951
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
2952
2952
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
2953
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
2954
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
2955
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
2956
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
2957
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
2958
- # join(''); `; // ...
2953
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
2954
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
2955
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
2956
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
2957
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
2958
+ # / ...
2959
2959
  # Corresponds to the JSON property `backgroundColor`
2960
2960
  # @return [Google::Apis::SheetsV4::Color]
2961
2961
  attr_accessor :background_color
@@ -3189,61 +3189,60 @@ module Google
3189
3189
 
3190
3190
  # Represents a color in the RGBA color space. This representation is designed
3191
3191
  # for simplicity of conversion to/from color representations in various
3192
- # languages over compactness; for example, the fields of this representation can
3193
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
3194
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3192
+ # languages over compactness. For example, the fields of this representation can
3193
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3194
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3195
3195
  # method in iOS; and, with just a little work, it can be easily formatted into a
3196
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
3196
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3197
3197
  # information about the absolute color space that should be used to interpret
3198
3198
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3199
- # applications SHOULD assume the sRGB color space. Note: when color equality
3200
- # needs to be decided, implementations, unless documented otherwise, will treat
3201
- # two colors to be equal if all their red, green, blue and alpha values each
3202
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
3203
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
3204
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
3205
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
3206
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
3207
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
3208
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
3209
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
3210
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
3211
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
3212
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
3213
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
3214
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
3215
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
3216
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
3217
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
3218
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
3219
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
3220
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
3221
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
3222
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
3223
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3199
+ # applications should assume the sRGB color space. When color equality needs to
3200
+ # be decided, implementations, unless documented otherwise, treat two colors as
3201
+ # equal if all their red, green, blue, and alpha values each differ by at most
3202
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3203
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3204
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3205
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3206
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3207
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3208
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3209
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3210
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3211
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3212
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3213
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3214
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3215
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3216
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3217
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3218
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3219
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3220
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3221
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3222
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3223
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3224
3224
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3225
3225
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3226
3226
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3227
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3227
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3228
3228
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3229
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
3230
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
3231
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
3232
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
3233
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
3234
- # join(''); `; // ...
3229
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3230
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3231
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3232
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3233
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3234
+ # / ...
3235
3235
  class Color
3236
3236
  include Google::Apis::Core::Hashable
3237
3237
 
3238
3238
  # The fraction of this color that should be applied to the pixel. That is, the
3239
- # final pixel color is defined by the equation: pixel color = alpha * (this
3240
- # color) + (1.0 - alpha) * (background color) This means that a value of 1.0
3239
+ # final pixel color is defined by the equation: `pixel color = alpha * (this
3240
+ # color) + (1.0 - alpha) * (background color)` This means that a value of 1.0
3241
3241
  # corresponds to a solid color, whereas a value of 0.0 corresponds to a
3242
3242
  # completely transparent color. This uses a wrapper message rather than a simple
3243
3243
  # float scalar so that it is possible to distinguish between a default value and
3244
- # the value being unset. If omitted, this color object is to be rendered as a
3245
- # solid color (as if the alpha value had been explicitly given with a value of 1.
3246
- # 0).
3244
+ # the value being unset. If omitted, this color object is rendered as a solid
3245
+ # color (as if the alpha value had been explicitly given a value of 1.0).
3247
3246
  # Corresponds to the JSON property `alpha`
3248
3247
  # @return [Float]
3249
3248
  attr_accessor :alpha
@@ -3282,49 +3281,49 @@ module Google
3282
3281
 
3283
3282
  # Represents a color in the RGBA color space. This representation is designed
3284
3283
  # for simplicity of conversion to/from color representations in various
3285
- # languages over compactness; for example, the fields of this representation can
3286
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
3287
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3284
+ # languages over compactness. For example, the fields of this representation can
3285
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
3286
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
3288
3287
  # method in iOS; and, with just a little work, it can be easily formatted into a
3289
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
3288
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
3290
3289
  # information about the absolute color space that should be used to interpret
3291
3290
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
3292
- # applications SHOULD assume the sRGB color space. Note: when color equality
3293
- # needs to be decided, implementations, unless documented otherwise, will treat
3294
- # two colors to be equal if all their red, green, blue and alpha values each
3295
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
3296
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
3297
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
3298
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
3299
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
3300
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
3301
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
3302
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
3303
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
3304
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
3305
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
3306
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
3307
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
3308
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
3309
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
3310
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
3311
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
3312
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
3313
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
3314
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
3315
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
3316
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3291
+ # applications should assume the sRGB color space. When color equality needs to
3292
+ # be decided, implementations, unless documented otherwise, treat two colors as
3293
+ # equal if all their red, green, blue, and alpha values each differ by at most
3294
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
3295
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
3296
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
3297
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
3298
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
3299
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
3300
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
3301
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
3302
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
3303
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
3304
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
3305
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
3306
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
3307
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
3308
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
3309
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
3310
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
3311
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
3312
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
3313
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
3314
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
3315
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
3317
3316
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
3318
3317
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
3319
3318
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
3320
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3319
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
3321
3320
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
3322
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
3323
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
3324
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
3325
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
3326
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
3327
- # join(''); `; // ...
3321
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
3322
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
3323
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
3324
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
3325
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
3326
+ # / ...
3328
3327
  # Corresponds to the JSON property `rgbColor`
3329
3328
  # @return [Google::Apis::SheetsV4::Color]
3330
3329
  attr_accessor :rgb_color
@@ -5241,49 +5240,49 @@ module Google
5241
5240
 
5242
5241
  # Represents a color in the RGBA color space. This representation is designed
5243
5242
  # for simplicity of conversion to/from color representations in various
5244
- # languages over compactness; for example, the fields of this representation can
5245
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
5246
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
5243
+ # languages over compactness. For example, the fields of this representation can
5244
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
5245
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
5247
5246
  # method in iOS; and, with just a little work, it can be easily formatted into a
5248
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
5247
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
5249
5248
  # information about the absolute color space that should be used to interpret
5250
5249
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
5251
- # applications SHOULD assume the sRGB color space. Note: when color equality
5252
- # needs to be decided, implementations, unless documented otherwise, will treat
5253
- # two colors to be equal if all their red, green, blue and alpha values each
5254
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
5255
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
5256
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
5257
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
5258
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
5259
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
5260
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
5261
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
5262
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
5263
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
5264
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
5265
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
5266
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
5267
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
5268
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
5269
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
5270
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
5271
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
5272
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
5273
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
5274
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
5275
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5250
+ # applications should assume the sRGB color space. When color equality needs to
5251
+ # be decided, implementations, unless documented otherwise, treat two colors as
5252
+ # equal if all their red, green, blue, and alpha values each differ by at most
5253
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
5254
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
5255
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
5256
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
5257
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
5258
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
5259
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
5260
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
5261
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
5262
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
5263
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
5264
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
5265
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
5266
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
5267
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
5268
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
5269
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
5270
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
5271
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
5272
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
5273
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
5274
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5276
5275
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
5277
5276
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
5278
5277
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
5279
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5278
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5280
5279
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
5281
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
5282
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
5283
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
5284
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
5285
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
5286
- # join(''); `; // ...
5280
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
5281
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
5282
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
5283
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
5284
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
5285
+ # / ...
5287
5286
  # Corresponds to the JSON property `color`
5288
5287
  # @return [Google::Apis::SheetsV4::Color]
5289
5288
  attr_accessor :color
@@ -5427,49 +5426,49 @@ module Google
5427
5426
 
5428
5427
  # Represents a color in the RGBA color space. This representation is designed
5429
5428
  # for simplicity of conversion to/from color representations in various
5430
- # languages over compactness; for example, the fields of this representation can
5431
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
5432
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
5429
+ # languages over compactness. For example, the fields of this representation can
5430
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
5431
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
5433
5432
  # method in iOS; and, with just a little work, it can be easily formatted into a
5434
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
5433
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
5435
5434
  # information about the absolute color space that should be used to interpret
5436
5435
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
5437
- # applications SHOULD assume the sRGB color space. Note: when color equality
5438
- # needs to be decided, implementations, unless documented otherwise, will treat
5439
- # two colors to be equal if all their red, green, blue and alpha values each
5440
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
5441
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
5442
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
5443
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
5444
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
5445
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
5446
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
5447
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
5448
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
5449
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
5450
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
5451
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
5452
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
5453
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
5454
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
5455
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
5456
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
5457
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
5458
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
5459
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
5460
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
5461
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5436
+ # applications should assume the sRGB color space. When color equality needs to
5437
+ # be decided, implementations, unless documented otherwise, treat two colors as
5438
+ # equal if all their red, green, blue, and alpha values each differ by at most
5439
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
5440
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
5441
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
5442
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
5443
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
5444
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
5445
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
5446
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
5447
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
5448
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
5449
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
5450
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
5451
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
5452
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
5453
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
5454
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
5455
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
5456
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
5457
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
5458
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
5459
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
5460
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5462
5461
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
5463
5462
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
5464
5463
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
5465
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5464
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5466
5465
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
5467
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
5468
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
5469
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
5470
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
5471
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
5472
- # join(''); `; // ...
5466
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
5467
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
5468
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
5469
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
5470
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
5471
+ # / ...
5473
5472
  # Corresponds to the JSON property `visibleBackgroundColor`
5474
5473
  # @return [Google::Apis::SheetsV4::Color]
5475
5474
  attr_accessor :visible_background_color
@@ -5481,49 +5480,49 @@ module Google
5481
5480
 
5482
5481
  # Represents a color in the RGBA color space. This representation is designed
5483
5482
  # for simplicity of conversion to/from color representations in various
5484
- # languages over compactness; for example, the fields of this representation can
5485
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
5486
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
5483
+ # languages over compactness. For example, the fields of this representation can
5484
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
5485
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
5487
5486
  # method in iOS; and, with just a little work, it can be easily formatted into a
5488
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
5487
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
5489
5488
  # information about the absolute color space that should be used to interpret
5490
5489
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
5491
- # applications SHOULD assume the sRGB color space. Note: when color equality
5492
- # needs to be decided, implementations, unless documented otherwise, will treat
5493
- # two colors to be equal if all their red, green, blue and alpha values each
5494
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
5495
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
5496
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
5497
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
5498
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
5499
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
5500
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
5501
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
5502
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
5503
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
5504
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
5505
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
5506
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
5507
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
5508
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
5509
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
5510
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
5511
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
5512
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
5513
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
5514
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
5515
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5490
+ # applications should assume the sRGB color space. When color equality needs to
5491
+ # be decided, implementations, unless documented otherwise, treat two colors as
5492
+ # equal if all their red, green, blue, and alpha values each differ by at most
5493
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
5494
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
5495
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
5496
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
5497
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
5498
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
5499
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
5500
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
5501
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
5502
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
5503
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
5504
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
5505
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
5506
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
5507
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
5508
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
5509
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
5510
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
5511
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
5512
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
5513
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
5514
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
5516
5515
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
5517
5516
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
5518
5517
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
5519
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5518
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
5520
5519
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
5521
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
5522
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
5523
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
5524
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
5525
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
5526
- # join(''); `; // ...
5520
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
5521
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
5522
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
5523
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
5524
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
5525
+ # / ...
5527
5526
  # Corresponds to the JSON property `visibleForegroundColor`
5528
5527
  # @return [Google::Apis::SheetsV4::Color]
5529
5528
  attr_accessor :visible_foreground_color
@@ -6154,49 +6153,49 @@ module Google
6154
6153
 
6155
6154
  # Represents a color in the RGBA color space. This representation is designed
6156
6155
  # for simplicity of conversion to/from color representations in various
6157
- # languages over compactness; for example, the fields of this representation can
6158
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
6159
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
6156
+ # languages over compactness. For example, the fields of this representation can
6157
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
6158
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
6160
6159
  # method in iOS; and, with just a little work, it can be easily formatted into a
6161
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
6160
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
6162
6161
  # information about the absolute color space that should be used to interpret
6163
6162
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
6164
- # applications SHOULD assume the sRGB color space. Note: when color equality
6165
- # needs to be decided, implementations, unless documented otherwise, will treat
6166
- # two colors to be equal if all their red, green, blue and alpha values each
6167
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
6168
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
6169
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
6170
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
6171
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
6172
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
6173
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
6174
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
6175
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
6176
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
6177
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
6178
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
6179
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
6180
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
6181
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
6182
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
6183
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
6184
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
6185
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
6186
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
6187
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
6188
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6163
+ # applications should assume the sRGB color space. When color equality needs to
6164
+ # be decided, implementations, unless documented otherwise, treat two colors as
6165
+ # equal if all their red, green, blue, and alpha values each differ by at most
6166
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
6167
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
6168
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
6169
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
6170
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
6171
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
6172
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
6173
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
6174
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
6175
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
6176
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
6177
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
6178
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
6179
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
6180
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
6181
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
6182
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
6183
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
6184
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
6185
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
6186
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
6187
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6189
6188
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
6190
6189
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
6191
6190
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
6192
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6191
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6193
6192
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
6194
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
6195
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
6196
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
6197
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
6198
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
6199
- # join(''); `; // ...
6193
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
6194
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
6195
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
6196
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
6197
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
6198
+ # / ...
6200
6199
  # Corresponds to the JSON property `barColor`
6201
6200
  # @return [Google::Apis::SheetsV4::Color]
6202
6201
  attr_accessor :bar_color
@@ -6304,49 +6303,49 @@ module Google
6304
6303
 
6305
6304
  # Represents a color in the RGBA color space. This representation is designed
6306
6305
  # for simplicity of conversion to/from color representations in various
6307
- # languages over compactness; for example, the fields of this representation can
6308
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
6309
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
6306
+ # languages over compactness. For example, the fields of this representation can
6307
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
6308
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
6310
6309
  # method in iOS; and, with just a little work, it can be easily formatted into a
6311
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
6310
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
6312
6311
  # information about the absolute color space that should be used to interpret
6313
6312
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
6314
- # applications SHOULD assume the sRGB color space. Note: when color equality
6315
- # needs to be decided, implementations, unless documented otherwise, will treat
6316
- # two colors to be equal if all their red, green, blue and alpha values each
6317
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
6318
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
6319
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
6320
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
6321
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
6322
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
6323
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
6324
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
6325
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
6326
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
6327
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
6328
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
6329
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
6330
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
6331
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
6332
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
6333
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
6334
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
6335
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
6336
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
6337
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
6338
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6313
+ # applications should assume the sRGB color space. When color equality needs to
6314
+ # be decided, implementations, unless documented otherwise, treat two colors as
6315
+ # equal if all their red, green, blue, and alpha values each differ by at most
6316
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
6317
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
6318
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
6319
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
6320
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
6321
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
6322
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
6323
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
6324
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
6325
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
6326
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
6327
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
6328
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
6329
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
6330
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
6331
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
6332
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
6333
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
6334
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
6335
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
6336
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
6337
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6339
6338
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
6340
6339
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
6341
6340
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
6342
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6341
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6343
6342
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
6344
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
6345
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
6346
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
6347
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
6348
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
6349
- # join(''); `; // ...
6343
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
6344
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
6345
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
6346
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
6347
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
6348
+ # / ...
6350
6349
  # Corresponds to the JSON property `color`
6351
6350
  # @return [Google::Apis::SheetsV4::Color]
6352
6351
  attr_accessor :color
@@ -6768,49 +6767,49 @@ module Google
6768
6767
 
6769
6768
  # Represents a color in the RGBA color space. This representation is designed
6770
6769
  # for simplicity of conversion to/from color representations in various
6771
- # languages over compactness; for example, the fields of this representation can
6772
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
6773
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
6770
+ # languages over compactness. For example, the fields of this representation can
6771
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
6772
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
6774
6773
  # method in iOS; and, with just a little work, it can be easily formatted into a
6775
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
6774
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
6776
6775
  # information about the absolute color space that should be used to interpret
6777
6776
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
6778
- # applications SHOULD assume the sRGB color space. Note: when color equality
6779
- # needs to be decided, implementations, unless documented otherwise, will treat
6780
- # two colors to be equal if all their red, green, blue and alpha values each
6781
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
6782
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
6783
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
6784
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
6785
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
6786
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
6787
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
6788
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
6789
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
6790
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
6791
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
6792
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
6793
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
6794
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
6795
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
6796
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
6797
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
6798
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
6799
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
6800
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
6801
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
6802
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6777
+ # applications should assume the sRGB color space. When color equality needs to
6778
+ # be decided, implementations, unless documented otherwise, treat two colors as
6779
+ # equal if all their red, green, blue, and alpha values each differ by at most
6780
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
6781
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
6782
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
6783
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
6784
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
6785
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
6786
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
6787
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
6788
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
6789
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
6790
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
6791
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
6792
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
6793
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
6794
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
6795
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
6796
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
6797
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
6798
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
6799
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
6800
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
6801
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6803
6802
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
6804
6803
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
6805
6804
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
6806
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6805
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6807
6806
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
6808
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
6809
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
6810
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
6811
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
6812
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
6813
- # join(''); `; // ...
6807
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
6808
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
6809
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
6810
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
6811
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
6812
+ # / ...
6814
6813
  # Corresponds to the JSON property `nodeColor`
6815
6814
  # @return [Google::Apis::SheetsV4::Color]
6816
6815
  attr_accessor :node_color
@@ -6832,49 +6831,49 @@ module Google
6832
6831
 
6833
6832
  # Represents a color in the RGBA color space. This representation is designed
6834
6833
  # for simplicity of conversion to/from color representations in various
6835
- # languages over compactness; for example, the fields of this representation can
6836
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
6837
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
6834
+ # languages over compactness. For example, the fields of this representation can
6835
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
6836
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
6838
6837
  # method in iOS; and, with just a little work, it can be easily formatted into a
6839
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
6838
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
6840
6839
  # information about the absolute color space that should be used to interpret
6841
6840
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
6842
- # applications SHOULD assume the sRGB color space. Note: when color equality
6843
- # needs to be decided, implementations, unless documented otherwise, will treat
6844
- # two colors to be equal if all their red, green, blue and alpha values each
6845
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
6846
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
6847
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
6848
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
6849
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
6850
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
6851
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
6852
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
6853
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
6854
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
6855
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
6856
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
6857
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
6858
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
6859
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
6860
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
6861
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
6862
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
6863
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
6864
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
6865
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
6866
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6841
+ # applications should assume the sRGB color space. When color equality needs to
6842
+ # be decided, implementations, unless documented otherwise, treat two colors as
6843
+ # equal if all their red, green, blue, and alpha values each differ by at most
6844
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
6845
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
6846
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
6847
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
6848
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
6849
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
6850
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
6851
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
6852
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
6853
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
6854
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
6855
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
6856
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
6857
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
6858
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
6859
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
6860
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
6861
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
6862
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
6863
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
6864
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
6865
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
6867
6866
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
6868
6867
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
6869
6868
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
6870
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6869
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
6871
6870
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
6872
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
6873
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
6874
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
6875
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
6876
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
6877
- # join(''); `; // ...
6871
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
6872
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
6873
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
6874
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
6875
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
6876
+ # / ...
6878
6877
  # Corresponds to the JSON property `selectedNodeColor`
6879
6878
  # @return [Google::Apis::SheetsV4::Color]
6880
6879
  attr_accessor :selected_node_color
@@ -8802,49 +8801,49 @@ module Google
8802
8801
 
8803
8802
  # Represents a color in the RGBA color space. This representation is designed
8804
8803
  # for simplicity of conversion to/from color representations in various
8805
- # languages over compactness; for example, the fields of this representation can
8806
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
8807
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
8804
+ # languages over compactness. For example, the fields of this representation can
8805
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
8806
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
8808
8807
  # method in iOS; and, with just a little work, it can be easily formatted into a
8809
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
8808
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
8810
8809
  # information about the absolute color space that should be used to interpret
8811
8810
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
8812
- # applications SHOULD assume the sRGB color space. Note: when color equality
8813
- # needs to be decided, implementations, unless documented otherwise, will treat
8814
- # two colors to be equal if all their red, green, blue and alpha values each
8815
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
8816
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
8817
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
8818
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
8819
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
8820
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
8821
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
8822
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
8823
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
8824
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
8825
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
8826
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
8827
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
8828
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
8829
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
8830
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
8831
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
8832
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
8833
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
8834
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
8835
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
8836
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
8811
+ # applications should assume the sRGB color space. When color equality needs to
8812
+ # be decided, implementations, unless documented otherwise, treat two colors as
8813
+ # equal if all their red, green, blue, and alpha values each differ by at most
8814
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
8815
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
8816
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
8817
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
8818
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
8819
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
8820
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
8821
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
8822
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
8823
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
8824
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
8825
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
8826
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
8827
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
8828
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
8829
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
8830
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
8831
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
8832
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
8833
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
8834
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
8835
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
8837
8836
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
8838
8837
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
8839
8838
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
8840
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
8839
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
8841
8840
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
8842
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
8843
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
8844
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
8845
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
8846
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
8847
- # join(''); `; // ...
8841
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
8842
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
8843
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
8844
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
8845
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
8846
+ # / ...
8848
8847
  # Corresponds to the JSON property `tabColor`
8849
8848
  # @return [Google::Apis::SheetsV4::Color]
8850
8849
  attr_accessor :tab_color
@@ -8921,49 +8920,49 @@ module Google
8921
8920
 
8922
8921
  # Represents a color in the RGBA color space. This representation is designed
8923
8922
  # for simplicity of conversion to/from color representations in various
8924
- # languages over compactness; for example, the fields of this representation can
8925
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
8926
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
8923
+ # languages over compactness. For example, the fields of this representation can
8924
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
8925
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
8927
8926
  # method in iOS; and, with just a little work, it can be easily formatted into a
8928
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
8927
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
8929
8928
  # information about the absolute color space that should be used to interpret
8930
8929
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
8931
- # applications SHOULD assume the sRGB color space. Note: when color equality
8932
- # needs to be decided, implementations, unless documented otherwise, will treat
8933
- # two colors to be equal if all their red, green, blue and alpha values each
8934
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
8935
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
8936
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
8937
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
8938
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
8939
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
8940
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
8941
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
8942
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
8943
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
8944
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
8945
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
8946
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
8947
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
8948
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
8949
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
8950
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
8951
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
8952
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
8953
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
8954
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
8955
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
8930
+ # applications should assume the sRGB color space. When color equality needs to
8931
+ # be decided, implementations, unless documented otherwise, treat two colors as
8932
+ # equal if all their red, green, blue, and alpha values each differ by at most
8933
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
8934
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
8935
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
8936
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
8937
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
8938
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
8939
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
8940
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
8941
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
8942
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
8943
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
8944
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
8945
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
8946
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
8947
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
8948
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
8949
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
8950
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
8951
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
8952
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
8953
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
8954
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
8956
8955
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
8957
8956
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
8958
8957
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
8959
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
8958
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
8960
8959
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
8961
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
8962
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
8963
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
8964
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
8965
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
8966
- # join(''); `; // ...
8960
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
8961
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
8962
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
8963
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
8964
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
8965
+ # / ...
8967
8966
  # Corresponds to the JSON property `backgroundColor`
8968
8967
  # @return [Google::Apis::SheetsV4::Color]
8969
8968
  attr_accessor :background_color
@@ -9079,49 +9078,49 @@ module Google
9079
9078
 
9080
9079
  # Represents a color in the RGBA color space. This representation is designed
9081
9080
  # for simplicity of conversion to/from color representations in various
9082
- # languages over compactness; for example, the fields of this representation can
9083
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
9084
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9081
+ # languages over compactness. For example, the fields of this representation can
9082
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
9083
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
9085
9084
  # method in iOS; and, with just a little work, it can be easily formatted into a
9086
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
9085
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
9087
9086
  # information about the absolute color space that should be used to interpret
9088
9087
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
9089
- # applications SHOULD assume the sRGB color space. Note: when color equality
9090
- # needs to be decided, implementations, unless documented otherwise, will treat
9091
- # two colors to be equal if all their red, green, blue and alpha values each
9092
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
9093
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
9094
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
9095
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
9096
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
9097
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
9098
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
9099
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
9100
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
9101
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
9102
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
9103
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
9104
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
9105
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
9106
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
9107
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
9108
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
9109
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
9110
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
9111
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
9112
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
9113
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9088
+ # applications should assume the sRGB color space. When color equality needs to
9089
+ # be decided, implementations, unless documented otherwise, treat two colors as
9090
+ # equal if all their red, green, blue, and alpha values each differ by at most
9091
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
9092
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
9093
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
9094
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
9095
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
9096
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
9097
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
9098
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
9099
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
9100
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
9101
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
9102
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
9103
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
9104
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
9105
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
9106
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
9107
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
9108
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
9109
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
9110
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
9111
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
9112
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9114
9113
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
9115
9114
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
9116
9115
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
9117
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9116
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9118
9117
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
9119
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
9120
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
9121
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
9122
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
9123
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
9124
- # join(''); `; // ...
9118
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
9119
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
9120
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
9121
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
9122
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
9123
+ # / ...
9125
9124
  # Corresponds to the JSON property `backgroundColor`
9126
9125
  # @return [Google::Apis::SheetsV4::Color]
9127
9126
  attr_accessor :background_color
@@ -9143,49 +9142,49 @@ module Google
9143
9142
 
9144
9143
  # Represents a color in the RGBA color space. This representation is designed
9145
9144
  # for simplicity of conversion to/from color representations in various
9146
- # languages over compactness; for example, the fields of this representation can
9147
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
9148
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9145
+ # languages over compactness. For example, the fields of this representation can
9146
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
9147
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
9149
9148
  # method in iOS; and, with just a little work, it can be easily formatted into a
9150
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
9149
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
9151
9150
  # information about the absolute color space that should be used to interpret
9152
9151
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
9153
- # applications SHOULD assume the sRGB color space. Note: when color equality
9154
- # needs to be decided, implementations, unless documented otherwise, will treat
9155
- # two colors to be equal if all their red, green, blue and alpha values each
9156
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
9157
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
9158
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
9159
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
9160
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
9161
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
9162
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
9163
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
9164
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
9165
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
9166
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
9167
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
9168
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
9169
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
9170
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
9171
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
9172
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
9173
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
9174
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
9175
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
9176
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
9177
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9152
+ # applications should assume the sRGB color space. When color equality needs to
9153
+ # be decided, implementations, unless documented otherwise, treat two colors as
9154
+ # equal if all their red, green, blue, and alpha values each differ by at most
9155
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
9156
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
9157
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
9158
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
9159
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
9160
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
9161
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
9162
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
9163
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
9164
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
9165
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
9166
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
9167
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
9168
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
9169
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
9170
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
9171
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
9172
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
9173
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
9174
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
9175
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
9176
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9178
9177
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
9179
9178
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
9180
9179
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
9181
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9180
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9182
9181
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
9183
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
9184
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
9185
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
9186
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
9187
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
9188
- # join(''); `; // ...
9182
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
9183
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
9184
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
9185
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
9186
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
9187
+ # / ...
9189
9188
  # Corresponds to the JSON property `foregroundColor`
9190
9189
  # @return [Google::Apis::SheetsV4::Color]
9191
9190
  attr_accessor :foreground_color
@@ -9433,49 +9432,49 @@ module Google
9433
9432
 
9434
9433
  # Represents a color in the RGBA color space. This representation is designed
9435
9434
  # for simplicity of conversion to/from color representations in various
9436
- # languages over compactness; for example, the fields of this representation can
9437
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
9438
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9435
+ # languages over compactness. For example, the fields of this representation can
9436
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
9437
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
9439
9438
  # method in iOS; and, with just a little work, it can be easily formatted into a
9440
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
9439
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
9441
9440
  # information about the absolute color space that should be used to interpret
9442
9441
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
9443
- # applications SHOULD assume the sRGB color space. Note: when color equality
9444
- # needs to be decided, implementations, unless documented otherwise, will treat
9445
- # two colors to be equal if all their red, green, blue and alpha values each
9446
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
9447
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
9448
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
9449
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
9450
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
9451
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
9452
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
9453
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
9454
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
9455
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
9456
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
9457
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
9458
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
9459
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
9460
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
9461
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
9462
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
9463
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
9464
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
9465
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
9466
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
9467
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9442
+ # applications should assume the sRGB color space. When color equality needs to
9443
+ # be decided, implementations, unless documented otherwise, treat two colors as
9444
+ # equal if all their red, green, blue, and alpha values each differ by at most
9445
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
9446
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
9447
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
9448
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
9449
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
9450
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
9451
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
9452
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
9453
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
9454
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
9455
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
9456
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
9457
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
9458
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
9459
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
9460
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
9461
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
9462
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
9463
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
9464
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
9465
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
9466
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9468
9467
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
9469
9468
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
9470
9469
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
9471
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9470
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9472
9471
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
9473
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
9474
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
9475
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
9476
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
9477
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
9478
- # join(''); `; // ...
9472
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
9473
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
9474
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
9475
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
9476
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
9477
+ # / ...
9479
9478
  # Corresponds to the JSON property `foregroundColor`
9480
9479
  # @return [Google::Apis::SheetsV4::Color]
9481
9480
  attr_accessor :foreground_color
@@ -9715,49 +9714,49 @@ module Google
9715
9714
 
9716
9715
  # Represents a color in the RGBA color space. This representation is designed
9717
9716
  # for simplicity of conversion to/from color representations in various
9718
- # languages over compactness; for example, the fields of this representation can
9719
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
9720
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9717
+ # languages over compactness. For example, the fields of this representation can
9718
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
9719
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
9721
9720
  # method in iOS; and, with just a little work, it can be easily formatted into a
9722
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
9721
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
9723
9722
  # information about the absolute color space that should be used to interpret
9724
9723
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
9725
- # applications SHOULD assume the sRGB color space. Note: when color equality
9726
- # needs to be decided, implementations, unless documented otherwise, will treat
9727
- # two colors to be equal if all their red, green, blue and alpha values each
9728
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
9729
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
9730
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
9731
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
9732
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
9733
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
9734
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
9735
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
9736
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
9737
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
9738
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
9739
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
9740
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
9741
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
9742
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
9743
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
9744
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
9745
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
9746
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
9747
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
9748
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
9749
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9724
+ # applications should assume the sRGB color space. When color equality needs to
9725
+ # be decided, implementations, unless documented otherwise, treat two colors as
9726
+ # equal if all their red, green, blue, and alpha values each differ by at most
9727
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
9728
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
9729
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
9730
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
9731
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
9732
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
9733
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
9734
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
9735
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
9736
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
9737
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
9738
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
9739
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
9740
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
9741
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
9742
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
9743
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
9744
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
9745
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
9746
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
9747
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
9748
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9750
9749
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
9751
9750
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
9752
9751
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
9753
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9752
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9754
9753
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
9755
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
9756
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
9757
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
9758
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
9759
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
9760
- # join(''); `; // ...
9754
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
9755
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
9756
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
9757
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
9758
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
9759
+ # / ...
9761
9760
  # Corresponds to the JSON property `maxValueColor`
9762
9761
  # @return [Google::Apis::SheetsV4::Color]
9763
9762
  attr_accessor :max_value_color
@@ -9769,49 +9768,49 @@ module Google
9769
9768
 
9770
9769
  # Represents a color in the RGBA color space. This representation is designed
9771
9770
  # for simplicity of conversion to/from color representations in various
9772
- # languages over compactness; for example, the fields of this representation can
9773
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
9774
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9771
+ # languages over compactness. For example, the fields of this representation can
9772
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
9773
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
9775
9774
  # method in iOS; and, with just a little work, it can be easily formatted into a
9776
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
9775
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
9777
9776
  # information about the absolute color space that should be used to interpret
9778
9777
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
9779
- # applications SHOULD assume the sRGB color space. Note: when color equality
9780
- # needs to be decided, implementations, unless documented otherwise, will treat
9781
- # two colors to be equal if all their red, green, blue and alpha values each
9782
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
9783
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
9784
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
9785
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
9786
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
9787
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
9788
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
9789
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
9790
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
9791
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
9792
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
9793
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
9794
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
9795
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
9796
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
9797
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
9798
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
9799
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
9800
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
9801
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
9802
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
9803
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9778
+ # applications should assume the sRGB color space. When color equality needs to
9779
+ # be decided, implementations, unless documented otherwise, treat two colors as
9780
+ # equal if all their red, green, blue, and alpha values each differ by at most
9781
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
9782
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
9783
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
9784
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
9785
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
9786
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
9787
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
9788
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
9789
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
9790
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
9791
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
9792
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
9793
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
9794
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
9795
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
9796
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
9797
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
9798
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
9799
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
9800
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
9801
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
9802
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9804
9803
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
9805
9804
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
9806
9805
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
9807
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9806
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9808
9807
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
9809
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
9810
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
9811
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
9812
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
9813
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
9814
- # join(''); `; // ...
9808
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
9809
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
9810
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
9811
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
9812
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
9813
+ # / ...
9815
9814
  # Corresponds to the JSON property `midValueColor`
9816
9815
  # @return [Google::Apis::SheetsV4::Color]
9817
9816
  attr_accessor :mid_value_color
@@ -9823,49 +9822,49 @@ module Google
9823
9822
 
9824
9823
  # Represents a color in the RGBA color space. This representation is designed
9825
9824
  # for simplicity of conversion to/from color representations in various
9826
- # languages over compactness; for example, the fields of this representation can
9827
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
9828
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9825
+ # languages over compactness. For example, the fields of this representation can
9826
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
9827
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
9829
9828
  # method in iOS; and, with just a little work, it can be easily formatted into a
9830
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
9829
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
9831
9830
  # information about the absolute color space that should be used to interpret
9832
9831
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
9833
- # applications SHOULD assume the sRGB color space. Note: when color equality
9834
- # needs to be decided, implementations, unless documented otherwise, will treat
9835
- # two colors to be equal if all their red, green, blue and alpha values each
9836
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
9837
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
9838
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
9839
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
9840
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
9841
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
9842
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
9843
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
9844
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
9845
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
9846
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
9847
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
9848
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
9849
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
9850
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
9851
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
9852
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
9853
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
9854
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
9855
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
9856
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
9857
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9832
+ # applications should assume the sRGB color space. When color equality needs to
9833
+ # be decided, implementations, unless documented otherwise, treat two colors as
9834
+ # equal if all their red, green, blue, and alpha values each differ by at most
9835
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
9836
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
9837
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
9838
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
9839
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
9840
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
9841
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
9842
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
9843
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
9844
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
9845
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
9846
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
9847
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
9848
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
9849
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
9850
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
9851
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
9852
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
9853
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
9854
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
9855
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
9856
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9858
9857
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
9859
9858
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
9860
9859
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
9861
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9860
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9862
9861
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
9863
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
9864
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
9865
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
9866
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
9867
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
9868
- # join(''); `; // ...
9862
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
9863
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
9864
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
9865
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
9866
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
9867
+ # / ...
9869
9868
  # Corresponds to the JSON property `minValueColor`
9870
9869
  # @return [Google::Apis::SheetsV4::Color]
9871
9870
  attr_accessor :min_value_color
@@ -9877,49 +9876,49 @@ module Google
9877
9876
 
9878
9877
  # Represents a color in the RGBA color space. This representation is designed
9879
9878
  # for simplicity of conversion to/from color representations in various
9880
- # languages over compactness; for example, the fields of this representation can
9881
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
9882
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9879
+ # languages over compactness. For example, the fields of this representation can
9880
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
9881
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
9883
9882
  # method in iOS; and, with just a little work, it can be easily formatted into a
9884
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
9883
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
9885
9884
  # information about the absolute color space that should be used to interpret
9886
9885
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
9887
- # applications SHOULD assume the sRGB color space. Note: when color equality
9888
- # needs to be decided, implementations, unless documented otherwise, will treat
9889
- # two colors to be equal if all their red, green, blue and alpha values each
9890
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
9891
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
9892
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
9893
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
9894
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
9895
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
9896
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
9897
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
9898
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
9899
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
9900
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
9901
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
9902
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
9903
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
9904
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
9905
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
9906
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
9907
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
9908
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
9909
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
9910
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
9911
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9886
+ # applications should assume the sRGB color space. When color equality needs to
9887
+ # be decided, implementations, unless documented otherwise, treat two colors as
9888
+ # equal if all their red, green, blue, and alpha values each differ by at most
9889
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
9890
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
9891
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
9892
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
9893
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
9894
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
9895
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
9896
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
9897
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
9898
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
9899
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
9900
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
9901
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
9902
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
9903
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
9904
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
9905
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
9906
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
9907
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
9908
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
9909
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
9910
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9912
9911
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
9913
9912
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
9914
9913
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
9915
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9914
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9916
9915
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
9917
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
9918
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
9919
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
9920
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
9921
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
9922
- # join(''); `; // ...
9916
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
9917
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
9918
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
9919
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
9920
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
9921
+ # / ...
9923
9922
  # Corresponds to the JSON property `noDataColor`
9924
9923
  # @return [Google::Apis::SheetsV4::Color]
9925
9924
  attr_accessor :no_data_color
@@ -9962,49 +9961,49 @@ module Google
9962
9961
 
9963
9962
  # Represents a color in the RGBA color space. This representation is designed
9964
9963
  # for simplicity of conversion to/from color representations in various
9965
- # languages over compactness; for example, the fields of this representation can
9966
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
9967
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9964
+ # languages over compactness. For example, the fields of this representation can
9965
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
9966
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
9968
9967
  # method in iOS; and, with just a little work, it can be easily formatted into a
9969
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
9968
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
9970
9969
  # information about the absolute color space that should be used to interpret
9971
9970
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
9972
- # applications SHOULD assume the sRGB color space. Note: when color equality
9973
- # needs to be decided, implementations, unless documented otherwise, will treat
9974
- # two colors to be equal if all their red, green, blue and alpha values each
9975
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
9976
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
9977
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
9978
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
9979
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
9980
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
9981
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
9982
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
9983
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
9984
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
9985
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
9986
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
9987
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
9988
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
9989
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
9990
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
9991
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
9992
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
9993
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
9994
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
9995
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
9996
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9971
+ # applications should assume the sRGB color space. When color equality needs to
9972
+ # be decided, implementations, unless documented otherwise, treat two colors as
9973
+ # equal if all their red, green, blue, and alpha values each differ by at most
9974
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
9975
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
9976
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
9977
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
9978
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
9979
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
9980
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
9981
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
9982
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
9983
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
9984
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
9985
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
9986
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
9987
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
9988
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
9989
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
9990
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
9991
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
9992
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
9993
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
9994
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
9995
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
9997
9996
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
9998
9997
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
9999
9998
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
10000
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
9999
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
10001
10000
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
10002
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
10003
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
10004
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
10005
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
10006
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
10007
- # join(''); `; // ...
10001
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
10002
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
10003
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
10004
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
10005
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
10006
+ # / ...
10008
10007
  # Corresponds to the JSON property `headerColor`
10009
10008
  # @return [Google::Apis::SheetsV4::Color]
10010
10009
  attr_accessor :header_color
@@ -11032,49 +11031,49 @@ module Google
11032
11031
 
11033
11032
  # Represents a color in the RGBA color space. This representation is designed
11034
11033
  # for simplicity of conversion to/from color representations in various
11035
- # languages over compactness; for example, the fields of this representation can
11036
- # be trivially provided to the constructor of "java.awt.Color" in Java; it can
11037
- # also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
11034
+ # languages over compactness. For example, the fields of this representation can
11035
+ # be trivially provided to the constructor of `java.awt.Color` in Java; it can
11036
+ # also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
11038
11037
  # method in iOS; and, with just a little work, it can be easily formatted into a
11039
- # CSS "rgba()" string in JavaScript, as well. Note: this proto does not carry
11038
+ # CSS `rgba()` string in JavaScript. This reference page doesn't carry
11040
11039
  # information about the absolute color space that should be used to interpret
11041
11040
  # the RGB value (e.g. sRGB, Adobe RGB, DCI-P3, BT.2020, etc.). By default,
11042
- # applications SHOULD assume the sRGB color space. Note: when color equality
11043
- # needs to be decided, implementations, unless documented otherwise, will treat
11044
- # two colors to be equal if all their red, green, blue and alpha values each
11045
- # differ by at most 1e-5. Example (Java): import com.google.type.Color; // ...
11046
- # public static java.awt.Color fromProto(Color protocolor) ` float alpha =
11047
- # protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new
11048
- # java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(
11049
- # ), alpha); ` public static Color toProto(java.awt.Color color) ` float red = (
11050
- # float) color.getRed(); float green = (float) color.getGreen(); float blue = (
11051
- # float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder
11052
- # = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator)
11053
- # .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255)
11054
- # ` result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) /
11055
- # denominator) .build()); ` return resultBuilder.build(); ` // ... Example (iOS /
11056
- # Obj-C): // ... static UIColor* fromProto(Color* protocolor) ` float red = [
11057
- # protocolor red]; float green = [protocolor green]; float blue = [protocolor
11058
- # blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (
11059
- # alpha_wrapper != nil) ` alpha = [alpha_wrapper value]; ` return [UIColor
11060
- # colorWithRed:red green:green blue:blue alpha:alpha]; ` static Color* toProto(
11061
- # UIColor* color) ` CGFloat red, green, blue, alpha; if (![color getRed:&red
11062
- # green:&green blue:&blue alpha:&alpha]) ` return nil; ` Color* result = [[Color
11063
- # alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:
11064
- # blue]; if (alpha <= 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; `
11065
- # [result autorelease]; return result; ` // ... Example (JavaScript): // ...
11066
- # var protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
11041
+ # applications should assume the sRGB color space. When color equality needs to
11042
+ # be decided, implementations, unless documented otherwise, treat two colors as
11043
+ # equal if all their red, green, blue, and alpha values each differ by at most
11044
+ # 1e-5. Example (Java): import com.google.type.Color; // ... public static java.
11045
+ # awt.Color fromProto(Color protocolor) ` float alpha = protocolor.hasAlpha() ?
11046
+ # protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.
11047
+ # getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); ` public static
11048
+ # Color toProto(java.awt.Color color) ` float red = (float) color.getRed();
11049
+ # float green = (float) color.getGreen(); float blue = (float) color.getBlue();
11050
+ # float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .
11051
+ # setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue /
11052
+ # denominator); int alpha = color.getAlpha(); if (alpha != 255) ` result.
11053
+ # setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .
11054
+ # build()); ` return resultBuilder.build(); ` // ... Example (iOS / Obj-C): // ..
11055
+ # . static UIColor* fromProto(Color* protocolor) ` float red = [protocolor red];
11056
+ # float green = [protocolor green]; float blue = [protocolor blue]; FloatValue*
11057
+ # alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper !=
11058
+ # nil) ` alpha = [alpha_wrapper value]; ` return [UIColor colorWithRed:red green:
11059
+ # green blue:blue alpha:alpha]; ` static Color* toProto(UIColor* color) `
11060
+ # CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&
11061
+ # blue alpha:&alpha]) ` return nil; ` Color* result = [[Color alloc] init]; [
11062
+ # result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <
11063
+ # = 0.9999) ` [result setAlpha:floatWrapperWithValue(alpha)]; ` [result
11064
+ # autorelease]; return result; ` // ... Example (JavaScript): // ... var
11065
+ # protoToCssColor = function(rgb_color) ` var redFrac = rgb_color.red || 0.0;
11067
11066
  # var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0;
11068
11067
  # var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255);
11069
11068
  # var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) ` return
11070
- # rgbToCssColor_(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
11069
+ # rgbToCssColor(red, green, blue); ` var alphaFrac = rgb_color.alpha.value || 0.
11071
11070
  # 0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',
11072
- # ', alphaFrac, ')'].join(''); `; var rgbToCssColor_ = function(red, green, blue)
11073
- # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var
11074
- # hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length;
11075
- # var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) `
11076
- # resultBuilder.push('0'); ` resultBuilder.push(hexString); return resultBuilder.
11077
- # join(''); `; // ...
11071
+ # ', alphaFrac, ')'].join(''); `; var rgbToCssColor = function(red, green, blue)
11072
+ # ` var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString
11073
+ # = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var
11074
+ # resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) ` resultBuilder.
11075
+ # push('0'); ` resultBuilder.push(hexString); return resultBuilder.join(''); `; /
11076
+ # / ...
11078
11077
  # Corresponds to the JSON property `color`
11079
11078
  # @return [Google::Apis::SheetsV4::Color]
11080
11079
  attr_accessor :color