You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1BorderStyle.java
+18-3Lines changed: 18 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,12 @@ public final class GoogleAppsCardV1BorderStyle extends com.google.api.client.jso
38
38
privatejava.lang.IntegercornerRadius;
39
39
40
40
/**
41
-
* The colors to use when the type is `BORDER_TYPE_STROKE`.
41
+
* The colors to use when the type is `BORDER_TYPE_STROKE`. To set the stroke color, specify a
42
+
* value for the `red`, `green`, and `blue` fields. The value must be a float number between 0 and
43
+
* 1 based on the RGB color value, where `0` (0/255) represents the absence of color and `1`
44
+
* (255/255) represents the maximum intensity of the color. For example, the following sets the
45
+
* color to red at its maximum intensity: ``` "color": { "red": 1, "green": 0, "blue": 0, } ```
46
+
* The `alpha` field is unavailable for stroke color. If specified, this field is ignored.
42
47
* The value may be {@code null}.
43
48
*/
44
49
@com.google.api.client.util.Key
@@ -69,15 +74,25 @@ public GoogleAppsCardV1BorderStyle setCornerRadius(java.lang.Integer cornerRadiu
69
74
}
70
75
71
76
/**
72
-
* The colors to use when the type is `BORDER_TYPE_STROKE`.
77
+
* The colors to use when the type is `BORDER_TYPE_STROKE`. To set the stroke color, specify a
78
+
* value for the `red`, `green`, and `blue` fields. The value must be a float number between 0 and
79
+
* 1 based on the RGB color value, where `0` (0/255) represents the absence of color and `1`
80
+
* (255/255) represents the maximum intensity of the color. For example, the following sets the
81
+
* color to red at its maximum intensity: ``` "color": { "red": 1, "green": 0, "blue": 0, } ```
82
+
* The `alpha` field is unavailable for stroke color. If specified, this field is ignored.
73
83
* @return value or {@code null} for none
74
84
*/
75
85
publicColorgetStrokeColor() {
76
86
returnstrokeColor;
77
87
}
78
88
79
89
/**
80
-
* The colors to use when the type is `BORDER_TYPE_STROKE`.
90
+
* The colors to use when the type is `BORDER_TYPE_STROKE`. To set the stroke color, specify a
91
+
* value for the `red`, `green`, and `blue` fields. The value must be a float number between 0 and
92
+
* 1 based on the RGB color value, where `0` (0/255) represents the absence of color and `1`
93
+
* (255/255) represents the maximum intensity of the color. For example, the following sets the
94
+
* color to red at its maximum intensity: ``` "color": { "red": 1, "green": 0, "blue": 0, } ```
95
+
* The `alpha` field is unavailable for stroke color. If specified, this field is ignored.
81
96
* @param strokeColor strokeColor or {@code null} for none
Copy file name to clipboardExpand all lines: clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Button.java
+33-39Lines changed: 33 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -44,18 +44,15 @@ public final class GoogleAppsCardV1Button extends com.google.api.client.json.Gen
44
44
privatejava.lang.StringaltText;
45
45
46
46
/**
47
-
* If set, the button is filled with a solid background color and the font color changes to
48
-
* maintain contrast with the background color. For example, setting a blue background likely
49
-
* results in white text. If unset, the image background is white and the font color is blue. For
50
-
* red, green, and blue, the value of each field is a `float` number that you can express in
51
-
* either of two ways: as a number between 0 and 255 divided by 255 (153/255), or as a value
52
-
* between 0 and 1 (0.6). 0 represents the absence of a color and 1 or 255/255 represent the full
53
-
* presence of that color on the RGB scale. Optionally set `alpha`, which sets a level of
54
-
* transparency using this equation: ``` pixel color = alpha * (this color) + (1.0 - alpha) *
55
-
* (background color) ``` For `alpha`, a value of `1` corresponds with a solid color, and a value
56
-
* of `0` corresponds with a completely transparent color. For example, the following color
0 commit comments